curl cmd failing to download required components

397 views
Skip to first unread message

Jan Boshoff

unread,
Apr 7, 2017, 3:10:39 AM4/7/17
to munkireport
Hi
I've recently installed munkireport and it seems to be configured right. I used a combination of Clayton Burlison's guide and Lucas Hall's guide to install PHP7, NGINX, MYSQL and MR on Ubuntu 16.04.
I can get to the MR dashboard fine, however, there are two problems I'm stuck with:
  1. Whenever I open one of the listings pages, I get a warning: "DataTables warning: table id=DataTables_Table_0 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1". Is this indicative of a problem that won't go away once there is any data in me db?
  2. I can't get the client apps to download from the server. When using the CURL command to download the modules, I get the following errors:

    BaseURL is http://10.0.67.184

    Retrieving munkireport scripts

    curl: (22) The requested URL returned error: 404 Not Found

    curl: (22) The requested URL returned error: 404 Not Found

    curl: (22) The requested URL returned error: 404 Not Found

    Failed to download all required components!

On the server I can see the folders, but it seems that the CURL task cannot find the correct location for the source files. I have attached the install script from the MR server.

I'm not even sure where to start troubleshooting this. Any help would really be appreciated.

install.sh

A.E. van Bochoven

unread,
Apr 27, 2017, 6:51:05 AM4/27/17
to munki...@googlegroups.com
Hi Jan,

Sorry for the late reply, I’ve been ill the last couple of weeks.

On 7 Apr 2017, at 09:10, Jan Boshoff <jan.b...@hkacademy.edu.hk> wrote:

Hi
I've recently installed munkireport and it seems to be configured right. I used a combination of Clayton Burlison's guide and Lucas Hall's guide to install PHP7, NGINX, MYSQL and MR on Ubuntu 16.04.
I can get to the MR dashboard fine, however, there are two problems I'm stuck with:
  1. Whenever I open one of the listings pages, I get a warning: "DataTables warning: table id=DataTables_Table_0 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1". Is this indicative of a problem that won't go away once there is any data in me db?
You should be able to find the reason for that problem by enabling debug in the config and looking at the web console in your browser. 


  1. I can't get the client apps to download from the server. When using the CURL command to download the modules, I get the following errors:
    BaseURL is http://10.0.67.184
    Retrieving munkireport scripts
    curl: (22) The requested URL returned error: 404 Not Found
    curl: (22) The requested URL returned error: 404 Not Found
    curl: (22) The requested URL returned error: 404 Not Found
    Failed to download all required components!
You can confirm that you can load these files in your browser?


Otherwise you may have a permissions issue on the webserver.

Server logs are also a great source of information.

-Arjen

Jan Boshoff

unread,
Jun 19, 2017, 3:34:29 AM6/19/17
to munkireport
Arjen
I totally understand delayed responses when you're sick, thanks so much for helping out.
I had to change the subfolder location in the config files and then it all started working.

Good now.
Thanks for great tools and help!

Jan Boshoff

unread,
Jun 8, 2018, 12:06:56 AM6/8/18
to munkireport
I have had to re-install my munkireport server and am getting this same error again. I can't figure out how I fixed it the last time, but it would be great to finally get this resolved. (I'll document properly next time!)
Ubuntu 18, NGINX, PHP7.2
Basically, the dashboard is working fine, and I can see the install script, but when I run the curl command to download the install packages, I get file not found.
The problem is that I have installed MR to a subfolder: http://my.server.com/munkireport, but the curl command is looking in the root domain for the files, instead of the subfolder. (looking in /assets/client_installer/preflight instead of /munkireport/assets/client_installer/preflight)
I can't figure out where to change this. I have tried adding the specific subfolder to the munkireport config file, but that only broke everything, and I tried adding an alias to the nginx config, but that didn't fix it either. 
It seems the BASEURL in the installer is not showing my subfolder. 
Currently the installer has: BASEURL="http://munki.mydomain.com"

How do I change this?
Reply all
Reply to author
Forward
0 new messages