spkrepo: Unable to publish package (500 Internal Server Error)
When attempting to publish a package the following is reported:
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Length: 141
Content-Type: text/html
Date: Sun, 23 Apr 2023 12:02:35 GMT
Server: nginx/1.23.2
<html>
<head>
<title>Internal Server Error</title>
</head>
<body>
<h1><p>Internal Server Error</p></h1>
</body>
</html>
This appears to be happening consistently for moderately sized SPK files (50-75 MB) and does not appear to be based on time of day (server load).
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 37 (37 by maintainers)
I think you may be correct. I did the new run and got this in one of the logs:
But then right after, I get the following in all the other archs:
We may have the same situation again. If you can, please remove prowlarr v6 again because I suspect we have re-created the same situation. I will try a manual upload one file at a time once you have.
Okay, thanks. I’ll retry, one at a time now.
For some history. The first Ci used travis and CircleCI processed one arch at a time. Also it was expected that every dev build on their own devices before publishing so that they would test the build locally as well (that hasn’t changed) but with GitHub actions it became easier and we implemented the publishing part as well. So if you build locally and test the one or two architectures you don’t need to build all of them to publish. Lowering the barrier and time spend building a bit.
@publicarray, looking back at the application logs you kindly provided, I believe this new theory is correct. In the logs we first see this error:
Immediately after that we have these errors and similar:
I believe this supports the theory that:
Hmm, okay. Perhaps a possible fix would be to adjust the code to verify that a folder is created (for both the package and version functions) before committing a new entry to the database.