跳至内容
菜单
此问题已终结
3 回复
2527 查看

When I am in the view of the invoice shown in the image and I click on download, the browser is continuously processing (the loading circle of the tab rotates) and after about 20-30 seconds the nginx error of the image is displayed.

I have checked the logs but no logs are being saved in the /var/log/odoo/odoo.log file

I tried installing wkhtmltopdf, but the problem persists. What else could I try?

形象
丢弃
编写者

Hi, I solved the problem.

The odoo.conf file had only 1 worker defined.
Print / download invoice requires 2 workers

Sound good.
If you want to user workers you need to configure it correctly:
number of workers = (CPU Core * 2) + 1
So if you have server with 4 CPU, 8 Thread:
(4 * 2) + 1 = 9 <- theoretical maximal number of worker

You can refer to Odoo deployment:
https://www.odoo.com/documentation/16.0/administration/install/deploy.html#id5

最佳答案

Do you use any other reverse proxy besides Nginx?

形象
丢弃

Try running wkhtmltopdf manually from the command line to see if it works outside of Odoo.
This post was last modified: 10-04-2025, 05:48 am by https://spacewaves.io

编写者 最佳答案

Sorry

I just saw that I hadn't uploaded the images, and I can't do that because of karma. Proxy mode is set to true, I'm checking console. When I press download i get a 504 Gateway Time-out from nginx

形象
丢弃

What are you getting in the console?
You need to check the nginx error log as well.

编写者

I'm getting this in the console

warning: Some modules could not be started
boot.js:327 Missing dependencies: Array(19)0: "@web/core/assets"1: "@web/core/browser/feature_detection"2: "@web/core/ui/ui_service"3: "@web/core/l10n/translation"4: "@web/core/utils/render"5: "@web/core/browser/browser"6: "@web/core/registry"7: "@web/core/utils/concurrency"8: "@web/core/utils/ui"9: "@web/core/transition"10: "@web/core/l10n/localization"11: "@web/core/utils/strings"12: "web.public_env"13: "web.public.lazyloader"14: "@web/legacy/utils"15: "web.OwlCompatibility"16: "@web/env"17: "@web/core/main_components_container"18: "@web/core/network/rpc_service"length: 19[[Prototype]]: Array(0)
boot.js:348 Non loaded modules: Array(61)0: "web.assets.qweb"1: "@web/legacy/js/libs/pdfjs"2: "web.AbstractService"3: "web.AbstractStorageService"4: "web.ajax"5: "web.BrowserDetection"6: "web.Bus"7: "web.Dialog"8: "web.OwlDialog"9: "web.dom"10: "web.local_storage"11: "web.mixins"12: "web.QWeb"13: "web.RamStorage"14: "web.Registry"15: "web.rpc"16: "web.ServiceProviderMixin"17: "web.ServicesMixin"18: "web.Session"19: "web.sessionStorage"20: "web.time"21: "web.translation"22: "web.utils"23: "web.Widget"24: "web.AjaxService"25: "web.config"26: "web.core"27: "web.LocalStorageService"28: "web.SessionStorageService"29: "web.commonEnv"30: "web.name_and_signature"31: "web/static/src/js/core/smooth_scroll_on_drag.js"32: "web.Colorpicker"33: "web.TranslationDialog"34: "@bus/im_status_service"35: "@bus/multi_tab_service"36: "@bus/services/assets_watchdog_service"37: "@bus/services/bus_service"38: "@bus/services/legacy/make_bus_service_to_legacy_env"39: "@bus/services/legacy/make_multi_tab_to_legacy_env"40: "@bus/services/presence_service"41: "web_tour.RunningTourActionHelper"42: "web_tour.Tip"43: "web_tour.TourManager"44: "web_tour.tour"45: "web_tour.TourStepUtils"46: "web_tour.utils"47: "web_editor.ace"48: "@web_editor/js/common/grid_layout_utils"49: "web_editor.utils"50: "@sign/js/common/PDFIframe"51: "@sign/js/common/document"52: "@sign/js/common/document_signable"53: "web.assets_common.bundle.xml"54: "web.session"55: "@web/legacy/js/public/public_root"56: "web.public.root"57: "@web/legacy/js/public/public_root_instance"58: "root.widget"59: "@web/legacy/js/public/public_widget"60: "web.public.widget"length: 61[[Prototype]]: Array(0)
owl.js:5605 Owl is running in 'dev' mode.

This is not suitable for production use.
See https://github.com/odoo/owl/blob/ba20267/doc/reference/app.md#configuration for more information.
tour_manager.js:53 Tour Manager is ready. running_tour=null

最佳答案

Hi,

You are using nginx so Make sure that the proxy_mode = True in your Odoo config file. 

If you opened the inspect in your browser and check console, you will find more details about the error.

Thanks

形象
丢弃
相关帖文 回复 查看 活动
1
7月 25
166
2
7月 25
422
1
7月 25
1463
3
4月 25
1566
1
3月 25
1596