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

Restarting Apache2 for fog vhost............................Failed!

Scheduled Pinned Locked Moved Solved
FOG Problems
3
12
2.3k
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
    ManofValor
    last edited by ManofValor Jul 5, 2016, 2:14 PM Jul 5, 2016, 8:11 PM

    Trying to update FOG and getting the above error.

    CentOS7
    Ver. 8415

    Also, just now realized after I attempted to update I cannot get to fog management online. Just get the spinning circle in the browser tab.

    I tried to update because I was having trouble capturing an image so I wanted to start with an update. Got stuck at bottom line and then would reboot.
    0_1467749643809_upload-cbc8b960-2ae8-4d56-8478-326d853fd7d2

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jul 5, 2016, 8:20 PM

      I don’t know what you’re trying to boot, the web server isn’t running (the failed on restarting apache2 is the indicator).

      What do you get if you run:
      service apache2 restart or systemctl restart httpd

      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 Jul 5, 2016, 8:24 PM Reply Quote 0
      • M
        ManofValor @Tom Elliott
        last edited by Jul 5, 2016, 8:24 PM

        @Tom-Elliott

        [root@localhost bin]# service apache2 restart
        Redirecting to /bin/systemctl restart  apache2.service
        Failed to restart apache2.service: Unit apache2.service failed to load: No such file or directory.
        

        right now it’s hung on systemctl restart httpd for a couple min now

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jul 5, 2016, 8:38 PM

          Please get output of df -h my guess is it’s hung because there is no more disk space.

          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 Jul 5, 2016, 8:42 PM Reply Quote 0
          • M
            ManofValor @Tom Elliott
            last edited by Jul 5, 2016, 8:42 PM

            @Tom-Elliott

            [root@localhost etc]# df -h
            Filesystem                      Size  Used Avail Use% Mounted on
            /dev/mapper/centos00-root00      20G  7.3G   12G  40% /
            devtmpfs                        1.9G     0  1.9G   0% /dev
            tmpfs                           1.9G  5.4M  1.9G   1% /dev/shm
            tmpfs                           1.9G  183M  1.7G  10% /run
            tmpfs                           1.9G     0  1.9G   0% /sys/fs/cgroup
            /dev/sda5                       969M  302M  602M  34% /boot
            /dev/mapper/fog-opt_fog_images  395G  223G  152G  60% /opt
            /dev/sdb1                       8.1T   93G  7.6T   2% /images
            tmpfs                           379M   16K  379M   1% /run/user/1000
            
            
            T 1 Reply Last reply Jul 5, 2016, 8:56 PM Reply Quote 0
            • T
              Tom Elliott @ManofValor
              last edited by Jul 5, 2016, 8:56 PM

              @ManofValor is the systemctl command still hung?

              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 Jul 5, 2016, 9:14 PM Reply Quote 0
              • M
                ManofValor @Tom Elliott
                last edited by Jul 5, 2016, 9:14 PM

                @Tom-Elliott I stopped it

                W 1 Reply Last reply Jul 5, 2016, 11:45 PM Reply Quote 0
                • W
                  Wayne Workman @ManofValor
                  last edited by Jul 5, 2016, 11:45 PM

                  @ManofValor try reinstalling apache.
                  apt-get remove apache2 -y
                  apt-get install apache2 -y

                  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 Jul 5, 2016, 11:54 PM Reply Quote 0
                  • T
                    Tom Elliott @Wayne Workman
                    last edited by Jul 5, 2016, 11:54 PM

                    @Wayne-Workman he’s running redhat of some sort, probably centos.

                    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 1 Reply Last reply Jul 5, 2016, 11:56 PM Reply Quote 0
                    • W
                      Wayne Workman @Tom Elliott
                      last edited by Jul 5, 2016, 11:56 PM

                      @Tom-Elliott why apache2 then? Eh. Red hat / centos / Fedora would be:
                      yum remove httpd -y
                      yum install httpd -y

                      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 Jul 5, 2016, 11:59 PM Reply Quote 0
                      • T
                        Tom Elliott @Wayne Workman
                        last edited by Jul 5, 2016, 11:59 PM

                        @Wayne-Workman I didn’t know what was installed so I tried both options to get info.

                        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
                        • M
                          ManofValor
                          last edited by Jul 6, 2016, 1:36 PM

                          Well, I’m not sure what happened but I tried to restart it yesterday and then it wouldn’t boot up. Something about no controller. Anyway, I guess CentOS 7 gives you the ability to boot from a last known good configuration and when I did that everything worked. I updated FOG and Apache2 went through without a hitch. Sorry to waste your time, thanks guys.

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

                          156

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project