Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

while restarting openerp server i got error: [Errno 98] Address already in use

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
threadingpython2.7__openerp__.py
7 Відповіді
114498 Переглядів
Аватар
Vaibhav

I have created 2 OpenERP instances in ubuntu 12.04 I have extracted openerp-7.0-latest.tar.gz this file 2 times as folder name openerp-7.0-test1 openerp-7.0-test2 I did changes in both config files having path openerp/tools/config.py I have changed only port numbers for test1 folder Port number is default 8069 and for test2 folder orinstance port number is 8099 when i have started openerp from test1 folder it is running fine. when i opened other terminal to run test2 instance it is showing me following error.

   user@ubuntu:~/openerp-7.0-test2$ ./openerp-server
   2013-10-11 16:11:47,496 15915 INFO ? openerp: OpenERP version 7.0-20130605-231041
  2013-10-11 16:11:47,496 15915 INFO ? openerp: addons paths: /home/user/openerp-7.0-test1/openerp/addons
 2013-10-11 16:11:47,496 15915 INFO ? openerp: database hostname: localhost
 2013-10-11 16:11:47,496 15915 INFO ? openerp: database port: 5432
 2013-10-11 16:11:47,496 15915 INFO ? openerp: database user: fabian
2013-10-11 16:11:47,956 15915 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-            Python/2.0.14` detected
 Exception in thread Thread-1:
 Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
   self.run()
 File "/usr/lib/python2.7/threading.py", line 504, in run
     self.__target(*self.__args, **self.__kwargs)
 File "/home/fabian/openerp-7.0-castel/openerp/service/wsgi_server.py", line 436, in serve
    httpd = werkzeug.serving.make_server(interface, port, application, threaded=True)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 399, in make_server
    passthrough_errors, ssl_context)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 331, in __init__
     HTTPServer.__init__(self, (host, int(port)), handler)
  File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
   self.server_bind()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
   SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
   self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
   return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

I have tried following command to change addons path but still it is showing me same error

  ./openerp-servver --addons=<path for test2 addons> --config=<path for config file of test2 instance>
3
Аватар
Відмінити
Odoo Mates

Reason and Solutions: https://www.youtube.com/watch?v=qizLT_p6z4g

Аватар
Mayur Maheshwari
Найкраща відповідь

Easy and best way to resolve this error

Link : http://maheshwarimayur.blogspot.in/2013/02/socketerror-errno-98-address-already-in.html

give me up votes if answer helps you .

5
Аватар
Відмінити
Аватар
Jay Patel (jpa)
Найкраща відповідь

List of currently running services,

$ ps -ef

$ ps -ef | grep openerp-server 
Here I'm find services (name: openerp-server) 
$ ps -ef | grep openerp-server
pc       6399  2391  0 14:06 pts/1    00:00:02 python ./openerp-server
pc       7488  2391  0 14:39 pts/1    00:00:00 grep --color=auto openerp-server

Did you notice above result PID (6399) running openerp. Kill that service using following command,

 $ sudo kill -9 -6399 

Now services is completely stop, you can start again normally.




2
Аватар
Відмінити
Аватар
Atul Kumar jain
Найкраща відповідь

change the port by running  this command

     ./openerp-server --xmlrpc-port 8090


and if you are using configuration then add/edit

    xmlrpc_port = 8090



2
Аватар
Відмінити
Аватар
ibrahim moamen
Найкраща відповідь

on ubuntu you have to kill port 8069 by using this command

sudo kill -9 $(sudo lsof -t -i:8069)

1
Аватар
Відмінити
Swagat Parida

You saved my headache.

Аватар
IBS Group
Найкраща відповідь

This openerp/tools/config.py is not the configuration file.

You need to create an actual configuration file named openerp-server.conf, here is a simple one: LINK to get started.

You can get details on individual config values here:

LINK

Run your server with argument -c openerp-server.conf

1
Аватар
Відмінити
Ray Carnes

Also, this message means OpenERP is running already. It probably isn't running properly, but it is using the default ports. Kill this process if you want to start it properly

Vaibhav
Автор

I have tried same but i was not able to resolve same problem.

Vaibhav
Автор

So I have tried to change in other files and it works :path is as "openerp/service/wsgi_server.py". inthis file I have given port number hard coded.i have changed on line number 435 Existing line is port = config['xmlrpc_port'] and I have replaced it with port =8089 and it is working fine thank you

Vaibhav
Автор

is this a right way to do such things ?

Аватар
Ram Peri
Найкраща відповідь

Here are some basic commands you need to know.

ps -ef | grep openerp-server

This will show you all the instances of openerp that are already running.

When the server runs, it occupies a port (binds to port 8069) and if you try to run the server once more, you get this error.

Now, you will very likely see some output for the previous command which shows that the server is already running (if you have installed using sudo apt-get install openerp, the server is automatically started as a service for you)

use this command to stop the process (only if you really have to) kill <pid> where <pid> is the number you see in the first column of the command ps -ef ... above.

Now you can try starting the server once more.

1
Аватар
Відмінити
Аватар
Med Said BARA
Найкраща відповідь

Hi;

[Errno98] means that a Port is already in use by another application !!!

The question is: Which Application and which port ???

This can be done as described by Ram perf (ps -ef | grep openerp-server).

You will probably found that it's openerp-server running on port 8069.

The second question now is: Why you are getting this [Error98] when starting the Second instance and not when starting the First instance ???

This is because when you started the first instance, the default port 8069 is Free ....

But, when you start the second instance the port 8069 is in use by the first instance.

Tthe Second question leads to a Third Question: Which port (we are talking about) ???

The port is: 8069 , Cause it' already in use by the first Instance (test1).

The next question (you may QUESTION , Mr Vaihbav) is: But I'm running the Second instance on port 8099 not on port 8069 ??

No Mr Vaihbab, you are running the second instance (test2) also on port 8069. Cause you did not changed the port of the second instance in the openerp-server.conf, and it's still using the default port 8069 !!!

What you should do now: Change the port of the second instance to 8099 in the server configuration file "openerp-server.conf" of the second instance.

You don't have to kill any other running process. Just re-start the second instance with the right config file on the right port.

If you do a Kill, you will kill the first instance, and i suppose that you need the 2 instances running.

If you want to verify, Take a look at your log file (or look in your console log), to see which port is already in use.

Last thing: The configuration of an OpenERP instance is entirely handled by the openerp-server.conf and by the parameters you pass to the server when starting from command line (Shell) or included in a script.

Best regards.

-1
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Реєстрація
Related Posts Відповіді Переглядів Дія
Error occurred during the installation of loan management(V6.1) module in V7.0
python2.7
Аватар
Аватар
Аватар
Аватар
3
жовт. 23
6840
auto-install, installable & active in __openerp__.py file Вирішено
__openerp__.py
Аватар
Аватар
Аватар
2
квіт. 23
24505
How to write a python function called automatically?
python2.7
Аватар
Аватар
Аватар
2
січ. 23
6270
Datetime in python Вирішено
python2.7
Аватар
Аватар
Аватар
Аватар
7
черв. 21
25494
AttributeError: 'module' object has no attribute 'model'
python2.7
Аватар
Аватар
Аватар
Аватар
Аватар
11
вер. 19
39519
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now