syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
393 stars 40 forks source link

Nextcloud: Can't upgrade from Version: 210624280 to v211228447 #633

Closed Morgendorfferr closed 2 years ago

Morgendorfferr commented 2 years ago

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?):

error: cannot perform the following tasks:

  • Run post-refresh hook of "nextcloud" snap if present (run hook "post-refresh": <exceeded maximum runtime of 10m0s>)

Running journalctl -n 100 --no-pager produces this:

-- Logs begin at Sun 2022-01-30 11:09:25 UTC, end at Sun 2022-01-30 12:10:33 UTC. -- Jan 30 12:08:21 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38208&limit=50&format=json HTTP/1.1" 200 2103 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[4096]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38158&limit=50&format=json HTTP/1.1" 200 2423 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38158&limit=50&format=json HTTP/1.1" 200 2423 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[4096]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38108&limit=50&format=json HTTP/1.1" 200 3140 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38108&limit=50&format=json HTTP/1.1" 200 3140 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[4096]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38058&limit=50&format=json HTTP/1.1" 200 2470 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38058&limit=50&format=json HTTP/1.1" 200 2470 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[4096]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38008&limit=50&format=json HTTP/1.1" 200 2126 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:21 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:21 +0000] "GET /ocs/v2.php/apps/activity/api/v2/activity?since=38008&limit=50&format=json HTTP/1.1" 200 2126 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:44 syncloud slapd[1001]: conn=1139 fd=10 ACCEPT from IP=127.0.0.1:37288 (IP=127.0.0.1:389) Jan 30 12:08:44 syncloud slapd[1001]: conn=1139 op=0 BIND dn="cn=admin,dc=syncloud,dc=org" method=128 Jan 30 12:08:44 syncloud slapd[1001]: conn=1139 op=0 BIND dn="cn=admin,dc=syncloud,dc=org" mech=SIMPLE ssf=0 Jan 30 12:08:44 syncloud slapd[1001]: conn=1139 op=0 RESULT tag=97 err=0 text= Jan 30 12:08:46 syncloud slapd[1001]: conn=1139 op=1 SRCH base="ou=users,dc=syncloud,dc=org" scope=2 deref=0 filter="(&(|(objectClass=inetOrgPerson))(cn=))" Jan 30 12:08:46 syncloud slapd[1001]: conn=1139 op=1 SRCH attr=entryuuid nsuniqueid objectguid guid ipauniqueid dn uid samaccountname memberof mail cn jpegphoto thumbnailphoto Jan 30 12:08:46 syncloud slapd[1001]: <= mdb_equality_candidates: (cn) not indexed Jan 30 12:08:46 syncloud slapd[1001]: conn=1139 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= Jan 30 12:08:46 syncloud slapd[1001]: conn=1140 fd=13 ACCEPT from IP=127.0.0.1:37292 (IP=127.0.0.1:389) Jan 30 12:08:46 syncloud slapd[1001]: conn=1140 op=0 BIND dn="cn=,ou=users,dc=syncloud,dc=org" method=128 Jan 30 12:08:46 syncloud slapd[1001]: conn=1140 op=0 BIND dn="cn=,ou=users,dc=syncloud,dc=org" mech=SIMPLE ssf=0 Jan 30 12:08:46 syncloud slapd[1001]: conn=1140 op=0 RESULT tag=97 err=0 text= Jan 30 12:08:49 syncloud slapd[1001]: conn=1140 op=1 UNBIND Jan 30 12:08:49 syncloud slapd[1001]: conn=1140 fd=13 closed Jan 30 12:08:49 syncloud slapd[1001]: conn=1139 op=2 UNBIND Jan 30 12:08:49 syncloud slapd[1001]: conn=1139 fd=10 closed Jan 30 12:08:49 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:08:49 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:08:49 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:08:49 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:08:59 syncloud nginx[4096]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:59 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:08:59 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:08:59 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:03 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:03 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:03 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:03 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:04 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:04 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:04 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:04 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:04 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:04 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status?format=json HTTP/1.1" 200 157 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:04 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:04 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status?format=json HTTP/1.1" 200 157 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:19 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:19 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:19 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:19 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:29 syncloud ntpd[732]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied Jan 30 12:09:29 syncloud nginx[4095]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:09:29 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:29 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:09:29 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:30 syncloud snapd[479]: 2022/01/30 12:09:30.135063 store.go:1169: assert type: snap-declaration, key: 16/plex.21121859 Jan 30 12:09:30 syncloud snapd[479]: 2022/01/30 12:09:30.278924 store.go:1169: assert type: snap-declaration, key: 16/users.210524196 Jan 30 12:09:30 syncloud snapd[479]: 2022/01/30 12:09:30.428889 store.go:1169: assert type: snap-declaration, key: 16/files.21030283 Jan 30 12:09:30 syncloud snapd[479]: 2022/01/30 12:09:30.572641 store.go:1169: assert type: snap-declaration, key: 16/mail.211016212 Jan 30 12:09:30 syncloud snapd[479]: 2022/01/30 12:09:30.716293 store.go:1169: assert type: snap-declaration, key: 16/nextcloud.210624280 Jan 30 12:09:30 syncloud snapd[479]: 2022/01/30 12:09:30.859754 store.go:1169: assert type: snap-declaration, key: 16/openvpn.200507119 Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.011809 store.go:1169: assert type: snap-declaration, key: 16/pihole.210320405 Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.156455 store.go:1169: assert type: snap-declaration, key: 16/platform.1227 Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.299480 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.300001 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.300388 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.300792 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.301132 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.302589 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.302963 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.303347 database.go:568: Syncloud hack: failed signature verification: openpgp: invalid signature: hash tag doesn't match Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.309860 autorefresh.go:215: Cannot prepare auto-refresh change: not implemented yet Jan 30 12:09:31 syncloud snapd[479]: 2022/01/30 12:09:31.325555 stateengine.go:101: state ensure error: not implemented yet Jan 30 12:09:33 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:33 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:33 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:09:33 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:33 syncloud PlexMediaServer[498]: Sync: uploadStatus Jan 30 12:09:44 syncloud PlexMediaServer[498]: getaddrinfo(192-168-178-35.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -2 Jan 30 12:09:44 syncloud PlexMediaServer[498]: Network: 192-168-178-35.abcdefghijklmnopqrstuvwxyz012345.plex.direct failed to resolve to 192.168.178.35 but instead yielded "" Jan 30 12:09:44 syncloud PlexMediaServer[498]: PublicAddressManager: Obtaining public address and mapping port. Jan 30 12:09:44 syncloud PlexMediaServer[498]: PublicAddressManager: Obtaining public IP. Jan 30 12:09:44 syncloud PlexMediaServer[498]: HTTP requesting GET http://plex.tv/pms/:/ip Jan 30 12:09:44 syncloud PlexMediaServer[498]: HTTP/2.0 (0.4s) 200 response from GET http://plex.tv/pms/:/ip Jan 30 12:09:44 syncloud PlexMediaServer[498]: PublicAddressManager: Got public IP from http://plex.tv: Jan 30 12:09:47 syncloud PlexMediaServer[498]: NAT: UPnP, found device http://192.168.178.1:49000/igddesc.xml with private address <192.168.178.35> Jan 30 12:09:47 syncloud PlexMediaServer[498]: NAT: UPnP, usable device http://192.168.178.1:49000/igddesc.xml with private address <192.168.178.35>. Jan 30 12:09:47 syncloud PlexMediaServer[498]: NAT: UPnP, public address is Jan 30 12:09:47 syncloud PlexMediaServer[498]: HTTP requesting GET https://31-17-205-20.a424ac00068d45ccbc18add2827a1f67.plex.direct:32400/identity Jan 30 12:09:47 syncloud PlexMediaServer[498]: Error issuing curl_easy_perform(handle): 7 Jan 30 12:09:47 syncloud PlexMediaServer[498]: HTTP error requesting GET https://31-17-205-20.a424ac00068d45ccbc18add2827a1f67.plex.direct:32400/identity (7, Couldn't connect to server) (Failed to connect to 31-17-205-20.a424ac00068d45ccbc18add2827a1f67.plex.direct port 32400: Host is unreachable) Jan 30 12:09:47 syncloud PlexMediaServer[498]: MyPlex: mapping state set to 'Mapped - Not Published'. Jan 30 12:09:47 syncloud PlexMediaServer[498]: MyPlex: Last published value didn't change, we're done. Jan 30 12:09:49 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:49 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:49 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:49 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:52 syncloud nginx[4095]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:52 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:52 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:52 +0000] "PUT /apps/user_status/heartbeat HTTP/2.0" 204 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:52 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:52 +0000] "PUT /apps/user_status/heartbeat HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:52 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:52 +0000] "PUT /apps/user_status/heartbeat HTTP/2.0" 204 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:52 syncloud nginx[4095]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:52 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 157 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:52 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:09:52 +0000] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/2.0" 200 157 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:09:59 syncloud sh[327]: XMT: Forming Solicit, 655350 ms elapsed. Jan 30 12:09:59 syncloud sh[327]: XMT: X-- IA_PD 06:36:d3:23 Jan 30 12:09:59 syncloud sh[327]: XMT: | X-- Request renew in +3600 Jan 30 12:09:59 syncloud sh[327]: XMT: | X-- Request rebind in +5400 Jan 30 12:09:59 syncloud sh[327]: XMT: Solicit on eth0, interval 121660ms. Jan 30 12:09:59 syncloud dhclient[784]: XMT: Solicit on eth0, interval 121660ms. Jan 30 12:09:59 syncloud nginx[4096]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:09:59 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:09:59 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:09:59 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:10:03 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:10:03 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:10:03 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:10:03 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:10:19 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:10:19 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:10:19 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - - [30/Jan/2022:12:10:19 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15" Jan 30 12:10:29 syncloud nginx[4095]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:10:29 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:10:29 syncloud nginx[900]: syncloud nginx: 192.168.178.30 - [30/Jan/2022:12:10:29 +0000] "PROPFIND /remote.php/dav/files//SyncMini HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.0git (build 8401) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:10:33 syncloud nginx[4096]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:10:33 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)" Jan 30 12:10:33 syncloud nginx[901]: syncloud nginx: 192.168.178.31 - [30/Jan/2022:12:10:33 +0000] "PROPFIND /remote.php/dav/files//SyncMac HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

Can you help?

cyberb commented 2 years ago

can you run snap install nextcloud and post the full output?

Morgendorfferr commented 2 years ago

Sure:

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>) root@syncloud:~#
cyberb commented 2 years ago

