Package Details: odoo18-nightly 18.0-3

Git Clone URL: https://aur.archlinux.org/odoo18-nightly.git (read-only, click to copy)
Package Base: odoo18-nightly
Description: Odoo. Open Source Apps To Grow Your Business.
Upstream URL: https://odoo.com/
Keywords: odoo odoo18 openerp
Licenses: LGPL-3.0-only
Provides: odoo, odoo18, openerp
Submitter: SamWhited
Maintainer: SamWhited
Last Packager: SamWhited
Votes: 0
Popularity: 0.000000
First Submitted: 2024-11-10 13:51 (UTC)
Last Updated: 2025-01-08 13:36 (UTC)

Latest Comments

SamWhited commented on 2024-11-10 16:06 (UTC) (edited on 2024-11-10 20:54 (UTC) by SamWhited)

Thanks for the report, I'll double check permissions when I'm next at my desk.

EDIT: fixed the addons path and post-install/upgrade instructions.

kuon commented on 2024-11-10 15:35 (UTC) (edited on 2024-11-10 16:02 (UTC) by kuon)

After installation I have this error when I try to initialize the database.

A few tables are created, so the database connection is correct, but then this error is thrown:

Nov 10 16:30:34 vader odoo[428735]: Odoo Server 18.0-20241110:odoo:ERROR:odoo.modules.registry:Failed to load registry
Nov 10 16:30:34 vader odoo[428735]: Odoo Server 18.0-20241110:odoo:CRITICAL:odoo.service.server:Failed to initialize database `odoo`.
                                    Traceback (most recent call last):
                                      File "/var/lib/odoo18/venv/lib/python3.12/site-packages/odoo/addons/base/models/ir_module.py", line 182, in _get_desc
                                        with tools.file_open(path, 'rb') as desc_file:
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                      File "/var/lib/odoo18/venv/lib/python3.12/site-packages/odoo/tools/misc.py", line 247, in file_open
                                        path = file_path(name, filter_ext=filter_ext, env=env)
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                      File "/var/lib/odoo18/venv/lib/python3.12/site-packages/odoo/tools/misc.py", line 225, in file_path
                                        raise FileNotFoundError("File not found: " + file_path)
                                    FileNotFoundError: File not found: base/static/description/index.html

During handling of the above exception, another exception occurred:

... long stack trace

   File "/usr/lib/python3.12/pathlib.py", line 840, in stat
                                        return os.stat(self, follow_symlinks=follow_symlinks)
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                    PermissionError: [Errno 13] Permission denied: 'html4css1.css'

I wonder if the packaging steps are missing some files.

I was able to start the server as root, so there must be a a place where the user odoo18 doesn't have permission.

After starting with -i base as root, I did a chown -R odoo18:odoo18 on /var/lib/odoo18 and it seems to work.

UPDATE: in fact, when you run sudo -u odoo18 /var/lib/odoo18/venv/bin/odoo --config /etc/odoo18/odoo.conf -i base it will try to access the current directory, which yield to error if current directory is not accessible by the odoo user. cd /tmp before running the command fix it.

I also had to change the path in the config

from
addons_path = /var/lib/odoo18/.venv/lib/python3.12/site-packages/odoo/addons
to
addons_path = /var/lib/odoo18/venv/lib/python3.12/site-packages/odoo/addons