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

Fog not loading after ubuntu updates

Scheduled Pinned Locked Moved
Linux Problems
5
18
2.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.
  • D
    dejv @george1421
    last edited by Nov 22, 2021, 7:20 AM

    @george1421 I guess its better to just stop doing the OS updates.

    I am a bit OCD about the updates 😛

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Nov 22, 2021, 4:11 PM

      @dejv said in Fog not loading after ubuntu updates:

      I guess its better to just stop doing the OS updates.

      Don’t think it’s a good idea. You better learn how to debug an error and fix things instead. 🙂

      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

      D 1 Reply Last reply Nov 23, 2021, 11:05 AM Reply Quote 0
      • D
        dejv @Sebastian Roth
        last edited by Nov 23, 2021, 11:05 AM

        @sebastian-roth you have a point there a good way to learn linux 😛

        1 Reply Last reply Reply Quote 0
        • D
          dejv
          last edited by Aug 8, 2023, 6:47 AM

          Hey, issues again, yesterday I updated my ubuntu version from 20.04.6lts to 22.04.2lts however now fog is not loading :S

          I checked and apache seems to be running :S any ideas

          55b555f8-47b4-4f75-af79-bac66928ec21-image.png

          T 1 Reply Last reply Aug 8, 2023, 9:57 AM Reply Quote 0
          • T
            Tom Elliott @dejv
            last edited by Aug 8, 2023, 9:57 AM

            @dejv That does not mean apache is running.

            Look at the right side and you see the “full command”

            You returned the grep command where you were looking for apache.

            You could do:
            ps -ef | grep -P 'apache|http' | grep -v grep

            Or
            ps aux | grep -P 'apache|http' | grep -v grep

            but from what I can apache definitely isn’t running currently.

            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

            D 1 Reply Last reply Aug 8, 2023, 12:25 PM Reply Quote 0
            • D
              dejv @Tom Elliott
              last edited by Aug 8, 2023, 12:25 PM

              @Tom-Elliott seems to be an apache related issue :s tried starting it manually and am getting the below error

              root@fog:~# systemctl status apache2.service
              × apache2.service - The Apache HTTP Server
              Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
              Active: failed (Result: exit-code) since Tue 2023-08-08 12:40:08 CEST; 15s ago
              Docs: https://httpd.apache.org/docs/2.4/
              Process: 104535 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
              CPU: 120ms

              Aww 08 12:40:07 fog systemd[1]: Starting The Apache HTTP Server…
              Aww 08 12:40:08 fog apachectl[104538]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp>
              Aww 08 12:40:08 fog apachectl[104535]: Action ‘start’ failed.
              Aww 08 12:40:08 fog apachectl[104535]: The Apache error log may have more information.
              Aww 08 12:40:08 fog systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
              Aww 08 12:40:08 fog systemd[1]: apache2.service: Failed with result ‘exit-code’.
              Aww 08 12:40:08 fog systemd[1]: Failed to start The Apache HTTP Server.

              T 1 Reply Last reply Aug 8, 2023, 1:41 PM Reply Quote 0
              • D
                dejv
                last edited by Aug 8, 2023, 12:38 PM

                I performed the below commands and now

                sudo a2dismod php7.4
                sudo a2enmod php8.1
                systemctl restart apache2

                and now on the web I am getting:

                Service Unavailable
                The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

                Apache/2.4.52 (Ubuntu) Server at 192.168.0.58 Port 80

                1 Reply Last reply Reply Quote 0
                • D
                  dejv
                  last edited by Aug 8, 2023, 12:55 PM

                  Also when running

                  sudo apachectl configtest

                  I was getting :
                  fog apachectl[941]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message

                  So had to add the below command
                  sudo nano /etc/httpd/conf/httpd.conf
                  and added : ServerName 127.0.0.1

                  root@fog:~# sudo apachectl configtest
                  Syntax OK

                  Now am getting :

                  Service Unavailable
                  The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

                  Apache/2.4.52 (Ubuntu) Server at 192.168.0.58 Port 80

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott @dejv
                    last edited by Aug 8, 2023, 1:41 PM

                    @dejv Please try:

                    systemctl -l status apache2
                    

                    send out put then also you can do:

                    systemctl restart apache2
                    sleep 5
                    journalctl -xe
                    

                    And send output here.

                    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

                    D 1 Reply Last reply Aug 8, 2023, 1:44 PM Reply Quote 0
                    • D
                      dejv @Tom Elliott
                      last edited by dejv Aug 8, 2023, 7:55 AM Aug 8, 2023, 1:44 PM

                      I have a server snapshot before the upgrade, I think I will revert back to it and then when it is nearly out of support will backup everything and do a fresh os installation

                      @Tom-Elliott

                      Aww 08 15:43:13 fog systemd[1]: FOGImageSize.service: Main process exited, code=exited, status=255/EXCEPTION
                      ░░ Subject: Unit process exited
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ An ExecStart= process belonging to unit FOGImageSize.service has exited.
                      ░░
                      ░░ The process’ exit code is ‘exited’ and its exit status is 255.
                      Aww 08 15:43:13 fog systemd[1]: FOGImageSize.service: Failed with result ‘exit-code’.
                      ░░ Subject: Unit failed
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ The unit FOGImageSize.service has entered the ‘failed’ state with result ‘exit-code’.
                      Aww 08 15:43:13 fog systemd[1]: FOGMulticastManager.service: Main process exited, code=exited, status=255/EXCEPTION
                      ░░ Subject: Unit process exited
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ An ExecStart= process belonging to unit FOGMulticastManager.service has exited.
                      ░░
                      ░░ The process’ exit code is ‘exited’ and its exit status is 255.
                      Aww 08 15:43:13 fog systemd[1]: FOGMulticastManager.service: Failed with result ‘exit-code’.
                      ░░ Subject: Unit failed
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ The unit FOGMulticastManager.service has entered the ‘failed’ state with result ‘exit-code’.
                      Aww 08 15:43:13 fog systemd[1]: FOGScheduler.service: Main process exited, code=exited, status=255/EXCEPTION
                      ░░ Subject: Unit process exited
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ An ExecStart= process belonging to unit FOGScheduler.service has exited.
                      ░░
                      ░░ The process’ exit code is ‘exited’ and its exit status is 255.
                      Aww 08 15:43:13 fog systemd[1]: FOGScheduler.service: Failed with result ‘exit-code’.
                      ░░ Subject: Unit failed
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ The unit FOGScheduler.service has entered the ‘failed’ state with result ‘exit-code’.
                      Aww 08 15:43:13 fog systemd[1]: FOGSnapinReplicator.service: Main process exited, code=exited, status=255/EXCEPTION
                      ░░ Subject: Unit process exited
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ An ExecStart= process belonging to unit FOGSnapinReplicator.service has exited.
                      ░░
                      ░░ The process’ exit code is ‘exited’ and its exit status is 255.
                      Aww 08 15:43:13 fog systemd[1]: FOGSnapinReplicator.service: Failed with result ‘exit-code’.
                      ░░ Subject: Unit failed
                      ░░ Defined-By: systemd
                      ░░ Support: http://www.ubuntu.com/support
                      ░░
                      ░░ The unit FOGSnapinReplicator.service has entered the ‘failed’ state with result ‘exit-code’.
                      lines 3405-3460/3460 (END)

                      Tom ElliottT 1 Reply Last reply Aug 8, 2023, 2:04 PM Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @dejv
                        last edited by Aug 8, 2023, 2:04 PM

                        @dejv Have you attempted to reinstall fog after performing software updates?

                        Often this can fix things.

                        Before you just push the butotn, if indeed php is 8.1 you may want to edit the file /opt/fog/.fogsettings

                        look for instances of php where 7.4 is defined and redefine to php 8.1 as appropriate, then rerun the installer.

                        Things shoudl fix themselves a bit better.

                        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
                        • D
                          dejv @dejv
                          last edited by Aug 8, 2023, 7:25 PM

                          @dejv changed php version as you instructed, redownloaded latest version, installed and is working ok thanks a lot 😉

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

                          180

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project