ok, can you as a test, deactivate your external disk and then install nextcloud?

Morgendorfferr commented 2 years ago

It worked. Can I activate the external drive?

cyberb commented 2 years ago

you can try, I think the problem is that you have too many files on your storage and it takes more than 10 minutes to fix permissions, can you run this:

time find /data/nextcloud -maxdepth 3 | wc -l
Morgendorfferr commented 2 years ago

I activated external disk in settings, it shows up there now. The result of the time command is:

root@syncloud:~# time find /data/nextcloud -maxdepth 3 | wc -l 98

real 0m0.739s user 0m0.000s sys 0m0.061s

The result of file scan:

root@syncloud:~# snap run nextcloud.occ files:scan --all Starting scan for user 1 out of 1 () Home storage for user not writable Make sure you're running the scan command only as the user the web server runs as +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 0 | 0 | 00:00:00 | +---------+-------+--------------+

cyberb commented 2 years ago

do you see your files in /data/nextcloud/[user]/files ? did you activate the device under the same user as last time? mount | grep external

Morgendorfferr commented 2 years ago

Yes, I see the files in Terminal and in Files Browser. I changed nothing, I can access nextcloud with my old user credentials. But there I don’t see the files.

root@syncloud:~# mount | grep external /dev/sdb1 on /opt/disk/external type ext4 (rw,relatime,data=ordered)

