Good day. Hopefully I can get some assistance with this. Let me state for the record that I (shamefully) have very limited Linux experience. Outside of the GUI versions of Debian/OpenSUSE/Ubuntu/Knoppix Iāve got little to no experience - so any information sent may be met with a lot of questions.
The goal is to have a local backup with NextCloud which then is uploaded to a cloud storage service using WebDAV. The initial installation seems fine, but the problem seems to be with the backups. Apparently itās causing problems with the setup and breaking NextCloud. Iāll give some more details next. Information using the post template is given below. Any other information required - just ask and Iāll do what I can.
It seems like the system just keeps creating backups without considering the available space. I had to clear /var/snap/nextcloud/common/nextcloud/data/ of all the other dated directories to get back 1.6TB of space. Once the space gets cluttered though, NextCloud shows this:
Cannot write into "apps" directory
This can usually be fixed by giving the webserver write access to the apps directory or disabling the App Store in the config file.
From here Iāve tried to check the config.php and found that itās basically blank (see below). It seems like I may need to reinstall once more, but Iād need to find another way to push the files into the cloud storage since the backup seems to be breaking the system. This would be the 3rd time. I donāt mind doing it over, but it is time consuming.
Again - the goal is to have the local backup done for the systems - then have the files copied to a cloud storage using WebDAV.
I figure Iāll have to reinstall (as I said before) since I canāt find the config file. I do have the settings.asc file, but no backup of the config.php. Not sure how to āresumeā the backups from here, so will have to do it over from scratch once more.
Interestingly - I do have a 1TB drive which was in the box before upgrading to 2TB. That has all files and is totally full. I could pull files from that if needed to show what had happened before, so if you need any information from that - just ask.
A quick solution I think would be to just reinstall and then set up a CRON job to send the data directory to the cloud storage. From what Iāve gathered, rClone should be able to get the job done. If anyone is available that would be willing to assist with that setup, Iād be most appreciative.
Many thanks in advance. Hoping to get this resolved fully.
NextCloud version (23.0.3 / snap)
Operating system and version (Ubuntu 20.04.4 LTS)
The issue you are facing:
Is this the first time youāve seen this error? (N):
Steps to replicate it:
- Install Ubuntu.
- Install NextCloud during Ubuntu setup (snap version) or through snap after OS install.
- Allocate 200GB per user (2TB storage).
- Setup backups to WebDAV storage.
- Leave it for a few days
The output of your Nextcloud log in Admin > Logging:
Unable to access NextCloud.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'abcdefg',
);
The output of your Apache/nginx/system log in /var/log/____
:
Not sure where to find.
nextcloud.log
Lots of similar errors to this.
{"reqId":"abcdefg","level":3,"time":"2022-04-24T00:24:50+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"unlink(/tmp/phpZhl3al): No such file or directory at /var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Service/PointService.php#539","userAgent":"--","version":"23.0.3.2","exception":{"Exception":"Error","Message":"unlink(/tmp/phpZhl3al): No such file or directory at /var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Service/PointService.php#539","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Service/PointService.php","line":539,"function":"unlink"},{"file":"/var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Service/PointService.php","line":259,"function":"backupSql","class":"OCA\\Backup\\Service\\PointService","type":"->"},{"file":"/var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Cron/Backup.php","line":137,"function":"create","class":"OCA\\Backup\\Service\\PointService","type":"->"},{"file":"/var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Cron/Backup.php","line":124,"function":"runFullBackup","class":"OCA\\Backup\\Cron\\Backup","type":"->"},{"file":"/var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Cron/Backup.php","line":115,"function":"runBackup","class":"OCA\\Backup\\Cron\\Backup","type":"->"},{"file":"/var/snap/nextcloud/30258/nextcloud/extra-apps/backup/lib/Cron/Backup.php","line":97,"function":"manage","class":"OCA\\Backup\\Cron\\Backup","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Backup\\Cron\\Backup","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/cron.php","line":150,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/snap/nextcloud/30258/htdocs/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
And also.
{"reqId":"LSOCZhiI7s7yGBRm2tH8","level":4,"time":"2022-04-24T00:32:53+00:00","remoteAddr":"xxx.xxx.xxx.15","user":"USER","app":"webdav","method":"GET","url":"/remote.php/dav/avatars/USER/128.png","message":"System is in maintenance mode.","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.4stable-Win64 (build 20220318) (Nextcloud, windows-10.0.18362 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"23.0.3.2","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"System is in maintenance mode.","Code":0,"Trace":[{"file":"/snap/nextcloud/30258/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkMaintenanceMode","class":"OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/apps/dav/lib/Server.php","line":339,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/snap/nextcloud/30258/htdocs/remote.php","line":166,"args":["/snap/nextcloud/30258/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/30258/htdocs/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php","Line":85,"CustomMessage":"--"}}