Skip to content
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

Cron job results don't appear in the Reporting logs #8

Open
Couto opened this issue Nov 26, 2021 · 9 comments
Open

Cron job results don't appear in the Reporting logs #8

Couto opened this issue Nov 26, 2021 · 9 comments

Comments

@Couto
Copy link

Couto commented Nov 26, 2021

I've set up a hourly job to run speedtest (reduced to every 30 minutes for debugging).
I can see in the logs that the cron job is being triggered as shown in the second picture.

However, the results of the cronjob are not appearing the Reporting page (in the third picture those are manual runs)

Am I missing something? I admit that I'm a bit newbie with OPNSense, so I can't find the logs detailing what's happening in the cron triggered runs... Any help here would be appreciated, and I can provide more information if you ask.

Screenshot 2021-11-26 at 09 40 07

Screenshot 2021-11-26 at 09 39 44

Screenshot 2021-11-26 at 09 41 12

@mihakralj
Copy link
Owner

this looks like some odd permissions issue; can you check the permissions on .csv file where results are stored?

@Couto
Copy link
Author

Couto commented Nov 27, 2021

thanks for the quick response, here's the result

couto@sun /usr/local/opnsense/scripts/OPNsense/speedtest]$ ls -la
total 28
drwxr-xr-x   2 root  wheel   512 Nov 24 18:22 .
drwxr-xr-x  10 root  wheel   512 Nov 24 18:20 ..
-rwxr-xr-x   1 root  wheel  1640 Apr  4  2021 install_speedtest.sh
-rwxr-xr-x   1 root  wheel  9344 Apr  4  2021 opn_speedtest.py
-rw-r-----   1 root  wheel  1326 Nov 26 09:12 speedtest.csv
[couto@sun /usr/local/opnsense/scripts/OPNsense/speedtest]$

I changed the permissions to chmod 0755 and it seems to be working now, if you have a more restricted permission that still allows it to work, please feel free to suggest. Thanks for the tip! 👍

@Couto
Copy link
Author

Couto commented Nov 27, 2021

Sorry, I have something to add.

So, the next cron job after fixing the file permissions ran perfectly. However the following ones no longer appear on the report page again. The csv file still has the 0755 permission. Im getting the feeling that it's something a bit deeper than simple file permissions.

@scottini
Copy link

Exactly the same issue here... Does anyone have a suggestion?

@Couto
Copy link
Author

Couto commented Jan 28, 2022

@scottini Unfortunately not, I haven't found a solution yet. This bug is annoying enough to make this plugin lose its best feature 😢

@scottini
Copy link

@Couto, please try to modify your scheduled execution time from something else than 0 or 30 (start and middle of every hour).
I've scheduled it to start every hour at 15', and it works on 4 installations.
Let me know!

@Couto
Copy link
Author

Couto commented Jan 31, 2022

@scottini thanks for the tip, that indeed solved the problem. Which is such a weird workaround!

@scottini
Copy link

@Couto yes, definitely... But with this indication maybe @mihakralj can find an elegant solution! ;)

@mihakralj
Copy link
Owner

I cannot reproduce...
Also, we moved maintenance and further development of this plugin to https://github.com/mimugmail/opn-repo
Here is a direct link to Speedtest plugin in mimugmail's repo: https://github.com/mimugmail/opn-repo/tree/main/net-mgmt/speedtest-community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants