• 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.
    • M
      madeyem @george1421
      last edited by

      Maybe this?:

      https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy?page=1

      1 Reply Last reply Reply Quote 0
      • D
        dejv @george1421
        last edited by

        @george1421 said in Fog not loading after ubuntu updates:

        ps aux | grep apache

        844901c8-5b2b-49d9-84eb-8a1c4b2c196c-image.png

        1 Reply Last reply Reply Quote 0
        • D
          dejv @george1421
          last edited by

          @george1421 seem that after a couple of hours being left alone it is working again 😛

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @dejv
            last edited by

            @dejv said in Fog not loading after ubuntu updates:

            after a couple of hours being left alone it is working again

            <snark>Well then, you can almost expect it to stop working without notice some time in the future too. </snark>

            With a bit less snark, if it happens again we’ll dig a bit deeper into why. Its strange that it would start again on its own. I can see the OS update messing it up, because it has happened in the past.

            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!

            D 1 Reply Last reply Reply Quote 0
            • D
              dejv @george1421
              last edited by

              @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

                @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 Reply Quote 0
                • D
                  dejv @Sebastian Roth
                  last edited by

                  @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

                    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

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

                      @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 Reply Quote 0
                      • D
                        dejv @Tom Elliott
                        last edited by

                        @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.

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

                          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

                            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
                            • Tom ElliottT
                              Tom Elliott @dejv
                              last edited by

                              @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 Reply Quote 0
                              • D
                                dejv @Tom Elliott
                                last edited by dejv

                                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 Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott @dejv
                                  last edited by

                                  @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

                                    @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

                                    199

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project