Hey Severin,

I just went through the steps to install Riak on a m1.small using AMI
ami-3fec7956. After that I enabled PAM based limits and set them to
65536 as outlined in the "Enable PAM Based Limits for Debian & Ubuntu"
section here [1]. I *DID NOT* uncomment `UseLogin` in the sshd
configuration file. Below are the commands to verify that the open
files limit was increased:

   ubuntu@ip-10-108-23-155:~$ sudo su riak
   riak@ip-10-108-23-155:/home/ubuntu$ ulimit -a | grep "open files"
   open files                      (-n) 65536
   riak@ip-10-108-23-155:/home/ubuntu$

Are you using a different AMI? Can you try giving it another shot
using only the section on enabling PAM based limits?

[0] 
http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-Debian-and-Ubuntu/#Installing-From-Apt-Get
[1] http://docs.basho.com/riak/latest/cookbooks/Open-Files-Limit/#Linux

--
Hector


On Sun, Mar 24, 2013 at 1:05 PM, Severin Kistner <[email protected]> wrote:
> Hello everyone,
>
> I installed riak on an Ubuntu 12.04 64 instance, no problem, but then
> I get the "Open Files Limit" error.
>
> So I follow this guide
> http://docs.basho.com/riak/1.2.0/cookbooks/Open-Files-Limit/ and set
> the pam.
> The first time I ignored the 5. (optional) and "should" is not clear
> enough that you can screw up your instance here.
>
> So I didn't made the change in the /etc/ssh/sshd_config and I was
> still able to log in after reboot but the connection closed
> immediately afterwards.
>
> I terminated the instance and started over, now I changed UseLogin to
> yes and now the connection refuses immediately.
> No way to access the instance now.
>
> What should I do?
> This is kinda annoying. There is not much information about pam and
> SSH and all the posts about refused connections tell me to change
> configuration files ... not really helpful.
>
> Cheers Severin
>
> --
> http://sekistner.com
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to