-
Notifications
You must be signed in to change notification settings - Fork 162
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
Elastic Search Indexing failing #35
Comments
I have not run into this before, but I don't run on a shared plan (D1). I've had issues with free and shared tiers which is why I try to push people at at least the B1 plan (B2 and S2 are a nice bump for the second core). |
We have ended up redeploying out to a B1 plan Came across this issue on the elastic search elastic/elasticsearch#53233 I'm convinced it's the shared plan causing this issue. If anyone comes across this issue I hope this helps :) Thanks @vanderby for the quick response |
I'm on a B2 and have started to run into this in the past week (our SQ instance has been up for nearly a year). There's definitely something funny with how webapps have their disk space calculated. If I go into CLI and run "dir" in wwwroot, it says "9,665,695,744 bytes free" - so most of my 10GB unused. If I "df", I get the following bizarre drive information:
So it's telling me there's roughly 1.5GB free. I've tried moving temp to d:\local\temp, and data and logs to other directories outside of wwwroot, but I'm still getting an error that the ES has violated the flood point and has gone read only. My es6 directory is tiny (70MB perhaps) so if I could disable the check in the elasticsearch.yml that would be awesome - but sonarqube always writes a new one at startup and omits my changes to the flood parameter. If you guys have any suggestions that would be awesome. |
Hello there, I'm facing this issue as well on Azure App Service S2 instance. From the logs, we can see that we have enough space for the operation to be made:
SonarQube seems does not adhere to elasticsearch.yml file which can disable the threshold. Any ideas on this? |
Hello @richneptune @seantomlins @vanderby , I've managed to solve my issue in a different way. Scaled up Azure App Service to P1V2 (contains higher disk space) to perform ES re-indexing and scale down to back to Azure App Service S1. For some reasons, the disk size calculation seems incorrect. All other techniques to change elasticsearch.yml did not work for me. Hope this can help on your side. Thanks. |
Hey @saibaskaran57, thank you for your suggestion, this fixed our problem! Cheers, |
Thanks for the collaborative effort in solving this. And thanks for actually finding the project useful! |
Cross posting this from #40 I figured out a way to disable the disk check. Changing this setting did persist across App Service restarts.
Lastly, ES does log this warning about http.enabled being deprecated. Once SQ updates to a newer version of ES these steps may need to be reworked. From ES.log:
Reference For The Future:
|
Hey. We deployed this as an app service on a shared app service plan (S2 I think)
It started to fail after a couple weeks with this issue
https://community.sonarsource.com/t/analysis-failed-with-unrecoverable-indexation-failures/12329/2
The log suggests that we've run out of space but the disk space on the service plan is 50GB with 47GB free
2020.04.15 11:09:51 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[Windows (D:)]], net usable_space [1.2gb], net total_space [31.6gb], types [NTFS]
Any idea why I'm running into this?
The text was updated successfully, but these errors were encountered: