Hi guys,
I'm using Openmediavault for about two years now. I am very happy having it and I was able to solve all of my problems with this forum and google. Unfortunately my luck came to an end a few days ago.
Beforehand I want to say, like most people asking questions here, I am not the most experienced linux-professional, so please excuse if I ask for something obvious.
My Problem:
I have several folders shared via samba, which is working great. Some weeks ago I thought maybe having a recycle bin would be cool so I set it up and set it to automatically recycle everything older than 14 days. It took some time until I realized, that the automatic deletion does not work at all. I did some reading and could find out, that the recycle scripts are executed from a script within the /etc/cron.daily folder named "openmediavault-samba-recycle", which again is executed by anacron, if I understood correctly. I first checked if all the scripts exist and are executable and everything seems to be in order. So I placed a script there myself which just appends the current date to a file, to see if all the scripts in /etc/cron.daily are beeing executed once a day. This is a list of all the scripts in my cron.daily folder:
0anacron
apt
bsdmainutils
dpkg
logrotate
man-db
ntp
openmediavault-cron-apt
openmediavault-flush-mailq
openmediavault-mdadm
openmediavault-pending_config_changes
openmediavault-samba-recycle
passwd
quota
samba
sysstat
I played around a bit and to my surprise found out that my test script is beeing executed if it is called "crontest", but not, if it starts with a letter coming later in the alphabet. So my guess was, that when anacron executes all the scripts in the folder, during the execution of some script, some kind of error occurs, which is why all the following scripts in alphabetical order are not executed. So I placed a test script between each of the actual scripts in the folder, to see which is the last actual script that executes. With this method I could find, that all my test scripts were executed that were placed before "openmediavault-cron-apt", and none of the ones placed after it, which explains why the samba recycle script never does its job.
I'm not sure if it makes any sense what I was doing up to now, but anyway I've reached a point where I'm stuck. I don't know if my conclusion is correct, that openmediavault-cron-apt is not working correctly and if so how I can find out what is wrong. I hope you can give a hint into the right direction.
Thank you in advance for your help!