-
Notifications
You must be signed in to change notification settings - Fork 36
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
cd: /data/compose/62: No such file or directory #85
Comments
I'm guessing they're all started with portainer? I've tried to look into how I could support containers started with portainer, but no luck yet. @lockheed - please confirm if they're started with portainer. |
They are all created as portainer stacks, not sure if they are "being started" by portainer. |
Yeah, thats it I'm afraid. Sorry I can't help you with that, there's a few other issues open about portainer. I'll close this one, as there's nothing new. |
Duplicate of #40 |
What are the chances/timeline to get it fixed? |
No timeline and slim chances. Never used either but from what I could tell when reading quickly it seems like it should work. |
it seems like maybe mapping Portainer's data directory to /data would fix this. or having a parameter in dockcheck.sh that let you provide the path to wherever you have the data directory mapped. I'm sure there is more nuance in there somewhere that is less obvious to me. |
I set a symbolic link at /data that points to my portainer container's /data map. |
That's interesting! I dont have time to check it right now, will try to run a VM and test some stuff when I can. But maybe you could check errorCheck.sh and paste what it spits out? You dont need to run it on your whole stack, just test some containers and see |
I've been labbing a little with this in a VM now, and while I can write some (ugly, will clean) logic to do a few checks and rewrites the path if a container has the portainer structure If I added something to stop+rm the container and then recreate it, it's not managed by Portainer anymore when it gets up. My testing modifications have been something like this: ## Added this before line 314, will only work if your portainer container is called exactly "portainer"
PortPath=$(docker inspect -f '{{ range .Mounts }}{{ if eq .Destination "/data" }}{{ .Source }}{{ end }}{{ end }}' portainer)
if [[ $ContPath =~ ^/data.* ]] ; then
ContPath=${ContPath/#\/data/$PortPath}
fi
## modified this on line 318 (322 after the addition above)
if [[ $ContConfigFile = '/'* ]] ; then
CompleteConfs=$(for conf in ${ContConfigFile//,/ } ; do $conf=${$conf/#\/data/$PortPath} ; printf -- "-f %s " "$conf"; done)
else If this is something I'll implement I'll probably clean it some more :) But for testing. Edit: |
As a workaround, map your files from the docker host into the dockge container, then setup a cron on the host to run it using docker exec. docker compose volume additions for dockage:
Cron job setup on host:
I didn't try it, but you could alternatively use something like https://github.com/mcuadros/ofelia to run the "cron job" within docker itself. |
I tried to run this and got the following error on adguardhome. Any idea what can be the cause?
The text was updated successfully, but these errors were encountered: