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

FOG Node - getversion.php Missing

Scheduled Pinned Locked Moved Unsolved
FOG Problems
3
22
4.8k
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.
  • R
    RobTitian16
    last edited by Sep 27, 2016, 4:13 PM

    Server
    • FOG Version: 1.3.0-RC-8
    • OS: Ubuntu Server 14.04
    Client
    • Service Version:
    • OS:
    Description

    Hi all,

    I’ve just set-up my FOG storage node, although I can’t seem to see it from the web gui dashboard. When selecting it, I see a long line of text that says:
    0_1474992725961_Capture.PNG

    “The requested URL /fog/service/getversion.php was not found on this server.”
    Would anyone be able to tell me where I can get this from or what I need to do to ensure it shows up correctly on the GUI?

    Any help with this would be greatly appreciated.

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Sep 27, 2016, 6:33 PM

      This happens when either 1. the node is super busy, or 2. the db connection isn’t working.

      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/

      R 1 Reply Last reply Sep 28, 2016, 2:16 PM Reply Quote 0
      • R
        RobTitian16 @Wayne Workman
        last edited by Sep 28, 2016, 2:16 PM

        @Wayne-Workman It seems it’s the latter. I’ve restarted both the FOG server and the master node. Both can definitely ping one another.
        Is there a way of diagnosing why the DB connection isn’t working? Does it matter that the file it mentions is actually missing from the node?

        W 1 Reply Last reply Sep 28, 2016, 5:30 PM Reply Quote 0
        • W
          Wayne Workman @RobTitian16
          last edited by Wayne Workman Sep 28, 2016, 11:31 AM Sep 28, 2016, 5:30 PM

          @RobTitian16 I should ask, did you use the fog installer to setup this storage node?

          and, if you run the command cat /var/www/html/fog/lib/fog/config.class.php on the storage node, it’ll output some variables. Three of them will be snmysqlhost and snmysqluser and snmysqlpass They will be towards the top.

          You can test those manually from the storage node via CLI as:
          mysql -h hostHere -u userHere -pPasswordhere -D fog

          Note that there’s no space between the -p and the password, that is intentional. If it lets you in that way, the DB connection is good. Else, it’s bad.

          Also, I doubt the getversion file is actually missing. You may search for it with this:
          find /var/www/html/fog | grep /getversion.php

          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/

          R 1 Reply Last reply Sep 30, 2016, 1:04 PM Reply Quote 1
          • T
            Tom Elliott
            last edited by Sep 28, 2016, 5:37 PM

            Why is it unlikely the file simple really doesn’t exist? If it were a DB connection issue I would think it would return an error 500. Maybe even an error 502, but 404 is almost always “the file doesn’t exist” or cannot be accessed due to permissions.

            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 28, 2016, 5:38 PM

              I’m guessing the last part of @Wayne-Workman will lead us to the answer.

              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
              • R
                RobTitian16 @Wayne Workman
                last edited by Sep 30, 2016, 1:04 PM

                @Wayne-Workman Hi all, apologies about the delay in getting back to you.
                I’ve gone through Wayne’s suggestions and yes, I can confirm I used the fog installer to setup the storage node.

                I ran the cat /var/www/html/fog/lib/fog/config.class.php command, but couldn’t see snmysqlhost, snmysqluser or snmysqlpass there at all near the top. Instead, I saw define “(‘DATABASE_HOST’,),” and the same for the database username and password. There was no record of snmysqlhost, so I’m not sure if this is an issue itself?

                I tried running the test with the information I did have, but that came back with an error 2003(hy000) which, after a Google search, shows that the connection isn’t working correctly.

                Finally, the getversion file does seem to be missing. After running your suggested command, nothing was returned at all.

                W 1 Reply Last reply Sep 30, 2016, 3:28 PM Reply Quote 0
                • W
                  Wayne Workman @RobTitian16
                  last edited by Wayne Workman Sep 30, 2016, 9:29 AM Sep 30, 2016, 3:28 PM

                  @RobTitian16 The fields you found are what I was referring to, I just didn’t remember the names right. I’ve been AFK for a few days now, just working off my laptop.

                  So, when you plugin the database host, user, and pass into the command I gave you, exactly what happens? Can you give us a screenshot of it please?

                  Also, is the password and user you see in there the same as the password found in Web Interface -> FOG Configuration -> FOG Settings -> Storage Nodes -> Password and User ? Is the IP address in there the one of the main fog server?

                  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/

                  R 1 Reply Last reply Oct 3, 2016, 11:24 AM Reply Quote 0
                  • R
                    RobTitian16 @Wayne Workman
                    last edited by Oct 3, 2016, 11:24 AM

                    @Wayne-Workman
                    Yes, this is the message I receive:
                    0_1475493765057_Capture.PNG

                    I can confirm that username and password is the same as what’s listed in the FOG Configuration settings. The IP address is also that of the main FOG server.

                    W 1 Reply Last reply Oct 3, 2016, 5:47 PM Reply Quote 0
                    • W
                      Wayne Workman @RobTitian16
                      last edited by Oct 3, 2016, 5:47 PM

                      @RobTitian16 Can you successfully ping the main fog server from this problematic 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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott
                        last edited by Oct 3, 2016, 5:49 PM

                        More often than not, this is because of the “bind-address” configuration setting in /etc/my.cnf (your location might be /etc/mysql/my.cnf, or elsewhere from however ubuntu decides to layout the configuration).

                        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

                        W R 2 Replies Last reply Oct 3, 2016, 6:06 PM Reply Quote 1
                        • W
                          Wayne Workman @Tom Elliott
                          last edited by Oct 3, 2016, 6:06 PM

                          @Tom-Elliott What is the preference at the moment? 127.0.0.1 or localhost ?

                          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/

                          T 1 Reply Last reply Oct 3, 2016, 6:36 PM Reply Quote 0
                          • T
                            Tom Elliott @Wayne Workman
                            last edited by Oct 3, 2016, 6:36 PM

                            @Wayne-Workman YOu should remove bind-address entirely.

                            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 1
                            • R
                              RobTitian16 @Tom Elliott
                              last edited by RobTitian16 Oct 4, 2016, 4:16 AM Oct 4, 2016, 10:15 AM

                              @Tom-Elliott 0_1475575997253_Capture.PNG

                              bind-address already seems to be commented out. Is there anything else I can check?
                              And yes, I can ping the server perfectly fine from the problematic node.

                              I wonder if it’s the way I installed the storage node? I did:

                              cd /opt
                              sudo wget http://downloads.sourceforge.net/freeghost/fog_1.2.0.tar.gz
                              sudo tar -xvzf fog_1.2.0.tar.gz
                              cd fog_1.2.0/
                              cd bin
                              sudo ./installfog.sh

                              And then from the installation menu, selected to install the node.
                              I’m currently running Ubuntu 14.04, the same as my FOG server.
                              Perhaps I need to update the version of the FOG storage node? Is it the same process as updating the FOG server?

                              T W 2 Replies Last reply Oct 4, 2016, 10:43 AM Reply Quote 0
                              • T
                                Tom Elliott @RobTitian16
                                last edited by Oct 4, 2016, 10:43 AM

                                @RobTitian16 If bind-address is already commented, then you might need to change the ‘fogstorage’@‘%’ password.

                                I think you can do this if you login as the mysql ‘root’ user.

                                mysql -u root
                                SET PASSWORD FOR 'fogstorage'@'%' = PASSWORD('fs22290863734');
                                exit
                                

                                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

                                R 1 Reply Last reply Oct 4, 2016, 11:44 AM Reply Quote 0
                                • R
                                  RobTitian16 @Tom Elliott
                                  last edited by Oct 4, 2016, 11:44 AM

                                  @Tom-Elliott I tried doing that, but I receive the following error:

                                  0_1475581444954_Capture.PNG

                                  As you can see, I then tried to find the file it referenced, but it seems like it hasn’t been installed… have I installed the FOG node wrong somehow?

                                  T 1 Reply Last reply Oct 4, 2016, 12:22 PM Reply Quote 0
                                  • T
                                    Tom Elliott @RobTitian16
                                    last edited by Oct 4, 2016, 12:22 PM

                                    @RobTitian16 You need to run that on the main server, not the 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! 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

                                    R 1 Reply Last reply Oct 4, 2016, 1:57 PM Reply Quote 0
                                    • R
                                      RobTitian16 @Tom Elliott
                                      last edited by Oct 4, 2016, 1:57 PM

                                      @Tom-Elliott Ah, thanks for that. I can now run: mysql -h hostHere -u userHere -pPasswordhere -D fog on the node and connect in to the database on the FOG server. However, it’s still not showing correctly on the GUI… it’s still showing the same thing, even when using the same credentials to add the storage node.

                                      T 1 Reply Last reply Oct 4, 2016, 2:19 PM Reply Quote 0
                                      • T
                                        Tom Elliott @RobTitian16
                                        last edited by Oct 4, 2016, 2:19 PM

                                        @RobTitian16 That’s because the file simply doesn’t exist on the remote node.

                                        For the node that’s giving the issue can you run:

                                        rm -rf /var/www/fog /var/www/html/fog
                                        

                                        Update your fog installation folder as needed (either git pull or svn up) and rerun the installer?

                                        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

                                        R 1 Reply Last reply Oct 4, 2016, 3:19 PM Reply Quote 0
                                        • R
                                          RobTitian16 @Tom Elliott
                                          last edited by Oct 4, 2016, 3:19 PM

                                          @Tom-Elliott Excellent - that’s fixed it! Many thanks 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            10/22
                                            Last post

                                          145

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project