YannickB / odoo-hosting

Other
64 stars 50 forks source link

Error when build the base #45

Closed collex100 closed 8 years ago

collex100 commented 9 years ago

I got this error: Traceback (most recent call last): File "/opt/odoo/odoo/openerp/http.py", line 537, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo/openerp/http.py", line 574, in dispatch result = self._call_function(_self.params) File "/opt/odoo/odoo/openerp/http.py", line 310, in _call_function return checked_call(self.db, args, _kwargs) File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, _args, _kwargs) File "/opt/odoo/odoo/openerp/http.py", line 307, in checked_call return self.endpoint(_a, _kw) File "/opt/odoo/odoo/openerp/http.py", line 803, in call return self.method(_args, _kw) File "/opt/odoo/odoo/openerp/http.py", line 403, in response_wrap response = f(_args, _kw) File "/opt/odoo/odoo/addons/web/controllers/main.py", line 944, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/odoo/openerp/api.py", line 336, in old_api result = method(recs, _args, _kwargs) File "/opt/odoo/odoo/addons/clouder/clouder_base.py", line 378, in create return super(ClouderBase, self).create(vals) File "/opt/odoo/odoo/openerp/api.py", line 239, in wrapper return new_api(self, _args, _kwargs) File "/opt/odoo/odoo/addons/clouder/clouder_model.py", line 310, in create res.deploy() File "/opt/odoo/odoo/openerp/api.py", line 239, in wrapper return new_api(self, _args, _kwargs) File "/opt/odoo/odoo/addons/clouder/clouder_base.py", line 595, in deploy res = self.deploy_create_database() File "/opt/odoo/odoo/openerp/api.py", line 239, in wrapper return new_api(self, _args, _kwargs) File "/opt/odoo/odoo/addons/clouder_template_odoo/clouder_template_odoo.py", line 217, in deploy_create_database user_password=self.admin_password) File "/usr/local/lib/python2.7/dist-packages/erppeek.py", line 639, in create_database user_password) File "/usr/local/lib/python2.7/dist-packages/erppeek.py", line 383, in wrapper = lambda s, _args: s._dispatch(name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in request verbose=self.verbose File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request return self.parse_response(response) File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response return u.close() File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close raise Fault(self._stack[0]) Fault: <Fault could not connect to server: Connection refused Is the server running on host "postgres" (172.17.0.252) and accepting TCP/IP connections on port 5432? : 'Traceback (most recent call last):\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/service/wsgi_server.py", line 75, in xmlrpc_return\n result = openerp.http.dispatch_rpc(service, method, params)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/http.py", line 115, in dispatch_rpc\n result = dispatch(method, params)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/service/db.py", line 73, in dispatch\n return fn(_params)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/service/db.py", line 90, in exp_create_database\n _create_empty_database(db_name)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/service/db.py", line 77, in _create_empty_database\n with closing(db.cursor()) as cr:\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/sql_db.py", line 575, in cursor\n return Cursor(self.pool, self.dbname, self.dsn, serialized=serialized)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/sql_db.py", line 181, in init\n self._cnx = pool.borrow(dsn)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/sql_db.py", line 464, in _locked\n return fun(self, _args, _kwargs)\n File "/opt/versions/odoo-odoo/8.0.20150805.174255/parts/odoo/openerp/sql_db.py", line 526, in borrow\n result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)\n File "/usr/lib/python2.7/dist-packages/psycopg2/init.py", line 164, in connect\n conn = _connect(dsn, connection_factory=connection_factory, async=async)\nOperationalError: could not connect to server: Connection refused\n\tIs the server running on host "postgres" (172.17.0.252) and accepting\n\tTCP/IP connections on port 5432?\n\n'>

collex100 commented 9 years ago

root@vmi46165:/etc/nginx/sites-available# /etc/init.d/nginx restart Restarting nginx: nginx: [emerg] SSL_CTX_use_certificate_chain_file("/etc/ssl/certs/www.panda1.pandaplus.biz.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib) nginx: configuration file /etc/nginx/nginx.conf test failed

YannickB commented 9 years ago

Hello collex, do you still have problem with your issue?

collex100 commented 9 years ago

This issue has been resolved with the help of ErrafayM and two his recommendations: 1. let's try to fix it manually . get inside your postgres container docker exec -it www-panda1-postgres su postgres after that vi /etc/postgresql/9.4/main/postgresql.conf click on "a" to insert , find the listen_addresses line and change it like below . dont forget to remove the # from the begining of the line listen_addresses = '*' # what IP address(es) to listen on; Ctrl + C to stop the insertion then :wq to save EDIT : dont forget to restart your postgresql after the edit , /etc/init.d/postgresql restart

2. apt-get install nginx then get into your nginx container docker exec -it www-panda1-nginx su cat /etc/nginx/sites-available/www.panda1.pandaplus.biz and copy everything in there and paste it in /etc/nginx/sites-available/default in your docker server then finally service nginx restart or /etc/init.d/nginx restart

On these issues, there are two ticket: https://github.com/clouder-community/clouder/issues/49 https://github.com/clouder-community/clouder/issues/26 (same problem)

YannickB commented 9 years ago

Ok I see, you had problem because of the specificity of your network and your installation. Shall we close the ticket or do you see any improvement which shall be made? Regarding nginx I don't really understand what you wanted to do, if needed please feel free to describe the improvement on #49

YannickB commented 8 years ago

Closing the ticket.