Content
You are here:
Memcached on a different kvm guest
Added by Arthur Chan about 6 years ago
Host laptop OS Ubuntu developer version 18.04
Created 3 kvm guests with CentOS 7 updated, Memcached, DB & App server with Apache 2.4.
The first time login with admin /admin I get an http error 422.
Unable to verify Cross-Site Request Forgery token.
Did you try to submit data on multiple browsers or tabs?
Please close all tabs and try again.
This is the log
~]# W, [2019-02-25T09:20:55.399580 #6230] WARN -- : 127.0.0.1:11211 failed (count: 4) Errno::ECONNREFUSED: Connection refused - send
E, [2019-02-25T09:20:55.400105 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:20:55.402606 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:20:55.403903 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:20:55.460245 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:20:55.462460 #6230] ERROR -- : DalliError: No server available
I, [2019-02-25T09:20:55.466430 #6230] INFO -- : method=GET path=/openproject/ format=html controller=HomescreenController action=index status=200 duration=67.48 view=24.07 db=10.22 user=2
E, [2019-02-25T09:20:55.466840 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:21:07.718479 #6230] ERROR -- : DalliError: No server available
W, [2019-02-25T09:21:07.718661 #6230] WARN -- : Can't verify CSRF token authenticity.
E, [2019-02-25T09:21:07.718913 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:21:07.719050 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:21:07.722214 #6230] ERROR -- : [current_user=Anonymous] [reference=csrf_validation_failed] CSRF validation error
E, [2019-02-25T09:21:07.722476 #6230] ERROR -- : [current_user=Anonymous] [Error 422] Unable to verify Cross-Site Request Forgery token. Did you try to submit data on multiple browsers or tabs? Please close all tabs and try again.
E, [2019-02-25T09:21:07.725270 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:21:07.726556 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:21:07.742822 #6230] ERROR -- : DalliError: No server available
E, [2019-02-25T09:21:07.744739 #6230] ERROR -- : DalliError: No server available
I, [2019-02-25T09:21:07.748869 #6230] INFO -- : method=POST path=/openproject/login format=html controller=AccountController action=login status=422 duration=30.67 view=20.79 db=5.91 user=2
E, [2019-02-25T09:21:07.749194 #6230] ERROR -- : DalliError: No server available
Before I run openproject configure I updated the environment strings
MEMCACHED_SERVERS=tcp://192.168.122.20:11211 & RAILS_CACHE_STORE=memcache
Reading from the instructions you could set a different server for memcached but it seems there is a defect.
When you install memcached normally it is working fine but it does not update the above tcp string ..
Is this a defect ? or suppose to work like this ....... Any help on this ?
Br,
Arthur
Replies (2)
I think there are 2 issues here not sure if related
I found the solution that solved the memcached issue by using this environment variable:
OPENPROJECT_CACHE__MEMCACHE__SERVER=192.168.122.20:11211
https://community.openproject.com/topics/5996
The warning and error messages are gone ............
Now when I try to login admin /admin I get this message see log file
After the login attempt it shows
Pls advise
Solved I just re- installed everything again according on 3 separate server App/DB/Memcached