Agent gets http code 500 after perfectly 10 minutes of running, and (presumably) shutsdown later without logging. #4645
-
Hello! I have a droplet running cloudron and installed the wp-server from their app store. Setting up the agent was a painful road, mainly because of the ports and configs, but after all this hard work, it finally starts. Only problem now, starting the agent manually, running a pipeline(doesnt think it affects this problem but maybe) and waiting for 10 minutes after starting, it gives me this beautiful cryptic error: From the Agent's logs:
From the server's logs:
After all of this, woodpecker-agent still seems to work, can run pipelines etc. But checking back on it after a couple of hours, It... dies, without error message. The container will say its, healthy, its running, but no response, no Healthcheck grpc requests... nothing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Looks like a duplicate of #4503 |
Beta Was this translation helpful? Give feedback.
-
@Chri6s Thanks for the ideas! Restarting every 10 minutes will not work so super well for me because I have some pipelines that need a bit more time than that.
I used a dedicated repo for that to not clutter other projects with pipelines every few minutes. Seems to work well so far. Still, would be better if the agent could do that by itself. Also, I assume this has to be configured so that every agent runs this cron job, in case one has multiple agents. |
Beta Was this translation helpful? Give feedback.
@Chri6s Thanks for the ideas! Restarting every 10 minutes will not work so super well for me because I have some pipelines that need a bit more time than that.
Though, I experimented with the cron feature and have now a cron job that just echos some message every 7 minutes-ish. That seems to do the trick, the agent continues to respond after 10 minutes and the http 500 code doesn't show.
More complete example:
*/7 * * * *
I used a dedicated repo for that t…