Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install: This app cannot be enabled because it makes the server unstable #678

Closed
debugger24 opened this issue Sep 2, 2023 · 12 comments

Comments

@debugger24
Copy link

debugger24 commented Sep 2, 2023

Unable to install: This app cannot be enabled because it makes the server unstable

Nextcloud Version: 27.0.2
user oidc Version: 1.3.3

Where can I find more details about the error ?

image
@ghostklart
Copy link

having the same issue with:
nextcloud (docker): 28.0.4
open id version: 5.0.2

@krair
Copy link

krair commented May 27, 2024

Same issue here. Nothing in the logs to guide me as to why.

Currently on the production-fpm tag which puts me at 28.0.5 and trying to use version 5.0.2 of this app. Any tips?

@julien-nc
Copy link
Member

julien-nc commented May 27, 2024

@ghostklart @krair Have you tried installing/enabling another app? I think this is a NC 28 issue rather than a problem with this specific app.

@krair
Copy link

krair commented May 28, 2024

@julien-nc You're correct. It appears I can't install other apps as well. Any tips on where to poke around? I found this: nextcloud/server#45378 or is it something else? Perhaps upgrading to 28.0.6 will fix the issue...

@ghostklart
Copy link

@julien-nc I started from scratch and changed docker installation from linuxserver to official nextcloud, and storage from local mount to minio. Now working fine. So far, seems like issue was with storage permissions. But no exact errors in logs.

@krair
Copy link

krair commented May 28, 2024

Upgraded to 28.0.6. Still the same issue. Investigating further...

@krair
Copy link

krair commented May 28, 2024

Found the issue, it's working now. Apparently the bug has been fixed, but obviously still affecting me. nextcloud/server#44685

I created the temporary redirect for Traefik (my reverse proxy).

@susnux
Copy link

susnux commented Jun 10, 2024

This is not a bug but a faulty configuration of your reverse proxy.

Nextcloud is running on a webserver like Apache, if Apache is configure with DirectorySlash it will emit a redirect from some/url to some/url/.
This is done before Nextcloud can intercept the request.
If you just run Apache, this would be ok as the browser then would request some/url/ and Apache simply pass this to Nextcloud.

But if you run a reverse proxy on HTTPS that passes the requests to Apache using HTTP, then Apache will emit the redirect using HTTP (no "S"!).
So your reverse proxy has to rewrite the redirect (Location) header from HTTP to HTTPS.

NGinx does this by default (in most cases), see proxy pass
But e.g. Traefik does not do this, so you need to adjust your config.

@githubbbie
Copy link

Hmmm, running 29.0.1.1 and getting the error upon trying to enable apps:

Error: This app cannot be enabled because it makes the server unstable

image

$ cat /etc/lsb-release
DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"

Attaching my docker-compose.yml:
docker-compose.yml.txt

(remove the .txt to test)

My next step is to downgrade to version 28 and try to get Nextcloud running.

BTW, I am running this on localhost HTTP without any reverse proxy. Running: localhost:8080

@githubbbie
Copy link

Ok, confirm this bug is fixed in v28.0.9.1 with this docker.compose.yml:

docker-compose.yml.txt

@githubbbie
Copy link

githubbbie commented Aug 22, 2024

Consider rolling back the v29 series as STABLE or PRODUCTION ready at least for php-fpm and php-fpm-alpine with postgresql and mariadb, all tested and failed in this way.

@susnux
Copy link

susnux commented Aug 22, 2024

Ok, confirm this bug is fixed in v28.0.9.1 with this docker.compose.yml:

Please note that you are using the Community maintained docker image, so please report that issue here:
https://github.com/nextcloud/docker

The only officially supported installation method for docker is the all-in-one docker image:
https://github.com/nextcloud/all-in-one

@susnux susnux closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants