<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>環境変数 on qwerty.work</title>
        <link>https://qwerty.work/tags/%E7%92%B0%E5%A2%83%E5%A4%89%E6%95%B0/</link>
        <description>Recent content in 環境変数 on qwerty.work</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>ja-JP</language>
        <lastBuildDate>Mon, 25 Jun 2018 22:05:52 +0900</lastBuildDate><atom:link href="https://qwerty.work/tags/%E7%92%B0%E5%A2%83%E5%A4%89%E6%95%B0/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Movable TypeのトラックバックやPing更新通知の送信時に500エラーとなるときに試すこと</title>
            <link>https://qwerty.work/post/2018/06/movabletype-ping-500error/</link>
            <pubDate>Mon, 25 Jun 2018 22:05:52 +0900</pubDate>
            <guid>https://qwerty.work/post/2018/06/movabletype-ping-500error/</guid>
            <description>&lt;p&gt;Movable Typeで記事を新規投稿する際のPing更新通知でトラックバックが500エラーやタイムアウトになるときの対策をメモ。&lt;/p&gt;&#xA;&lt;h3 id=&#34;送信先のurlが無効と思っていた&#34;&gt;送信先のURLが無効と思っていた&#xA;&lt;/h3&gt;&lt;p&gt;有効な通知先のURLのはずなのに、MTのPing送信のエラーがたくさん出ているのが気になって、Ping更新通知先が今は存在していないのかな？と思っていたのですが、どうやら送った先のサーバーの処理時間が遅いため、レスポンスが返ってくる前に勝手にタイムアウトしていたみたいです。&lt;/p&gt;&#xA;&lt;h3 id=&#34;httptimeout-を設定してみる&#34;&gt;HTTPTimeout を設定してみる&#xA;&lt;/h3&gt;&lt;p&gt;そこで、&lt;strong&gt;mt-config.cgi&lt;/strong&gt; に以下の項目を追加してタイムアウトの時間を延ばせば回避できる可能性があります。&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;HTTPTimeout 300&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;設定がしていない場合のデフォルト値は60秒だそうです。&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;&#xA;&#xA;&lt;div class=&#34;link-card&#34;&gt;&#xA;  &lt;a href=&#34;https://www.movabletype.jp/documentation/appendices/config-directives/httptimeout.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-image&#34;&gt;&#xA;      &lt;img src=&#34;https://image.thum.io/get/width/300/crop/200/https://www.movabletype.jp/documentation/appendices/config-directives/httptimeout.html&#34; alt=&#34;https://www.movabletype.jp/documentation/appendices/config-directives/httptimeout.html&#34; loading=&#34;lazy&#34;&gt;&#xA;    &lt;/div&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-body&#34;&gt;&#xA;      &lt;span class=&#34;link-card-title&#34;&gt;https://www.movabletype.jp/documentation/appendices/config-directives/httptimeout.html&lt;/span&gt;&#xA;      &#xA;      &lt;span class=&#34;link-card-url&#34;&gt;https://www.movabletype.jp/documentation/appendices/config-directives/httptimeout.html&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h3 id=&#34;以前は-pingtimeout-という環境変数だった&#34;&gt;以前は PingTimeout という環境変数だった&#xA;&lt;/h3&gt;&lt;p&gt;Movable Type 3.3以前では &lt;strong&gt;PingTimeout&lt;/strong&gt; という環境変数で使われていたようです。&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;&#xA;&#xA;&lt;div class=&#34;link-card&#34;&gt;&#xA;  &lt;a href=&#34;https://www.movabletype.jp/documentation/appendices/config-directives/pingtimeout.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-image&#34;&gt;&#xA;      &lt;img src=&#34;https://image.thum.io/get/width/300/crop/200/https://www.movabletype.jp/documentation/appendices/config-directives/pingtimeout.html&#34; alt=&#34;https://www.movabletype.jp/documentation/appendices/config-directives/pingtimeout.html&#34; loading=&#34;lazy&#34;&gt;&#xA;    &lt;/div&gt;&#xA;    &#xA;    &lt;div class=&#34;link-card-body&#34;&gt;&#xA;      &lt;span class=&#34;link-card-title&#34;&gt;https://www.movabletype.jp/documentation/appendices/config-directives/pingtimeout.html&lt;/span&gt;&#xA;      &#xA;      &lt;span class=&#34;link-card-url&#34;&gt;https://www.movabletype.jp/documentation/appendices/config-directives/pingtimeout.html&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h3 id=&#34;参考&#34;&gt;参考&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://nj-clucker.com/trackback-ping-500-err-on-mt/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://nj-clucker.com/trackback-ping-500-err-on-mt/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;http://nlogn.ath.cx/archives/000314.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;http://nlogn.ath.cx/archives/000314.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item></channel>
</rss>
