Good day for the past two days ive been trying to figure out what im doing wrong
i want to run this instance of odoo locally of my host machine. so people can access it in the office
before moving it to a dedicated vm but i have no idea what i am doing wrong. need help to specify which errors
odoo has rwx on the folders.
im using ubuntu 18.04 and odoo v 13
here is the odoo.conf
<VirtualHost *:80>
ServerName eformtest.com
ServerAlias www.eformtest.com
ErrorLog ${APACHE_LOG_DIR}/odoo-error.log
CustomLog ${APACHE_LOG_DIR}/odoo-access.log combined
<Directory /home/dfevrier/Documents>
Require all granted
</Directory>
<Directory /home/dfevrier/Documents/Projects/E-Forms/odoo/setup>
<Files odoo-wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess odoo user=odoo group=odoo python-home=/home/dfevrier/Documents/Venv/odoovenv/bin python-path=/home/dfevrier/Documents/Projects/E-Forms/odoo/
WSGIProcessGroup odoo
WSGIScriptAlias / /home/dfevrier/Documents/Projects/E-Forms/odoo/setup/odoo-wsgi.py
</VirtualHost>
and here is the odoo-wsgi.py
# WSGI Handler sample configuration file.
#
# Change the appropriate settings below, in order to provide the parameters
# that would normally be passed in the command-line.
# (at least conf['addons_path'])
#
# For generic wsgi handlers a global application is defined.
# For uwsgi this should work:
# $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
#
# For gunicorn additional globals need to be defined in the Gunicorn section.
# Then the following command should run:
# $ gunicorn odoo:service.wsgi_server.application -c openerp-wsgi.py
import odoo
#----------------------------------------------------------
# Common
#----------------------------------------------------------
odoo.multi_process = True # Nah!
# Equivalent of --load command-line option
odoo.conf.server_wide_modules = ['base','web']
conf = odoo.tools.config
# Path to the OpenERP Addons repository (comma-separated for
# multiple locations)
conf['addons_path'] = 'addons'
# Optional database config if not using local socket
conf['db_name'] = 'EForm'
conf['db_host'] = 'localhost'
conf['db_user'] = 'odoo'
conf['db_port'] = 5432
conf['db_password'] = 'password'
#----------------------------------------------------------
# Generic WSGI handlers application
#----------------------------------------------------------
application = odoo.service.wsgi_server.application
odoo.service.server.load_server_wide_modules()
#----------------------------------------------------------
# Gunicorn
#----------------------------------------------------------
# Standard OpenERP XML-RPC port is 8069
bind = '127.0.0.1:80'
pidfile = '.gunicorn.pid'
workers = 4
timeout = 1200
max_requests = 1000
and the error the apache2 odoo-error.log gives is this
[Mon Nov 18 13:56:06.946819 2019] [wsgi:error] [pid 24019:tid 139899566130944] [client 127.0.0.1:54678] Truncated or oversized response headers received from daemon process 'odoo': /home/dfevrier/Documents/Projects/E-Forms/odoo/setup/odoo-wsgi.py
[EDIT]
changing the loglevel to info i get this now
Current thread 0x00007f844ee23bc0 (most recent call first):
[Tue Nov 19 09:45:07.055801 2019] [core:notice] [pid 20088:tid 140206235859904] AH00051: child pid 20502 exit signal Aborted (6), possible coredump in /etc/apache2
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'