I found the answer. My odoo.conf file contains an invalid path to a addons dir. Fixing addons path was the solution