I’m trying to update Nextcloud via the terminal to understand why it does not work. All goes well, but then I run into this issue:
$ snap refresh nextcloud
error: cannot perform the following tasks:
- Run post-refresh hook of "nextcloud" snap if present (run hook "post-refresh":
-----
Traceback (most recent call last):
File "/snap/nextcloud/current/python/usr/local/lib/python3.8/site-packages/syncloudlib/application/connection.py", line 21, in api_post
raise Exception('unable to connect to {0} with error code: {1}'.format(socket, response.status_code))
Exception: unable to connect to http+unix://%2Fvar%2Fsnap%2Fplatform%2Fcommon%2Fapi.socket with error code: 500
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/nextcloud/597/meta/hooks/post-refresh", line 7, in <module>
Installer().post_refresh()
File "/snap/nextcloud/597/hooks/installer.py", line 92, in post_refresh
self.install_config()
File "/snap/nextcloud/597/hooks/installer.py", line 56, in install_config
storage.init_storage(APP_NAME, USER_NAME)
File "/snap/nextcloud/current/python/usr/local/lib/python3.8/site-packages/syncloudlib/application/storage.py", line 5, in init_storage
return api_post('/app/init_storage', data={"app_name": app, "user_name": user})
File "/snap/nextcloud/current/python/usr/local/lib/python3.8/site-packages/syncloudlib/application/connection.py", line 23, in api_post
raise Exception('unable to connect to {0}'.format(socket), e)
Exception: ('unable to connect to http+unix://%2Fvar%2Fsnap%2Fplatform%2Fcommon%2Fapi.socket', Exception('unable to connect to http+unix://%2Fvar%2Fsnap%2Fplatform%2Fcommon%2Fapi.socket with error code: 500'))
-----)
The Nextcloud app is running fine - just the upgrade fails. Any ideas on how to resolve this?
Thanks, Boris, for that - that is probably part of the problem. However, when I follow the instruction for upgrade to 23, I get the same error message as in my original post…