Odoo Help


How to run debug mode using terminal ?

Demirel yakito
on 4/3/15, 2:03 AM 1,656 views

How to run debug mode using terminal ?

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


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

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
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?

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.

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.

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

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
Atchuthan - Technical Consultant, Sodexis Inc
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 4/3/15, 6:32 AM

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



| 7 7 8
Turnhout, Belgium

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

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,

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


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)


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