CRITICAL:xml-rpc:[16]: Error occur when starting the server daemon: [Errno 98] Address already in use

Asked by Kayode Odusote

Installed openerp-server-5.0.12 and openerp-client-5.0.12 but had problem installing the client-serve though I could test it. So I removed the openerp5 directory and all its content. Then installed the openerp-server-5.0.6 with the package manager of Ubuntu 10.4. Attempt to start the server gave the following error:

openerp-server
[2010-09-09 07:16:35,642] INFO:server:version - 5.0.12
[2010-09-09 07:16:35,643] INFO:server:addons_path - /var/lib/openerp5/openerp-server-5.0.12/bin/addons
[2010-09-09 07:16:35,644] INFO:server:database hostname - localhost
[2010-09-09 07:16:35,645] INFO:server:database port - 5432
[2010-09-09 07:16:35,646] INFO:server:database user - kayodu
[2010-09-09 07:16:35,647] INFO:objects:initialising distributed objects services
bzr: ERROR: Not a branch: "/usr/local/lib/python2.6/dist-packages/openerp-server/".
[2010-09-09 07:16:38,602] CRITICAL:xml-rpc:[01]:
[2010-09-09 07:16:38,604] CRITICAL:xml-rpc:[02]: Environment Information :
[2010-09-09 07:16:38,605] CRITICAL:xml-rpc:[03]: System : Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
[2010-09-09 07:16:38,605] CRITICAL:xml-rpc:[04]: OS Name : posix
[2010-09-09 07:16:38,606] CRITICAL:xml-rpc:[05]: Distributor ID: Ubuntu
[2010-09-09 07:16:38,607] CRITICAL:xml-rpc:[06]: Description: Ubuntu 10.04.1 LTS
[2010-09-09 07:16:38,608] CRITICAL:xml-rpc:[07]: Release: 10.04
[2010-09-09 07:16:38,609] CRITICAL:xml-rpc:[08]: Codename: lucid
[2010-09-09 07:16:38,609] CRITICAL:xml-rpc:[09]: Operating System Release : 2.6.32-24-generic
[2010-09-09 07:16:38,611] CRITICAL:xml-rpc:[10]: Operating System Version : #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010
[2010-09-09 07:16:38,612] CRITICAL:xml-rpc:[11]: Operating System Architecture : 32bit
[2010-09-09 07:16:38,612] CRITICAL:xml-rpc:[12]: Operating System Locale : en_US.UTF8
[2010-09-09 07:16:38,613] CRITICAL:xml-rpc:[13]: Python Version : 2.6.5
[2010-09-09 07:16:38,613] CRITICAL:xml-rpc:[14]: OpenERP-Server Version : 5.0.12
[2010-09-09 07:16:38,613] CRITICAL:xml-rpc:[15]: Last revision No. & ID :
[2010-09-09 07:16:38,614] CRITICAL:xml-rpc:[16]: Error occur when starting the server daemon: [Errno 98] Address already in use

Can anyone help?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Kayode Odusote
Solved:
Last query:
Last reply:
Revision history for this message
Ravindra Mekhiya(OpenERP) (rme-openerp) said :
#1

Hello Kayode Odusote,

It seems that you are running two server at a time.

When you run server it occupy port address that might not be used by another process so it will give you ERROR "xml-rpc:[16]: Error occur when starting the server daemon: [Errno 98] Address already in use".

If you want to run two server at a time then both server having different port addresses.

Hope it will help you.

Revision history for this message
Kayode Odusote (odusote-kayode) said :
#2

Thanks for the prompt answer. I guessed that must have been the case but I assumed that I had deleted the server installed earlier in /var/lib/openerp5 when I deleted the directory. Searching for openerp-server-5.0.12 returns not found. Obviously somewhere in the system reference to the server exists. Attempts to stop with sudo openerp-server-5.0.12 stop gives a not found error.

So how can I totally remove the server-5.0.12 earlier installed completely and use only the recently installed stable server-5.0.6?

Revision history for this message
Kayode Odusote (odusote-kayode) said :
#3

I was able to remove the server-5.0.6 and client-5.0.6 but "openerp-server" continues to try to connect to openerp-server-5.0.12 even after attempts to purge it as shown below:

kayodu@ubuntu:~$ sudo apt-get remove openerp-server-core-5.0.12
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package openerp-server-core-5.0.12
kayodu@ubuntu:~$ sudo apt-get remove openerp-server-5.0.12
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package openerp-server-5.0.12
kayodu@ubuntu:~$ sudo apt-get remove openerp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openerp-server is not installed, so not removed
The following packages were automatically installed and are no longer required:
  python-libxslt1 linux-headers-2.6.32-21 libnet-ssleay-perl makepasswd
  libgfortran3 libdate-calc-perl libcarp-clan-perl libhippocanvas-1-0 ttf-lyx
  python-numpy blt linux-headers-2.6.32-21-generic python-tk libtiff-tools
  python-matplotlib-data libhttp-server-simple-perl
  libcrypt-openssl-random-perl libwww-mechanize-perl libblas3gf tcl8.5
  liblapack3gf libcrypt-passwdmd5-perl tk8.5 python-matplotlib
  libio-socket-ssl-perl python-hippocanvas libbit-vector-perl
  libnet-libidn-perl
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
kayodu@ubuntu:~$ sudo dpkg --purge openerp-server-5.0.12
dpkg: warning: ignoring request to remove openerp-server-5.0.12 which isn't installed.
kayodu@ubuntu:~$ openerp-server
[2010-09-10 08:40:25,878] INFO:server:version - 5.0.12
[2010-09-10 08:40:25,879] INFO:server:addons_path - /var/lib/openerp5/openerp-server-5.0.12/bin/addons
[2010-09-10 08:40:25,879] INFO:server:database hostname - localhost
[2010-09-10 08:40:25,880] INFO:server:database port - 5432
[2010-09-10 08:40:25,881] INFO:server:database user - kayodu
[2010-09-10 08:40:25,881] INFO:objects:initialising distributed objects services
[2010-09-10 08:40:26,500] INFO:web-services:starting XML-RPC services, port 8069
[2010-09-10 08:40:26,501] INFO:web-services:starting NET-RPC service, port 8070
[2010-09-10 08:40:26,502] INFO:web-services:the server is running, waiting for connections...

Can anyone tell me what is going on and how can I uninstall/purge this server and reinstall the stable 5.0.6?

Revision history for this message
Kayode Odusote (odusote-kayode) said :
#4

I seemed to have solved the problem by deleting the .openerp-serverrc and the .openerprc files.