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

Cannot enable apps through UI in 28.0.4 #2193

Closed
te-online opened this issue Mar 30, 2024 · 4 comments
Closed

Cannot enable apps through UI in 28.0.4 #2193

te-online opened this issue Mar 30, 2024 · 4 comments
Labels

Comments

@te-online
Copy link

te-online commented Mar 30, 2024

Image tag

nextcloud:28.0.4-fpm-alpine

Problem

When trying to activate any app on Nextcloud's apps page, the following error appears:

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

A Content Security Policy error is logged in the console of the browser.

Refused to connect to 'http://localhost/apps/files/' because it violates the following Content Security Policy directive: "connect-src 'self'".

Reproduction steps / Setup

  • Check-out the repository and change to the tests folder.
    https://github.com/te-online/timemanager/tree/main/tests
  • Copy the .env.example to .env and add some values for the variables.
  • Change the image tag of the app container to the latest
  • Run docker-compose up -d, followed by docker exec $(docker ps -qf "name=app") sh -c 'chown www-data:root custom_apps'.
  • Navigate to localhost:8000 and try to activate any apps

At this point, I believe this is an issue with the configuration in this image, but it may also just be my proxy configuration that is messing with things. Apologies, if it's user error, but this config has been working for a long time.

I think it unlikely that it's a core server issue, because then it would likely have been caught in RC, this is why I open the issue here.

Background: I use this as my dev and testing setup and I can see some people on Reddit having the same issue, though they don't specify if they're using this container.

@joergmschulz
Copy link

joergmschulz commented Apr 16, 2024

see nextcloud/server#44685

@tzerber
Copy link
Contributor

tzerber commented Apr 29, 2024

see nextcloud/server#44685 (comment) . Works on my end, but keep in mind it's working on my setup, and mine is a bit weird one (two host acting as proxy for a bunch of other stuff).

@joshtrichards
Copy link
Member

Duplicate of nextcloud/server#44685
Closed by nextcloud/server#44939

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
@githubbbie
Copy link

Confirmed again this IS working for the latest version of the v28 series looks like: 28.0.9.1

Attaching my docker-compose.yml and hope this helps anyone:

docker-compose.yml.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants