Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Memcached on a different kvm guest

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)

RE: Memcached on a different kvm guest - Added by Arthur Chan about 6 years ago

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

W, [2019-02-25T15:57:03.270825 #6818]  WARN -- : Failed login for 'admin' from 127.0.0.1 at 2019-02-25 18:57:03 UTC: invalid credentials
I, [2019-02-25T15:57:03.318884 #6818]  INFO -- : method=POST path=/openproject/login format=html controller=AccountController action=login status=200 duration=240.68 view=41.33 db=39.56 user=2
W, [2019-02-25T15:58:07.656860 #6818]  WARN -- : Failed login for 'admin' from 127.0.0.1 at 2019-02-25 18:58:07 UTC: invalid credentials
I, [2019-02-25T15:58:07.712480 #6818]  INFO -- : method=POST path=/openproject/login format=html controller=AccountController action=login status=200 duration=242.28 view=49.72 db=40.99 user=2
W, [2019-02-25T16:01:15.807512 #6818]  WARN -- : Failed login for 'admin' from 127.0.0.1 at 2019-02-25 19:01:15 UTC: invalid credentials
I, [2019-02-25T16:01:15.836725 #6818]  INFO -- : method=POST path=/openproject/login format=html controller=AccountController action=login status=200 duration=199.27 view=23.52 db=29.78 user=2

After the login attempt it shows 

Invalid user or password or the account is blocked due to multiple failed login attempts.
If so, it will be unblocked automatically in a short time.

Pls advise

RE: Memcached on a different kvm guest - Added by Arthur Chan about 6 years ago

Solved I just re- installed everything again according on 3 separate server App/DB/Memcached

  • (1 - 2/2)
Loading...