Imaging Report Broken Link FOG 1.5.0 RC2
-
Server
- FOG Version: 1.5.0 RC 2
- OS: Debian 8.8
Client
- Service Version: 0.11.12
- OS: Win 7
Description
FOG imaging report gives a HTTP ERROR 500 from the Report Management Menu.
Thanks!
-
Typically this is because imaging log is full of information. Please try upping your memory limit. If possible, plese provide the apache error logs as well (directly after getting the error 500)
-
No problem! I’ll try upping the memory limit here in a bit.
Here is the tailed log file right after the error shows. This is access.log in /var/log/apache2.
172.16.19.96 - - [20/Jul/2017:08:54:01 -0600] "GET /fog/service/getversion.php?clientver&newService&json HTTP/1.1" 200 493 "-" "-" 172.16.19.96 - - [20/Jul/2017:08:54:01 -0600] "GET /fog/service/getversion.php?newService&json HTTP/1.1" 200 497 "-" "-" 172.16.101.144 - - [20/Jul/2017:08:54:52 -0600] "GET /fog/management/index.php?sub=requestClientInfo&configure&newService&json HTTP/1.1" 200 689 "-" "-" 172.16.101.144 - - [20/Jul/2017:08:54:52 -0600] "GET /fog/management/index.php?sub=requestClientInfo&mac=B0:83:FE:9D:98:73%7C%7C00:00:00:00:00:00:00:E0%7C00:00:00:00:00:00:00:E0&newService&json HTTP/1.1" 200 3081 "-" "-" 172.16.101.144 - - [20/Jul/2017:08:54:52 -0600] "GET /fog/service/getversion.php?clientver&newService&json HTTP/1.1" 200 493 "-" "-" 172.16.101.144 - - [20/Jul/2017:08:54:52 -0600] "GET /fog/service/getversion.php?newService&json HTTP/1.1" 200 497 "-" "-" 172.16.19.96 - - [20/Jul/2017:08:55:04 -0600] "GET /fog/management/index.php?sub=requestClientInfo&configure&newService&json HTTP/1.1" 200 634 "-" "-" 172.16.19.96 - - [20/Jul/2017:08:55:04 -0600] "GET /fog/management/index.php?sub=requestClientInfo&mac=C8:1F:66:4B:CE:C0%7C%7C00:00:00:00:00:00:00:E0%7C00:00:00:00:00:00:00:E0&newService&json HTTP/1.1" 200 2601 "-" "-" 172.16.19.96 - - [20/Jul/2017:08:55:04 -0600] "GET /fog/service/getversion.php?clientver&newService&json HTTP/1.1" 200 493 "-" "-" 172.16.19.96 - - [20/Jul/2017:08:55:04 -0600] "GET /fog/service/getversion.php?newService&json HTTP/1.1" 200 497 "-" "-"
-
@Joe-Gill I need error log, not access log lol.
-
Hi, I still have this issue with the imaging log
[Thu Jul 20 06:25:39.085765 2017] [:error] [pid 49114] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'. [Thu Jul 20 06:25:39.085846 2017] [:error] [pid 49114] python_init: Python executable found '/usr/bin/python'. [Thu Jul 20 06:25:39.085852 2017] [:error] [pid 49114] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Thu Jul 20 06:25:39.085859 2017] [:notice] [pid 49114] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Thu Jul 20 06:25:39.085863 2017] [:notice] [pid 49114] mod_python: using mutex_directory /tmp [Thu Jul 20 06:25:39.095077 2017] [mpm_prefork:notice] [pid 49114] AH00163: Apache/2.4.10 (Debian) mod_python/3.3.1 Python/2.7.9 OpenSSL/1.0.1t mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations [Thu Jul 20 06:25:39.095090 2017] [core:notice] [pid 49114] AH00094: Command line: '/usr/sbin/apache2' [Thu Jul 20 16:37:14.720471 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/fog/lib/fog/reportmaker.class.php on line 116, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:14.720502 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP Stack trace:, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:14.720515 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP 1. {main}() /var/www/fog/management/index.php:0, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:14.720528 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP 2. FOGPageManager->render() /var/www/fog/management/index.php:58, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:14.720539 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP 3. Imaging_Log->file() /var/www/fog/lib/fog/fogpagemanager.class.php:220, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:14.720551 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP 4. ReportMaker->endCSVLine() /var/www/fog/lib/reports/imaging_log.report.php:140, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:14.720560 2017] [:error] [pid 39277] [client 10.110.80.225:55212] PHP 5. implode() /var/www/fog/lib/fog/reportmaker.class.php:116, referer: https://fog-server/fog/management/index.php?node=report [Thu Jul 20 16:37:16.570200 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/fog/lib/fog/reportmaker.class.php on line 116 [Thu Jul 20 16:37:16.570230 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP Stack trace: [Thu Jul 20 16:37:16.570242 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP 1. {main}() /var/www/fog/management/index.php:0 [Thu Jul 20 16:37:16.570254 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP 2. FOGPageManager->render() /var/www/fog/management/index.php:58 [Thu Jul 20 16:37:16.570266 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP 3. Imaging_Log->file() /var/www/fog/lib/fog/fogpagemanager.class.php:220 [Thu Jul 20 16:37:16.570277 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP 4. ReportMaker->endCSVLine() /var/www/fog/lib/reports/imaging_log.report.php:140 [Thu Jul 20 16:37:16.570286 2017] [:error] [pid 39275] [client 10.110.80.225:55214] PHP 5. implode() /var/www/fog/lib/fog/reportmaker.class.php:116 [Thu Jul 20 16:37:27.944604 2017] [:error] [pid 39246] [client 10.110.80.21:59317] PHP Warning: fopen(/var/log/apache2/other_vhosts_access.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 86 [Thu Jul 20 16:37:27.944633 2017] [:error] [pid 39246] [client 10.110.80.21:59317] PHP Stack trace: [Thu Jul 20 16:37:27.944646 2017] [:error] [pid 39246] [client 10.110.80.21:59317] PHP 1. {main}() /var/www/fog/status/logtoview.php:0 [Thu Jul 20 16:37:27.944667 2017] [:error] [pid 39246] [client 10.110.80.21:59317] PHP 2. vals() /var/www/fog/status/logtoview.php:170 [Thu Jul 20 16:37:27.944677 2017] [:error] [pid 39246] [client 10.110.80.21:59317] PHP 3. fopen() /var/www/fog/status/logtoview.php:86 [Thu Jul 20 16:37:30.461830 2017] [:error] [pid 39221] [client 10.110.80.21:59319] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 86 [Thu Jul 20 16:37:30.461858 2017] [:error] [pid 39221] [client 10.110.80.21:59319] PHP Stack trace: [Thu Jul 20 16:37:30.461871 2017] [:error] [pid 39221] [client 10.110.80.21:59319] PHP 1. {main}() /var/www/fog/status/logtoview.php:0 [Thu Jul 20 16:37:30.461881 2017] [:error] [pid 39221] [client 10.110.80.21:59319] PHP 2. vals() /var/www/fog/status/logtoview.php:170 [Thu Jul 20 16:37:30.461890 2017] [:error] [pid 39221] [client 10.110.80.21:59319] PHP 3. fopen() /var/www/fog/status/logtoview.php:86 [Thu Jul 20 16:37:32.734548 2017] [:error] [pid 39221] [client 10.110.80.21:59321] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 86 [Thu Jul 20 16:37:32.734574 2017] [:error] [pid 39221] [client 10.110.80.21:59321] PHP Stack trace: [Thu Jul 20 16:37:32.734587 2017] [:error] [pid 39221] [client 10.110.80.21:59321] PHP 1. {main}() /var/www/fog/status/logtoview.php:0 [Thu Jul 20 16:37:32.734597 2017] [:error] [pid 39221] [client 10.110.80.21:59321] PHP 2. vals() /var/www/fog/status/logtoview.php:170 [Thu Jul 20 16:37:32.734606 2017] [:error] [pid 39221] [client 10.110.80.21:59321] PHP 3. fopen() /var/www/fog/status/logtoview.php:86 [Thu Jul 20 16:37:33.675601 2017] [:error] [pid 39077] [client 10.110.80.21:59322] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 86 [Thu Jul 20 16:37:33.675634 2017] [:error] [pid 39077] [client 10.110.80.21:59322] PHP Stack trace: [Thu Jul 20 16:37:33.675646 2017] [:error] [pid 39077] [client 10.110.80.21:59322] PHP 1. {main}() /var/www/fog/status/logtoview.php:0 [Thu Jul 20 16:37:33.675657 2017] [:error] [pid 39077] [client 10.110.80.21:59322] PHP 2. vals() /var/www/fog/status/logtoview.php:170 [Thu Jul 20 16:37:33.675666 2017] [:error] [pid 39077] [client 10.110.80.21:59322] PHP 3. fopen() /var/www/fog/status/logtoview.php:86 [Thu Jul 20 16:37:35.937859 2017] [:error] [pid 39077] [client 10.110.80.21:59324] PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 86 [Thu Jul 20 16:37:35.937885 2017] [:error] [pid 39077] [client 10.110.80.21:59324] PHP Stack trace: [Thu Jul 20 16:37:35.937899 2017] [:error] [pid 39077] [client 10.110.80.21:59324] PHP 1. {main}() /var/www/fog/status/logtoview.php:0 [Thu Jul 20 16:37:35.937909 2017] [:error] [pid 39077] [client 10.110.80.21:59324] PHP 2. vals() /var/www/fog/status/logtoview.php:170 [Thu Jul 20 16:37:35.937918 2017] [:error] [pid 39077] [client 10.110.80.21:59324] PHP 3. fopen() /var/www/fog/status/logtoview.php:86
-
Working branch should correct this issue. The imaging log was broken due to changes to debug the performance issues. Sorry for missing it. Appears to be working now (after I was able to replicate the problem) in working branch.
-
I had one of those moments this morning! LOL
Here, this might help!
root@fog-server:/var/log/apache2# tail error.log [Thu Jul 20 08:35:59.284448 2017] [:error] [pid 3263] [client 172.16.101.144:54604] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2 bytes) in /var/www/html/fog/lib/db/pdodb.class.php on line 597, referer: http://172.16.1.17/fog/management/index.php?node=host&sub=edit&id=239 [Thu Jul 20 08:38:32.374872 2017] [:error] [pid 11093] [client 172.16.101.144:54730] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/fog/lib/fog/reportmaker.class.php on line 116, referer: http://172.16.1.17/fog/management/index.php?node=report [Thu Jul 20 08:41:59.627432 2017] [:error] [pid 3263] [client 172.16.101.22:43936] PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 137 [Thu Jul 20 08:45:42.402373 2017] [:error] [pid 3272] [client 172.16.101.144:55212] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/fog/lib/db/pdodb.class.php on line 597, referer: http://172.16.1.17/fog/management/index.php?node=host&sub=edit&id=325 [Thu Jul 20 08:48:51.544433 2017] [:error] [pid 3263] [client 172.16.101.144:55418] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes) in /var/www/html/fog/lib/db/pdodb.class.php on line 597, referer: http://172.16.1.17/fog/management/index.php?node=host&sub=edit&id=341 [Thu Jul 20 08:49:48.862913 2017] [:error] [pid 3272] [client 172.16.101.144:55489] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/fog/lib/fog/reportmaker.class.php on line 116, referer: http://172.16.1.17/fog/management/index.php?node=report [Thu Jul 20 08:53:55.647008 2017] [:error] [pid 3223] [client 172.16.101.144:55627] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/fog/lib/fog/reportmaker.class.php on line 116, referer: http://172.16.1.17/fog/management/index.php?node=report [Thu Jul 20 08:55:42.414260 2017] [:error] [pid 3224] [client 172.16.101.144:55652] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/fog/lib/fog/reportmaker.class.php on line 116 [Thu Jul 20 11:47:30.602182 2017] [:error] [pid 3224] [client 172.16.101.144:56236] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/fog/lib/fog/reportmaker.class.php on line 116, referer: http://172.16.1.17/fog/management/index.php?node=report&sub=file&f=aW1hZ2luZyBsb2c= [Thu Jul 20 11:47:36.369844 2017] [:error] [pid 3280] [client 172.16.101.144:56239] PHP Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/fog/lib/fog/reportmaker.class.php on line 116
-
Working for me, Thanks Tom!
Edit: I get the same error for user tracking when trying to search either host or user
-
Updated to Working branch and everything looks good! I’ll report back on the other issues I reported earlier. Thank you!!