Hello
I never did figure out how to get Crontab working properly, With the installation of Nextcloud I had to do several installs to get it right. I followed the Tutorial on Linuxbabe and read everything I could find. So the Tutorial on Linuxbabe dealt with the known installation errors but now that got me into the Forest of Nextcloud with a nice green checkmark and an A+ rated TLS but did not prepare me what was next, learning how to maintain Nextcloud with a log file full of errors and warnings also a crontab that I cannot find enough information. The server runs fine but I have to manually reset Preview:pre-generate every couple of days. Is there a source where I can gain a better understanding of the backstory of how to maintain this server.
Below is my current most prominent PHP error:
[PHP] Error: Undefined offset: 1 at /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php#219
{“reqId”:“JUtixaMZZceS0VCj3TM2”,“level”:3,“time”:“2020-07-13T00:11:52+00:00”,“remoteAddr”:“Ip Address”,“user”:“my username”,“app”:“PHP”,“method”:“PROPFIND”,“url”:"/remote.php/webdav/Myserver domain/",“message”:“Undefined offset: 1 at /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php#219”,“userAgent”:“Mozilla/5.0 (Android) Nextcloud-android/3.12.1”,“version”:“19.0.0.12”,“id”:“5f0ba6c8a9460”}
From what I see here it looks like My Android DAVx5 app???
Also, I’m all googled out on the Crontab Mystery??? “lost in the Linux forest”
I’ve run a Win 2012 r2 for almost 8 years it never gives grief it is the foundation for all things sync and cloud backup and Hyper-v, does everything right so I’m bored with it!!!
Now I’m here to learn.
Below is the kitchen sink of crontab:
m h dom mon dow command
# 0 4 * * * /usr/bin/php -f /var/www/nextcloud/occ preview:pre-generate
# 0 3 * * * www-data /usr/bin/php -f /var/www/nextcloud/occ preview:pre-generate
# 0 1 * * * php /var/www/nextcloud/occ preview:pre-generate
terminal command: sudo -u www-data php -f /var/www/nextcloud/cron.php
then I run : sudo -u www-data /usr/bin/php -f /var/www/nextcloud/occ preview:pre-generate
Gives me a Green: All checks passed.
also commands return:“Command is already running”
terminal command: sudo -u www-data which php
returns: /usr/bin/php I tried to open /usr/bin/php (it is not readable or encrypted)
I am at a loss of what else to do to get this to roll like a… crontab clock.
Thank you all !!