Odoo Help

0

How to run debug mode using terminal ?

By
Demirel yakito
on 4/3/15, 2:03 AM 2,360 views

How to run debug mode using terminal ?

1
Dr Obx
On 4/3/15, 6:04 AM

You should do it as normal user (no root)

/usr/bin/odoo.py --log-level=debug

Robert

I have Odoo running in terminal under the root user without a problem, this doesn't matter.

Yenthe
on 4/3/15, 7:20 AM

Anyway it should work regardless of the user type. In my case it works fine as a normal user :)

Dr Obx
on 4/3/15, 10:59 AM
0
Demirel yakito
On 4/3/15, 2:50 AM

i did this. but its not working :

./odoo.py -c /etc/odoo-server.conf -d DB_name --log-level=debug

Does it work when you only do ./odoo.py -d DB_name --log-level=debug?

Yenthe
on 4/3/15, 2:54 AM

no its not work yenthe.:(

Demirel yakito
on 4/3/15, 3:19 AM

Alright so what do you get instead? Can you access the Odoo, does the terminal print something, ..? Just do a simple ./odoo.py --log-level=debug, that should always work.

Yenthe
on 4/3/15, 4:08 AM

yes iam accessing odoo. but oly the debug not work in eclipse. :(

Demirel yakito
on 4/3/15, 5:33 AM

You're asking about using the debug mode with the terminal, right? I was assuming you where talking about debugging and printing in the Ubuntu command terminal? Where does Eclipse come from all of a sudden? If your question is about eclipse then change the question please.

Yenthe
on 4/3/15, 7:19 AM

yes yenthe. in eclipse we can do debug mode right. the same process how we do debug using terminal. i need command line.

Demirel yakito
on 4/3/15, 8:29 AM
0

The problem might be with saving your previous configuration using -s in terminal.
check this: https://www.odoo.com/forum/help-1/question/loading-wrong-configuration-file-82480#answer-82481

0
Yenthe
On 4/3/15, 2:38 AM

Hi Demirel,

Its rather easy. Simply open a terminal and navigate to your Odoo folder (where the odoo.py file is, something like /odoo/odoo-server/).
When you're there you can start your Odoo by command.

./odoo.py --log-level=debug 

After this your Odoo will print out all messages in the Ubuntu terminal.
If you get a warning about the Address already in use it means you have an automated Odoo startup or that your Odoo is already running. In that case do a ps aux, find the Odoo process and kill it with sudo kill -9 idOfYourOdooInstance.

Best of luck,
Yenthe

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 4/3/15, 2:03 AM
Seen: 2360 times
Last updated: 4/3/15, 6:32 AM