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

Logs Filling up with PHP errors

Scheduled Pinned Locked Moved Solved
FOG Problems
3
4
1.4k
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.
  • S
    sarge_212
    last edited by Mar 24, 2016, 1:35 PM

    I’m seeing this in /var/log/messages for just about every service:

    FOGTaskScheduler: PHP Warning: sleep() expects parameter 1 to be long, string given in /opt/fog/service/lib/service_lib.php on line 55

    The message will change depending on the service…I stopped them for now just to see if they would stop writing to the log. I clear out /var/log/messages and then it gets flooded again and this is line 55:

    55 $reaped_pid = pcntl_waitpid($service_child_pid, $status, WNOHANG);

    Not terribly familiar with php but wondering if someone could lend a hand to see what’s wrong with php or fog services. This is a storage node, rev. 6921. Thanks!

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman Mar 24, 2016, 8:31 AM Mar 24, 2016, 2:31 PM

      The error is saying a string was passed, when a integer was expected. PHP’s sleep function needs an integer given to it. This is probably a typo somewhere that @Tom-Elliott can fix.

      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 Mar 24, 2016, 2:37 PM Reply Quote 0
      • T
        Tom Elliott @Wayne Workman
        last edited by Mar 24, 2016, 2:37 PM

        @Wayne-Workman There is no typo. That particular line was referring to the PID as the first parameter. He rebooted the system and it worked properly.

        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
        • S
          sarge_212
          last edited by Mar 24, 2016, 2:42 PM

          Yep, @Tom-Elliott helped me realize that over chat. Reboot, rinse, repeat. Thanks @Wayne-Workman for having a look-see. You can mark this is as solved.

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

          151

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project