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

Fog Services not starting on Server

Scheduled Pinned Locked Moved
FOG Problems
4
16
2.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.
  • D
    dolf
    last edited by Jul 13, 2016, 6:33 PM

    I also had this problem. Read here. YMMV.

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Jul 13, 2016, 6:42 PM

      What OS is fog running on? What version of FOG?

      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/

      Z 1 Reply Last reply Jul 13, 2016, 6:44 PM Reply Quote 0
      • Z
        zpoling @Wayne Workman
        last edited by Jul 13, 2016, 6:44 PM

        @Wayne-Workman Ubuntu 14.04 LTS, v8533, r5891.

        9am-5pm Eastern | Monday-Friday

        W 1 Reply Last reply Jul 13, 2016, 6:57 PM Reply Quote 0
        • W
          Wayne Workman @zpoling
          last edited by Jul 13, 2016, 6:57 PM

          @zpoling Did you try to install PHP 7 or not? Just asking at this point.

          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
          • Z
            zpoling
            last edited by zpoling Jul 13, 2016, 1:04 PM Jul 13, 2016, 7:02 PM

            I ran the service script itself for the FOGImageReplicator and this was the output.

            root@Fog:~# /opt/fog/service/FOGImageReplicator/FOGImageReplicator
            PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (America.New_York)' in /var/www/html/fog/lib/fog/fogbase.class.php:93
            Stack trace:
            #0 [internal function]: DateTimeZone->__construct('America.New_Yor...')
            #1 /var/www/html/fog/lib/fog/fogbase.class.php(93): ReflectionClass->newInstance('America.New_Yor...')
            #2 /var/www/html/fog/lib/fog/fogbase.class.php(266): FOGBase::getClass('DateTimeZone', 'America.New_Yor...')
            #3 /var/www/html/fog/lib/fog/fogbase.class.php(270): FOGBase::nice_date('now', false)
            #4 /opt/fog/service/lib/service_lib.php(10): FOGBase->formatTime('now', 'm-d-y g:i:s a')
            #5 /opt/fog/service/lib/service_lib.php(44): service_log_message('/opt/fog/log/se...', 'FOGImageReplica...', 'Start')
            #6 /opt/fog/service/FOGImageReplicator/FOGImageReplicator(7): service_persist('FOGImageReplica...')
            #7 {main}thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 93
            

            It seems to be seeing something about the timezone, but I went into the fogbase.class.php and found nothing to do with the timezone.

            9am-5pm Eastern | Monday-Friday

            T 1 Reply Last reply Jul 13, 2016, 7:07 PM Reply Quote 0
            • T
              Tom Elliott @zpoling
              last edited by Jul 13, 2016, 7:07 PM

              @zpoling going to guess your php.ini date.timezone is set to America.New_York when it should be America/New_York

              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

              Z 1 Reply Last reply Jul 13, 2016, 7:11 PM Reply Quote 1
              • D
                dolf
                last edited by Jul 13, 2016, 7:09 PM

                Check your server’s timezone:

                cat /etc/timezone
                

                Find your php.ini files:

                sudo find /etc -name php.ini
                

                Example output:

                /etc/php5/cli/php.ini
                /etc/php5/apache2/php.ini
                /etc/php5/fpm/php.ini
                

                Open each one and check the value of date.timezone

                Z 1 Reply Last reply Jul 13, 2016, 7:21 PM Reply Quote 0
                • Z
                  zpoling @Tom Elliott
                  last edited by Jul 13, 2016, 7:11 PM

                  @Tom-Elliott

                  /etc/php5/apache2/php.ini? It’s correct in this file. It is America/New_York.

                  9am-5pm Eastern | Monday-Friday

                  T 1 Reply Last reply Jul 13, 2016, 7:15 PM Reply Quote 0
                  • T
                    Tom Elliott @zpoling
                    last edited by Jul 13, 2016, 7:15 PM

                    @zpoling Apache is GUI services are cli

                    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
                    • Z
                      zpoling @dolf
                      last edited by zpoling Jul 13, 2016, 1:42 PM Jul 13, 2016, 7:21 PM

                      @dolf It was wrong in the fpm directory, thanks.

                      Rerunning the service script directly now does nothing. It puts me on a new line and does nothing. The service still does not want to start properly either.

                      9am-5pm Eastern | Monday-Friday

                      W 1 Reply Last reply Jul 13, 2016, 7:24 PM Reply Quote 0
                      • W
                        Wayne Workman @zpoling
                        last edited by Jul 13, 2016, 7:24 PM

                        @zpoling Check the apache error logs. /var/log/apache2/

                        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/

                        Z 1 Reply Last reply Jul 14, 2016, 12:37 PM Reply Quote 0
                        • Z
                          zpoling
                          last edited by Jul 13, 2016, 7:43 PM

                          Reran the fog installer and now all of the services are running. I’m going to reboot and see if the services restart as well.

                          9am-5pm Eastern | Monday-Friday

                          1 Reply Last reply Reply Quote 0
                          • Z
                            zpoling @Wayne Workman
                            last edited by Jul 14, 2016, 12:37 PM

                            @Wayne-Workman What should I be looking for? There’s a lot of crap in it.

                            9am-5pm Eastern | Monday-Friday

                            W 1 Reply Last reply Jul 14, 2016, 12:54 PM Reply Quote 0
                            • W
                              Wayne Workman @zpoling
                              last edited by Jul 14, 2016, 12:54 PM

                              @zpoling If everything is working, don’t worry about it.

                              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/

                              Z 1 Reply Last reply Jul 19, 2016, 11:38 AM Reply Quote 0
                              • Z
                                zpoling @Wayne Workman
                                last edited by Jul 19, 2016, 11:38 AM

                                @Wayne-Workman I just wanted to update you on what I saw as I got it working.

                                In the multicast log, it was showing 0 tasks to be cleaned, but 3 tasks were found. Always. Every way I’ve seen here on the forums to destroy any udp casting tasks did not change the log continuing to show those 3 tasks. On two of the laptops I just happened to be trying to multicast that day, I took all source of power away and held the power button for 10 seconds. I then started a multicast task for those two, and they worked. Keep in mind that I haven’t been able to multicast for a few weeks now. I find it odd that that’s all I had to do, and on two random laptops at that.

                                Also with the timezone issue, the services not starting was happening before I even tried to set the timezone prefrences. I tried to set the timezone purely because my multicast log was showing dates four-five hours away. I don’t know the exact time, because the log is now reporting the dates correctly.

                                9am-5pm Eastern | Monday-Friday

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

                                148

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project