-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
"Mailserver too busy. Please try again later." when attempting to install or enable SnappyMail in Nextcloud #971
Comments
Happens when your serverload is more then 95% snappymail/snappymail/v/0.0.0/include.php Lines 6 to 12 in 38c4b4e
Can you check what is eating the CPU? |
My CPU usage has been below 10% mostly. It only went to about 25% at one point. |
Oh, how many cores do you have? As 2181 is a very high number, so something goes wrong here. Maybe i should move the code so that you can have a config setting to set the max load yourself. |
Hey there. I'm the server owner that's hosting @dsaderholm's SnappyMail instance. I watched the CPU for several minutes while trying to log in to SnappyMail, and the issue persisted, so I investigated further. I think that how is SnappyMail determining whether or not the server is 'busy' could be improved by calculating CPU percentage rather than load averages. The
My server has 32 total cores. These numbers are very high for some reason, I do not understand why. So, I have re-written the CPU load calculation using PHP's
The above does introduce some latency to the loading of SnappyMail, about 1 second, in order to calculate the CPU percentage. There's no way around this unless someone can find a cleverer way to calculate the relative CPU usage. EDIT: I have edited my post to correctly indicate that |
Hi @mattv8 good that you try to investigate. When you read https://en.m.wikipedia.org/wiki/Load_(computing) your numbers should not be higher then 32. So basically my Security wise this could prevent large attacks when 1000's of requests are made per minute. |
Indeed you are right the high values indicate something else is going on. Interestingly I agree, providing admins with a configurable flag for this check is the most ideal way to go. Introducing latency by calculating the CPU percentage would defeat the purpose of the check in the first place, lol. |
SnappyMail version: 2.26.1, browser: Firefox, browser version: 110
Expected behavior and actual behavior: I should be able to install it, but I get this error, whether through command line (occ) or the Apps page on the web interface.
Steps to reproduce the problem: Attempt to install SnappyMail
I have tried deleting the app, its config file, and the app's folder. I can install Rainloop just fine. There is nothing wrong with my email server. I got the error when trying to access SnappyMail while it was installed. I removed it and reinstalled it and still get that same error.
The text was updated successfully, but these errors were encountered: