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

Delete Host Problem, Host deleted but left overs still in DB

Scheduled Pinned Locked Moved Solved
Bug Reports
2
12
1.9k
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.
  • X
    x23piracy
    last edited by x23piracy Sep 19, 2017, 1:40 AM Sep 19, 2017, 7:13 AM

    Server
    • FOG Version: RC9
    • OS:

    Hi,

    today i tried to delete a host, marked it, clicked on delete button, entered credentials.
    System is telling me the credentials are wrong, but the host is gone after that but still in the db.

    When i try to inventory that host again the menu is telling me it4434 is registered but it’s not in the host list anymore,
    there must be left overs in the db:

    Bild Text

    How can i fix this?

    Regards X23

    ║▌║█║▌│║▌║▌█

    1 Reply Last reply Reply Quote 0
    • X
      x23piracy
      last edited by x23piracy Sep 19, 2017, 1:17 AM Sep 19, 2017, 7:15 AM

      Hi,

      i crosslink another bug report where i also see wrong credentials while they are right:
      https://forums.fogproject.org/topic/10812/cannot-add-pushbullet-account-nothing-happens-when-i-click-on-add

      i’ve also tried to remove the host by menu (after i allready half deleted it via the web gui) then i get a chainload failed (reboot).

      ║▌║█║▌│║▌║▌█

      1 Reply Last reply Reply Quote 0
      • X
        x23piracy
        last edited by x23piracy Sep 19, 2017, 1:51 AM Sep 19, 2017, 7:29 AM

        Hi,

        i could help myself with:

        mysql> DELETE FROM hostMAC WHERE hmMAC LIKE '%hostmac%';
        

        But something must be broken with the host deletion?

        Maybe this is also related: https://forums.fogproject.org/topic/10696/can-t-delete-host-with-empty-host-name-1-5-0-rc-7

        EDIT:

        omg whats happening here, after manual deletion of the host i ran another quick registration via the pxe menu, after that i try to give this host his old name but:

        Bild Text

        The name was it4434 (there must be still something in the db related with this name)

        When i search for it4434 there is nothing:

        Bild Text

        I have the feeling when i now delete the host again while his name is it’s mac that i cannot add it again.
        How can i delete that hostname left overs?

        Help! please

        ║▌║█║▌│║▌║▌█

        T 1 Reply Last reply Sep 19, 2017, 11:23 AM Reply Quote 0
        • T
          Tom Elliott @x23piracy
          last edited by Tom Elliott Sep 19, 2017, 5:24 AM Sep 19, 2017, 11:23 AM

          @x23piracy delete from hosts where hostname=‘it4434’

          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

          X 1 Reply Last reply Sep 19, 2017, 11:52 AM Reply Quote 0
          • X
            x23piracy @Tom Elliott
            last edited by x23piracy Sep 19, 2017, 5:54 AM Sep 19, 2017, 11:52 AM

            @tom-elliott ok this worked i can name a new host it4434 again but do you see the bug?
            I will now try to remove that host again (regulary)…

            Ok when i try to remove the same happens again (not wondering):

            Bild Text

            Can find the host in the host list after that even when its telling me wrong credentials, something has been deleted but only partly. When i now boot into fog menu, its not telling me that the host is still registered, crazy before it told me host is registered.

            Bug?

            ║▌║█║▌│║▌║▌█

            T 1 Reply Last reply Sep 19, 2017, 12:05 PM Reply Quote 0
            • T
              Tom Elliott @x23piracy
              last edited by Sep 19, 2017, 12:05 PM

              @x23piracy I don’t see the bug in working branch, but that could be I noticed something last week and corrected around it already.

              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

              X 1 Reply Last reply Sep 19, 2017, 12:07 PM Reply Quote 0
              • X
                x23piracy @Tom Elliott
                last edited by Sep 19, 2017, 12:07 PM

                @tom-elliott i am on wokring branch but not updated, around 1 week old after you released, should i update an reinstall?

                ║▌║█║▌│║▌║▌█

                T 1 Reply Last reply Sep 19, 2017, 12:09 PM Reply Quote 0
                • T
                  Tom Elliott @x23piracy
                  last edited by Sep 19, 2017, 12:09 PM

                  @x23piracy I’d say git pull update. You are on working, not dev-branch?

                  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

                  X 1 Reply Last reply Sep 19, 2017, 12:11 PM Reply Quote 0
                  • X
                    x23piracy @Tom Elliott
                    last edited by Sep 19, 2017, 12:11 PM

                    @tom-elliott sorry sure its dev

                    ║▌║█║▌│║▌║▌█

                    T 1 Reply Last reply Sep 19, 2017, 12:15 PM Reply Quote 0
                    • T
                      Tom Elliott @x23piracy
                      last edited by Sep 19, 2017, 12:15 PM

                      @x23piracy Then you need to change from git checkout dev-branch to git checkout working

                      git checkout working
                      git pull
                      cd bin
                      ./installfog.sh -y
                      

                      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
                      • T
                        Tom Elliott
                        last edited by Sep 19, 2017, 2:11 PM

                        Deleting the host item was working, I suspect a trailing piece was still around causing the issue. Now it seems all is working properly. I don’t think this had anything to do with working/dev-branch though either.

                        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
                        • X
                          x23piracy
                          last edited by Sep 19, 2017, 2:12 PM

                          Solved in working branch. Thanks Tom.

                          ║▌║█║▌│║▌║▌█

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

                          157

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project