Nextcloud web UI not responding

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 34.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.5 LTS (GNU/Linux 6.8.0-149-generic x86_64)
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • 2 days ago
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • replace me
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • replace me

Summary of the issue you are facing:

nextcloud andriod app shows “server not available” and cannot connect to web UI via ddns URL

ddns resolves to correct external home IP when I ping

as far as I’m aware, nothing has changed in my setup - was all working fine beforehand

I can ssh to the server and have run apt-get update to no avail.

is there something I can run on the terminal to check status? thanks

I think my nextcloud log is here.. /var/snap/nextcloud/common/nextcloud/data/nextcloud.log

Steps to replicate it (hint: details matter!):

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.
  • And what happens if you open the URL in a browser (e.g. Firefox or Chrome) on your Android device, rather than in the app?
  • Is your Android device using Wi-Fi or a 4G/5G network during the test?

Hey @quizzy, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you’re having issues with your Nextcloud snap automatic update. The following steps will get you up and running again… but you’ll need to discover some log reference to resolve the cause of the failed automatic update.

1. Check your logs to discover the cause of the update failure

2. Revert to last known good revision

Snaps were designed to have a robust upgrade story. In the case of the Nextcloud snap, every time it refreshes (updates), it takes a snapshot of the database and other version-specific things (not the raw data though, e.g. pictures and documents) and holds them alongside the old revision of the snap.

sudo snap revert nextcloud

With that command, you should be back up and running right at the moment before the automatic update happened.

see How to revert Nextcloud snap after failed update

Backup your running snap now!

This would be the perfect occasion to create a complete Nextcloud snap backup including configuration, apps, certificates, database and data.

  • stop Nextcloud snap sudo snap stop nextcloud
  • save Nextcloud snap sudo snap save nextcloud
  • start Nextcloud snap sudo snap start nextcloud
  • copy/move snapshot (*.zip) in /var/lib/snapd/snapshots to wherever

see How to backup, restore and migrate Nextcloud snap

3. Resolve automatic update issues

A prevalent cause of automatic update issues is attributed to incompatible third party apps due to snap confinement. Any apps requiring access to executable binaries will cause automatic updates to fail since these are not included in the snap. Disabling the misbehaving apps frequently resolves the automatic update issue. Sometimes apps can be re-installed or re-enabled after successful manual refresh (update)… but issues may recur during the next automatic update.

If your Nextcloud interface is not available or your Nextcloud is in “Maintenance mode”, you can disable apps using the OCC management console or command line:

  1. List apps: sudo nextcloud.occ app:list
  2. Disable app: sudo nextcloud.occ app:disable <appname>
    • Remove app: sudo nextcloud.occ app:remove <appname>
  3. Enable app: sudo nextcloud.occ app:enable <appname>

see How to manage automatic updates in Nextcloud snap

4. Manually update = refresh Nextcloud snap

sudo snap refresh nextcloud

see How to manage Nextcloud snap with snap

from the phone (4g/ external) to ddns url - site cannot be reached/ refused to connect

from phone (wifi/ home network) to url and local IP - same as above

from home laptop - tab in chromium sits spinning to the ddns url/ refuse to connect to local IP

it’s annoying as you and some others helped me only a couple of weeks ago to resolve another issue and everything seemed to be ok

As it’s not just the app that’s affected, nor is it just external access to the Nextcloud server, you should do what @scubamuc has recommended

Hey @quizzy relax, don’t get annoyed… take a deep breath, have a cup of tea, read the thread that solved your issues last time or follow the tips above :smile:

we’ll get you up and running soon :+1:

sorry that came across badly - not annoyed at all and really appreciate the quick help :slight_smile:

actually doing a little initial digging I see this for snap services which doesn’t look right..

$ snap services
Service Startup Current Notes
lxd.activate enabled inactive -
lxd.daemon enabled inactive socket-activated
nextcloud.apache disabled inactive -
nextcloud.logrotate disabled inactive -
nextcloud.mysql disabled inactive -
nextcloud.nextcloud-cron disabled inactive -
nextcloud.nextcloud-fixer disabled inactive -
nextcloud.php-fpm disabled inactive -
nextcloud.redis-server disabled inactive -
nextcloud.renew-certs disabled inactive -

I’m guessing the services shouldn’t be disabled??

I tried sudo snap start --enable nextcloud but things still look the same

I’ve not really looked at snap troubleshooting before so learning as I go..

Hey @quizzy take a look at this:

https://github.com/nextcloud-snap/nextcloud-snap/issues/3684

and if you’re struggling feel free to open an issue on our GitHub

thanks very much - I’ll have read and digest.. :+1:

actually, can I just check something ?

$ snap list nextcloud --all
Name Version Rev Tracking Publisher Notes
nextcloud 34.0.5snap3 54531 latest/stable nextcloud✓ disabled
nextcloud 34.0.5snap3 54589 latest/stable nextcloud✓ -

based on this, the latest rev should not be disabled but the snap services above shows it is?

maybe I’m misunderstanding though..

also, fwiw..

$ snap version
snap 2.77.1+ubuntu24.04
snapd 2.77.1+ubuntu24.04
series 16
ubuntu 24.04
kernel 6.8.0-149-generic
architecture amd64

sudo snap revert nextcloud

should switch back to nextcloud 34.0.5snap3 54531 instead of nextcloud 34.0.5snap3 54589

thanks! I reverted and we are back in business :slight_smile:

$ snap services
Service Startup Current Notes
lxd.activate enabled inactive -
lxd.daemon enabled inactive socket-activated
nextcloud.apache enabled active -
nextcloud.logrotate enabled inactive timer-activated
nextcloud.mysql enabled active -
nextcloud.nextcloud-cron enabled active -
nextcloud.nextcloud-fixer enabled active -
nextcloud.php-fpm enabled active -
nextcloud.redis-server enabled active -
nextcloud.renew-certs enabled active -

$ snap list nextcloud --all
Name Version Rev Tracking Publisher Notes
nextcloud 34.0.5snap3 54531 latest/stable nextcloud✓ -
nextcloud 34.0.5snap3 54589 latest/stable nextcloud✓ disabled

so a bit of a noobie question… what happens now? will the next release automatically update via snap as before?

After running sudo snap revert nextcloud, the affected faulty revision is marked as ‘bad’ by snapd. This means that the same new revision will be skipped during automatic background updates (refreshes).

Future new releases will work as normal: as soon as the developers release a newer revision or major version, the automatic Snap update mechanism will kick in again and update Nextcloud as usual

really useful info, thanks!

so for now, sit tight and hopefully the next update does not cause an issue.

I learned some new stuff too :slight_smile:

@scubamuc thanks also for your help in pointing me in the right direction

The only thing you could do is submit a bug report for 54589. Otherwise (depending on the time of day where you are), you could crack open a cold beer or a glass of wine and enjoy the evening. :wink:

@quizzy glad to hear you’re back on track :+1:

we released Nextcloud snap 35.0.2snap1 yesterday, so if you’ve backed up your current snap as mentioned above, you could refresh your snap sudo snap refresh nextcloud to get the latest Nextcloud Hub 26 Summer (35.0.2)

remember not to get impatient, as Hub 26 Summer includes some Database changes… but don’t worry, your snap will take care of that all on its own.

just got the update notification on the phone app!

$ snap list nextcloud --all
Name Version Rev Tracking Publisher Notes
nextcloud 34.0.5snap3 54531 latest/stable nextcloud✓ disabled
nextcloud 35.0.2snap1 54682 latest/stable nextcloud✓ -

everything seems to be working ok..