Image ID must be numeric ...
-
I found it, if it can help someone …
“[B][FONT=Courier New][COLOR=#000000]$mac[/COLOR][/FONT][/B][FONT=Courier New][COLOR=#000000]=[/COLOR][/FONT][B][FONT=Courier New][COLOR=#000000]$_GET[/COLOR][/FONT][/B][FONT=Courier New][COLOR=#000000][[/COLOR][/FONT][COLOR=#ff0000][FONT=Courier New]“mac”[/FONT][/COLOR][FONT=Courier New][COLOR=#000000]];[/COLOR][/FONT]
[FONT=Courier New][COLOR=#000000][COLOR=#555555] 35 [/COLOR][I][COLOR=#838183]//$size = $_GET[“size”];[/COLOR][/I]
[COLOR=#555555] 36 [/COLOR][B]$imgid[/B] = [B]$GET[/B][[COLOR=#ff0000]“imgid”[/COLOR]];
[COLOR=#555555] 37 [/COLOR][B]$type[/B] = [B]$GET[/B][[COLOR=#ff0000]“imgtype”[/COLOR]];
[COLOR=#555555] 38 [/COLOR]
[COLOR=#555555] 39 [/COLOR][B]if[/B] ( ! [COLOR=#010181]isValidMACAddress/COLOR )
[COLOR=#555555] 40 [/COLOR]{
[COLOR=#555555] 41 [/COLOR] [B]die[/B]( [COLOR=#010181][/COLOR]([COLOR=#ff0000]“Invalid MAC address format!”[/COLOR]) );
[COLOR=#555555] 42 [/COLOR]}
[COLOR=#555555] 43 [/COLOR]
[COLOR=#555555] 44 [/COLOR][B]if[/B] ( ! [COLOR=#010181]is_numeric/COLOR ) <-----------------------------------------
[COLOR=#555555] 45 [/COLOR]{
[COLOR=#555555] 46 [/COLOR] [B]die[/B]( [COLOR=#010181][/COLOR]([COLOR=#ff0000]“Image ID must be numeric”[/COLOR]) ); <----------------------------------
[COLOR=#555555] 47 [/COLOR]}
[COLOR=#555555] 48 [/COLOR]
[COLOR=#555555] 49 [/COLOR][B]if[/B] ( [B]$mac[/B] != null )”[/COLOR][/FONT] -
Which fog version are you using? Fog 0.32 or fog 0.33B?
-
FOG 0.32 on Debian 7.1 …
Thanks for your answer Albatros ! -
You had no problems on installation? At the moment I find only this, about a problem with a [URL=‘http://fogproject.org/forum/threads/setting-up-and-building-udpcast-failed.4548/page-2#post-22631’]variable[/URL], who Kevin mentions. I don’t know if that helps you.
-
It is the only thing I found on Internet and that’s why I posted on FOG forums… I verified, image’s name, deleting space or dash, I hoped it would change the problem but anything happened …
-
Okay. YOu are using a newer version of php 5.3 and have no problem with starting tasks, because you say you can already starting the upload of a image.
-
Screen with the evolution of client image’s upload appears (as in 6:14 [media=youtube]fdfY7kt7oGE[/media]) but the screen change few seconds after it and it shows the error message “Image ID must be numeric”.
-
In the file:
01-XX-XX-XX-XX-XX-XX make sure imgid is set to the image id of the image you’re attempting to upload. It sounds like your pxe generated file isn’t setup properly, almost like it has generated a deploy job. Hence why you had to change the “type=down” line to “type=up”.
-
File 01-XX… :
type=up img=w7opt620Image Management :
w7opt620All was fine …
-
Can you try adding the the imgid parameter. At the end of the append line, add imgid=##
Where ## is the image id for w7opt620.
-
So, I add imgid=w7opt620 at the end of the append line ?
(w7opt620 is the one image id I know …) -
No,
the numeric ID of w7opt630.
It will be in your mysql database as a number. So you look for (on the FOG database):
[code]select imageID from images WHERE imageName=‘w7opt620’;[/code]
-
I did the sql request and the result is “1”; so I add imgid=1 at the end of the append line and message error changed. It is a problem in my different files, so I will go to look it and I will tell you evolution !
Thank you very much Tom !!! -
Tom please … Your help is so precious for me as I cannot take place any more
The new error message is “unable to move /images/dev/00XXXXX… to /images/w7opt620”In /images :
01XX… dev w7opt620In /images/dev :
01XX…ls -ln /images :
-rwxrwxrwx 1 1000 0 0 févr. 11 14:20 01XXX…
drwxrwxrwx 2 1000 0 1024 févr. 11 14:46 devls -ln / :
drwxrwxrwx 3 1000 0 1024 févr. 11 14:45 images
Ideas ? -
I’m really worried about the task creation scheme you’re seeing more than anything. We’ve had to modify the 01-XX… file to get you to a sort-of working state.
Can you do me a favor and delete the 01-… file, remove the task from the queue, if it isn’t already removed, and then recreate the Upload task?
-
I have to delete the 01-XX file from /images or from /images/dev ?..
-
neither.
Delete the 01-XX-XX-XX-XX-XX-XX from the /tftpboot/pxelinux.cfg/ folder.
-
Are you sure I have to do this ? This folder contains a lot of information for fog …
-
Don’t delete the whole folder. Just delete the file that is named:
01-XX-XX-XX-XX-XX-XX Where the XX’s represent the MAC address of the system you’re trying to get to upload the image. -
But in /tftpboot/pxelinux.cfg/, there are two files: 01-XX… and default. And in the 01-XX file, there is it:
"# Created by FOG Imaging System
DEFAULT fog
LABEL fog
kernel fog/kernel/bzImage
append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=193.52.239.70 type=up img=w7opt620 … "
Sorry if I take you a lot of time and thank you for your patience …