Closed Morgendorfferr closed 2 years ago
I guess you are trying to migrate from v21 to v23 which is not supported by Nextcloud, the workaround is to do manual upgrade to "Version 22" and then to "Latest" as described here: https://github.com/syncloud/platform/wiki/Nextcloud#cannot-upgrade-from-ui
No, at least not intentionally. I wanted to upgrade from Version 210624280 to 211228447 via the user interface (screenshot). When doing that I get the spinning wheel and after 10 min. nothing changes and I am still with v210624280. This is the same behavior as described in #609, so I did what you recommended there.
these are our versions, what version do you see in Nexctoud?
Version
Nextcloud 21.0.2
When trying to upgrade to 22 as described in https://github.com/syncloud/platform/wiki/Nextcloud#cannot-upgrade-from-ui I get this:
root@syncloud:~# wget apps.syncloud.org/apps/nextcloud211101376$(dpkg --print-architecture).snap --2022-01-30 16:28:34-- http://apps.syncloud.org/apps/nextcloud_211101376_armhf.snap Resolving apps.syncloud.org (apps.syncloud.org)... 52.92.144.227 Connecting to apps.syncloud.org (apps.syncloud.org)|52.92.144.227|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 394063872 (376M) [binary/octet-stream] Saving to: 'nextcloud_211101376_armhf.snap'
nextcloud_211101376 100%[===================>] 375.81M 13.2MB/s in 35s
2022-01-30 16:29:10 (10.8 MB/s) - 'nextcloud_211101376_armhf.snap' saved [394063872/394063872]
root@syncloud:~# root@syncloud:~# snap install nextcloud211101376$(dpkg --print-architecture).snap --devmode error: cannot perform the following tasks:
- Run post-refresh hook of "nextcloud" snap if present (run hook "post-refresh": <exceeded maximum runtime of 10m0s>)
I see, what kind of device is this? Seems like running out of resources or you have a really big database.
Syncloud H Odroid HC2
The database is 833 GB
Big but not super big, just to check that you are still on SSD, can you run this:
lsblk
Also to check the size of tables:
snap run nextcloud.psql -U nextcloud -d nextcloud -c "select table_name, pg_relation_size(table_schema||'.'||table_name) as size from information_schema.tables order by 2 desc limit 5;"
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 282.5M 1 loop /snap/nextcloud/210624280 loop1 7:1 0 103.9M 1 loop /snap/plex/21073137 loop2 7:2 0 146.7M 1 loop /snap/platform/1227 loop3 7:3 0 92.8M 1 loop /snap/users/210524196 loop4 7:4 0 310.8M 1 loop /snap/mail/211015207 loop5 7:5 0 310.8M 1 loop /snap/mail/211016212 loop6 7:6 0 113.9M 1 loop /snap/mail/210301142 loop7 7:7 0 39M 1 loop /snap/openvpn/200507119 loop8 7:8 0 30M 1 loop /snap/files/21030283 loop9 7:9 0 146.7M 1 loop /snap/platform/2112211182 loop10 7:10 0 307.9M 1 loop /snap/plex/21111156 loop11 7:11 0 158.3M 1 loop /snap/pihole/210320405 loop12 7:12 0 295.5M 1 loop /snap/plex/21121859 loop13 7:13 0 146.7M 1 loop /snap/platform/1203 sda 8:0 0 447.1G 0 disk |-sda1 8:1 0 128M 0 part
-sda2 8:2 0 447G 0 part / sdb 8:16 0 3.7T 0 disk
-sdb1 8:17 0 3.7T 0 part /opt/disk/external mmcblk1 179:0 0 14.4G 0 disk |-mmcblk1p1 179:1 0 128M 0 part `-mmcblk1p2 179:2 0 10M 0 part
size of tables
root@syncloud:~# snap run nextcloud.psql -U nextcloud -d nextcloud -c "select table_name, pg_relation_size(table_schema||'.'||table_name) as size from information_schema.tables order by 2 desc limit 5;" could not change directory to "/root": Permission denied table_name | size
-----------------------+----------- oc_filecache | 117538816 oc_activity | 11624448 oc_filecache_extended | 1818624 oc_preview_generation | 1589248 pg_attribute | 827392 (5 rows)
What about this:
top -n 1
top -n 1:
top - 16:30:14 up 1 day, 5:21, 1 user, load average: 0.22, 0.09, 0.02 Tasks: 249 total, 1 running, 248 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.7 us, 2.7 sy, 0.0 ni, 96.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 1994.6 total, 237.3 free, 397.2 used, 1360.0 buff/cache MiB Swap: 0.0 total, 0.0 free, 0.0 used. 1459.9 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7388 root 20 0 6840 2144 1796 R 11.8 0.1 0:00.04 top
1 root 20 0 33456 6248 3148 S 0.0 0.3 0:37.32 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kthreadd
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0+ 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu+ 7 root 20 0 0 0 0 S 0.0 0.0 0:01.39 ksoftirqd+ 8 root 20 0 0 0 0 I 0.0 0.0 0:24.67 rcu_preem+ 9 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_sched 10 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_bh
11 root rt 0 0 0 0 S 0.0 0.0 0:00.07 migration+ 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
14 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration+ 15 root 20 0 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd+ 17 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1+ 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
19 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration+
Ok, I guess we should increase the upgrade timeout to 1 hour or so for now but it will not help you as you are two versions behind. Can you reinstall nextcloud? That will remove settings like calendar/contacts but not files. Then you can rescan files (https://github.com/syncloud/platform/wiki/Nextcloud#file-scan)
Ok, just to be sure:
Yes
Installing it from the app store did not work. Spinning wheel - disappearing after some time - and I still may install nextcloud. In the wiki the command to install is
wget apps.syncloud.org/apps/nextcloud_211101376_$(dpkg --print-architecture).snap
snap install nextcloud_211101376_$(dpkg --print-architecture).snap --devmode
Is that the right version to try it again without the user interface?
No, if you remove it you need to install latest, either from web ui or using this command:
snap install nextcloud
Well, it did not work from web ui. And it it did not work with command. The error seems somewhat familiar:
root@syncloud:~# snap install nextcloud error: cannot perform the following tasks:
- Run install hook of "nextcloud" snap if present (run hook "install": <exceeded maximum runtime of 10m0s>)
Can you send logs from Settings - Support (include support)?
Just did.
hmm, nothing in the log related to nextcloud install, can you check if you are on latest updates in Settings - Updates and install if any. Then try to install again from command line snap install nextcloud
as soon as it finishes hit send logs button?
Settings - Updates shows no updates:
System: 1227 Installer: 300
I will try install again.
Just send the logs.
strange still nothing, install all the apps you have on exactly the same device and it still fine.
Did you do anything with the device, like update debian (you should not) or something else other than running snap commands?
lsb_release -a
?
lsb_release produces this:
root@syncloud:~# lsb_release -a -bash: lsb_release: command not found
I never (intentionally) updated debian. Here are a couple of things I did / observed in the past, I have no idea if anything of that is relevant:
Ok, the next step would be to restore the stock disk image and then activate device, activate external disk, add users, install apps. I guess you store the files on external disk so it should not be difficult. Do you want to try that? If yes you need to:
All documented here: https://github.com/syncloud/platform/wiki
Ok, a little bit nervous about that but in principle it seems possible for me. Would you please check if I am wrong anywhere:
Many thanks.
Yes it should work.
Yes
Just make sure you flashing the right disk, not your main PC disk!
I managed to avoid that. The device is now connected again, lights are flashing, I can also see it as active in the router. But I can’t open the UI with the IP address. Guess I need to repeat the process.
Did it again - without any success. The device does not show up in the router when I don’t connect the external drive to it. And when the external drive is connected it is shown as active in the router but my browser can’t connect to it under the IP address of the device.
Ok, try to do the same for the SD card which is in the device but use the special sd image: https://github.com/syncloud/image/releases/download/22.01/syncloud-odroid-xu3and4-sd-22.01.img.xz
Ok. Need to buy a mini SD card reader tomorrow.
Did ist, no success. Same behavior as before.
Just to make sure.
Another option is to try previous release: SD Card: https://github.com/syncloud/platform/releases/download/21.10/syncloud-odroid-xu3and4-sd-21.10.img.xz SSD Disk: https://github.com/syncloud/platform/releases/download/21.10/syncloud-odroid-xu3and4-21.10.img.xz
YES! Using the previous versions did the trick. I can now see the device and activate it. Next steps would be to install apps? Or update system first?
By the way I found it useful to know what the different LED of Odroid actually signal when I tried to check if SD card and SSD are connected:
https://forum.armbian.com/topic/13013-odroid-xu4-hc2-hc1-c2-n2-led-light-key-legend/ :
Am 10.2.2020 um 22:42 schrieb jshc1: ... Odroid has one blue diode which signals heartbeat signal. After connecting the power it will light up. If it finds a boot and starts booting, it will start flashing. The blinking speed depends on the load. The red LED is on all the time when the current reaches the sbc. The green LED lights up when HDD is connected, blinks when HDD has activity.
Update system, then install nextcloud to see if that all actially helped. Good to know that latest images are not working for HC, will give them another test.
Just to be sure: Update system (1203) and install (300)? Or only system?
Both
No. Installation of nextcloud does not work from the UI. Should I send log?
Yes please
Just sent.
I just tried to install Pihole, it did not work. But I could install File Browser.
Ok, one more thing, when you flash the image you need to expand its size, can you check Settings - Internal Memory and click Extend if it is there? Then try installing again?
I did that. It now says:
Boot Partition - 447G
But installation still does not work. I have sent logs after trying to install Pihole.
What about nextcloud?
The same. I will send logs in 15 min.
Hello, I have a problem similar to the closed issue #609. But my issue is not solved, the problem is persistent.
The output after
snap refresh nextcloud
looks like this after some time (10min?):Running
journalctl -n 100 --no-pager
produces this:Can you help?