• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Image ID must be numeric ...

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    30
    11.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Ethaan268
      last edited by

      Hello everybody,

      First, I will ask you to be lenient with me and my english because I’m a french student …
      So I’m in course training in a University and I have to make a FOG server to deploy system image in computer room.

      I feel I am close to, and I have a little problem who Internet forums don’t speak a lot … Blue screen appears and it’s like uploading is begining but an other blue screen appears and it tells me “Image ID must be numeric”…

      Please, if you know what it means …

      1 Reply Last reply Reply Quote 0
      • E
        Ethaan268
        last edited by

        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]

        1 Reply Last reply Reply Quote 0
        • A
          Albatros
          last edited by

          Which fog version are you using? Fog 0.32 or fog 0.33B?

          1 Reply Last reply Reply Quote 0
          • E
            Ethaan268
            last edited by

            FOG 0.32 on Debian 7.1 …
            Thanks for your answer Albatros !

            1 Reply Last reply Reply Quote 0
            • A
              Albatros
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • E
                Ethaan268
                last edited by

                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 …

                1 Reply Last reply Reply Quote 0
                • A
                  Albatros
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • E
                    Ethaan268
                    last edited by

                    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”.

                    1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      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”.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 0
                      • E
                        Ethaan268
                        last edited by

                        File 01-XX… :
                        type=up img=w7opt620

                        Image Management :
                        w7opt620

                        All was fine …

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          Can you try adding the the imgid parameter. At the end of the append line, add imgid=##

                          Where ## is the image id for w7opt620.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          1 Reply Last reply Reply Quote 0
                          • E
                            Ethaan268
                            last edited by

                            So, I add imgid=w7opt620 at the end of the append line ?
                            (w7opt620 is the one image id I know …)

                            1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott
                              last edited by

                              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]

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • E
                                Ethaan268
                                last edited by

                                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 !!! 😄

                                1 Reply Last reply Reply Quote 0
                                • E
                                  Ethaan268
                                  last edited by

                                  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 w7opt620

                                  In /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 dev

                                  ls -ln / :
                                  drwxrwxrwx 3 1000 0 1024 févr. 11 14:45 images
                                  Ideas ?

                                  1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott
                                    last edited by

                                    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?

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    1 Reply Last reply Reply Quote 0
                                    • E
                                      Ethaan268
                                      last edited by

                                      I have to delete the 01-XX file from /images or from /images/dev ?..

                                      1 Reply Last reply Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott
                                        last edited by

                                        neither.

                                        Delete the 01-XX-XX-XX-XX-XX-XX from the /tftpboot/pxelinux.cfg/ folder.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          Ethaan268
                                          last edited by

                                          Are you sure I have to do this ? This folder contains a lot of information for fog …

                                          1 Reply Last reply Reply Quote 0
                                          • Tom ElliottT
                                            Tom Elliott
                                            last edited by

                                            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.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            166

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project