YannickB / odoo-hosting

Other
64 stars 50 forks source link

[BUG] Alpine Odoo Segfault #221

Open lasley opened 7 years ago

lasley commented 7 years ago

I forgot to let you know this, but Odoo on Alpine does not work right now. This is something we've been working on for a while, but it boils down to some memory overflows due to Alpine using muslc instead of glibc. The error seems to be coming from lxml.

Take a look at https://github.com/Tecnativa/docker-odoo-base/issues/16, which contains links to the historical items and troubleshooting for this (namely https://github.com/python-pillow/Pillow/issues/1935#issuecomment-276905234). I'm still debugging, but I am still able to readily reproduce this error in some complex XML processing situations (namely the LasLabs email templates).

For the moment, we need to switch Odoo back to Ubuntu.

YannickB commented 7 years ago

Hello Dave,

Yes I know the error, this almost fucked my day. It seemed to only come with workers=0 configuration, multi-workers is ok.

I'm still wondering if this worth to go back to Ubuntu. Note that I'm willing to use Tecnativa image in the future, or some other community image. The removal of data/files/exec structure was the first step towards that goal.

Also I have still some trouble with wkhtmltopdf on Alpine, look at my last PR there is a fix, it prints but the result is not perfect. Maybe you should have a look.

lasley commented 7 years ago

Hah reviewing that PR is actually what made me remember this, then I forgot and started doing something else. It's in my todo tabs though, so I'll have it for you by EOD

lasley commented 7 years ago

PS that's good to know that increasing the workers solves the issue. I'm going to test that further - I have an awesome test cycle for this issue at this point 😆