Skip to Content
Menu
This question has been flagged
1 Odpoveď
9551 Zobrazenia

Hello there, I'm using Odoo V11 with Nginx reverse proxy.

From time to time I get the following error

2018-03-05 12:33:15,504 6967 ERROR ? odoo.service.server: Worker (6967) Exception occured, exiting...
Traceback (most recent call last):
File "/home/odoo/odoo-server/odoo/service/server.py", line 743, in run
self.process_work()
File "/home/odoo/odoo-server/odoo/service/server.py", line 820, in process_work
db_names = self._db_list()
File "/home/odoo/odoo-server/odoo/service/server.py", line 813, in _db_list
db_names = odoo.service.db.list_dbs(True)
File "/home/odoo/odoo-server/odoo/service/db.py", line 366, in list_dbs
with closing(db.cursor()) as cr:
File "/home/odoo/odoo-server/odoo/sql_db.py", line 634, in cursor
return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
File "/home/odoo/odoo-server/odoo/sql_db.py", line 178, in __init__
self._cnx = pool.borrow(dsn)
File "/home/odoo/odoo-server/odoo/sql_db.py", line 517, in _locked
return fun(self, *args, **kwargs)
File "/home/odoo/odoo-server/odoo/sql_db.py", line 585, in borrow
**connection_info)
File "/usr/local/lib/python3.5/dist-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory


The server specs I used to implement Odoo are:

1CPU, 1GRAM

In my configuration file, I set workers=3


Anyone know what does this error mean, and how to fix it?

Is something wrong in my configuration?


Avatar
Zrušiť
Best Answer

Hi Youta,

You cannot configure multiple works with just 1GB of RAM (and I believe that 1GB RAM is for both the OS & Odoo?) as it is simply not enough. Please have a look at the official documentation at https://www.odoo.com/documentation/11.0/setup/deploy.html#worker-number-calculation which explains how you should configure it and how to calculate it.

Regards,
Yenthe

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
mar 18
6150
1
sep 19
3841
0
aug 24
2642
2
júl 22
8984
6
feb 24
12746