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

Tuning Odoo Gone Wrong

Subscriure's

Get notified when there's activity on this post

This question has been flagged
configurationsetupcommunityodooodoo16features
2748 Vistes
Avatar
mike chen

Hello, everyone! Yesterday I was playing/tuning with my Odoo, PostgreSQL, and Linux Kernel. But, the result is not like I expected. Often get 502 Bad Gateway nginx. Can someone help me through this?

My Spec:

8CPU

32 GB RAM

400 GB 

400 GB NVMe Disk Space


Here's my configuration:

Nginx sites enabled:

#odoo server

upstream odoo {

server 127.0.0.1:8069;

}

upstream odoochat {

server 127.0.0.1:8072;

}



server {

listen 80;

server_name (my IP address);


proxy_read_timeout 720s;

proxy_connect_timeout 720s;

proxy_send_timeout 720s;



# Add Headers for odoo proxy mode

proxy_set_header 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;


# log

access_log /var/log/nginx/odoo\.access\.log;

error_log\ /var/log/nginx/odoo.error.log;


# Redirect requests to odoo backend server

location / {

proxy_redirect off;

proxy_pass http://odoo;

}

location /longpolling {

proxy_pass http://odoochat;

}


# common gzip

gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;

gzip on;



client_body_in_file_only clean;

client_body_buffer_size 32K;

client_max_body_size 500M;

sendfile on;

send_timeout 600s;

keepalive_timeout 300;

}


Odoo.conf:

admin_passwd = -

db_host = localhost

db_name = False

db_password = -

db_port = 5432

db_sslmode = prefer

db_template = template0

db_user = limomoli

http_port = 8069

logfile = /var/log/limomoli/limomoli-server.log

addons_path=/limomoli/limomoli-server/addons,/limomoli/custom/addons

proxy mode = True

workers = 15

limit_memory_hard = 15360000000

limit_memory_soft = 12288000000

max_cron_threads = 2

limit_request = 8192

limit_time_cpu = 600

limit_time_real = 1200

log_level = debug_rpc


PostgreSQL conf:

max_connections = 100

shared_buffers = 15GB

effective_cache_size = 24GB

maintenance_work_mem = 2GB

checkpoint_completion_target = 0.9

wal_buffers = 16MB

default_statistics_target = 100

random_page_cost = 1.1

effective_io_concurrency = 200

work_mem = 20971kB

huge_pages = on

min_wal_size = 1GB

max_wal_size = 4GB

max_worker_processes = 8

max_parallel_workers_per_gather = 4

max_parallel_workers = 8

max_parallel_maintenance_workers = 4

synchronous_commit = off


Linux Kernel:

vm.nr_hugepages=7889

vm.swappiness=1

vm.overcommit_memory=2

vm.dirty_background_ratio=5


Really appreciate every help, thank you!

0
Avatar
Descartar
Mehjabin Farsana

can you see if the odoo service is still running or not

mike chen
Autor

yep, it's still running

Mehjabin Farsana

can you check the nginx access log and error log to see if there is any information

Sunny Sheth

Can you check about Odoo and custom module directory access was given correctly with the Odoo user?

Thanks

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
Confused About Limit_Memory_Hard and Soft Solved
configuration community odoo odoo16features
Avatar
Avatar
Avatar
2
de febr. 25
15702
How to Restore Odoo Online Database to Odoo Community ? Solved
community online odoo odoo16features
Avatar
Avatar
1
de nov. 23
3362
Style Compilation Failed
community error odoo odoo16features
Avatar
Avatar
1
d’ag. 23
4267
Assign Driver and License Plate for Delivery Order and Delivery Slip
community report deliveryorder odoo odoo16features
Avatar
Avatar
1
de set. 23
2176
Issue with CNAME Record & Custom Domain Configuration in Odoo
configuration setup
Avatar
Avatar
Avatar
Avatar
3
de nov. 25
3725
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