运行container odoo 11
时出现此错误。我已经在postgres
中安装了Dockerfile
,并且没有将postgres
用作映像,所以当我运行结合了odoo 11
和postgres
的容器时。我无法在firefox浏览器中访问odoo
的页面:
sudo docker logs pgodoo
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/opt/odoo11/odoo/odoo/service/server.py", line 260, in app
return self.app(e, s)
File "/opt/odoo11/odoo/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/opt/odoo11/odoo/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/opt/odoo11/odoo/odoo/http.py", line 1319, in __call__
return self.dispatch(environ, start_response)
File "/opt/odoo11/odoo/odoo/http.py", line 1293, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/opt/odoo11/odoo/odoo/http.py", line 1456, in dispatch
self.setup_db(httprequest)
File "/opt/odoo11/odoo/odoo/http.py", line 1388, in setup_db
httprequest.session.db = db_monodb(httprequest)
File "/opt/odoo11/odoo/odoo/http.py", line 1540, in db_monodb
dbs = db_list(True, httprequest)
File "/opt/odoo11/odoo/odoo/http.py", line 1507, in db_list
dbs = odoo.service.db.list_dbs(force)
File "/opt/odoo11/odoo/odoo/service/db.py", line 369, in list_dbs
with closing(db.cursor()) as cr:
File "/opt/odoo11/odoo/odoo/sql_db.py", line 634, in cursor
return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
File "/opt/odoo11/odoo/odoo/sql_db.py", line 178, in __init__
self._cnx = pool.borrow(dsn)
File "/opt/odoo11/odoo/odoo/sql_db.py", line 517, in _locked
return fun(self, *args, **kwargs)
File "/opt/odoo11/odoo/odoo/sql_db.py", line 585, in borrow
**connection_info)
File "/usr/local/lib/python3.6/dist-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?