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

    SVN 4380 Cloud 5419 (on Ubuntu 14.04.3) - Fog Client (404) Not Found.

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    14
    5.1k
    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.
    • Tom ElliottT
      Tom Elliott
      last edited by

      @Malos said:

      http://fog-server/fog/service/servicemodule-active.php?moduleid=clientupdater&mac=90:B1:1C:7D:6B:FF||00:00:00:00:00:00:00:E0&newService=1

      Is your fogserver actually named 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! 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

      M 2 Replies Last reply Reply Quote 0
      • M
        Malos @Tom Elliott
        last edited by

        @Tom-Elliott no it’s not. The server itself is named fogserver at the OS level, and I have DNS entries that resolve fog-server, fogserver and fog (just covering my bases), all resolve to the correct IP.

        That fog-server entry in the logs is due to me being lazy and next nexting with installing the client in this case.

        1 Reply Last reply Reply Quote 0
        • M
          Malos @Tom Elliott
          last edited by

          @Tom-Elliott This is reproducible, here’s the steps that I have recorded in my wiki;

          • Install Ubuntu Server 14.04.3 LTS from iso
          • sudo passwd root
          • set your static IP info
          • su - up to root, and run
          • apt-get update && apt-get -y dist-upgrade && shutdown -r now
          • once it’s back up:
          • apt-get install -y subversion && svn co https://svn.code.sf.net/p/freeghost/code/trunk@4393 /root/fog_trunk && cd ~/fog_trunk/bin/ && ./installfog.sh

          Run through the install as usual, and perform a
          ls /var/www/html
          Result: no fog folder/link. Creating it manually does resolve client connectivity, but a re-running of installfog.sh wipes out the manual link.

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

            I make a link from /var/www/html/fog to /var/www/fog and I also make a link from /var/www/html/fog/ to /var/www/html/fog/fog

            This way even if hte webroot is not with a /fog, clients don’t have to adjust anything.

            My best guess is that the /var/www/ is your current document root, but the /var/www/html is the “real” document root of your server.

            You can verify this in the /opt/fog/.fogsetting and look for the docroot= setting in the file.

            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

            M 1 Reply Last reply Reply Quote 0
            • M
              Malos @Tom Elliott
              last edited by Malos

              @Tom-Elliott Running a

              grep -n -e "DocumentRoot"  /etc/apache2/sites-available/*
              

              results in

              /etc/apache2/sites-available/000-default.conf:12:       DocumentRoot /var/www/html
              /etc/apache2/sites-available/001-fog.conf:4:    DocumentRoot /var/www/
              /etc/apache2/sites-available/001-fog.conf:12:    DocumentRoot /var/www/
              /etc/apache2/sites-available/default-ssl.conf:5:                DocumentRoot /var/www/html
              

              /opt/fog/.fogsettings has

              docroot="/var/www/";
              
              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Malos
                last edited by

                @Malos can you change the document root in fogsettings file to /var/www/html 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

                M 2 Replies Last reply Reply Quote 0
                • M
                  Malos @Tom Elliott
                  last edited by Malos

                  @Tom-Elliott
                  As you suggested, changing in opt/fog/.fogsettings

                  docroot="/var/www/";
                  

                  to

                  docroot="/var/www/html/";
                  

                  and then r erunning the installer does create /var/www/html/fog, and creates a link to said folder at /var/www/fog

                  After re-running the installer, clients are able to connect no problem.

                  1 Reply Last reply Reply Quote 0
                  • M
                    Malos @Tom Elliott
                    last edited by

                    @Tom-Elliott Will some kind of change be made within the installer to reflect a new document root for fog? I don’t know when apache2 changed their doc root, or if that’s an ubuntu thing

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

                      Installer can accept arguments to specify webroot and docroot as you see fit.

                      The installer tries to take the best guess of information, but it’s all a guessing game.

                      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

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Malos @Tom Elliott
                        last edited by

                        @Tom-Elliott Ah, ok very nice.

                        ./install.sh -?
                        

                        indicates that I can use the following to install fog trunk with a correct DocRoot on Ubuntu 14.04.3

                        ./install.sh -D /var/www/html/
                        

                        Thanks!

                        1 Reply Last reply Reply Quote 0
                        • A
                          andyroo54 Moderator @Malos
                          last edited by

                          @Malos said in SVN 4380 Cloud 5419 (on Ubuntu 14.04.3) - Fog Client (404) Not Found.:

                          Here’s the fix, just needs to be run once install.sh has finished completely:

                          Make a symbolic link at /var/www/html for fog, and point it at /var/www/fog

                          ln -s /var/www/fog /var/www/html/fog
                          

                          Ta-da, no more 404s!

                          Thankyou!!!

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

                          227

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project