-
Notifications
You must be signed in to change notification settings - Fork 1k
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
java.nio.file.NoSuchFileException: /opt/sonarqube/temp/README.txt #62
Comments
@LazGit you are a lifesaver, I could not figure out what is wrong with my docker container, creating the file is indeed a working workaround |
Actually nothing helps in my case. I tried creating file, deleting, moving directory, changing access rights, etc.... I just see
after restart of sonarqube. This also affects :lts version. |
+1 any news on a possible solution? |
1 Modify conf/wrapper.conf 2 Mount temp folder |
I just hit this today. Running on Redhat 7.2, Docker version 17.05.0-ce, build 89658be, Sonar 6.4, running with a simple @xift810 I'm not sure how to do what you've said - do you mean I have to modify the wrapper.conf in a Dockerfile that I write? Devs: This makes it impossible to update Sonar when running in docker. It's been around for 7 months now. Anyone want to weigh in on this? |
@ogradyjd This is an open-source project, and it’s maintained by volunteers. No need to say "it has been X months..." - pull-requests are welcomed from anyone who knows how to improve this. |
@Godin Fair enough. I'm probably not the right person to be looking for linux-docker file system problems, but I'll give it a go. So far, though, I've only found references that seem to indicate these are "ghost files" that have no inode number, or some such like that. I think the below discussion is close, but since I'm new to docker, I'm not sure how the sonar-docker image is creating a bad or damaged container filesystem every time. I'll look into it more, but I'm time-boxed on this. If anyone has any more info or can contribute knowledge from the docker side of things, maybe we can triangulate on what the source of the problem is. I'm guessing not everyone that uses this image has this problem? https://unix.stackexchange.com/questions/148486/delete-ghost-files-with-special-characters |
@ogradyjd and others - what are the exact steps to reproduce this? I'm asking because can't reproduce:
After such restarts there is no exceptions in log:
|
@Godin, for reproducing this exception you need to use sonar of 6.* version, not 5.* |
|
I have faced the same issue. Sonar version: Version 6.5 (build 27846)
Here is errors:
|
I use Sonar version 6.4 (build 25310) and do not face this issue. |
@thienan93
|
I used docker-compose and volumes:
|
@thienan93
And let's clarify following moment - statement that there is problem with image/ |
@Godin, |
@Godin Here's what's happening. When you run the docker image locally, it doesn't really matter; you can have a When you can't set But let's keep going, why do you need How would one run this application in an (appropriately) locked down kube cluster?
The reason I'm not opening a PR here, is because this is still a bad solution. It does work in more cases than your current Dockerfile, but the fact that I have to do this suggests there is a greater issue at hand and this is just a disgusting workaround; merging this in will likely make people ignore the actual issue. Hopefully someone finds this helpful. |
Hello,
I'm using sonarqube:alpine with docker. I always get an error during a restart :
But the file '/opt/sonarqube/temp/README.txt' does not exist. Everything works fine if I create the file manually.
The problem occurs during a docker restart or sonarqube restart after installing plugins.
The text was updated successfully, but these errors were encountered: