mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-06 00:18:38 -05:00
[GH-ISSUE #760] Failed to validate run directory on host after stack write (canonicalize error) #2408
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ragchuck on GitHub (Aug 23, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/760
I've described my use case in this https://github.com/moghtech/komodo/issues/758#issuecomment-3217274733.
stack_dir = "/opt/stacks".komodo:komodouser ownership of the directory.root_directory = "/home/komodo")Whenever I try to "Pull Images" I get the following error:
It's hard to track the error down.
From what I can see is that the canonicalize here is unable to access the file path.
Based on the canonicalize documentation, the Unix equivalent is
realpath:When I try to perform
realpath /opt/stacks/repo_namewith the komodo user it works.Doesn't the service run with the users permissions? I mean the user is part of the docker group and it works.
/home/komodo/.config/systemd/user/periphery.service
Not sure what else I could try.
Sure, I could migrate everything to the
/etc/komododirectory, but I my approach should also work, right? I also think, this is a situation to learn something new. Maybe somebody can me point me to the error in my thought process.@mbecker20 commented on GitHub (Aug 24, 2025):
It looks like an ownership issue, Komodo user will need rw permission under /opt/stack too. Did you apply ownership recursively (-R)?
@ragchuck commented on GitHub (Aug 30, 2025):
Sorry for not responding earlier. Yes, all files under the directory in question have the owner and group set. Though, some files need to be for root, because some containers are not rootless (yet).
@codeshell commented on GitHub (Sep 8, 2025):
The reason might be rather trivial.
@ragchuck it is slightly different because you hit error 13 instead of error 2, but it's worth a try, I guess.
I hit a similar roadblock when adding a new server via peripery running as (--user) service.
Task Error: Stage 1 of 1 | 0.0 seconds
Pull Imagesfrom the Stack in Komodo, therepos_dirfolder was created but empty and the task failed.Redeployfrom the Stack in Komodo, thestacks_dirwas successfully created but empty and the task failed.Thus most likely not a permission problem.
Only then it occurred to me that the host system (UGOS in my example) might not have
gitinstalled.So for me this error was fixed by running the following on the server with the "seemingly misbehaving" periphery:
I double checked the Komodo documentation and the periphery install logging. There is no test for it as dependency or at least a warning that as long as
gitis missing on the remote server some features cannot be used. Maybe this could be included somewhere because it is so obvious that you might forget to check this on a non standard system :)@mbecker20 commented on GitHub (Sep 8, 2025):
@codeshell thanks for report, there is an issue open for this #797
@ragchuck commented on GitHub (Sep 8, 2025):
So, it worked after I also changed the owner of the parent directory /opt/stacks.
It's not clear to me, why it also needs the parent's directory the same owner.
@mbecker20 commented on GitHub (Sep 8, 2025):
IIRC it needs write on parent folder in order to make a new folder inside it, this happens when you clone new stack.