Closed DocCyblade closed 8 years ago
@l-arnold If you can do a quick build and test on the dev-rc1 branch. I made some style changes and removed some depreciated settings. Want to make sure things are still working well. Just post the results here
Edit this main post for the template.
systemctl stop openerp-server.service systemctl start openerp-server.service (no effect)
Checked Adminer. Does start with Postgres
Reboot
Still No Effect at Starting Service
Have tried both with systemctl stop openerp-server.service systemctl start openerp-server.service
and /etc/init.d /bin/bash openerp-server start -c /opt/openerp/openerp-server.conf
(but now that I look for the conf file, I am not seeing it in that folder.)
/etc/init.d/openerp-server
systemctl stop openerp-server.service
check the status of the service with systemctl status openerp-server.service
Ok.. Will give it a spin.. Need to tunnel in just a bit first,
third try on the build (mis-posted in Documentation - will delete there).
Package downloads hang but eventually work through w/ TKLDEV make command.
I noticed that packages were taking some time as well, but it did build.
If things still look good I'll mark this RC1
Take a look at the config file. I tried to document each option using the command line help or online Odoo docs. There was some options that are no longer used. I removed those.
It built last night but needed to put the install till this am. On it shortly. Should be fine.
Not starting. What folder is the openerp.server.conf file in now ? Seems the service won't start.
Check the service log see if there is an error
Looks like it is here: CONF=/etc/odoo/openerp-server.conf
It has been there for a while. Lets try the /bin/bash again.
Can't easily past my command line text:
cd /etc/init.d /bin/bash openerp-server start -c /etc/odoo/openerp-server.conf
says it is starting.
but "Service Unavailable" on the call still. Not showing as running in either in "Running services" or "Shutdown" program calls in Webmin
Where do I find the Service Log?
Apache Log showing some errors of this sort: [Wed Oct 07 13:29:51.520183 2015] [proxy_http:error] [pid 608] [client 192.168.1.106:63794] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: https://192.168.1.115/
Then this indicates Odoo itself is not open on 8069 [Wed Oct 07 13:29:53.881156 2015] [proxy:error] pid 609Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8069 (127.0.0.1) failed
My IP is 192.168.1.106 just now.
You should not need to pass config file to the script as it does that already.
What does the contents of /var/log/openerp-server.log
Empty File right now. Was looking at it yesterday in another build. Should populate w/ info but on my manual connection tests (not sure what I was doing then) it was only slightly populating.
Lets focus on this build. Any changes? Sounds like some in the Conf File itself. Should I use a Backup and see if it starts?
We should add this to the System Logs page in Webmin perhaps
Looks like 2 commits. Bigger one c8693227ae1aaf56c139cb39e22168ff07a67012
Doing a build now I'll see what I can find. The issue is with the config file as that what was changed.
Ok. Just looking at the Conf File changes likely the subjects. I can see that much was annotation of the purpose of diff settings. Need to parse other differences still
Oct 5 49941e45572af6665a99e77e4e57a782289b9851 Oct 6 c8693227ae1aaf56c139cb39e22168ff07a67012 Oct 7 08934b556f52c5321278d5213e86960514fdcb7b
It seems there is a few typos I the file. I also stumbled on another issue that there is a unmet dependency and it was not showing in the logs post more tonight
Round 2: RC1 Test following git fetch/pull/make clean/ make
Edit this main post for the template.
[X] Change Admin Password in Odoo Database Manager (testing control) seems to take in Odoo.
This page can’t be displayed
•Make sure the web address https://192.168.1.116:12321 is correct. •Look for the page with your search engine. •Refresh the page in a few minutes.
worth check that openerp-server.con admin-db variable also changes -- sometimes Odoo can "cache" this but not change it if not writing to openerp-server.conf properly
/etc/init.d/openerp-server
systemctl stop openerp-server.service
check the status of the service with systemctl status openerp-server.service
After Changing the Odoo Password, some Large Fault caused in the server. Not getting Webmin or Webshell to load now.
Still Odoo Database manager is responsive. Not taking Passwords but responsive.
I can even log in to Odoo with the original "admin" and "declared password" from first boot. Even installed "CRM" module after this.
Will reboot next. Should be something simple like Caps Lock but as I can't get into the files I can't find anything. Seems different really.
Reboot, strangely took a new IP address. Normally it would keep the last IP address (17 now not 16)
...
Very strange. It looks like either the IP Address changed at first boot or I was "dyslexic" on the IP number. Likely the latter though the Password Take will still be an issue.
I am running on IP 17 with all systems now. Reset password is Taking in Odoo.
admin_pw= (was reset properly)
Not sure what happened at first boot but systems running.
Should retest full install one more time.
RC1 Round 3: (should be good) (missing that webconsole) but all load at first view
https://192.168.1.120/ https://192.168.1.120:12321/ https://192.168.1.120:12320/
From Odoo Webmanager, Changed Password Right away said it took then: create Database:
Traceback (most recent call last): File "/opt/openerp/odoo/openerp/http.py", line 537, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/openerp/odoo/openerp/http.py", line 574, in dispatch result = self._call_function(*_self.params) File "/opt/openerp/odoo/openerp/http.py", line 311, in _call_function return self.endpoint(_args, *kwargs) File "/opt/openerp/odoo/openerp/http.py", line 803, in call return self.method(_args, _kw) File "/opt/openerp/odoo/openerp/http.py", line 403, in response_wrap response = f(_args, *_kw) File "/opt/openerp/odoo/addons/web/controllers/main.py", line 704, in create params['create_admin_pwd']) File "/opt/openerp/odoo/openerp/http.py", line 879, in proxy_method result = dispatch_rpc(self.service_name, method, args) File "/opt/openerp/odoo/openerp/http.py", line 115, in dispatch_rpc result = dispatch(method, params) File "/opt/openerp/odoo/openerp/service/db.py", line 65, in dispatch security.check_super(passwd) File "/opt/openerp/odoo/openerp/service/security.py", line 32, in check_super raise openerp.exceptions.AccessDenied() AccessDenied: Access denied.
Edit this main post for the template.
[ ] Change Admin Password in Odoo Database Manager (testing control) seems to take in Odoo.
This page can’t be displayed
•Make sure the web address https://192.168.1.116:12321 is correct. •Look for the page with your search engine. •Refresh the page in a few minutes.
worth check that openerp-server.con admin-db variable also changes -- sometimes Odoo can "cache" this but not change it if not writing to openerp-server.conf properly
/etc/init.d/openerp-server
systemctl stop openerp-server.service
check the status of the service with systemctl status openerp-server.service
What do you get when you run ls -l /etc/odoo/openerp-server.conf
New Password was set in /etc/odoo/openerp-server.conf
I ran: systemctl stop openerp-server.service systemctl start openerp-server.service
Then it took the new password. Will do another change now and see if it repeats. Installed, then went to Odoo but get a "poor" view. See screenshot
REFRESH did fix the View however (DO NOTE)
Same Cycle though. Change the PW, get a failure when trying to make a new DB:
I will start/stop with the /bin/bash openerp-server command next
So that command set did "stop" then "restart"
These are the running "services" after "start" Database Created with the 3rd Password now.
Will change the password again.
So this cycle, having started with cd /etc/init.d /bin/bash openerp-server stop /bin/bash openerp-server start
I was able to change the password, then use the new password to create a database.
the file * /etc/odoo/openerp-server.conf is showing the new 4th password
It seems the issue is in the Alternative Odoo Service start/stop somehow.
OT
@l-arnold - I see you using Webshell in your screenshots. While it can be really handy; IMO you would be much better off using a proper SSH client like PuTTY. You'll find that copy/paste works much better (select text to copy in a PuTTY session; and right click to paste) and things like
Also in the screen where you are using Webmin to see all running processes I'd like to point out a couple of things. Firstly to be correct they are processes - not (necessarily) 'services'. Unlike Windows, Linux doesn't actually differentiate between services and any other process. A 'service' (more commonly called a 'daemon in 'Linux-speak') is just a process that is running in the background. And secondly; whilst obviously Webmin works, IMO it is much quicker, easier and cleaner to do that at the commandline (inside your PuTTY session :wink: ). Try this:
ps aux | grep openerp
@l-arnold - I just did a few more commits, this should fix most of the bugs and add some features that should make debugging much easier (The logging)
I am doing a test build now with current state of dev-c1 @l-arnold I'll let you know if my quick testing works, I'd like to have a 2nd set of eyes on it
Did an ISO build, and VM install and ran a few commands. My change is already giving dividends!
Look at the /var/log/odoo/openerp-server-startup.log
file. Shows that service was stopped and started too quickly. Most likely by the inithooks for changing the database password and the super admin password. I opened a bug issue for that :-)
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 Thu 2015-10-08 02:13:15 UTC; 28s ago
Process: 3718 ExecStop=/etc/init.d/openerp-server stop (code=exited, status=0/SUCCESS)
Process: 3721 ExecStart=/etc/init.d/openerp-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/openerp-server.service
|-3726 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-3732 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-3733 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
|-3734 /usr/bin/python /opt/openerp/odoo/openerp-gevent --config=/etc/odoo/openerp-server.conf
|-3735 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
`-3736 python /opt/openerp/odoo/openerp-server --config=/etc/odoo/openerp-server.conf
Oct 08 02:13:15 tkl-odoo systemd[1]: Starting LSB: Open Enterprise Resource Management software...
Oct 08 02:13:15 tkl-odoo openerp-server[3721]: Starting openerp-server: openerp-server.
Oct 08 02:13:15 tkl-odoo systemd[1]: Started LSB: Open Enterprise Resource Management software.
root@tkl-odoo ~# ls -l /var/log/odoo
total 12
-rw-rw-r-- 1 openerp root 1159 Oct 8 02:13 openerp-server-startup.log
-rw-rw-r-- 1 openerp root 7344 Oct 8 02:13 openerp-server.log
root@tkl-odoo ~# tail /var/log/odoo/openerp-server.log
2015-10-08 02:13:16,066 3733 INFO ? openerp.service.server: Worker WorkerHTTP (3733) alive
2015-10-08 02:13:16,070 3732 INFO ? openerp.service.server: Worker WorkerHTTP (3732) alive
2015-10-08 02:13:16,076 3736 INFO ? openerp.service.server: Worker WorkerCron (3736) alive
2015-10-08 02:13:16,079 3735 INFO ? openerp.service.server: Worker WorkerCron (3735) alive
2015-10-08 02:13:16,344 3734 INFO ? openerp: OpenERP version 8.0
2015-10-08 02:13:16,344 3734 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons']
2015-10-08 02:13:16,344 3734 INFO ? openerp: database hostname: 127.0.0.1
2015-10-08 02:13:16,345 3734 INFO ? openerp: database port: 5432
2015-10-08 02:13:16,345 3734 INFO ? openerp: database user: openerp
2015-10-08 02:13:16,458 3734 INFO ? openerp.service.server: Evented Service (long polling) running on 127.0.0.1:8072
root@tkl-odoo ~# tail -n 100 /var/log/odoo/openerp-server-startup.log
Thu Oct 8 02:12:41 UTC 2015 - Starting openerp-server:
Thu Oct 8 02:12:47 UTC 2015 - Stopping openerp-server:
Thu Oct 8 02:12:47 UTC 2015 - Starting openerp-server:
Traceback (most recent call last):
File "/opt/openerp/odoo/openerp-server", line 5, in <module>
openerp.cli.main()
File "/opt/openerp/odoo/openerp/cli/__init__.py", line 68, in main
o.run(args)
File "/opt/openerp/odoo/openerp/cli/server.py", line 180, in run
main(args)
File "/opt/openerp/odoo/openerp/cli/server.py", line 174, in main
rc = openerp.service.server.start(preload=preload, stop=stop)
File "/opt/openerp/odoo/openerp/service/server.py", line 962, in start
rc = server.run(preload, stop)
File "/opt/openerp/odoo/openerp/service/server.py", line 637, in run
self.start()
File "/opt/openerp/odoo/openerp/service/server.py", line 609, in start
self.socket.bind(self.address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
Thu Oct 8 02:13:15 UTC 2015 - Stopping openerp-server:
Thu Oct 8 02:13:15 UTC 2015 - Starting openerp-server:
Well I am heading to bed. I am doing a build of the current state of dev-rc1 and see what it brings. @l-arnold if you have time tonight post your findings here in this issue.
We should be able to close out a bunch of issues if these changes are good
I think I am running the wrong Branch (ran it on dev-rc1) (perhaps a typo and you meant dev-rc1)
There were some changes so trust all is good. Will do a run through as soon as build or elsewise I am awake.
thanks again Ken!
----- Original Message -----
From: "Ken Robinson" notifications@github.com To: "DocCyblade/tkl-odoo" tkl-odoo@noreply.github.com Cc: "L. Arnold" larnold@nomadic.net Sent: Wednesday, October 7, 2015 8:07:19 PM Subject: Re: [tkl-odoo] v14.x WIP Notes (#35)
I am doing a test build now with current state of dev-c1 @l-arnold I'll let you know if my quick testing works, I'd like to have a 2nd set of eyes on it
— Reply to this email directly or view it on GitHub .
@l-arnold yes it should be dev-rc1 branch
Good night!
@l-arnold there is an issue with this pid file, however I think it highlights an even bigger bug. Restarting the service. #43 It seems something is a foot.
@l-arnold I;ll have some time over my lunch break to finish this up. Waiting some comments from @JedMeister on #43 not sure if he will commit, it's 9pm his time right now. But if he does, I'll patch up the pid/init script
@DocCyblade Just finally got an install (power outage in the middle of round 1). This is from Last Night's pull, so perhaps not quite up to date with your code base.
First go getting "Service Unavailable".
Trying to start as yesterday and not getting success. cd /etc/init.d /bin/bash openerp-server start (stop) (restart etc) (do get a line confirming one or the other thing is happening, but no response to confirm.
One Note: using / systemctl stop openerp-server.service
there is no "shell" response line of confrmation to follow. That would seem valuable actually. I had thought it was there but not really sure.
openerp-server-startup.log
Thu Oct 8 16:20:41 UTC 2015 - Starting openerp-server:
Traceback (most recent call last):
File "/opt/openerp/odoo/openerp-server", line 5, in
I have the following in the
2015-10-08 16:20:46,178 693 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:20:46,178 693 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:20:46,178 693 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:20:46,179 693 INFO ? openerp: database port: 5432 2015-10-08 16:20:46,179 693 INFO ? openerp: database user: openerp 2015-10-08 16:21:11,029 3499 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:21:11,030 3499 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:21:11,030 3499 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:21:11,030 3499 INFO ? openerp: database port: 5432 2015-10-08 16:21:11,030 3499 INFO ? openerp: database user: openerp 2015-10-08 16:23:41,057 3573 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:23:41,058 3573 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:23:41,058 3573 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:23:41,058 3573 INFO ? openerp: database port: 5432 2015-10-08 16:23:41,058 3573 INFO ? openerp: database user: openerp 2015-10-08 16:28:40,453 3917 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:28:40,453 3917 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:28:40,453 3917 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:28:40,453 3917 INFO ? openerp: database port: 5432 2015-10-08 16:28:40,453 3917 INFO ? openerp: database user: openerp 2015-10-08 16:29:22,311 3954 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:29:22,311 3954 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:29:22,311 3954 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:29:22,312 3954 INFO ? openerp: database port: 5432 2015-10-08 16:29:22,312 3954 INFO ? openerp: database user: openerp 2015-10-08 16:32:49,527 4023 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:32:49,527 4023 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:32:49,527 4023 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:32:49,528 4023 INFO ? openerp: database port: 5432 2015-10-08 16:32:49,528 4023 INFO ? openerp: database user: openerp 2015-10-08 16:33:35,052 4064 INFO ? openerp: OpenERP version 8.0 2015-10-08 16:33:35,053 4064 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-08 16:33:35,053 4064 INFO ? openerp: database hostname: 127.0.0.1 2015-10-08 16:33:35,053 4064 INFO ? openerp: database port: 5432 2015-10-08 16:33:35,053 4064 INFO ? openerp: database user: openerp
It's an issue I am working on now. I'll have some update commits by tonight
Sounds good. Let me know if I can help in any way.
Basically I am refitting the init script to support better restarting and handling of asynchronous commands
This is why I think we saw Odoo broken sometimes out of the box but a reboot seemed to fix it.
Just got home not to long ago. dev-rc1
branch should have the pid file fixed but the first boot still needs some work. I pushed my WIP changed into a new branch dev-init-rewrite
You can test the current dev-rc1
if you would like. That should have the pid file fixed. Going to work a few min on the init script then heading to bed, will be another log day tomorrow.
doing build now based of `dev-init-rewrite'
I'll tested it in the am, i am off to bed. Check out the init changed
Will work on this soon. Out of the office so need to connect.
Report soon.
@l-arnold - If you want to test the current dev-rc1 branch that would be good. We are testing for the following issues
Building now.
First Boot, "Service Unavailable" on port 443.. Will see if I can get it started.
Firstboot, no response to systemctl stop openerp-server.service systemctl start openerp-server.service or cd /etc/init.d /bin/bash openerp-server stop /bin/bash openerp-server-start
(no errors shown in shell). Will restart and also check log next
2015-10-10 17:59:26,103 705 INFO ? openerp: OpenERP version 8.0 2015-10-10 17:59:26,103 705 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-10 17:59:26,103 705 INFO ? openerp: database hostname: 127.0.0.1 2015-10-10 17:59:26,103 705 INFO ? openerp: database port: 5432 2015-10-10 17:59:26,103 705 INFO ? openerp: database user: openerp 2015-10-10 17:59:50,556 3508 INFO ? openerp: OpenERP version 8.0 2015-10-10 17:59:50,557 3508 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-10 17:59:50,557 3508 INFO ? openerp: database hostname: 127.0.0.1 2015-10-10 17:59:50,557 3508 INFO ? openerp: database port: 5432 2015-10-10 17:59:50,557 3508 INFO ? openerp: database user: openerp 2015-10-10 18:01:51,748 3584 INFO ? openerp: OpenERP version 8.0 2015-10-10 18:01:51,748 3584 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-10 18:01:51,748 3584 INFO ? openerp: database hostname: 127.0.0.1 2015-10-10 18:01:51,748 3584 INFO ? openerp: database port: 5432 2015-10-10 18:01:51,748 3584 INFO ? openerp: database user: openerp 2015-10-10 18:33:56,611 4153 INFO ? openerp: OpenERP version 8.0 2015-10-10 18:33:56,612 4153 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-10 18:33:56,612 4153 INFO ? openerp: database hostname: 127.0.0.1 2015-10-10 18:33:56,612 4153 INFO ? openerp: database port: 5432 2015-10-10 18:33:56,612 4153 INFO ? openerp: database user: openerp 2015-10-10 18:34:40,915 4224 INFO ? openerp: OpenERP version 8.0 2015-10-10 18:34:40,915 4224 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-10 18:34:40,915 4224 INFO ? openerp: database hostname: 127.0.0.1 2015-10-10 18:34:40,915 4224 INFO ? openerp: database port: 5432 2015-10-10 18:34:40,915 4224 INFO ? openerp: database user: openerp 2015-10-10 18:38:00,137 634 INFO ? openerp: OpenERP version 8.0 2015-10-10 18:38:00,138 634 INFO ? openerp: addons paths: ['/opt/openerp/.local/share/Odoo/addons/8.0', u'/opt/openerp/odoo/addons', '/opt/openerp/odoo/openerp/addons'] 2015-10-10 18:38:00,138 634 INFO ? openerp: database hostname: 127.0.0.1 2015-10-10 18:38:00,138 634 INFO ? openerp: database port: 5432 2015-10-10 18:38:00,138 634 INFO ? openerp: database user: openerp
What is the ",u" about in the second declaration of the addons path? Might be normal but just checking if we know.
Notes for v14.x