-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 500 when client posts result to MuniReport #1552
Comments
This is caused by a module. You will need to disable the modules on a test client until you can determine what module is causing the issue. Once determined, we can start troubleshooting that module. |
Thanks @tuxudo I was starting to suspect that although my first thought had been it was contributing a larger result and hence my increasing to upload limits. I will try the modules one at time tomorrow. |
@tuxudo I had put place holder settings in my .env which were not valid and not updated them. However even after putting what I believe are now valid settings in place it is still failing. With no apparent log information it is hard to determine what is incorrect. I will investigate this further. |
@tuxudo I added the five lines listed in your README and now have what I believe to be valid settings. If I have JAMF_ENABLE="TRUE" then I get the 500 error, if this is false or commented out then it succeeds in an upload but obviously without any Jamf data. The next line is supposed to be the base URL for our Jamf server. This might be the cause. In our case we started off with an on-premise Jamf Pro installation which has a URL different and on a different port to a standard cloud Jamf Pro server. This URL obviously works for managing our Macs and has been moved to a Jamf Pro cloud instance, here is a sanitised copy of the URL. JAMF_SERVER="https://my-old-server-name.mydomain.com:8443/" The DNS record is a CNAME aka alias and points to It is now using a certificate generated by Jamf which is valid as tested in a web-browser and from the fact all our devices work with it. I have however also tried JAMF_VERIFY_SSL="FALSE" For the username and password I created a dedicated user in Jamf Pro with Auditor access which I believe is READONLY, this did not work, I then tried my own full admin account, this also did not work. (In that both gave the 500 error.) I don't know how your module communicates with Jamf Pro but if you are using the Jamf API then I know Jamf have changed the access method again. Does yours still work? Doing the following in terminal works on the same Linux web server hosting MunkiReport but obviously is not using PHP. curl -o file.html https://my-old-server-name.mydomain.com:8443/ My cloud hosted Jamf Pro is Version 11.7.1-t1721056075 |
I do not use the |
@tuxudo I therefore tried the direct non-CNAME address but with the non-standard port i.e. 8443 and it still fails. If you are able to point me to some log that might help with diagnostics that would be great. |
There are no logs for this kind of error. MunkiReport is talking directly to the JSS' API, do not use a CNAME redirect with it. The jamf_server config item should be exactly the same as the URL that you use to directly access the JSS. Jamf Cloud usually does not have an alternate port, but uses the standard 433. Try setting just the jamf_server to look like |
@tuxudo
Nether-the-less, I tried that in the .env and still get error 500. Using port 8443 and the correct Tennant name in a web browser works. I agree that usually jamfcloud sites use 443 and not 8443 but if you originally setup Jamf Pro on premise then the on premise installer uses port 8443. When this is migrated to jamfcloud it migrates as port 8443 so that existing enrolled devices see exactly the same URL and hence do not loose connection. (Hence also the use of a CNAME.) The following is from an official Jamf blog article about migrations.
For direct API access the CNAME vs direct name should not matter but the PORT will matter. |
Please contact your Jamf representative for the correct URL and port for accessing the API for your Jamf Cloud instance. Once that is obtained, MunkiReport should work properly. |
@tuxudo At the moment I am wondering if either PHP as a whole or your PHP code is being upset by the inclusion of the custom port. My own shell script was happy enough with this and I was using the command line version of curl to do this not of course the PHP curl command. |
I no longer use the |
@tuxudo |
The Jamf module makes the connection |
@tuxudo |
@tuxudo We do however still have a remaining problem. I am getting the following shown on the client Mac when testing this.
|
I have DEBUG enabled in my .env but that does not seem to help in this case. I have looked at apache2 logs and syslog but cannot spot nothing helpful there.
I am running Munkireport-PHP 5.8.0 on an Ubuntu server.
The client Mac is ending its run with the following.
The following is the status page from MunkiReport, as you can see I have increased the upload size limits hoping that was the issue.
If there is a location I should look for a more detailed log file that would be much appreciated.
The text was updated successfully, but these errors were encountered: