When I log into redmine it forgets that I was logged after first click on any link or immediately after the login redirect. After I refresh the page a few times, I am still logged in in some of this refereshes.
NOTE: There is no login error. The _redmine_session cookie is present.
This reminded me of the situation where you have multiple nodes behind a load balancer and they don't share the same sessions storage so I decreased the number of uWSGI processes to 1 and voila - it works as expected.
It's strange because supposedly redmine stores its session in cookies now, so no shared storage is used at all.
I would like to have more processes for performance reasons. And I'm simply curious what's goin on. I'm new to deploying ruby apps (I don't do ruby at all so I don't know the whole ecosystem yet).
I'm using:
- CentOS 6.3
- redmine 2.2.3
- ruby 1.8.7
- uWSGI 1.4.8 with rack plugin linked in statically
My uWSGI .ini file for redmine: (note that the problem manifests itself only if processes > 1)
[uwsgi]
socket = 127.0.0.1:3032
master = true
processes = 1
post-buffering = 4096
env = RAILS_ENV=production
logto = /var/log/uwsgi/redmine.log
uid = dsh
gid = nginx
rack = /home/dsh/redmine/config.ru