<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>upstream timed out &#8211; 21點情報網</title>
	<atom:link href="https://ailog.tw/lifelog/tag/upstream-timed-out/feed/" rel="self" type="application/rss+xml" />
	<link>https://ailog.tw/lifelog</link>
	<description></description>
	<lastBuildDate>Fri, 16 Jun 2023 13:25:39 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>nginx 出現upstream timed out (60: Operation timed out) while reading response header from upstream錯誤訊息</title>
		<link>https://ailog.tw/lifelog/2023/06/16/nginx-timeout/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Fri, 16 Jun 2023 13:25:39 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[60: Operation timed out]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Timeout]]></category>
		<category><![CDATA[upstream timed out]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=15948</guid>

					<description><![CDATA[運作好一陣子的nginx web server，今天突然接到使用者反映出現「An error occurred &#8230; <p class="link-more"><a href="https://ailog.tw/lifelog/2023/06/16/nginx-timeout/" class="more-link">閱讀全文<span class="screen-reader-text">〈nginx 出現upstream timed out (60: Operation timed out) while reading response header from upstream錯誤訊息〉</span></a></p>]]></description>
										<content:encoded><![CDATA[<p><span style="font-family: verdana, geneva;">運作好一陣子的nginx web server，今天突然接到使用者反映出現「An error occurred」，查看log訊息看到「upstream timed out (60: Operation timed out) while reading response header from upstream」錯誤訊息。</span></p>
<p><span style="font-family: verdana, geneva;"><span id="more-15948"></span></span></p>
<p><span style="font-family: verdana, geneva;">該訊息代表網頁運作的程式已超過預設的60秒超時(Time Out)限制，該如何排除呢?快跟著小編一起來了解吧!</span></p>
<p><span style="color: #0000ff;"><strong><span style="font-family: verdana, geneva;">[狀況說明]</span></strong></span><br />
<span style="font-family: verdana, geneva;">(1)、網頁出現下列訊息<br />
<img fetchpriority="high" decoding="async" class="alignnone wp-image-15950 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-00.png" alt="" width="607" height="217" srcset="https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-00.png 607w, https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-00-300x107.png 300w" sizes="(max-width: 607px) 100vw, 607px" /><br />
</span></p>
<p><span style="font-family: verdana, geneva;">(2)、查看nginx的log錯誤訊息</span></p>
<p><span style="font-family: verdana, geneva;">指令語法：</span></p>
<pre class="code">cat /var/log/nginx/error.log | more</pre>
<p>會看到下列錯誤訊息<br />
<img decoding="async" class="alignnone wp-image-15953 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-01.png" alt="" width="1100" height="158" srcset="https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-01.png 1100w, https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-01-300x43.png 300w, https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-01-1024x147.png 1024w, https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-01-768x110.png 768w" sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></p>
<p><span style="color: #0000ff; font-family: verdana, geneva;"><strong>[系統環境]</strong></span><br />
<span style="font-family: verdana, geneva;">作業系統：FreeBSD 10.4</span><br />
<span style="font-family: verdana, geneva;">nginx版本：1.14.0</span></p>
<p><span style="font-family: verdana, geneva;"><strong><span style="color: #0000ff;">[變更nginx超時設定值]</span></strong></span><br />
<span style="font-family: verdana, geneva;">指令語法：</span></p>
<pre class="code">vi /usr/local/etc/nginx/nginx.conf</pre>
<p><span style="font-family: verdana, geneva;">加入以下參數：</span></p>
<pre class="code">proxy_connect_timeout 240s;
proxy_send_timeout 240s;
proxy_read_timeout 240s;
fastcgi_send_timeout 240s;
fastcgi_read_timeout 240s;</pre>
<p><span style="font-family: verdana, geneva;">範例設定：</span><br />
<img decoding="async" class="alignnone wp-image-15954 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-02.png" alt="" width="786" height="428" srcset="https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-02.png 786w, https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-02-300x163.png 300w, https://ailog.tw/lifelog/wp-content/uploads/2023/06/nginx-timeout-02-768x418.png 768w" sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></p>
<p><span style="color: #0000ff; font-family: verdana, geneva;"><strong>[重新啟動nginx服務]</strong></span><br />
<span style="font-family: verdana, geneva;">指令語法：</span></p>
<pre class="code">/usr/local/etc/rc.d/nginx restart</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
