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.

1

Openerp server does not stop properly (SOLVED)

By
Yassine TEIMI
on 9/12/14, 8:06 AM 3,248 views

Hello, 

I'm Unable to restart my openerp-server, because i think that :

My openerp server doesn't stop properly, when I check the log file, it gives me :

openerp.service: Initiating shutdown

Hit CTRL-C again or send a second signal to force the shutdown.

it starts correctly but does'n stop properly. what is the solution ? 

Thanks

1

Brett Lehrer

--Brett Lehrer--
1252
| 5 4 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 9/13/14, 11:57 AM

It's waiting for threads to complete, there are concurrent users/jobs still running.  This is normal behavior, as long as it only lasts a few seconds.

I stopped the server, and After several minutes, it still running. It's True that there was several users loged on, but they logged off...

Yassine TEIMI
on 9/17/14, 5:41 AM

Try sending signal 3 (also known as SIGQUIT) to the OpenERP server, it will dump a trace of all current threads. Find the PID using a command like "htop" or "ps aux | grep openerp". Say the PID for the root process is 12345. Then use the command "kill -3 12345".

Brett Lehrer
on 9/17/14, 10:12 AM
HI, 

thank you very much, I've tried this before your email, wich I appreciate, and it worked, I published it on the odoo forum so as to other members can benefit from it.

Regards

2014-09-17 15:12 GMT+01:00 Brett Lehrer <bsphil-gmail-com@mail.odoo.com>:

Try sending signal 3 (also known as SIGQUIT) to the OpenERP server, it will dump a trace of all current threads. Find the PID using a command like "htop" or "ps aux | grep openerp". Say the PID for the root process is 12345. Then use the command "kill -3 12345".

--
Brett Lehrer
Sent by OpenERP S.A. using Odoo about Forum Post False



--


Yassine TEIMI

Ingénieur SI technico-fonctionnel

TEL : 06-27333078
Yassine TEIMI
on 9/17/14, 10:20 AM
0
Michael St-Georges
On 9/12/14, 8:15 PM

Do you wait some time after sending the stop signal to the process? It can take a few seconds for the whole process tree to come to a full stop.

I waited at least 2 minutes, after stopping the server. When I refresh the web page, the openerp server still running ...

Yassine TEIMI
on 9/17/14, 5:37 AM

It can take quite some time to shutdown the processes depending on the setup. What I usually do when in a hurry is killall -9 python2.7 a few seconds after signaling the stop (or similar depending on the python binary you're using).

Michael St-Georges
on 9/17/14, 5:38 PM
0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 9/12/14, 10:52 AM

If have not seen this problem since version 5.0, but what I did back then was to open up HTOP (or any similair TOP program) and then kill the proces according to the Pid.

what commande necessary to do that, I'm on ubuntu server. Thanks.

Yassine TEIMI
on 9/12/14, 10:58 AM

http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/ Will help you out.

Ludo - Neobis
on 9/12/14, 11:04 AM
0
Yassine TEIMI
On 9/17/14, 6:15 AM

Hi all, 

Thank you for your great answers, I brought up all your answers together, and I realise that the issue is when several processes still running, the server can't stop, so I should wait a few seconds, if not, the key is to kill all openerp running processes, I found that the running processes are old, a wee ago and so on, so I killed them, and the server is stopped properly. 

Thank you for your collaboration.

Regards.

 

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

1 follower(s)

Stats

Asked: 9/12/14, 8:06 AM
Seen: 3248 times
Last updated: 3/16/15, 8:10 AM