Odoo 17 on FreeBSD 14

Hi i have reached out to som people thats have guides for setting up Odoo on FreeBSD.

Some of the Howto
hxxps://project.altservice.com/issues/954 [Mod: disabled potentially dangerous URL; Need to investigate]


The problem with the new Odoo v17 is that they require python310 which is fine, but som py- packages is missing in ports.
So when i install by pip install requirement, it stop when missing py- packages.

Have anyone luck installing Odoo 17 on FreeBSD?
 
Last edited by a moderator:
Hey acm

Thanks, i can see you the port maintainer, do you know when the port will be public? :D

Really great work, i will look into the port later this week
 
Well, I have updated odoo port to 16.0.20240222 yesterday. It still uses python3.9. odoo17 needs rebuild all python dependencies to 310 and it needs testing before of commit it. I have not a estimated time right now. If you have chance to test it, tell me if it works for you
 
I just update odoo to 17.0.20240325. If you want test it, you must update your ports tree and install odoo from it. Otherwise you can wait until odoo package is available in some weeks

1) Update your port tree
2) cd /usr/ports/finance/odoo && make install clean clean-depends
3) Follow intructions into pkg-message

I'll try give me a time and create a Appjail-Makejail [1][2] of odoo. It could be great install odoo quickly into a FreeBSD jail.

[1] https://github.com/AppJail-makejails
[2] https://github.com/DtxdF/AppJail
 
Hi Acm

I got this error

Code:
root@odoo-test-1:/usr/ports/finance/odoo # make install clean clean-depends
===>  Patching for py310-odoo-17.0.20240325
===>  Applying FreeBSD patches for py310-odoo-17.0.20240325 from /usr/ports/finance/odoo/files
1 out of 1 hunks failed--saving rejects to odoo/release.py.rej
===>  FAILED Applying FreeBSD patch-odoo_release.py
===> FAILED to apply cleanly FreeBSD patch(es)  patch-odoo_release.py
*** Error code 1

This is done in a jail, before hand I have build tmux successfully
 
Hey ACM!

Thank you for pushing it.
Now, it has this error:


Applying FreeBSD patches for py310-odoo-17.0.20240325 from /usr/ports/finance/odoo/files
1 out of 1 hunks failed--saving rejects to odoo/release.py.rej
===> FAILED Applying FreeBSD patch-odoo_release.py
===> FAILED to apply cleanly FreeBSD patch(es) patch-odoo_release.py
*** Error code 1

How do we resolve this?
 
Hi all

Update on my build :D

I got this error

Code:
  WWW: https://vuxml.FreeBSD.org/freebsd/b54abe9d-7024-4d10-98b2-180cf1717766.html

1 problem(s) in 1 installed package(s) found.
=> Please update your ports tree and try again.
=> Note: Vulnerable ports are marked as such even if there is no update available.
=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/www/py-beaker
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/textproc/py-mako
*** Error code 1

Stop.
make: stopped in /usr/ports/finance/odoo
root@odoo-test-1:/usr/ports/finance/odoo #

I have now started a new build with DISABLE_VULNERABILITIES=yes, which I now still building
 
Still building a lot of dependency with rust

Just curious what is dependent on rust?

Code:
Building [======================>  ] 295/320: rustc_mir_transform, rustc_hir_typeck, rustc_const_eval, rustc_resolve
 
Status update from my build


Code:
[odoo-test-1] Installing py310-html2text-2024.2.26...
pkg-static: py310-html2text-2024.2.26 conflicts with html2text-2.2.3,1 (installs files into the same place).  Problematic file: /usr/local/bin/html2text
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/textproc/py-html2text
*** Error code 1

Stop.
make: stopped in /usr/ports/finance/odoo
 
I just update odoo to 17.0.20240325. If you want test it, you must update your ports tree and install odoo from it. Otherwise you can wait until odoo package is available in some weeks

1) Update your port tree
2) cd /usr/ports/finance/odoo && make install clean clean-depends
3) Follow intructions into pkg-message

I'll try give me a time and create a Appjail-Makejail [1][2] of odoo. It could be great install odoo quickly into a FreeBSD jail.

[1] https://github.com/AppJail-makejails
[2] https://github.com/DtxdF/AppJail
Odoo 17 on FreeBSD 14.1
Install Step:
01.vm instance 17. RAM8G CPU4Core HD20G;
02.Install FreeBSD14.1 ,FreeBSD-14.1-RELEASE-amd64-dvd1.iso;
03.freebsd-update fetch install;
04.pkg update && pkg upgrade -y;
05.adduser odoouser group wheel;
06.sudo pkg install -y postgresql15-server-15.7.0;
07.psql createuser odoouser and createdb odoo17_demo;
08.sudo pkg install -y py311-odoo-17.0_20240325_2;
09.sudo service odoo initdb;
10.odoo 17 can't work;
11.Chrome Message: "Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
12.P.S:eek:doo.log on FreeBSD;
Would you help me?
 

Attachments

You should probably start the service after initdb.

