Odoo Help

Welcome!

This community 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.

0

How to run debug mode using terminal ?

By
Demirel yakito
on 4/3/15, 2:03 AM 1,535 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

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3918
| 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

0

Yenthe

--Yenthe--
6721
| 7 7 8
Turnhout, Belgium
--Yenthe--

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

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

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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

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