Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
30340 Vizualizări

Friends, I installed the community version odoo 16, installed the OCA responsive web module, I was asked to restart odoo, it could not be done by command, I restarted the server, now odoo does not upload, I wanted to start the service via command, sudo service odoo starr and It tells me: Unit odoo.service not found.

Imagine profil
Abandonează

Hi Milton,

It is possible that you might have used a different name for the service during the creation process. It is important to thoroughly review and verify the name of the service that you have used in your setup. Identifying any discrepancies in the service name can help resolve any issues or inconsistencies in your configuration.

If you require further assistance or have any additional questions, please don't hesitate to ask.
Email: calkikhunt123@gmail.com

Best regards,

Cel mai bun răspuns

Hi 

use the command 

sudo systemctl restart odoo16.service

where odoo16.service is the name of your service file. please find its name in /etc/systemd/system path 


Hope this Helps


Regards

Imagine profil
Abandonează
Cel mai bun răspuns

If the sudo service odoo start command is not working, it's possible that the Odoo service was not properly installed as a system service during the installation process.

Here are the steps to manually start the Odoo service:

  1. Go to the Odoo installation directory using the command cd /path/to/odoo

  2. Activate the Odoo virtual environment by running the command source odoo-venv/bin/activate

  3. Start the Odoo server by running the command ./odoo-bin -c /etc/odoo.conf

If you need to stop the server, press CTRL + C.

If you want to run Odoo as a system service, you can create a systemd service file:

  1. Create a new file /etc/systemd/system/odoo.service with the following contents:
makefile

[Unit] Description=Odoo After=postgresql.service [Service] Type=simple User=odoo Group=odoo ExecStart=/path/to/odoo/odoo-bin -c /etc/odoo.conf [Install] WantedBy=multi-user.target

Replace /path/to/odoo with the path to your Odoo installation directory.

  1. Reload the systemd daemon with the command sudo systemctl daemon-reload

  2. Enable the Odoo service with the command sudo systemctl enable odoo

  3. Start the Odoo service with the command sudo systemctl start odoo

You should now be able to start, stop, and restart the Odoo service using the sudo systemctl start/stop/restart odoo commands.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thanks Friends, the service was created for me with a different name, that's why I didn't upload it

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
iul. 25
1057
3
iun. 25
4297
5
mai 25
4863
2
mai 25
1752
1
aug. 24
2317