woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.32k stars 373 forks source link

Corrupted proc structure #645

Closed ChewingBever closed 2 years ago

ChewingBever commented 2 years ago

Component

server

Describe the bug

After running a few builds, I get the issue where the UI just shows the error "An unknown error occured" without loading the UI. Each time this page is accessed, the error message is accompagnied by a log message saying something about a "corrupt proc structure" (see Additional Context section). You find an example of such a bugged out page here. I'll keep it up for a bit as I don't need really need it atm, maybe it can help you guys figure out the problem. The "repair repository" button doesn't help.

For reference, I use this stack file for deploying Woodpecker inside my Docker swarm.

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-b4094b9d"}

Additional context

{"time":"2021-12-30T14:29:58Z","message":"LogLevel = warn"}
{"level":"warn","error":"sql: no rows in result set","time":"2021-12-30T14:30:30Z"}
{"level":"error","error":"Error #01: Corrupt proc structure\n","ip":"10.0.1.3","latency":7.694769,"method":"GET","path":"/api/repos/rusty-bever/blog/builds/2","status":500,"time":"2021-12-30T14:30:31Z","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0","time":"2021-12-30T14:30:31Z"}
{"level":"error","error":"Error #01: Corrupt proc structure\n","ip":"10.0.1.3","latency":8.75056,"method":"GET","path":"/api/repos/rusty-bever/blog/builds/2","status":500,"time":"2021-12-30T14:33:00Z","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0","time":"2021-12-30T14:33:00Z"}
{"level":"error","error":"Error #01: Corrupt proc structure\n","ip":"10.0.1.3","latency":5.638969,"method":"GET","path":"/api/repos/rusty-bever/blog/builds/2","status":500,"time":"2021-12-30T14:33:19Z","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0","time":"2021-12-30T14:33:19Z"}
{"level":"error","error":"Error #01: Corrupt proc structure\n","ip":"10.0.1.3","latency":5.858869,"method":"GET","path":"/api/repos/rusty-bever/blog/builds/2","status":500,"time":"2021-12-30T14:33:37Z","user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0","time":"2021-12-30T14:33:37Z"}

Validations

6543 commented 2 years ago

@ChewingBever can test it via woodpeckerci/woodpecker-server:test-647 image if this fix your issue?

ChewingBever commented 2 years ago

I tested it both with my own built image & @6543's, & the bug does indeed seem to be fixed!