Discovery not completing [Solved]

We include a script called pbin.sh so if you’ve edited the info in a file just do cat FILE | ./pbin.sh

yea tried that.

Just get this:

<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.10.2</center>
</body>
</html>

Tried manually too and get the same output.

Ok, split the file into 500K chunks:

Here you go:
1 https://p.libren.ms/view/679d7cf3
2 https://p.libren.ms/view/5d5171d0
3 https://p.libren.ms/view/30910b40
4 https://p.libren.ms/view/46cee662
5 https://p.libren.ms/view/5097a2c1
6 https://p.libren.ms/view/0873338b
7 https://p.libren.ms/view/fc0ea494
8 https://p.libren.ms/view/fcc53047
9 https://p.libren.ms/view/8fc28da9
10 https://p.libren.ms/view/3a3d740a
11 https://p.libren.ms/view/79daf860
12 https://p.libren.ms/view/8eb5526f
13 https://p.libren.ms/view/cfe796b1
14 https://p.libren.ms/view/b38a4eb9
15 https://p.libren.ms/view/0a29fd9d
16 https://p.libren.ms/view/5fe4f673
17 https://p.libren.ms/view/3b31addb
18 https://p.libren.ms/view/00ddde98

I’ve increased some settings on the paste service, can you try again please.

Thanks, now I get this error:

librenms@librenms:~$ cat disco.txt | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: librenms
private: 1
expire: 0
        Error: Missing paste text

I’m happy to email it if you want.

Well, I feel a bit silly.
It turns out the answer to this was staring me in the face all along.

My crontab looks like this (in part):

# Using this cron file requires an additional user on your system, please see install docs.

#33  */6   * * *   librenms    /opt/librenms/discovery.php -h all >> /dev/null 2>&1
33 */6 * * * librenms /opt/librenms/discovery-wrapper.php 4 >> /dev/null 2>&1

This is because I decided to use the discovery-wrapper script to speed up discovery…

Can anyone spot the mistake? :rolling_eyes:

What i missed was the fact that while discovery is a php script, discovery-wrapper is a Python script! :sweat_smile:

Cron will have been trying to run a none-existent file!

So I have just changed the extension in my crontab to .py and fully expect it to work now! (I have manually run the script with no errors)

As usual, thanks to @laf and @murrant for offering advice and help.

What is difference between discovery.php and discovery-wrapper.py? why would you consider at all to use discovery-wrapper.py? as Far as I understand discovery-wrapper.py runs parallel threads while discovery.php runs serial threads