Skip to Content
Menu
This question has been flagged
1 Reply
2963 Views

Hi guys

I successfully installed my add-on and when after I updated the descriptions in my __manifest__.py I no longer can 'update app list' and get a 'Internal Server Error' remote server.
I have tried odoo -u module name -d databasename and it doesn't work, see logs:

/opt/bitnami/python/lib/python3.6/site-packages/pkg_resources/__init__.py:1235: UserWarning: /opt/bitnami/.tmp is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)
Running as user 'root' is a security risk.
2018-12-16 08:04:28,409 19927 INFO ? odoo: Odoo version 11.0-20180818
2018-12-16 08:04:28,439 19927 INFO ? odoo: addons paths: ['/opt/bitnami/apps/odoo/.local/addons/11.0', '/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/addons']
2018-12-16 08:04:28,439 19927 INFO ? odoo: database: default@default:default
2018-12-16 08:04:28,461 19927 INFO ? odoo.sql_db: Connection to the database failed
Traceback (most recent call last):
  File "/opt/bitnami/apps/odoo/bin/odoo", line 4, in <module>
    __import__('pkg_resources').run_script('odoo==11.0.post20180818', 'odoo')
  File "/opt/bitnami/python/lib/python3.6/site-packages/pkg_resources/__init__.py", line 658, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/opt/bitnami/python/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1438, in run_script
    exec(code, namespace, namespace)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/EGG-INFO/scripts/odoo", line 8, in <module>
    odoo.cli.main()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/cli/command.py", line 60, in main
    o.run(args)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/cli/server.py", line 175, in run
    main(args)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/cli/server.py", line 140, in main
    odoo.service.db._create_empty_database(db_name)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/service/db.py", line 95, in _create_empty_database
    with closing(db.cursor()) as cr:
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/sql_db.py", line 634, in cursor
    return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/sql_db.py", line 178, in __init__
    self._cnx = pool.borrow(dsn)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/sql_db.py", line 517, in _locked
    return fun(self, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/sql_db.py", line 585, in borrow
    **connection_info)
  File "/opt/bitnami/python/lib/python3.6/site-packages/psycopg2-2.7.1-py3.6-linux-x86_64.egg/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 "/tmp/.s.PGSQL.5432"?



when I run: sudo odoo -u modulename
I get the following and the process is hung, no prompt is ever back and have to cancel out:

/opt/bitnami/python/lib/python3.6/site-packages/pkg_resources/__init__.py:1235: UserWarning: /opt/bitnami/.tmp is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)
Running as user 'root' is a security risk.
2018-12-16 07:55:47,804 19905 INFO ? odoo: Odoo version 11.0-20180818
2018-12-16 07:55:47,805 19905 INFO ? odoo: addons paths: ['/opt/bitnami/apps/odoo/.local/addons/11.0', '/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/addons']
2018-12-16 07:55:47,805 19905 INFO ? odoo: database: default@default:default
Exception in thread odoo.service.httpd:
Traceback (most recent call last):
  File "/opt/bitnami/python/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/opt/bitnami/python/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/service/server.py", line 251, in http_thread
    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/service/server.py", line 103, in __init__
    handler=RequestHandler)
  File "/opt/bitnami/python/lib/python3.6/site-packages/Werkzeug-0.12.2-py3.6.egg/werkzeug/serving.py", line 504, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
  File "/opt/bitnami/python/lib/python3.6/socketserver.py", line 453, in __init__
    self.server_bind()
  File "/opt/bitnami/apps/odoo/lib/odoo-11.0.post20180818-py3.6.egg/odoo/service/server.py", line 113, in server_bind
    super(ThreadedWSGIServerReloadable, self).server_bind()
  File "/opt/bitnami/python/lib/python3.6/http/server.py", line 136, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/opt/bitnami/python/lib/python3.6/socketserver.py", line 467, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
Warn: Can't find .pfb for face 'Times-Roman'
2018-12-16 07:55:47,944 19905 INFO ? odoo.addons.base.ir.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.

Does anyone have any ideas?

Thanks

Avatar
Discard
Best Answer

Hi German

Was it working before your changes in the mainfest file? if yes, you can simply delete your changes and restart odoo service again to see if the problem was in the changing you have made 

If it worked after deleting your changes, then the problem was most probably in the syntax of the description you have made in the mainfest, otherwise I think the problem in the connection of the database, make sure you are running in the correct .conf file and you have correctly set your database connection

Let me know 

Regards,

Hazem

Avatar
Discard