mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
Pull Stack fails with internal server error #170
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 @gorootde on GitHub (Jan 3, 2025).
I just deployed the komodo sqlite compose file without any changes. I added my first stack from a git repository, and when clicking the "Pull Images" button, the action is reported as 'Failed'.
This is the information that is show on the UI:
Docker logs for core and periphery container:
@mbecker20 commented on GitHub (Jan 3, 2025):
Hm, does it work after you Deploy? There may be a case with incomplete error handling for https://docs.rs/komodo_client/latest/komodo_client/api/execute/struct.PullStack.html. It is supposed to show the reason in the Update message, other than basically just saying "failed".
Does the compose file use relative file mounts? See https://github.com/mbecker20/komodo/discussions/180.
If this is not the case, I can take a look at your compose file to fix the issue in the short term.
@gorootde commented on GitHub (Jan 3, 2025):
No relative file mounts. Also doesn't work after I (Re-)deployed it. It immediately fails without any reason given.
All other git operations seem to be working fine (e.g. I tested editing the compose in webui and I can see the commit in git)
compose file:
And this is the stack:
@mbecker20 commented on GitHub (Jan 3, 2025):
If you click on the "Deploy" update, you see the full logs, can you send these?
@gorootde commented on GitHub (Jan 3, 2025):
Sure, here is a screenshot:
@mbecker20 commented on GitHub (Jan 3, 2025):
That looks successful? And the stack appears to be running too. What is the issue?
@mbecker20 commented on GitHub (Jan 3, 2025):
I guess you mentioned it was PullStack that didn't work. What is the Update log showing for PullStack?
@gorootde commented on GitHub (Jan 3, 2025):
Yes pull stack always fails (immediately!). This is all I can see:
@mbecker20 commented on GitHub (Jan 3, 2025):
Ok, I see that this is pretty much what you said originally. Thanks for clarifying all those points. I believe this is a bug.
@mbecker20 commented on GitHub (Jan 3, 2025):
Just adding here, I cannot reproduce using
systemdmanaged Periphery (running outside docker container).Basically the same setup that I can see. Private git repo based stack. And Pull is working.
@gorootde commented on GitHub (Jan 4, 2025):
Meanwhile I see my log getting flooded with messages similar to these:
Not sure if it is related, but after a few hours of these messages the webui is also not responding anymore. After I restart the core container it works again for another few hours.
@mbecker20 commented on GitHub (Jan 4, 2025):
Komodo Core is actually 2 parts: Backend API, and client side frontend. There is no server side rendering. So, backend container actually doesn't dictate the responsiveness on the UI side. Maybe with that knowledge you can have better idea of what is happening there. For example, what happens on page refresh? If you check frontend (browser) console logs / network tab, you may see API requests that are failing with a better reason.
In terms of this pull issue, can you try Systemd managed Periphery agent? See here: https://github.com/mbecker20/komodo/tree/main/scripts. Even if you just use it temporarily, like I mentioned this process is working for me and the only difference I can see is I don't run Periphery in container.
@joehand commented on GitHub (Jan 15, 2025):
I'm getting some pull stack errors using systemd periphery, but only on some stacks. I thought maybe it was the relative path but not sure changing things is fixing stuff. Happy to see if I can debug. Its only happenings on ~2 of my ~15 stacks, but can't quite tell what is unique about them (they are on two separate servers as well; other pulls are fine on those servers).
The error is the same:
The API requests all return
200, this is all I see with the pull failure:This is all I see in journalctl:
Here is one pull that is failing, Outline. I use
$DOCKER_DATAand other similar paths elsewhere, so not sure that is it. I have quite a few other services on this server and they all pull fine.Stack config:
I'm able to pull directly fine.
The other stack failing is my main komodo server stack. Its a bit more complex so not sure where to start with that. But here is the compose files.
Details
main.compose.yamlcaddy/compose.yamlpocket-id/compose.yamlkomodo-core/compose.yamlStack config:
@bpbradley commented on GitHub (Jan 31, 2025):
FYI just bumping because I am having the same issue and I am using periphery in systemd, so I don't think it is related to it being docker/systemd periphery.
logs from periphery with
sudo -u komodo journalctl --user -u periphery@bpbradley commented on GitHub (Jan 31, 2025):
More data --
It does appear to be related to periphery and not core, which is probably obvious. It is very unclear what the specific variable is, but this is only happening on one of my periphery deployments (the one on my internal server, i.e. the same host as komodo core). The remote agents, which were installed in the exact same manner (I have an ansible role that does this, so it should be identical on every host) are not showing the issue.
Perhaps it is some weird networking thing when communicating over internal docker networks? Everyone in this thread appears to be using a reverse proxy and thus communicating through some kind of docker network to reach periphery. Not sure if that means anything, but it is a thought.
edit:
Another variable -- this may be a trivial data point but perhaps offers some insight. It does not fail when pulling an image that doesn't actually have to pull an image (i.e. a compose stack with a build context rather than an image). Not sure that is meaningful or not.
@plasmus commented on GitHub (Feb 5, 2025):
Same Issue. More info, maybe of help.
Running periphery as a systemd service.
Everything works pulling and deploying from a UI defined stack.
When linking to a git repo and trying to pull, I did notice that the compose.yaml file was not moved over into the stacks location.
The only place that I can see the compose.yaml is in the repo-cache.
Is the compose.yaml file supposed to be moved into the stack location before running the pull?
@mbecker20 commented on GitHub (Aug 26, 2025):
Is anyone still having this issue?
@bpbradley commented on GitHub (Aug 26, 2025):
Resolved for me. Has been working correctly for the last several releases at least.