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

FOG Server cannot connect to storage node

Scheduled Pinned Locked Moved
Linux Problems
3
4
643
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.
  • 8
    88fingerslukee
    last edited by Apr 25, 2020, 1:41 AM

    Hey everybody,

    I used to have this working but I had to reinstall my storage node instance and I can’t get the main server to see the storage node for some reason. I’m running the latest 1.5.8.28 on both servers. I am able to connect to MySQL from the remote host no problem with the username and password that are entered in .fogsettings. Also, the fogproject user has the proper password as defined in .fogsettings.

    I see the following when I go to FOG Configuration:

    Main Server FOG Version: 1.5.8.28
    Storage Node FOG Version: 503 Service Unavailable

    Any idea what this means? I don’t think it’s a mysql issue.

    thanks
    88

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Sebastian Roth Apr 25, 2020, 6:26 AM Apr 25, 2020, 12:23 PM

      On the storage node, did you disable the firewall?
      The 503 error message kind of indicates the apache server is not running on the storage node. Confirm that apache is running by executing these commands on the storage node

      ps aux|grep apache

      and

      netstat -an | grep :80

      Now the storage nodes need to connect to the database on the master node. The correct values should be in the fog configuration settings on the master node. Those login settings should go into the config file on the storage node.

      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!

      1 Reply Last reply Reply Quote 0
      • 8
        88fingerslukee
        last edited by Apr 25, 2020, 10:37 PM

        Thanks for the reply!

        Apache is definitely running. When I go to http://x.x.x.x/fog I get the following message:

        This is a storage node, please do not access the web ui here!

        I have another website on this server, what URL does the master node look to when determining the storage node info?

        I have put the correct mysql connections into the fogsettings file.

        Anything else I can look at?

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Apr 26, 2020, 5:56 AM

          @88fingerslukee said in FOG Server cannot connect to storage node:

          I have put the correct mysql connections into the fogsettings file.

          The fogsettings file is only used by the installer. Did you re-run the FOG installer after adjusting fogsettings? Or you can manually edit /var/www/html/fog/lib/fog/config.class.php for the DB settings.

          The URL called is http://fog.server.ip/fog/status/kernelvers.php - be aware that this URL is called from your FOG master node. So if you can open this URL from your browser it doesn’t necessarily mean that it does work when called from the master node as well.

          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 / 1
          1 / 1
          • First post
            4/4
            Last post

          150

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project