Skip to Content
Menu
This question has been flagged
2 Replies
4575 Views

Hi all,

OS: NethServer-7.6.1810 same as Centos-7.6.1810 // updated as of today.
Running under VirtualBox: Version 6.0.4 r128413 (Qt5.6.2)

- User: odoo
  personnal folder: /opt/odoo

- Odoo version: 12
- Installation path: /opt/odoo/odoo-12
- Service name: odoo12
- DataBase: Odoo-12
Everything is working correctly

I want to update:

# systemctl stop odoo12

# su - odoo

$ whoami
    odoo

$ cd /opt/odoo/odoo12

$ pwd
    /opt/odoo/odoo12

$ git fetch origin 12.0
    remote: Enumerating objects: 1459, done.
    remote: Counting objects: 100% (1459/1459), done.
    remote: Compressing objects: 100% (580/580), done.
    remote: Total 867 (delta 710), reused 333 (delta 285), pack-reused 0
    Receiving objects: 100% (867/867), 1.88 MiB | 137.00 KiB/s, done.
    Resolving deltas: 100% (710/710), completed with 487 local objects.
    From https://github.com/odoo/odoo
     * branch            12.0       -> FETCH_HEAD

 
$ git reset --hard origin/12.0
    HEAD is now at c545783 [FIX] account: communication size

$ exit

AS USER ROOT:

# systemctl  restart  odoo12  -u all  -d Odoo-12
    invalid option -- 'u'

I ALSO TRIED:

# usermod -aG wheel odoo

# visudo
...
## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL
...

# su - odoo

$ sudo systemctl restart odoo12 -u all -d Odoo-12
   [sudo] password for odoo:  ODOO PASSWORD
   systemctl: invalid option -- 'u'$

What am I missing?

Any suggestions appreciated,

Michel-André

Avatar
Discard
Author Best Answer

Hi Ermin Trevisan,

User odoo using:
 /usr/bin/scl enable rh-python36 -- /opt/odoo/odoo12-venv/bin/python3 /opt/odoo/odoo12/odoo-bin -c /etc/odoo-server.conf -u all  -d Odoo-12
from the exec command in the service configuration worked perfectly.

Thank you so much,

Michel-André

Avatar
Discard
Best Answer

These parameters only work when you start Odoo from the command line, they are not applicable when you run the service, as the service contains an exec command to start Odoo with other parameters. Check your service configuration to understand.

Avatar
Discard