Nextcloud.occ - cannot communicate with server

I have Nextcloud installed through snap on RHEL8.10. It’s been running for two years. There was a problem with RHEL patching, and I ended up restoring the server from a snapshot. Unfortunately, I can no longer access via http or https. (Of note here: the NICs in the restoration were different names. I fixed this via the console, and I can ssh successfully to the server)

On the command line, I do not see httpd running or listening to its usual ports. Maybe Nextcloud is stuck in maintenance mode? Who knows, because the occ command refuses to run.

nextcloud.occ <any subcommand!> just hangs for a few minutes and then responds:
“error: cannot communicate with server: timeout exceeded while waiting for response.”

So all of the things I might be able to do with occ are not available. Furthermore, there is nothing in the logs! This is a little short on info, I know, but none of the nextcloud.occ commands are available.

Any ideas?

@scubamuc is this something for you? :wink:

1 Like

hey @cauchy33 welcome to the community

first off some requirements have not been met, but its been running for two years…

can you be more precise please

did you follow this procedure How to backup, restore and migrate Nextcloud snap ?

post the output of snap list and then sudo snap services nextcloud best would be to run the debugging script and post the output here

if its just a matter of OCC not working, then;

Some systems don’t add /snap/bin to the $PATH. Try

sudo /snap/bin/nextcloud.occ

do check out Nextcloud snap wiki and support

1 Like