I have messed things up now!
I wanted to address the issues issue in Overview about setting up a time window in cron to do some tasks.
I went to this page Background jobs â Nextcloud latest Administration Manual latest documentation and used the commands there to set up cron using the command crontab -u www-data -e
After I made the recommend change, I followed the recommend step to confirm and this was the result:
ken@fbox:~$ sudo crontab -u www-data -l
[sudo] password for ken:
#[snip]
*/5 * * * * php -f /var/www/nextcloud/cron.php
Not knowing I had broken cron, I went ahead to install a couple of apps including OneDrive Integration and it failed producing errors like these:
[files_external_onedrive] Fatal: Error during app loading: Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found
GET /nextcloud/index.phpps/richdocuments/settings/fonts.json
from 24.69.89.88 by â at Nov 9, 2024, 4:18:56 PM
[files_external_onedrive] Fatal: Error during app service registration: Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found
GET /nextcloud/index.phpeader/api/poll?lastReqId=Hk19NaaxaiJSceDuSYu6
from 24.69.89.88 by â at Nov 9, 2024, 5:00:51 PM
I disabled that app in the NC gui but it would not let me remove the app. Going back to the logs I see thousands of entries now:
|Fatal|files_external_onedrive|Error Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found
Error during app service registration: Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found|
| â | â |
Nov 9, 2024, 5:41:47 PM
|Fatal|files_external_onedrive|Error Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found
Error during app loading: Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found|
| â | â |
Nov 9, 2024, 5:41:46 PM
|Fatal|files_external_onedrive|Error Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found
Error during app service registration: Interface âOCA\Files_External\Lib\Config\IBackendProviderâ not found|
| â | â |
Nov 9, 2024, 5:41:46 PM
Those are still coming in even though the app has been disabled.
When I go to Overview now I see the warning I was trying to fix about cron I was trying to deal with is now preceded by new warnings:
-
Last background job execution ran 1 hour ago. Something seems wrong. Check the background job settings.
-
6033 errors in the logs since November 8, 2024, 10:32:45 PM
-
Server has no maintenance window start time configured. This means resource intensive daily background jobs will also be executed during your main usage time. We recommend to set it to a time of low usage, so users are less impacted by the load caused from these heavy tasks. For more details see the documentation .
The FB log system also says:
Nextcloud cron.php job
Status
Static
Failed to start
Path
/lib/systemd/system/nextcloud-cron-freedombox.service
Triggered by
Service logs
November 9, 2024
5:21 PM
nextcloud-cron-freedombox.service: Unit process 4951 (podman) remains running after unit stopped.
systemd
5:21 PM
nextcloud-cron-freedombox.service: Unit process 4947 (conmon) remains running after unit stopped.
systemd
5:21 PM
nextcloud-cron-freedombox.service: Failed with result âexit-codeâ.
systemd
5:21 PM
nextcloud-cron-freedombox.service: Main process exited, code=exited, status=1/FAILURE
systemd
5:21 PM
2024-11-09 17:21:58.930209927 -0800 PST m=+0.337489713 container exec_died 9e2ce48c55a04051f031c3b98596d20ecf1a840e47f77576ccfc3d8b226afdf1 (image=docker.io/library/nextcloud:stable-fpm, name=nextcloud-freedombox, PODMAN_SYSTEMD_UNIT=nextcloud-freedombox.service, io.containers.autoupdate=registry)
podman
5:21 PM
#11 {main}
podman
5:21 PM
#10 /var/www/html/cron.php(148): OC\BackgroundJob\JobList->getNext(false, NULL)
podman
I guess when they say break it and you get to keep both pieces, they were thinking of me!
No idea where to go from here . . . .
Ken