Comments (1)
that message is clearly a permissions + ownership + existence issue, nothing wrong with the nextcloud compose file.
To solve: Make sure the directory exist, fix ownership + permissions of that dir AND its parent dir, delete the containers+non-persistent volumes.
Then you have a few things you should verify before running compose up:
- Instead of that line in caddy, to prevent issues arising in case Caddy actually requires several of the volumes of Nextcloud, I would recommend to test first with
volumes_from:
- nextcloud
I have updated the nextcloud.yml to reflect this: https://github.com/zilexa/Homeserver/blob/master/docker/Extras/nextcloud.yml#L18
This way you are absolutely certain the issue is not with Caddy since it has full access to all Nextcloud volumes required to serve content.
- Use the "config" argument instead of up. (see my main docker compose file, the command at the top) to verify the actual path of your $DOCKERDIR). You can then see the full path of the directories as they will all be parsed (including your . ) without actually doing anything (like a dryrun). Verify the paths are all correct.
Regarding the directory you use:
I think I did something wrong with the $DOCKERDIRECTORY variable, I'd just put "." to stay in my root directory (and be able to do data backup later)
I don't really understand what you mean, could you elaborate?
In my case, the docker dir for persistent volumes is: /home/username/docker
and each docker service has a subfolder in there, for example /home/username/docker/nextcloud
. Why are you putting the persistent volumes of a single docker service in your main dir? That will become a mess (plus gives you less ways to fix permissions).
For backup, you can easily backup your $HOME dir (which is /home/username) or your docker dir (which is /home/username/docker
). In my case both are seperate BtrFS subvolumes, making snapshotting instant, they become read-only automatically and allowing very fast incremental backup to backup disks. See my backup guide.
If you are actually using /root
, you have opened a can of worms and I can't really help you as permissions will be completely different, note you should not need to use /root
and you should not need to use sudo when you run docker commands.
from homeserver.
Related Issues (20)
- NFS Slow speed in one direction ? HOT 3
- Persistence of /proc/fs/nfsd/version setting HOT 2
- Orphaned link HOT 1
- www-custom.ini HOT 3
- question nextcloud HOT 6
- UPDATING DOCUMENTATION - STATUS HOT 3
- Problem with Unbound in docker-compose HOT 2
- Nextcloud questions HOT 2
- Adguard + Unbound setup HOT 4
- >> CHANGELOG << HOT 21
- Vaultwarden login HOT 4
- Low-Budget alternatives for Mainboards HOT 3
- 2023 - options? HOT 1
- Local proxy address works on server and wifi devices, but not on LAN HOT 3
- docker/readme.md is outdated HOT 1
- Error when creating datapools (and maybe mount points) HOT 3
- Port 80 overlap between Caddy and Adguard Home HOT 4
- Caddy reverse proxy not working for radarr HOT 4
- Filerun free isn't available for (new) users anymore HOT 4
- hotio.dev issue for various docker images
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 homeserver.