Unfortunately, the Nextcloud instance gives me âSome jobs havenât been executed since 16 days ago. Please consider increasing the execution frequencyâ
Now, Iâve also tried running the following command in my Synology Task Scheduler in an attempt to resolve this:
su -s /bin/sh -c â/usr/local/bin/php73 -f /var/services/web/nextcloud/cron.phpâ http
This didnât do much either, instead I received âThe last Job Execution ran 12 minutes ago.â
Not really sure how to configure the Task Scheduler here to be able to run the /web/nextcloud/cron.php file from my Synology.
Any help would be greatly appreciated!
Thanks!
Nextcloud version : 19.0.1
Operating system and version : Linux 4.4.59+ aarch64
Apache or nginx version : Apache 7.3
PHP version : 7.3.16
UPDATE 20/0972020
With the intension of trying to solve this, I set it up to run cron.php via Webcron instead, I set this up via cron-jobs.org.
Whatâs interesting here is that the cron-job is successful, but Nextcloud is still saying âSome cron jobs havenât been executed in xxx Daysâ - For reference, Iâm attaching a print screen below:
Thanks for that reply, unfortunately, Iâve already looked through that post. That post is what our current settings is based of, thats why I find it so strange that itâs not working.
Any other suggestions as to why the cronjob for nextcloud isnât working on Synology would be super helpful!
I use this cron script in Scheduler (by root):
sudo -u http /var/packages/PHP7.3/target/usr/local/bin/php73 -c /usr/syno/etc/packages/WebStation/php_profile/11e7abb1-d10e-43cfb/conf.d/user_settings.ini -f /volume1/web/nextcloud/cron.php
You need to replace paths to php, profile and nextcloud folder
Hello,
I have tried to setup the NewsUpdater as suggested and keeps giving me errors.
Running Nextcloud 18.0.4 ON DSM 6.2.3
and the error I am getting is:
PHP Warning: PHP Startup: Unable to load dynamic library âmcrypt.soâ (tried: /usr/local/lib/php72/modules/mcrypt.so (/usr/local/lib/php72/modules/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php72/modules/mcrypt.so.so (/usr/local/lib/php72/modules/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library âmysql.soâ (tried: /usr/local/lib/php72/modules/mysql.so (/usr/local/lib/php72/modules/mysql.so: cannot open shared object file: No such file or directory), /usr/local/lib/php72/modules/mysql.so.so (/usr/local/lib/php72/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Console has to be executed with the user that owns the file config/config.php
Current user: http
Any pointers of what is happening? Aprt that it does not see 7.2 and I donât want to upgrade the PHP 5.6. It has 7.2
Hi Belyache, sorry for my question that will look stupid to you, but root cannot access cron.php via docker.
So I tried to run the same task as you with: docker container exec --user www-data -it nextcloud.domain php cron.php
Even if it works in ssh, it does not via the task scheduler (root).
Do you have an advice on how to trigger the php cron.php job within docker?
I donât have any experience interacting with docker instances.
I tried a program about a year ago that used Docker, but I found it to be troublesome as I couldnât really modify it from the original conifg. However, that could have been the specific program that was using Docker at that point.
I found the error, the line of code should be: docker container exec --user www-data -T nextcloud.domain php cron.php
Removing the t argument made it work.
Hi SimyriK, I have been struggling with this for some time now and canât get the cron Job to work properly. I have installed NC 20.0.7 on my Synology Disk Station and am now trying to do the cleanup work from the installation. Pretty much the last thing to take care of is cron and that simply doesnât work.
I found this setting: sudo -u http php73 /var/services/web/Nextcloud/cron.php
That didnât work. Now Iâve been trying yours but canât figure out how to adapt it to meet my folder/user structure. Can you help?
I tried that also (have the same problem) and it seemed to have worked once. NC gives me the warning âlast task was carried out 12 minutes agoâ. So I figure it must have worked once, right? Problem is now that it doesnât seem to repeat every 5 mins as I set it up in the Syn task planner.
First, you need to determine which version of PHP you are using - this can be found in WebStation in your DSM. Next, if you connect to synology via SSH, find the path of the executable file /var/packages/PHP_YOUR_VERSION/target/usr/local/bin/php_your_version:
Canât get it to work here.
Task is ending in error because it waits for the password :
This is my script :
sudo -u http /usr/local/bin/php74 -c /var/packages/WebStation/etc/php_profile/c955c07d-aa67-4013-bcda-4189fb9a1f34/conf.d/user_settings.ini -f /volume1/web/nextcloud/cron.php
Error :
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
This code is giving me error on my ds220+. What can I do?
Standardausgabe/Fehler:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for
local cache (Is the matching PHP module installed and enabled?)