<?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>EC2 | 伊東屋TECHブログ</title>
	<atom:link href="https://tech-itoya.com/tag/ec2/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech-itoya.com</link>
	<description>千葉県・船橋市の総合園芸店が運営する技術ブログ</description>
	<lastBuildDate>Sun, 05 Oct 2025 00:19:57 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://tech-itoya.com/wp-content/uploads/2024/10/cropped-itoya-logo-32x32.png</url>
	<title>EC2 | 伊東屋TECHブログ</title>
	<link>https://tech-itoya.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【小ネタ】Supervisorctl 実行時に unix:///tmp/supervisor.sock no such file がでてしまった</title>
		<link>https://tech-itoya.com/%e3%80%90%e5%b0%8f%e3%83%8d%e3%82%bf%e3%80%91supervisorctl-%e5%ae%9f%e8%a1%8c%e6%99%82%e3%81%ab-unix-tmp-supervisor-sock-no-such-file-%e3%81%8c%e3%81%a7%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3/</link>
					<comments>https://tech-itoya.com/%e3%80%90%e5%b0%8f%e3%83%8d%e3%82%bf%e3%80%91supervisorctl-%e5%ae%9f%e8%a1%8c%e6%99%82%e3%81%ab-unix-tmp-supervisor-sock-no-such-file-%e3%81%8c%e3%81%a7%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3/#respond</comments>
		
		<dc:creator><![CDATA[tori-dash]]></dc:creator>
		<pubDate>Fri, 06 Dec 2024 14:41:29 +0000</pubDate>
				<category><![CDATA[TECH記事]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://tech-itoya.com/?p=257</guid>

					<description><![CDATA[laravel のキューイング処理などで supervisor を動作させていたのですが、ある日突然 supervisorctl 実行時にエラーがでるようになってしまいました socket ファイルがなくて怒られているよ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>laravel のキューイング処理などで supervisor を動作させていたのですが、ある日突然 supervisorctl 実行時にエラーがでるようになってしまいました</p>



<pre class="wp-block-code"><code># XXX@XXX:~/app$ /usr/bin/supervisorctl status
unix:///tmp/supervisor.sock no such file</code></pre>



<p>socket ファイルがなくて怒られているようですが、今まで動いていたのに何で？と思い調べた時のメモになります。</p>



<h2 class="wp-block-heading">結論</h2>



<p>お察しの方も多いかもしれませんが、「<strong>supervisor のソケットパスを <code>/tmp</code> 以外に指定</strong>」すれば解決しました。</p>



<p><strong><code>[unix_http_server]</code> と <code>[supervisorctl]</code></strong> に設定が必要で、具体的には以下のようになります。</p>



<pre class="wp-block-code"><code>&#91;unix_http_server]
;file=/tmp/supervisor.sock   ; デフォルトだと /tmp に作られる。
file=/var/run/supervisor.sock 
...(中略)

&#91;supervisorctl]
serverurl=unix:///var/run/supervisor.sock
...(中略)</code></pre>



<p>多くのディストリビューションで /tmp 配下のファイルは定期的にお掃除されるようになっています。</p>



<p>supervisor のデフォルト設定では /tmp 以下にソケットを作ろうとするので、折角作られたソケットファイルが掃除されてしまっていたことが原因でした。</p>



<p>今回の自分の実行環境は amazon linux 2023 で、10 日ごとに tmp ディレクトリ配下をお掃除する設定が入っていました。確認時のコマンドは以下です。</p>



<pre class="wp-block-code"><code># XXX@XXX:~/app$ /usr/lib/tmpfiles.d/tmp.conf
q /tmp 1777 root root 10d # /tmp 以下は 10 days で消える
q /var/tmp 1777 root root 30d</code></pre>



<p></p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="257"
					data-ulike-nonce="80b41d9782"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_257"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="+1"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://tech-itoya.com/%e3%80%90%e5%b0%8f%e3%83%8d%e3%82%bf%e3%80%91supervisorctl-%e5%ae%9f%e8%a1%8c%e6%99%82%e3%81%ab-unix-tmp-supervisor-sock-no-such-file-%e3%81%8c%e3%81%a7%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
