我在本地主机安装了 Odoo,并运行以下命令:
./odoo-bin -c odoo-server.conf
然后转到 Chrome 并说localhost:8012
。
结果:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
以及./odoo-bin -c odoo-server.conf
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL: role "pythondev" does not exist - - -
答案1
运行 odoo 的人还必须拥有一个对 postgresql 具有权限的帐户。错误显示用户“pythondev”不存在。解决方法:
sudo su - postgres -c "createuser -s pythondev" 2> /dev/null || true
然后在 odoo-server.conf 中设置此用户