Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6326 มุมมอง

I get error when I try to create log file via docker. Error I get: 

ERROR: couldn't create the logfile directory. Logging to the standard output.

My Odoo.conf file:

[options]

addons_path = /mnt/extra-addons

data_dir = /var/lib/odoo

; admin_passwd = admin

; csv_internal_sep = ,

; db_maxconn = 64

; db_name = False

; db_template = template1

; dbfilter = .*

; debug_mode = False

; email_from = False

; limit_memory_hard = 2684354560

; limit_memory_soft = 2147483648

; limit_request = 8192

; limit_time_cpu = 60

; limit_time_real = 120

log_db = False

log_handler = [':INFO']

log_level = info

logfile = /root/logs/

; longpolling_port = 8072

; max_cron_threads = 2

; osv_memory_age_limit = 1.0

; osv_memory_count_limit = False

; smtp_password = False

; smtp_port = 25

; smtp_server = localhost

; smtp_ssl = False

; smtp_user = False

; workers = 0

; xmlrpc = True


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello

You have to make sure that the path where you want the log to be created has write permissions. Odoo containers for docker use a user named "odoo" and not root

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Exactly as david mentionned so make sure that an user with same UID of "odoo" exist at the host and has write permission in the folder or just set permission of the folder to 777

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 25
10800
2
ก.ย. 23
1676
1
พ.ย. 22
4000
0
ก.ย. 21
3856
0
ก.พ. 21
5063