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

    Issues, cannot delete host, cannot add image to host

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    7
    2.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.
    • J
      Jim Holcomb
      last edited by

      Hello all.

      Not sure what is going on here. I create a new image. That works properly. I create new host, and associate new image with host. That works properly. When I try to edit the host, the image information is gone, and I get the following error message:
      “[CENTER][SIZE=16px][FONT=Ubuntu][COLOR=#ff0000]Upload task failed to create for[/COLOR][/FONT][/SIZE][/CENTER][CENTER][SIZE=16px][FONT=Ubuntu][COLOR=#ff0000] [/COLOR][/FONT][/SIZE][/CENTER][CENTER][SIZE=16px][FONT=Ubuntu][COLOR=#ff0000]with image[/COLOR][/FONT][/SIZE][/CENTER]
      [SIZE=16px][FONT=Ubuntu][COLOR=#ff0000][CENTER] [/CENTER][/COLOR][/FONT][/SIZE]
      [SIZE=16px][FONT=Ubuntu][COLOR=#ff0000][CENTER]You need to assign an image to the host”[/CENTER][/COLOR][/FONT][/SIZE]
      [LEFT][SIZE=16px][FONT=Ubuntu][COLOR=#ff0000][SIZE=13px][FONT=Tahoma][COLOR=#141414]Now I am stuck. I can delete the image entry, but I cannot delete the host. On the server itself, there is no file for this host. HELP!!![/COLOR][/FONT][/SIZE][/COLOR][/FONT][/SIZE][/LEFT]

      1 Reply Last reply Reply Quote 0
      • W
        Wolfbane8653 Developer
        last edited by

        Unfortunately you may need to dive into mysql and delete this host. If you need some help I can assist.

        1 Reply Last reply Reply Quote 0
        • J
          Jim Holcomb
          last edited by

          Yup! Going to need some help on this one.

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

            Open a terminal.

            Type: If you set blank mysql password at install remove all of the -p stuff.

            [code]mysql -u root -p’YOURPASSWORDHERE’ fog[/code]

            Once logged in to mysql you should see a prompt like:
            mysql>

            In there type:
            [code]DELETE FROM hosts WHERE hostID=‘0’;[/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
            • J
              Jim Holcomb
              last edited by

              Worked perfectly!

              Thanks Tom!

              1 Reply Last reply Reply Quote 0
              • W
                Wolfbane8653 Developer
                last edited by

                Sorry I got dumped full of house work in the evening.

                1 Reply Last reply Reply Quote 0
                • J
                  Jim Holcomb
                  last edited by

                  Been there - done that!

                  Tom’s reply worked perfectly! After months of playing with this thing, I finally have a working FOG server! Yea!

                  Thanks Guys

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

                  226

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project