Giter Site home page Giter Site logo

Comments (4)

tzerber avatar tzerber commented on September 22, 2024 1

I see a mix of Windows volumes and Linux volumes in the same compose file. On WSL2 the path to C:\ is /mnt/c/. Can you please fix your volumes and try again ? I am using WSL2 to test most of the changes or generic nextcloud experiments and never had any issues in all variants.

EDIT: i just ran your setup without the volumes and it gave me no errors.

nextcloud-postgres  | 2024-04-25 18:20:45.715 CEST [1] LOG:  database system is ready to accept connections
nextcloud           | New nextcloud instance
nextcloud           | Initializing finished
nextcloud           | => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
nextcloud           | [25-Apr-2024 16:20:47] NOTICE: fpm is running, pid 1
nextcloud           | [25-Apr-2024 16:20:47] NOTICE: ready to handle connections

Edit2: You are also probably missing some configs on WSL2.

Add this to /etc/wsl.conf

[automount]
root = /mnt
options = "metadata"

Then open cmd as admin and type wsl --shutdown (or reboot your PC). Then reopen wsl, restart docker and it should be fine. You can google around how to make docker service autostart on wsl startup.

image

from docker.

tzerber avatar tzerber commented on September 22, 2024 1

I believe the fella got his issue resolved. On WSL under Windows there's that problem with permissions on files and it just behaves a bit differently than a full Linux.
I managed to reproduce it when I answered before and the problem lies in /etc/wsl.conf, you need to add this

options = "metadata"

as per my answer above. I'd say this issue is for closing.

from docker.

joshtrichards avatar joshtrichards commented on September 22, 2024
  - "C:/Users/NAS/Docker/Volumes/nextcloud/postgres:/var/lib/postgresql/data"

[...]

Insufficient privilege: 7 ERROR: permission denied for table oc_migrations

Can't reproduce this.

There's basically no way for the privileges to be wrong with that particular Compose file (assuming truly starting from scratch), since POSTGRES_PASSWORD is literally the PostgreSQL superuser:

https://github.com/docker-library/docs/tree/master/postgres#environment-variables

The Nextcloud installer initially creates an oc_blah* account with less privileges for Nextcloud to use then everything else happens within that account (and that account is what gets saved in your initial config.php).

Best guess: you started a prior postgresql container, stopped it, but didn't clear out the contents of C:/Users/NAS/Docker/Volumes/nextcloud/postgres in between test runs. But that's just a wild guess.

There's no need to speculate though. You can check the postgresql container. It will indicate whether it's starting from scratch or not, example.

from docker.

joshtrichards avatar joshtrichards commented on September 22, 2024

Gotcha.

I had to look that up since I haven't messed with WSL2 in awhile. :-) For future reference for those that end up here:

https://learn.microsoft.com/en-us/windows/wsl/wsl-config#automount-options

And, thanks @tzerber for looking into these matters to help sort them out!

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.