root@syncloud:/var/snap/nextcloud/common# snap refresh nextcloud
error: cannot perform the following tasks:
Run pre-refresh hook of “nextcloud” snap if present (run hook “pre-refresh”:
2022-01-12 12:54:34,676 - database - INFO - postgres executing: snap run nextcloud.pgdumpall -f /var/snap/nextcloud/current/database.dump
pg_dumpall: could not connect to database “template1”: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/snap/nextcloud/current/database/.s.PGSQL.5436”?
2022-01-12 12:54:35,036 - database - ERROR - postgres error:
Traceback (most recent call last):
File “/snap/nextcloud/211119415/meta/hooks/pre-refresh”, line 7, in
Installer().pre_refresh()
File “/snap/nextcloud/211119415/hooks/installer.py”, line 90, in pre_refresh
self.db.backup()
File “/snap/nextcloud/211119415/hooks/postgres.py”, line 52, in backup
self.run(‘snap run nextcloud.pgdumpall -f {0}’.format(self.backup_file))
File “/snap/nextcloud/211119415/hooks/postgres.py”, line 62, in run
raise e
File “/snap/nextcloud/211119415/hooks/postgres.py”, line 58, in run
output = check_output(cmd, shell=True).decode()
File “/snap/nextcloud/current/python/usr/local/lib/python3.8/subprocess.py”, line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/snap/nextcloud/current/python/usr/local/lib/python3.8/subprocess.py”, line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘snap run nextcloud.pgdumpall -f /var/snap/nextcloud/current/database.dump’ returned non-zero exit status 1.
-----)
snap start nextcloud
error: cannot perform the following tasks:
start of [nextcloud.nginx nextcloud.php-fpm nextcloud.postgresql] (# systemctl start snap.nextcloud.nginx.service snap.nextcloud.php-fpm.service snap.nextcloud.postgresql.service
Job for snap.nextcloud.postgresql.service failed because the control process exited with error code.
See “systemctl status snap.nextcloud.postgresql.service” and “journalctl -xe” for details.
Job for snap.nextcloud.php-fpm.service failed because the control process exited with error code.
See “systemctl status snap.nextcloud.php-fpm.service” and “journalctl -xe” for details.
)
start of [nextcloud.nginx nextcloud.php-fpm nextcloud.postgresql] (exit status 1)
root@syncloud:~#
systemctl status snap.nextcloud.php-fpm.service
● snap.nextcloud.php-fpm.service - Service for snap application nextcloud.php-fpm
Loaded: loaded (/etc/systemd/system/snap.nextcloud.php-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-01-13 13:06:13 CET; 6min ago
Process: 3229 ExecStart=/usr/bin/snap run nextcloud.php-fpm (code=exited, status=70)
Jan 13 13:06:13 syncloud systemd[1]: snap.nextcloud.php-fpm.service: Service RestartSec=100ms expired, scheduling restart.
Jan 13 13:06:13 syncloud systemd[1]: snap.nextcloud.php-fpm.service: Scheduled restart job, restart counter is at 5.
Jan 13 13:06:13 syncloud systemd[1]: Stopped Service for snap application nextcloud.php-fpm.
Jan 13 13:06:13 syncloud systemd[1]: snap.nextcloud.php-fpm.service: Start request repeated too quickly.
Jan 13 13:06:13 syncloud systemd[1]: snap.nextcloud.php-fpm.service: Failed with result ‘exit-code’.
Jan 13 13:06:13 syncloud systemd[1]: Failed to start Service for snap application nextcloud.php-fpm.
root@syncloud:~#
OK, I guess the simplest option is to remove it and install again then there will be no upgrade issue, I understand this is not the best option but there were few issues fixed in the latest version which may cause this.
After remove/install you will have latest version will lose settings like calendar/contacts but all the files will stay but you may need to tell Nextcloud to scan them with:
The SD card is not READ ONLY but the file system have several problem.
Yesterday i install rclone to backup platform/backup directory from external disk to infomaniak.
it was ok …
I don’t remenber why , i rebooted the Rapsberrypi .
i saw than the nextcloud was up !!!
but rclone was not installed
Data are write in cache but not on the SD card.
In first time i restore a SD on new card.
And i lookup on your site the Syncloud H seems enough for me. but do you have a solution where the boot disk will not SD card.
Syncloud R uses sd card for the whole OS and that is why it is called Starter.
Syncloud H uses sd card just for kernel boot and can be easily replaced if corrupted as it is “readonly” boot storage.
Syncloud N does not use sd card at all.