Why am I getting “Internal Server Error” running two Odoo instances (same domain but different ports)?

后端 未结 4 1259
太阳男子
太阳男子 2021-01-18 08:07

I have two instances of Odoo in a server in the cloud. If I make the following steps I get \"Internal Server Error\":

  1. I make login in the first instance (
4条回答
  •  被撕碎了的回忆
    2021-01-18 08:45

    Finally I think this is the expected behaviour. The cookies of all websites are stored specifically for each website (for each domain) in the web browser. So if I only change the port the cookies of the first instance are in conflict with the cookies of the other instance because the have the same domain (111.222.33.44 in my example).

    So there are some workarounds:

    Change Domain Locally

    Creating a couple of domain name in my laptop in /etc/hosts:

    111.222.33.44  cloud01
    111.222.33.44  cloud02
    

    Then the cookies don't interfere with each other anymore. To access to each instance

    http://cloud01:3333
    http://cloud02:4444
    

    Broswer Extension. Multilogin or Multiaccount

    There is another workaround. If I use this chromium extension the problem disappears because the sessions are treated separately:

    • SessionBox

提交回复
热议问题