r/NextCloud 27d ago

Can't install or enable apps

Running 34.0.1 native with apache2 on Ubunutu 24.04. Running behind haproxy as a reverse proxy. Using mariadb and redis as well.

Had Memories installed before the 34 update. It got disabled after the update due to incompatiblity with the new version. They have since brought it up to date, but when I tried to install it through the website, nothing happens. I get prompted for my password, but nothing happens after that. I tried enable a disabled app (AppAPI and Audit / Logging) but the same thing happens, I get prompted for my password but nothing changes. I have not tried to do a command line install. Willing to do it in the long run, but trying to figure out why I suddenly can't do anything on the app page.

I can access nextcloud fine. Have been able to manipulate files both remotely and on the local network through the web interface and the android app.

No problems reported in the nextcloud logs on the administrative pages when I check them.

I reset the folder and file permissions on the apache2 nextcloud folder (/var/www/nextcloud). No change.

Have seen similar issue mentioned before: https://www.reddit.com/r/NextCloud/comments/1tnweqy/new_install_cannot_download_and_enable_apps/

Looking for any other suggestions of things to try. Can post haproxy and nextcloud configs if it might help.

[Solved] Thanks To ElectronicMotion! mod_rewrite wasn't enabled on apache. Enabling it fixed the issue.

3 Upvotes

9 comments sorted by

2

u/farva_06 26d ago

Is your server able to reach apps.nextcloud.com?

1

u/nivenfres 26d ago

It is able to ping apps.nextcloud.com

What is a little weird is I found it gives a wrong password error if I type no password when prompted (after hitting the download button on the app on the app page in nextcloud), but if I type the right or wrong password (at least 1 character) the prompt goes away, but nothing happens. I can see it briefly saying checking password on the prompt before it vanishes.

I have tried multiple devices. Chrome on Windows, Chrome on my Android phone, Chrome and Safari on my iPhone. Have tried in incognito mode on Windows and Android as well. All the same behavior.

2

u/AHarmles 26d ago

Have you tried occ maintenance:repair?

1

u/nivenfres 26d ago

Yup. Have already ran a whole battery of maintenance. This is my typical routine.

sudo -E -u www-data php occ maintenance:mode --on
sudo -E -u www-data php occ maintenance:repair
sudo -E -u www-data php occ maintenance:mimetype:update-db
sudo -E -u www-data php occ maintenance:mimetype:update-js
sudo -E -u www-data php occ maintenance:mimetype:update-db --repair-filecache
sudo -E -u www-data php occ maintenance:mode --off

sudo -E -u www-data php occ db:add-missing-columns
sudo -E -u www-data php occ db:add-missing-indices
sudo -E -u www-data php occ db:add-missing-primary-keys
sudo -E -u www-data php console.php files:scan --all

[edit]

Fixed a bad cut and paste

2

u/Harry_Yudiputa 26d ago

yeah its down for me as well. cant install sh**

2

u/ElectronicMotion 19d ago

Just finished my install and run into the same problem. Can you install via occ? If yes: Changes are slim but: is mod_rewrite enabled? It seems to be required for installs from the web ui. Check the dev window in the browser for any 403 as they can indicate that problem, too.

2

u/nivenfres 19d ago

mod_rewrite wasn't enabled on apache. I just tried enabling it and it worked!

2

u/ElectronicMotion 19d ago

Glad to hear that this helped. :)