Postflight 500 error

311 views
Skip to first unread message

ataylo...@orcsd.org

unread,
Sep 6, 2017, 2:28:19 PM9/6/17
to munkireport
Hello,

I recently upgraded my server to the latest (2.14.3.2785) and am experiencing errors on submitting postflight.  Spits out the result below, and I can't sucessfully get debugging on the server.  Put the flag in the config.php, php.ini, etc to no avail.

    Munkireport: # Executing scripts in postflight.d

    Munkireport: Running managedinstalls.py

    Munkireport: Running munkireport.py

    Munkireport: Requesting munkireport

    Munkireport: Requesting managedinstalls

    Munkireport: Need to update machine (1KB)

    Munkireport: Need to update managedinstalls (188B)

    Munkireport: Need to update reportdata (374B)

    Munkireport: Need to update munkireport (611B)

    Munkireport: Sending items (2KB)

    Status: 500

    Headers: {u'Date': u'Wed, 06 Sep 2017 18:22:02 GMT', u'Connection': u'close', u'Content-Type': u'text/html; charset=UTF-8', u'Content-Length': u'0', u'Server': u'Apache/2.4.18 (Ubuntu)'}

ERROR: Munkireport: http://sb-munki/static/reports/index.php?/report/check_in failed, HTTP returncode 500 (internal server error)


Any advice?

Thanks,
Alexander

A.E. van Bochoven

unread,
Sep 6, 2017, 2:29:19 PM9/6/17
to munki...@googlegroups.com
Internal server error usually means that you have to check your server logs for clues.

-Arjen

--
You received this message because you are subscribed to the Google Groups "munkireport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkireport...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 2:30:45 PM9/6/17
to munki...@googlegroups.com
Yes, which I've done and it doesn't report anything.  Very confused by that.

Thanks,
Alexander
The Right-To-Know Law provides that most e-mail communications to or from School District employees regarding the business of the School District are government records available to the public upon request. Therefore, this e-mail communication may be subject to public disclosure.

A.E. van Bochoven

unread,
Sep 6, 2017, 2:33:41 PM9/6/17
to munkireport
What webserver are you using? 

-Arjen

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 2:36:35 PM9/6/17
to munki...@googlegroups.com
Apache2.

If I tail /var/log/apache2/error.log while I run postflight on a mac (and get this output) nothing gets added to the log.  I've included  $conf['debug'] = TRUE; in config.php and display_errors = On in /etc/php/7.0/apache2/php.ini  Restarted apache without luck, so rebooted the whole server and still nothing.

Thanks,
Alexander

A.E. van Bochoven

unread,
Sep 6, 2017, 2:45:14 PM9/6/17
to munkireport
And in the access.log?

-Arjen

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 2:46:27 PM9/6/17
to munki...@googlegroups.com
10.10.74.100 - - [06/Sep/2017:14:46:03 -0400] "POST /static/reports/index.php?/report/hash_check HTTP/1.1" 200 361 "-" "Python/2.7.10 CFNetwork/811.5.4 Darwin/16.7.0 (x86_64)"
10.10.74.100 - - [06/Sep/2017:14:46:03 -0400] "POST /static/reports/index.php?/report/check_in HTTP/1.1" 500 185 "-" "Python/2.7.10 CFNetwork/811.5.4 Darwin/16.7.0 (x86_64)"


Thanks,
Alexander

A.E. van Bochoven

unread,
Sep 6, 2017, 2:58:41 PM9/6/17
to munki...@googlegroups.com
Well, at least it’s the correct server. Not sure why there’s nothing in the error log. Did you check other logs? (Syslog)

-Arjen

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 3:00:12 PM9/6/17
to munki...@googlegroups.com
Just did a tail on the syslog, still nothing.

Thanks,
Alexander

A.E. van Bochoven

unread,
Sep 6, 2017, 3:05:16 PM9/6/17
to munkireport
Sorry, can’t think of anything that could help. You could try asking in the #munkireport slack channel 

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 3:05:43 PM9/6/17
to munki...@googlegroups.com
Okay, thanks again.

Alexander

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 3:24:13 PM9/6/17
to munki...@googlegroups.com
I found there was another debug=false further down in the config.php that was overriding the one I put in.  Finally have the error, any idea what this is?

[Wed Sep 06 15:19:14.348651 2017] [:error] [pid 3070] [client 10.30.30.24:58585] PHP Warning:  require_once(/usr/local/munkiwebadmin_env/munkiwebadmin/static/reports//app/models/domdocument.php): failed to open stream: No such file or directory in /usr/local/munkiwebadmin_env/munkiwebadmin/static/reports/app/helpers/site_helper.php on line 135
[Wed Sep 06 15:19:14.348779 2017] [:error] [pid 3070] [client 10.30.30.24:58585] PHP Fatal error:  require_once(): Failed opening required '/usr/local/munkiwebadmin_env/munkiwebadmin/static/reports//app/models/domdocument.php' (include_path='.:/usr/share/php') in /usr/local/munkiwebadmin_env/munkiwebadmin/static/reports/app/helpers/site_helper.php on line 135


Thanks,
Alexander

A.E. van Bochoven

unread,
Sep 6, 2017, 3:27:07 PM9/6/17
to munkireport
Yes, php is missing libxml

Admin->System Status should show that too.

-Arjen

Alexander (Mailing List) Taylor

unread,
Sep 6, 2017, 3:29:31 PM9/6/17
to munki...@googlegroups.com
Ah, that's an easy fix.  Thanks again!

Alexander
Reply all
Reply to author
Forward
0 new messages