...
09.sudo service odoo initdb;
2024-08-30 20:09:41,569 1302 CRITICAL odoo17_demo odoo.service.server: Failed to initialize database `odoo17_demo`.
2024-08-30 20:09:42,470 1314 DEBUG ? odoo.tools.config: Failed to create addons data dir /var/db/postgres/data15/addons/17.0
10.sudo service odoo restart;
11.odoo 17 can't work;
...
1725028207556.png

1725028291307.png

1725027935946.png

1725027668115.png
 

Attachments

  • 1725028139642.png
    1725028139642.png
    9.8 KB · Views: 101
Can you paste your odoo config file? I see into your log file some permission errors lines

PermissionError: [Errno 13] Permission denied: '/var/db/postgres/data15/filestore'
2024-08-30 20:09:42,470 1314 DEBUG ? odoo.tools.config: Failed to create addons data dir /var/db/postgres/data15/addons/17.0

It seems like addons path is point to postgresql directory and addons directory needs odoo (user and group) permissions
 
Can you paste your odoo config file? I see into your log file some permission errors lines

PermissionError: [Errno 13] Permission denied: '/var/db/postgres/data15/filestore'
2024-08-30 20:09:42,470 1314 DEBUG ? odoo.tools.config: Failed to create addons data dir /var/db/postgres/data15/addons/17.0

It seems like addons path is point to postgresql directory and addons directory needs odoo (user and group) permissions
[options]
#admin_passwd = secretpassword
db_host = localhost
db_port = 5432
db_user = odoouser
db_password = odoopwd
;addons_path = /usr/local/lib/python3.11/site-packages/odoo/addons/

log_file=/var/log/odoo/odoo.log
log_level=debug

...
1725065563569.png

1725066259960.png

1725066363508.png

1725066434913.png

sudo mkdir -p /var/db/postgres/data15/filestore
sudo chown -R odoouser:wheel /var/db/postgres/data15/filestore
sudo mkdir -p /var/db/postgres/data15/addons/17.0
sudo chown -R odoouser:wheel /var/db/postgres/data15/addons/17.0
1725066851316.png
 
I just update odoo to 17.0.20240325. If you want test it, you must update your ports tree and install odoo from it. Otherwise you can wait until odoo package is available in some weeks

1) Update your port tree
2) cd /usr/ports/finance/odoo && make install clean clean-depends
3) Follow intructions into pkg-message

I'll try give me a time and create a Appjail-Makejail [1][2] of odoo. It could be great install odoo quickly into a FreeBSD jail.

[1] https://github.com/AppJail-makejails
[2] https://github.com/DtxdF/AppJail
Odoo 17 on FreeBSD 14.1
Install Step:
01.vm other new instance 17. RAM8G CPU4Core HD30G ZFS;
02.Install FreeBSD14.1 options src ports ,FreeBSD-14.1-RELEASE-amd64-dvd1.iso;
03.freebsd-update fetch install;
04.pkg update && pkg upgrade -y;
05.adduser odoouser group wheel;
06.sudo pkg install -y postgresql15-server-15.7.0;
07.psql createuser odoouser and createdb odoo17_demo;
08.sudo pkg install -y py311-odoo-17.0_20240325_2; Not work yet.
09.sudo portsnap update ports tree;
10.cd /usr/ports/finance/odoo && sudo make install clean clean-depends;
11.sudo service odoo initdb;
12.odoo 17 can work now at this time;
PS:
13.pkg install py311-odoo17 can't work on FreeBSD 14.1P3-1401000;
14.ports install odoo17 can work on FreeBSD 14.1P3-1401000.
 
Status update from my build


Code:
[odoo-test-1] Installing py310-html2text-2024.2.26...
pkg-static: py310-html2text-2024.2.26 conflicts with html2text-2.2.3,1 (installs files into the same place).  Problematic file: /usr/local/bin/html2text
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/textproc/py-html2text
*** Error code 1

Stop.
make: stopped in /usr/ports/finance/odoo
I usually resolve this by editing the Makefile. In this case, what I'd be doing is:
Code:
# cd /usr/ports/finance/odoo
# nano Makefile
Edit the Makefile in odoo's port directory and tell it to depend on textproc/html2text instead of textproc/py-html2text... Reason being - the former is already installed, at least in your case.

I haven't had anything break on my systems when I did that kind of dependency editing, but OP might want to check and make sure things don't break by substituting a non-Python dependency in place of a Python-specific one.
 
What's the verdict on odoo? With 18 out, I'm about to attempt a source code install. It's not clear what the current status of the 17 port/pkg is.
 
What's the verdict on odoo? With 18 out, I'm about to attempt a source code install. It's not clear what the current status of the 17 port/pkg is.
Ports are normally made using upstream-released stuff that is at least marked as 'stable release' on the project's website.

To be included in the official Ports Collection, the maintainer has to show that the port compiles, installs correctly, and runs on FreeBSD.

I think it's safe to assume that for odoo17, FreeBSD-specific installation kinks still need to be worked out. Considering how heavy on rust and python that project is, I would not rule out the idea that the upstream is being developed/compiled on Windows or Linux.

Taking that line of thinking even further, I'd recommend playing with 17, and seeing if you can make a go of it. If it works - great, please post back to this thread about it. If you're getting errors while playing with 17 - that's valuable info, as well.

After all, that's the way Open Source works.
 
Back
Top