ubuntuserverodooerp

How to Stop Odoo 15 on Ubuntu 20.04


I already try some answers on the internet to stop Odoo that running on my Ubuntu server, but it didn't work. I can't kill the process by pressing Ctrl + C because right now I use another terminal session and I can't find the Odoo log file for version 15.

I run Odoo by using this command from the root Odoo folder

python3 odoo-bin -c odoo.conf

If I run this command again using another session after Odoo is running, I get this kind of error message

Exception in thread odoo.service.httpd:
Traceback (most recent call last):
...
...
OSError: [Errno 98] Address already in use

When I list all services that run on my server, there is no Odoo service running, but when I open the domain, I know the Odoo server is running.

enter image description here


Solution

  • Finally, I found the answer, how to kill the process. This answer is similar to Ismail, but I don't know why his answer not working. I have to list all services.

    Run this command to list all running service

    ps aux||grep
    

    Find a service with command python3 odoo-bin -c odoo.conf and kill this process with the PID number

    sudo kill -9 [PID_NUMBER]
    

    Example

    sudo kill -9 26421