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

A hostname with that name already exists.

Scheduled Pinned Locked Moved Solved
FOG Problems
5
9
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.
  • A
    Avaryan
    last edited by Jul 19, 2016, 2:41 PM

    Hello,

    Ever since updating from FOG 1.2.0 to Trunk (v8424, SVN Revision 5837) I have been unable to register a new host via the Full Registration and Inventory option. When attempting to add a new host I get the message “A hostname with that name already exists.”

    See the attached image:
    alt text

    I’m still able to register new hosts using the quick registration option and then changing the name from the web menu. It’s just obviously not as convenient.

    1 Reply Last reply Reply Quote 0
    • J
      Junkhacker Developer
      last edited by Jul 19, 2016, 3:28 PM

      try updating to the latest build.

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      1 Reply Last reply Reply Quote 1
      • W
        Wayne Workman
        last edited by Jul 19, 2016, 4:13 PM

        Could also be a host with ID=0.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 1
        • T
          Tom Elliott
          last edited by Jul 19, 2016, 4:15 PM

          Unlikely. However it won’t hurt to try.

          If you can get into the mysql shell, try this:

          Of course backup the current DB in case something goes strange.

          DELETE FROM hostMAC WHERE hmHostID NOT IN (SELECT hostID from hosts);
          DELETE FROM hostMAC WHERE hmHostID=0;
          DELETE FROM hosts WHERE hostID=0;
          DELETE FROM hosts WHERE hostID NOT IN (SELECT hmHostID from hostMAC);
          

          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
          • S
            svalding
            last edited by Jul 20, 2016, 1:35 PM

            I’ve had to go into MySQL and clean up the tables before when I encountered this issue. In my case it has always been because fog adds the mac address of a bluetooth adapter to a host, and then it gets orphaned or something when I rather delete a host, or make changes to the host. I use PHPMyAdmin instead of the console, but the query is the same.

            J 1 Reply Last reply Jul 20, 2016, 1:38 PM Reply Quote 0
            • J
              Junkhacker Developer @svalding
              last edited by Jul 20, 2016, 1:38 PM

              @svalding in that case, i would manually add that address to a host (one you’ll keep track of) and check the checkboxes that say to ignore it. i do something similar with usb network adapters.

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              A 1 Reply Last reply Jul 27, 2016, 2:48 PM Reply Quote 1
              • A
                Avaryan
                last edited by Jul 27, 2016, 2:21 PM

                Sorry for the delay in response. Busy time of the year.

                I had the guy with access to the database look for a Host with the ID of 0, but he didn’t get back to me, lol. Going to assume that means he didn’t find one.

                I exported the FOG inventory and there wasn’t anything listed with that Host ID.

                What I did notice, the MAC address listed in that picture is not the MAC address of the PC I was trying to register/inventory. No matter what device I attempt to full register it displays that MAC address.

                I don’t have the MAC address in the inventory, but I think it used to belong to a HP dc5100 that caused me issues in the past.

                Maybe attempt to find and delete an entry with that MAC address?

                1 Reply Last reply Reply Quote 0
                • A
                  Avaryan @Junkhacker
                  last edited by Jul 27, 2016, 2:48 PM

                  @Junkhacker said in A hostname with that name already exists.:

                  @svalding in that case, i would manually add that address to a host (one you’ll keep track of) and check the checkboxes that say to ignore it. i do something similar with usb network adapters.

                  I did this (since I don’t have database access) and it worked. Thanks!

                  Will mark issue as resolved.

                  1 Reply Last reply Reply Quote 0
                  • W
                    Wayne Workman
                    last edited by Jul 27, 2016, 2:51 PM

                    I also added it to the wiki.
                    https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Hosts_think_they_are_not_registered_.2F_can.27t_register_.2F_other_weirdness

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

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

                    151

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project