Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

504 Gateway Time-out #54

Open
withgogo opened this issue Mar 21, 2024 · 5 comments
Open

504 Gateway Time-out #54

withgogo opened this issue Mar 21, 2024 · 5 comments

Comments

@withgogo
Copy link

Hi, 大佬,
我升级到8.8.1,但是现在一部署,配置mysql的时候,就会出现504. 我把nginx的proxy_read_timeout和proxy_connect_timeout都设置成600s,但是好像过了60s就会出现下面的错误,请问哪里还要做设置啊?

504 Gateway Time-out
The gateway did not receive a timely response from the upstream server or application.
Powered by Tengine

@withgogo
Copy link
Author

看了一下log,是不是如下错误导致的504?

org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-10] (id=[82]) has been active for [67,024] milliseconds (since [3/21/24, 11:17 AM]) to serve the same request for [xxxx/setup/setupdbtype.action] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.

@haxqer
Copy link
Owner

haxqer commented Mar 21, 2024

快速解决方案:

  1. 安装时,通过 ip + port 访问
  2. 安装成功后,再部署至 nginx 后方

"may be stuck" 这个不是 error,这个是因为操作时间太长(初始化时间太长)提示的info
我使用下来,只有安装的时候才会出现此问题。其他操作,比如生成pdf一般也就10秒内能搞定,也不会有这个问题。
所以,我建议不用调整 nginx ,60s 够了

另外的问题,就是配置的内存太小了导致初始化很慢,也有小伙伴提了类似的 issue。后续合适的时机,我把默认的内存调大。

@withgogo
Copy link
Author

快速解决方案:

  1. 安装时,通过 ip + port 访问
  2. 安装成功后,再部署至 nginx 后方

"may be stuck" 这个不是 error,这个是因为操作时间太长(初始化时间太长)提示的info 我使用下来,只有安装的时候才会出现此问题。其他操作,比如生成pdf一般也就10秒内能搞定,也不会有这个问题。 所以,我建议不用调整 nginx ,60s 够了

另外的问题,就是配置的内存太小了导致初始化很慢,也有小伙伴提了类似的 issue。后续合适的时机,我把默认的内存调大。

内存配置了16G的。那现在安装的时候报这个错误就不要动,等后台数据库安装完成后,再刷新页面吗?
我看log就卡在数据库初始化不动了

Running Changeset: META-INF/db-changelog/68-add-containerId-transferId-column.xml::68-add-containerId-transferId-column.xml::MPT
Running Changeset: META-INF/db-changelog/69-add-step-progress-properties-table.xml::69-add-step-progress-properties-table.xml::MPT
Running Changeset: META-INF/db-changelog/70-remove-planId-column-from-mig_stats.xml::70-remove-planId-column-from-mig_stats::MPT

@haxqer
Copy link
Owner

haxqer commented Mar 21, 2024

Running Changeset: META-INF/db-changelog/70-remove-planId-column-from-mig_stats.xml::70-remove-planId-column-from-mig_stats::MPT

到这一步,就已经是安装成功了哦
image

@withgogo
Copy link
Author

Running Changeset: META-INF/db-changelog/70-remove-planId-column-from-mig_stats.xml::70-remove-planId-column-from-mig_stats::MPT

到这一步,就已经是安装成功了哦 image

呃,哦,但是这时候页面已经504了,然后一刷新就system error了。 我先用你说的IP+port试试看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants