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

    Fog All Hosts List Issue

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    5
    1.4k
    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.
    • B
      BStalker
      last edited by

      Setup a second Fog Server today for testing purposes. I got the image that I use copied over from one to the other, (both running on Fedora 23). I can image a PC using the quick image option, but when I try to do full registration etc it goes through all the normal stuff, reboots and then just goes back to the fog pxe menu as if it was never registered. (If you do the same PC again at that point for registration it says that there is already a host with that name)

      Under Host Management > All Hosts it returns “No Results Found”.
      When I try to add one of the hosts that have already been imaged or import them via CSV it says they all already exist and cant be added. Any thoughts?

      Let me know if there is any more info I can provide.

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

        What version of FOG?

        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
        • B
          BStalker
          last edited by

          The “New” test server is running 8329.
          The working server is 7961.

          1 Reply Last reply Reply Quote 0
          • B
            BStalker
            last edited by

            Ok, I now have it accepting new hosts via registration, but I still have the same issue when trying to import.

            Host Management
            Import Host Results
            Total Rows	50
            Successful Hosts	0
            Failed Hosts	50
            Errors	Row #1: Host already exists with this name: AG-EA-D012
            Row #2: Host already exists with this name: AG-EA-D040
            Row #3: Host already exists with this name: AG-EB-D064
            Row #4: Host already exists with this name: AG-EB-D086
            

            There are more “Row #*” entries but they are just the same with different names.

            B 1 Reply Last reply Reply Quote 0
            • B
              BStalker @BStalker
              last edited by

              Ok just an update, I got the issue fixed. To do so I had to delete the entries manually from the MariaDB for Fog. (Mysql)

              [root@localhost ~]# mysql -u root fog
              Reading table information for completion of table and column names
              You can turn off this feature to get a quicker startup with -A
              
              Welcome to the MariaDB monitor.  Commands end with ; or \g.
              Your MariaDB connection id is 29
              Server version: 10.0.23-MariaDB MariaDB Server
              
              Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
              
              Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
              
              MariaDB [fog]> delete from hosts where hostName NOT LIKE ' ';
              Query OK, 51 rows affected (0.00 sec).
              
              
              

              So basically

              1. mysql -u root fog
              2. delete from hosts where hostName NOT LIKE ’ ';

              As a note the second line as I used it deletes all hosts, if you have a problem with only certain hosts then you would want to alter that.

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

              160

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project