Closed shiremail closed 2 years ago
No space left on device
What disk are you using?
32GB SD card with syncloud on it 128 GB SSD
Filesystem Size Used Avail Use% Mounted on udev 929M 0 929M 0% /dev tmpfs 200M 22M 179M 11% /run /dev/mmcblk1p2 2.9G 2.3G 482M 83% / tmpfs 998M 12K 998M 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 998M 0 998M 0% /sys/fs/cgroup /dev/loop1 85M 85M 0 100% /snap/files/158 /dev/loop0 43M 43M 0 100% /snap/bitwarden/21032862 /dev/loop2 30M 30M 0 100% /snap/files/21030283 /dev/loop3 147M 147M 0 100% /snap/platform/1227 /dev/loop4 431M 431M 0 100% /snap/nextcloud/211228447 /dev/loop5 147M 147M 0 100% /snap/platform/1236 /dev/loop6 147M 147M 0 100% /snap/platform/1264 /dev/sda1 110G 21G 84G 21% /opt/disk/external
I only use bitwarden und nextcloud on my device. Nextcloud data is on the SSD.
What kind of device is this? Did you build it yourself? Try
du -hx --max-depth=1 / | sort -h
https://shop.syncloud.org/syncloud-h
4.0K /media 4.0K /mnt 4.0K /srv 16K /lost+found 20K /opt 28K /snap 32K /tmp 44K /home 2.7M /etc 70M /root 89M /boot 658M /usr 1.5G /var 2.3G /
Any ideas?
Did you do anything with disk? Root filesystem should not be on sdcard.
/dev/mmcblk1p2 2.9G 2.3G 482M 83% /
Looks like internal disk is used as external disk which is wrong and should be root /
/dev/sda1 110G 21G 84G 21% /opt/disk/external
You need to copy your files to another disk before you continue!
When you have backed up your files you need to do a factory reset by writing a fresh images to disk and sd card using this instruction: https://github.com/syncloud/platform/wiki
Make sure you are writing sd image to sd card and disk image to internal disk (using another PC)
More info: https://github.com/syncloud/platform/wiki/Boot-from-SATA
Hm...The board is called ODROID XU4S (the H from your homepage uses the same case).
Last time I downloaded the image for XU4 from the wiki page. For the XU4 you only find one file. I used RUFUS to make a bootable image for the SD card and than booted the device. On the GUI I used the settings page to add the SSD. That worked also without any problems. I wonder why it used the storage that way....
So...what image is correct for the XU4S?
The XU4S seems to be the HC1.
Filesystem Size Used Avail Use% Mounted on udev 929M 0 929M 0% /dev tmpfs 200M 6.5M 194M 4% /run /dev/sda2 110G 1.1G 105G 1% / tmpfs 998M 0 998M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 998M 0 998M 0% /sys/fs/cgroup /dev/loop0 147M 147M 0 100% /snap/platform/1264
and
4.0K /home 4.0K /media 4.0K /mnt 4.0K /srv 16K /lost+found 16K /snap 20K /opt 32K /tmp 2.6M /etc 84M /root 89M /boot 200M /var 644M /usr 1018M /
Under settings -> storage no disk is shown. Is that right?
Yes this is much better, for external disk you need to use usb disk.
Can you run lsblk
?
Also did you extend boot disk from Settings - Internal Memory page?
Is nextcloud installing alright?
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 146.9M 1 loop /snap/platform/1264
loop1 7:1 0 84.9M 1 loop /snap/files/158
loop2 7:2 0 434.5M 1 loop /snap/nextcloud/484
loop3 7:3 0 42.9M 1 loop /snap/bitwarden/21032862
sda 8:0 0 111.8G 0 disk
|-sda1 8:1 0 128M 0 part
-sda2 8:2 0 111.7G 0 part / mmcblk1 179:0 0 29.7G 0 disk |-mmcblk1p1 179:1 0 128M 0 part
-mmcblk1p2 179:2 0 10M 0 part
Under 'Internal memory' it shows:
Boot
Partition 111,7G
Nextcloud installed fine.
Looks like the SD card is now only really used for the kernel do boot the system. The rest is on the SSD.
do you still have a problem? if yes what is the error now?
I am also having difficulties upgrading Nextcloud to v484. My issues seems different though:
root@syncloud:~# snap refresh nextcloud error: cannot perform the following tasks:
2022-03-11 10:41:31,721 - nextcloud_config - INFO - setting value: datadirectory = /opt/disk/external/nextcloud 2022-03-11 10:41:33,069 - nextcloud_config - INFO - setting datadirectory = /opt/disk/external/nextcloud Nextcloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade 2022-03-11 10:41:33,566 - nextcloud_occ - INFO - - installed: true
There are no commands defined in the "ldap" namespace.
2022-03-11 10:41:51,579 - nextcloud_occ - ERROR - occ error:
Traceback (most recent call last):
File "/snap/nextcloud/484/meta/hooks/configure", line 7, in
Any help is greatly appreciated. Thanks a lot!
@jamidi99
Updates between multiple major versions and downgrades are unsupported.
Please use this upgrade procedure if you skipped more than one major update: https://github.com/syncloud/platform/wiki/Nextcloud#cannot-upgrade-from-ui
For questions like this please use https://syncloud.discourse.group/
Hello!
Error:
root@syncloud:~# snap refresh nextcloud error: cannot perform the following tasks:
Run pre-refresh hook of "nextcloud" snap if present (run hook "pre-refresh":
2022-02-26 19:35:03,397 - database - INFO - postgres executing: snap run nextcloud.pgdumpall -f /var/snap/nextcloud/current/database.dump pg_dump.bin: [archiver] could not write to output file: No space left on device pg_dumpall: pg_dump failed on database "nextcloud", exiting 2022-02-26 19:35:04,524 - database - ERROR - postgres error: Traceback (most recent call last): File "/snap/nextcloud/211228447/meta/hooks/pre-refresh", line 7, in
Installer().pre_refresh()
File "/snap/nextcloud/211228447/hooks/installer.py", line 90, in pre_refresh
self.db.backup()
File "/snap/nextcloud/211228447/hooks/postgres.py", line 52, in backup
self.run('snap run nextcloud.pgdumpall -f {0}'.format(self.backup_file))
File "/snap/nextcloud/211228447/hooks/postgres.py", line 62, in run
raise e
File "/snap/nextcloud/211228447/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.
-----)
Bye.