-
Notifications
You must be signed in to change notification settings - Fork 387
Install / configure process needs additional file limit settings for ubuntu >= 14.04 #104
Comments
Since most users are running this as a separate user, only the sudo pam settings should need tweaked. Getting something in either of the common-session files wrong can completely destroy your system. |
Not sure why you say that. Also, I have it started at boot with an init conf but don't think I've tested that process yet. |
Because unless you have physical access to the box, getting something wrong in the pam config files can and will prevent you from logging into the server completely. So touching common-session* should be a last resort and only done if you really know what you're doing. |
I don't disagree with that. But what are you suggesting as alternative? You said "adjust sudo pam settings" but what do you mean by that and have you tested that it works? I'm only looking for a tested working piece of info that could be added to the install guide. |
For at least Debian |
Ok. Thanks. I've reverted my changes and added this instead and will test if electrum continues to work correctly. |
Unfortunately this does not work. After removing setting from common-session-* and adding to sudo the electrum server behaves with problems as if limits not set. That is, it goes to 100% and becomes comatose, not processing blocks. After reverting to the common-session-* files electrum server once again behaves fine. Maybe the setting needs to be made in a certain order in the file as I notice there are includes, and I placed this line before those. |
I messed around with this for ages but using default configure and install guide does not work for setting file limits. Some googling helped me figure out that on 14.04 and perhaps afterwards you cannot raise file limits without also adding settings for pam. Maybe these could be added to configure or at least install guide.
Edit /etc/pam.d/common-session* and add the following line. Note the * as there are 2 files that need editing for this to work.
session required pam_limits.so
Once I did this the electrum user finally was seeing the raised nofile limits.
The text was updated successfully, but these errors were encountered: