I got some error messages every midnight. I know it’s from permission issue without run as root but it only runs in crontab.
I re-run these steps with librenms account to fix the issue every time.
How do I fix the issue permanently?
Run the commands above to fix and DON’T run things as root it breaks permissions so the daily.sh script cannot run.
I run these commands with another account(librenms) to fix issue and works well. However, after 0:15 am (from cron job)get error messages again.