Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Interrupted large attachments downloads with worker > 0 in Odoo 12.0 with Nginx

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
attachmentnginxodooV12
1 Balas
6231 Tampilan
Avatar
César Eduardo Barron Bautista

We are facing a weird behavior with Odoo 12.0 Enterprise Edition.


When we enable multithread in odoo config file, large attachments won't complete to download, it is interrupted at 11 megabytes aprox, we have nginx as reverse proxy.


I'm sure it's matter of configuration, has some one faced this odoo's behavior?


this is our odoo.conf

-------------------------------------------------------------------------

[options]
addons_path = /opt/odoo/enterprise,/opt/odoo/12.0/addons
data_dir = /mnt/ssd/datadir
proxy_mode = True
PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
geoip_database = /usr/share/GeoIP/GeoLiteCity.dat
workers = 39
limit_time_cpu = 172800
limit_time_real = 345600
limit_memory_hard = 7068709120
limit_memory_soft = 6094967296
limit_request = 8192
max_cron_threads = 2
logrotate = True
logfile = /var/log/odoo/odoo-server.log
log_db = False
log_db_level = warning
log_handler = :INFO
db_host = False
db_maxconn = 600
db_name = False
db_password = False
db_port = False
db_template = template1
db_user = False
dbfilter = .*
longpolling_port = 8072
xmlrpc = True
xmlrpc_interface = 127.0.0.1
xmlrpc_port = 8069

-----------------------------------------------------------------------------

And this is our nginx site config

-----------------------------------------------------------------------------

#odoo server
upstream odoo {
 server 127.0.0.1:8069 weight=1 fail_timeout=0;
}
upstream odoochat {
 server 127.0.0.1:8072 weight=1 fail_timeout=0;
}

# http -> https
server {
   listen 80;
   server_name mrp.geportal.com;
   rewrite ^(.*) https://$host$1 permanent;
}

server {
 listen 443;
 server_name mrp.geportal.com;

 client_max_body_size 200m;

 proxy_buffers 32 1024k;
 proxy_buffer_size 2048k;

 proxy_connect_timeout 172800s;
 proxy_send_timeout 172800s;
 proxy_read_timeout 172800s;
 proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

 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;

 # SSL parameters
 ssl on;
 ssl_certificate /etc/letsencrypt/live/mrp.geportal.com/fullchain.pem;
 ssl_certificate_key /etc/letsencrypt/live/mrp.geportal.com/privkey.pem;
 ssl_session_timeout 30m;
 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
 ssl_prefer_server_ciphers on;

 # log
 access_log /var/log/nginx/odoo.access.log;
 error_log /var/log/nginx/odoo.error.log;

proxy_redirect off;
proxy_buffering off;

 # Redirect longpoll requests to odoo longpolling port
 location /longpolling {
   proxy_pass http://odoochat;
 }

 # Redirect requests to odoo backend server
 location / {
   proxy_pass http://odoo;
 }

 # cache some static data in memory for 60mins.
 # under heavy load this should relieve stress on the OpenERP web interface a bit.
 location /web/static/ {
   proxy_cache_valid 200 60m;
   proxy_buffering on;
   expires 864000;
   proxy_pass http://odoo;
 }

 # common gzip
 gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;
 gzip on;
}

-----------------------------------------------------------------------------------------------

When we open the nginx log we can see an error like this:

2020/09/01 16:17:47 [error] 1350#1350: *1544 upstream prematurely closed connection while sending to client, client: 177.333.177.222, server: mrp.geportal.com, request: "GET /web/content/1131335?download=true HTTP/1.1", upstream: "http://127.0.0.1:8069/web/content/1131335?download=true", host: "mrp.geportal.com", referrer: "https://mrp.geportal.com/web?debug=assets"


We have the same problem even with 3 or 4 workers.


Thank you in advance for your help.



0
Avatar
Buang
hui zhang

Hello, I also encountered this problem, have you found a solution?

Avatar
Andre de Kock
Jawaban Terbai

I had the same issue as you. After playing around with various parameters, I found that removing `proxy_buffering off;` from the Nginx config solves the issue.

2
Avatar
Buang
César Eduardo Barron Bautista
Penulis

Thank you Andre! it works fine for me.

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Odoo V12 attachment PDF file to product
attachment product.template odooV12
Avatar
Avatar
2
Feb 19
10203
Accessing Odoo ERP passed by Nginx on web
nginx ubuntuserver ERP odooV12
Avatar
Avatar
1
Mei 24
5305
this is my travel agency and we are a travel manager
attachment
Avatar
0
Nov 25
3
Nginx odoo 16 proxy and method not allowed 405
nginx
Avatar
Avatar
2
Sep 24
3838
How can I setup odoo on a path with nginx
nginx
Avatar
Avatar
1
Mei 24
4656
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik 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