Ok I uninstalled antivirus and disabled SAMBA.
Without SAMBA the system reboots much faster and consistend. Otherwise I somtimes get 503 error after rebooting. Further when rebooting via console it’s also much faster than via web-interface. When rebooting via web-interface I noticed that SWAP goes from 0% up to 100% and takes forever to reboot. When rebooting via console the system shuts down instantly.
Strange… but I’m happy to know that SAMBA is causing this issue.
Now there is only one thing left. I can’t run my backup script via crontab.
The script is placed in: /root/scripts/backup.sh
I log in via user pi and get root rights: sudo -s
I gave it execution rights: chmod +x /root/scripts/backup.sh
I can start it manually and I get an email when the backup is finished.
In crontab -e it looks like: 0 3 * * * /root/scripts/backup.sh > /dev/null 2>&1
But crontab does not start the job.
I’ve made a test job in crontab creating a file and writing “cron is working” in it. That’s working.
In the past I had the exact same setup doing my daily backup. Don’t know whats wrong with it.
This is what syslog says:
Apr 16 03:15:01 nextcloudpi CRON: (root) CMD (/root/scripts/backup.sh > /dev/null 2>&1)