Closed DocCyblade closed 9 years ago
What is calling pycogreen? I don't recall it earlier.
gevent needs it
There was an example of a PIP install in one of the 2 repositories. I recall taking a bit to figure out how to script it in.
Just not finding it right now.
Pushed changes, need to test fixes
Should I build - test again? Sounds like yes.
Will research gevent's roll... I am not seeing it in my repository.
Yes make clean, and the GIT fetch and GIT pull
Gevent is used for logging thats why logging was not working I think
Sorry on the recent radio silence. And apologies on this OT but I couldn't help myself.
Usage of git pull
essentially makes git fetch
redundant.
git pull
= git fetch
+ git merge
@JedMeister - Thanks for the reminder, I knew that.. I like to do a fetch first to see what changed, then a pull. Merge sounds scary! But yes your right.
I am running my system with Workers = 2. This is from my "dev-wip1" branch. The workers setting really speeds up the system. Were a few other mods I needed to do to the openerp-server.conf file to get "jobrunner" working (for the Connector processes).
Back with info. I have no idea if it is relevant to this but does involve workers>0
From: https://github.com/l-arnold/tkl-nomadic-odoo/issues/37
In Summary:
For everyone who does not directly understand the howto, here are the steps that it took me to migrate to the jobrunner:
1) change workers setting in openerp-server.conf: my setting is now:
workers = 10 (2 is sufficient)
2) change the startup script in /etc/init.d/odoo: add (choose whatever count fits best for you):
export ODOO_CONNECTOR_CHANNELS=root:3 export ODOO_CONNECTOR_PORT=8069 and change the start-stop-daemon to:
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$USER --background --make-pidfile --exec $DAEMON -- --config $CONFIG --logfile $LOGFILE --load=web,connector
3) disable "Enqueue Jobs" cron: go to Settings->Automation->Scheduled Actions and deactivate Enqueue Jobs
4) update to 3.2.0 of OCA/connector
Changed pushed should fix this. Should not get any errors when worker processes is more than 0. Note that this number normally should match the number of processor cores your server has. By default is has 2
current state of dev-rc1 seems to work even after first boot
|-4682 /usr/bin/python /opt/openerp/odoo/openerp-gevent --config=/etc/odoo/openerp-server.conf
root@tkl-odoo ~# ls -l /var/run
...
drwxrwxr-x 2 openerp root 60 Oct 12 18:58 odoo
...
root@tkl-odoo ~# ls -l /var/run/odoo
-rw-r--r-- 1 openerp openerp 4 Oct 12 18:58 openerp-server.pid
root@tkl-odoo ~# systemctl stop openerp-server.service
root@tkl-odoo ~# systemctl status openerp-server.service
* openerp-server.service - LSB: Open Enterprise Resource Management software
Loaded: loaded (/etc/init.d/openerp-server)
Active: inactive (dead) since Mon 2015-10-12 19:35:14 UTC; 8s ago
Process: 4627 ExecStop=/etc/init.d/openerp-server stop (code=exited, status=0/SUCCESS)
Process: 3908 ExecStart=/etc/init.d/openerp-server start (code=exited, status=0/SUCCESS)
Oct 12 18:58:18 tkl-odoo systemd[1]: Starting LSB: Open Enterprise Resource Management software...
Oct 12 18:58:18 tkl-odoo openerp-server[3908]: Starting openerp-server: openerp-server.
Oct 12 18:58:18 tkl-odoo systemd[1]: Started LSB: Open Enterprise Resource Management software.
Oct 12 19:35:14 tkl-odoo systemd[1]: Stopping LSB: Open Enterprise Resource Management software...
Oct 12 19:35:14 tkl-odoo openerp-server[4627]: Stopping openerp-server: openerp-server.
Oct 12 19:35:14 tkl-odoo systemd[1]: Stopped LSB: Open Enterprise Resource Management software.
root@tkl-odoo ~# systemctl start openerp-server.service
root@tkl-odoo ~# systemctl status openerp-server.service
* openerp-server.service - LSB: Open Enterprise Resource Management software
Loaded: loaded (/etc/init.d/openerp-server)
Active: active (running) since Mon 2015-10-12 19:35:31 UTC; 1s ago
Process: 4627 ExecStop=/etc/init.d/openerp-server stop (code=exited, status=0/SUCCESS)
Process: 4661 ExecStart=/etc/init.d/openerp-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/openerp-server.service
|-4665 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4680 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4681 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4682 /usr/bin/python /opt/openerp/odoo/openerp-gevent --config=/etc/odoo/openerp-server.conf
|-4683 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
`-4684 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
Oct 12 19:35:31 tkl-odoo openerp-server[4661]: Starting openerp-server: openerp-server.
Oct 12 19:35:31 tkl-odoo systemd[1]: Started LSB: Open Enterprise Resource Management software.
root@tkl-odoo ~# tail /var/run/odoo/openerp-server.pid
4665
root@tkl-odoo ~# systemctl status openerp-server.service
* openerp-server.service - LSB: Open Enterprise Resource Management software
Loaded: loaded (/etc/init.d/openerp-server)
Active: active (running) since Mon 2015-10-12 19:35:31 UTC; 4min 5s ago
Process: 4627 ExecStop=/etc/init.d/openerp-server stop (code=exited, status=0/SUCCESS)
Process: 4661 ExecStart=/etc/init.d/openerp-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/openerp-server.service
|-4665 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4680 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4681 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4682 /usr/bin/python /opt/openerp/odoo/openerp-gevent --config=/etc/odoo/openerp-server.conf
|-4683 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
`-4684 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
Oct 12 19:35:31 tkl-odoo openerp-server[4661]: Starting openerp-server: openerp-server.
Oct 12 19:35:31 tkl-odoo systemd[1]: Started LSB: Open Enterprise Resource Management software.
root@tkl-odoo ~# ls -l /var/run/odoo/
total 4
-rw-r--r-- 1 openerp openerp 4 Oct 12 19:35 openerp-server.pid
root@tkl-odoo ~# systemctl stop openerp-server.service
root@tkl-odoo ~# ls -l /var/run/odoo/
total 0
root@tkl-odoo ~# systemctl status openerp-server.service
* openerp-server.service - LSB: Open Enterprise Resource Management software
Loaded: loaded (/etc/init.d/openerp-server)
Active: inactive (dead) since Mon 2015-10-12 19:46:27 UTC; 1min 8s ago
Process: 4859 ExecStop=/etc/init.d/openerp-server stop (code=exited, status=0/SUCCESS)
Process: 4661 ExecStart=/etc/init.d/openerp-server start (code=exited, status=0/SUCCESS)
Oct 12 19:35:31 tkl-odoo openerp-server[4661]: Starting openerp-server: openerp-server.
Oct 12 19:35:31 tkl-odoo systemd[1]: Started LSB: Open Enterprise Resource Management software.
Oct 12 19:46:27 tkl-odoo systemd[1]: Stopping LSB: Open Enterprise Resource Management software...
Oct 12 19:46:27 tkl-odoo openerp-server[4859]: Stopping openerp-server: openerp-server.
Oct 12 19:46:27 tkl-odoo systemd[1]: Stopped LSB: Open Enterprise Resource Management software.
root@tkl-odoo ~# service openerp-server start
root@tkl-odoo ~# tail /var/run/odoo/openerp-server.pid
4957
root@tkl-odoo ~# systemctl status openerp-server.service
* openerp-server.service - LSB: Open Enterprise Resource Management software
Loaded: loaded (/etc/init.d/openerp-server)
Active: active (running) since Mon 2015-10-12 19:47:52 UTC; 12s ago
Process: 4859 ExecStop=/etc/init.d/openerp-server stop (code=exited, status=0/SUCCESS)
Process: 4953 ExecStart=/etc/init.d/openerp-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/openerp-server.service
|-4957 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4972 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4973 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-4974 /usr/bin/python /opt/openerp/odoo/openerp-gevent --config=/etc/odoo/openerp-server.conf
|-4975 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
`-4976 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
Oct 12 19:47:52 tkl-odoo openerp-server[4953]: Starting openerp-server: openerp-server.
Oct 12 19:47:52 tkl-odoo systemd[1]: Started LSB: Open Enterprise Resource Management software.
When worker is >0 Odoo is failing
Need python-gevent
Also need pycogreen and that needs installed with pip since it does not have a package due to maintainers and Odoo devs not seeing eye to eye