Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2154 Lượt xem

File "/usr/lib/python3.10/configparser.py", line 1087, in_read raise MissingSectionHeaderError(fpname, lineno, line)

]:

]:

configparser.MissingSectionHeaderError: File contains no section headers.

]

: file: '/etc/odoo/odoo.conf', line: 1

]:

'admin_passwd = abdullah\n'

odoo.service: Main process exited, code=exited, status=1/FAILURE

odoo.service: Failed with result 'exit-code'.

odoo.service: Consumed 1.519s CPU time.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, 
The error is likely occurring due to missing headers or incorrect specifications in the sections of the config file. Refer to the Configuration file parser documentation to understand the correct format that configuration files must adhere to.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The error tells that the file:

/etc/odoo/odoo.conf

has wrong format.

It should have section headers. Example:

[DEFAULT]
ServerAliveInterval = 45
Compression = yes

And it should have UTF-8 encoding (without BOM).

I have found it by searching for "configparser.MissingSectionHeaderError: File contains no section headers" in google.



Ảnh đại diện
Huỷ bỏ