Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

connect() failed (111: Unknown error) while connecting to upstream in odoo 16 and ubuntu 22

Subscriure's

Get notified when there's activity on this post

This question has been flagged
ubuntu22.04odoov16
2471 Vistes
Avatar
Jacky supit

here is the error i saw in nginx error log:


> 2024/11/08 02:58:29 [error] 299885#299885: *432 connect() failed (111:

> Unknown error) while connecting to upstream, client: X.X.X.X (my ip

> address), server: x.com(my domain name), request: "GET /websocket

> HTTP/1.1", upstream: "http://127.0.0.1:42162/websocket", host:

> "x.com(my domain name)"


steps to reproduce:


> 1. go to any product page

> 2. click smart button to view On Hand Quantity

> 3. odoo will try to get the data via api call /call_button

> 4. but its just stuck there, nothing happened.


notes:

all exact same config works on my other server which is on ubuntu 20. but this one is error on ubuntu 22


here is my nginx config:


> upstream my-upstream {

>     server 127.0.0.1:40162; } upstream my-upstream-im {

>     server 127.0.0.1:42162; }

>

> server {

>     listen 80;

>     listen [::]:80;

>     server_name my-domain.com;

>     location / {

>         proxy_pass http://my-upstream;

>     } }

>

> server {

>     server_name my-domain.com;

>     # listen 443 ssl http2;

>     listen 443 ssl;

>

>     ssl_certificate /etc/letsencrypt/live/my-domain.com/fullchain.pem; # managed by Certbot

>     ssl_certificate_key /etc/letsencrypt/live/my-domain.com/privkey.pem; # managed by Certbot

>     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot

>     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

>

>     proxy_buffers 16 64k;

>     proxy_buffer_size 128k;

>

>     proxy_set_header    X-Forwarded-Host  $host;

>     proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;

>     proxy_set_header    X-Forwarded-Proto $scheme;

>     proxy_set_header    X-Real-IP         $remote_addr;

>     proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

>

>     client_max_body_size 2000M;

>     access_log /var/log/ptbi-trial-access.log;

>     error_log /var/log/ptbi-trial-error.log;

>     

>     location /websocket { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";       

>         proxy_set_header REQUEST_URI $request_uri;  # Add this line

>         proxy_connect_timeout   3600;

>         proxy_read_timeout      3600;

>         proxy_send_timeout      3600;

>         send_timeout            3600;

>         proxy_pass http://my-upstream-im;

>     }

>

>     location / {

>         proxy_redirect off;  

>         proxy_connect_timeout   360000;

>         proxy_read_timeout      360000;

>         proxy_send_timeout      360000;

>         send_timeout            360000;

>         proxy_set_header Host $http_host;

>         proxy_set_header X-Forwarded-Host $http_host;

>         proxy_set_header X-Real-IP $remote_addr;

>         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

>         proxy_set_header REQUEST_URI $request_uri;  # Add this line

>         add_header 'Access-Control-Allow-Origin' '*';

>         proxy_pass http://my-upstream; if ($request_method = 'OPTIONS') {

>             add_header 'Access-Control-Allow-Origin' '*';

>         add_header 'Access-Control-Allow-Credentials' 'true';

>             add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS';

>             add_header 'Access-Control-Allow-Headers' 'Access-Token,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Openerp-Session-Id';

>             add_header 'Access-Control-Max-Age' 1728000;

>             add_header 'Content-Type' 'text/plain charset=UTF-8';

>             add_header 'Content-Length' 0;

>             return 204;

>         } if ($request_method != 'OPTIONS') {

>     add_header 'Access-Control-Allow-Origin' '*';

>             add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS';

>             add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';

>     add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; }

>

>     }

>

>     gzip on;

>     gzip_min_length 2000; }


and here is my odoo conf, on ports section:


> proxy_mode = True

> xmlrpc_port=40162

> xmlrpcs_port=41162

> longpolling_port = False

> gevent_port = 42162

> workers = 2

> xmlrpc_interface = 127.0.0.1



my python version is: 3.8.2

is it really that odoo 16 doesnt support ubuntu 22?


any idea please?

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Product Availability on Sales Order - Green / Red Indicator - Odoo 16E
odoov16
Avatar
0
d’oct. 24
1890
Google Calendar in Odoo
odoov16
Avatar
0
de set. 24
1749
Invalid Operation: Error while importing module 'dental_clinical_management'
ubuntu22.04 OdooV17
Avatar
Avatar
Avatar
Avatar
Avatar
5
d’ag. 25
2048
Documents pdf
documents odoov16
Avatar
Avatar
1
d’abr. 25
1917
Connecting Amazon Pay
odoov16 Amazon
Avatar
0
de nov. 24
1738
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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