Morgendorfferr commented 2 years ago

I just ran the filescan again (after accessing nextcloud). Result:

root@syncloud:~# snap run nextcloud.occ files:scan --all Starting scan for user 1 out of 1 (***) +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 6 | 28 | 00:00:01 | +---------+-------+--------------+

But these are only the sample files.

cyberb commented 2 years ago

ls -la /data

Morgendorfferr commented 2 years ago

root@syncloud:~# ls -la /data lrwxrwxrwx 1 root root 18 Feb 4 13:25 /data -> /opt/disk/external

cyberb commented 2 years ago

Nothing inside /data/nextcloud? Maybe with different user? Can you deactivate it and explore on your PC? Are you saying all files are gone?

Morgendorfferr commented 2 years ago

No, they are all there:

root@syncloud:/data/nextcloud/***# ls -la total 28 drwxrwxrwx 7 nextcloud nextcloud 4096 Nov 6 10:39 . drwxrwxrwx 6 nextcloud nextcloud 4096 Nov 1 17:09 .. drwxrwxrwx 2 nextcloud nextcloud 4096 Jun 25 2021 cache drwxrwxrwx 15 nextcloud nextcloud 4096 Dec 2 19:26 files drwxr-xr-x 5 nextcloud nextcloud 4096 Nov 6 10:39 files_trashbin drwxrwxrwx 7 nextcloud nextcloud 4096 Nov 11 19:46 files_versions drwxrwxrwx 2 nextcloud nextcloud 4096 Jan 30 18:52 uploads

Morgendorfferr commented 2 years ago

Nextcloud obviously uses the internal disk, although the external is shown as activated:

root@syncloud:/opt/disk/internal/nextcloud/***# ls -la total 16 drwxr-xr-x 4 nextcloud nextcloud 4096 Feb 4 13:44 . drwxrwx--- 6 nextcloud nextcloud 4096 Feb 4 13:42 .. drwxr-xr-x 2 nextcloud nextcloud 4096 Feb 4 13:44 cache drwxr-xr-x 5 nextcloud nextcloud 4096 Feb 4 13:44 files

cyberb commented 2 years ago

ok, can you fix permissions:


chown -R nextcloud. /data/nextcloud
cyberb commented 2 years ago

and then scan again:


snap run nextcloud.occ files:scan --all
cyberb commented 2 years ago

check nextcloud data dir:

snap run nextcloud.occ config:system:get datadirectory
Morgendorfferr commented 2 years ago

still internal:

root@syncloud:~# chown -R nextcloud. /data/nextcloud root@syncloud:~# snap run nextcloud.occ files:scan --all Starting scan for user 1 out of 1 (***) +---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 6 | 28 | 00:00:01 | +---------+-------+--------------+ root@syncloud:~# snap run nextcloud.occ config:system:get datadirectory /opt/disk/internal/nextcloud

cyberb commented 2 years ago

Nextcloud should actually react to disk activation (I will test that) For now can you remove/install nextcloud to see if that causes it to start using external disk?

Morgendorfferr commented 2 years ago

Install does not work. Same as before:

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>)
cyberb commented 2 years ago

Ok, something is wrong with disk I guess

cyberb commented 2 years ago

do you have a separate disk to test?

Morgendorfferr commented 2 years ago

Yes, it worked with an old USB stick.

root@syncloud:~# snap run nextcloud.occ config:system:get datadirectory /opt/disk/external/nextcloud

So I guess, the fault is on my hardwares side.

But when I check the disk with diskutil it seems to be oK. But I can’t mount it with a Mac. Do you have any idea if and how it is possible to rescue data?

cyberb commented 2 years ago

if you can actually see files when you activate it with Syncloud, you can try one thing:

  1. Install Syncthing on Syncloud
  2. Install Syncthing on another PC (Mac?)
  3. Try to sync files from Syncloud device to another PC. https://github.com/syncloud/platform/wiki/Backup#automatic-data-backup

If you cannot read then you probably need one of these tools (PhotoRec I used successfully in past in the similar situation) https://www.tecmint.com/photorec-recover-deleted-lost-files-in-linux/

Morgendorfferr commented 2 years ago

Many thanks for that. Syncthing is really great, but does not see the files inside directories of the external disk (a scan shows only the directories, no files). What works - but takes some time - is copying the files to the internal disk with command line and using Syncthing from there. Once I am done with that I will replicate my old external drive and try to sync it with syncthing to a new activated external drive.

One question related to that process: Do I need to format the external drive with the device or will it also work with a disk already formatted as ExFAT?

cyberb commented 2 years ago

No, you need a linux filesystem which supports permissions, like ext4.

Morgendorfferr commented 2 years ago

Ok, it works. The only remaining issue is that I can not install Pihole:

root@syncloud:/# snap install pihole error: cannot perform the following tasks:

  • Run install hook of "pihole" snap if present (run hook "install":

    2022/02/10 17:01:40 open /snap/pihole/210320405/config/platform.cfg: no such file or directory Traceback (most recent call last): File "/snap/pihole/210320405/meta/hooks/install", line 6, in installer.Installer().install() File "/snap/pihole/210320405/hooks/installer.py", line 56, in install self.install_config() File "/snap/pihole/210320405/hooks/installer.py", line 48, in install_config 'ipv4': check_output(['/snap/platform/current/bin/cli', 'ipv4']) File "/snap/pihole/current/python/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['/snap/platform/current/bin/cli', 'ipv4']' returned non-zero exit status 1 -----)

But I guess that is a new issue, and this one is closed.

Many thanks for your help, I really learned a lot in the process about the device I am using every day.