Comments (4)
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.
from docker.
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.
- "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.
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)
- [Bug]: Can't upgrade because of "Segmentation fault" (and server is not running) HOT 5
- Version 28 is marked as ``stable`` but it should be 29 by now HOT 3
- Where to find Docker 26 version HOT 2
- The /var/www/html/ folder is completely empty in the latest 29 version of nextcloud HOT 5
- The latest version of nextcloud does not automatically connect to the database HOT 1
- Clarify versioning/update policy in the README
- Nextcloud prohibits me from recreating a user that I deleted. HOT 1
- Intégrer nextcloud dans organizr HOT 1
- Rolling tags for upstream stable tracking HOT 3
- On upgrade: `Warning: /var/www/html/config/….config.php differs from the latest version of this image at /usr/src/nextcloud/config/….config.php` HOT 10
- This image does not have a self-signed SSL certificate! HOT 3
- Partially automate 100% deploy percentage detection HOT 2
- feature request: add missing S3 related enviornment variables
- Split `TRUSTED_PROXIES` and `OVERWRITE*` out of Apache RP section in README out so it's clear it's not Apache specific
- Maybe document subfolder based access (example)
- Replace custom nginx image with bind mount HOT 5
- Feature request: Add opencontainer labels to Docker images HOT 1
- [bug] Internal Server Error after installation of 29.0.5 HOT 12
- BUG] ERROR: relation "oc_appconfig" does not exist at character 57 with new install of latest version ONLY HOT 3
- Request: Add occ to PATH HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.