Skip to content

Cannot enable apps through UI in 28.0.4 #2193

Closed as not planned
Closed as not planned

Description

@te-online

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.

Activity

  1. joergmschulz commented on Apr 16, 2024

    @joergmschulz
  2. tzerber commented on Apr 29, 2024

    @tzerber
    Contributor

    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).

  3. joshtrichards commented on May 6, 2024

    @joshtrichards
    Member
  4. githubbbie commented on Aug 22, 2024

    @githubbbie

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions