تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
13 الردود
4297 أدوات العرض

Hello there,


I can't run odoo 13 with python3 /usr/bin/odoo -c /etc/odoo/odoo.conf command

That have no effect when I reload the page :

And there is Reseted connection in my browser.


However, that works fine with sudo systemctl start odoo command....

So I can't update my custom module...


UPDATE:

I have this option in my conf file:

data_dir = /opt/odoo/.local/share/Odoo

When I remove it, this error occurs:


And the connection works but there is no CSS or images, etc. like that:




Please help me.

Best regards.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

According to the discussion with Sylvain Michel Ratsarafahatra,

Do the following command:

sudo su - odoo -s /bin/bash

To connect with user odoo

And then run odoo.

Remove logfile = /opt/var/log/odoo-server.log in conf file "to see your log directly when you launch the command line".


Thank you!!!


الصورة الرمزية
إهمال
أفضل إجابة

Hi!

Maybe be you've specified the logfile parameter in your odoo.conf.

e.g.: logfile = /opt/var/log/odoo-server.log

Best regards!

الصورة الرمزية
إهمال
الكاتب

Hi! Thank you for reply. Yes I have a log file but it has no effect when I remove it but I updated my question please take a look. Thanks a lot!!

This error is normal, your filestore was stored in /opt/odoo/.local/share/Odoo and when you removed this Odoo don't find the filestore referred to this dir when he reading ir.attachment table from the database

الكاتب

Ok so why I can't access Odoo server with this command: python3 /usr/bin/odoo -c /etc/odoo/odoo.conf ? I totally lost :/

الكاتب

I just noticed that this error maybe occurs because the comand line python3 /usr/bin/odoo -c /etc/odoo/odoo.conf don't run odoo server with the same user (session user) than sudo systemctl start odoo (odoo user) and when I turn the odoo user into session user, that not works anymore...

How you access to your local server? by odoo13-odiora:8069?

الكاتب

No by 5.39.46.53:8078 a distant access

In your log, Odoo is running in odoo13-odiora:8069 not in XXX:8078

الكاتب

Ok and how can I change that ? Thank you

Just change the xmlrpc_port parameter to 8078 instead of 8069 (by default) in your odoo.conf file!

الكاتب

Sorry that does not work :(

Contact me in skype please!

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مايو 24
12540
1
أبريل 24
3160
0
نوفمبر 23
1929
1
سبتمبر 23
2036
2
أغسطس 23
4418