-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard returns 500 - Cannot serve resource #2216
Comments
It's probably some fs-related issue, like too many locked up resources or exhausted file handles. It's not coincidence that this started happening recently, so let's start with better logging. |
I quickly ran a few requests within the 2min window, using old & new endpoints, but unfortunately I didn't notice anything weird:
It'd be great if you could move to the latest nightly, so we can try to catch your |
The server had been running for 5ish days with a decent load on it (it serves a Jenkins server that resolves and publishes to the repository). I've set debug to true in the configuration file for now, hopefully that will show some more information. I am running Reposilite on the same server I was previously running Nexus v2 on. Looking at the output of Like I said initially it only seemed to be affecting the dashboard. Builds were still able to resolve and publish in this state. |
I think it's fine to keep it as it was, just remember to use the latest nightly. Assuming that we will eventually fall into the same problem, you should be able to see an exception being thrown when this error message is returned:
It was just a matter of a poor implementation that this has been lost. Having the exception, it'll be a bit easier to look for a root cause 🤞 |
I will look at updating to the latest snapshot then, sorry I misunderstood why you said to do that initially. |
Ok this is the issue. I've discovered this server has a cronjob that is cleaning 'old' directories from /tmp which is causing this. I'm going to repoint the Java temp dir to a different location for now. 03:07:03.800 ERROR | index.html |
Okay, I'm glad we've found the issue. I'd say that's not a bug then. It is not expected that tmp directory is cleaned up when the system is running - it should be done when you're booting the OS and the |
@dzikoysk I do not have a cronjob cleaning up /tmp and I am facing this issue constantly after a period of idle. Is there a way to specify a different location for this file? or perhaps can reposilite lock the file when it is running, to prevent it from being removed by OS due to it being stale? |
I meant i do not have a additional cronjob that i created myself. |
@JasperTeng You can change temp directory used by JVM: $ java -Djava.io.tmpdir=/path/to/tmpdir |
What happened?
Running 3.5.16, after Reposilite has been running for a few days the UI become unresponsive and returns 500 errors. Ivy and Maven will still resolve artifacts for the most part. I don't see any other output in my current logging config to help identify the cause.
Reposilite version
3.x
Relevant log output
ERR RESULT | GET / errored with ErrorResponse(status=500, message=Cannot serve resource)
The text was updated successfully, but these errors were encountered: