<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system"]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">SFTPGo 2.7.6 fails to start on my Cloudron instance because it cannot create its SSH host key. The app restarts in a loop and the healthcheck never passes.</p>
<p dir="auto"><strong>Environment</strong></p>
<ul>
<li>Cloudron version: 10.0.5</li>
<li>SFTPGo package version: com.sftpgo.cloudronapp@1.4.5</li>
</ul>
<p dir="auto"><strong>Logs</strong><br />
No host keys configured and "id_rsa" does not exist; try to create a new host key<br />
error creating host key "id_rsa": open id_rsa: read-only file system<br />
could not start SFTP server: open id_rsa: read-only file system<br />
Healthcheck error: AbortError: The operation was aborted</p>
<p dir="auto">The log shows <code>HostKeys:[]</code> in the SFTP config and <code>config dir: .</code>. SFTPGo therefore tries to write <code>id_rsa</code> into its working directory, which is on the read-only filesystem (/app/code). The failure is retried every minute (restart loop).</p>
<p dir="auto">Everything else initializes fine: PostgreSQL migration (schema v33), SMTP, OIDC, HTTP on 8080 and WebDAV on 8888.</p>
<p dir="auto"><strong>Workaround</strong><br />
Setting the host keys explicitly to a writable location fixed it for me. In /app/data/sftpgo.json:</p>
<p dir="auto">"sftpd": {<br />
"bindings": [{"port": 2022}],<br />
"host_keys": ["/app/data/id_rsa", "/app/data/id_ecdsa", "/app/data/id_ed25519"]<br />
}</p>
]]></description><link>https://forum.cloudron.io/topic/16053/sftpgo-fails-to-start-could-not-start-sftp-server-open-id_rsa-read-only-file-system</link><generator>RSS for Node</generator><lastBuildDate>Mon, 19 Oct 2026 01:47:47 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16053.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Oct 2026 07:05:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 08:30:52 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: valexico">@<bdi>valexico</bdi></a></p>
<p dir="auto">I have reproduced it and identified the cause.<br />
An app update will be available soon that will fix starting the <a class="plugin-mentions-category plugin-mentions-a" href="/category/204/sftpgo" aria-label="Profile: sftpgo">@<bdi>sftpgo</bdi></a> app without <code>SFTPd</code> initially configured.</p>
]]></description><link>https://forum.cloudron.io/post/130352</link><guid isPermaLink="true">https://forum.cloudron.io/post/130352</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 08:25:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: valexico">@<bdi>valexico</bdi></a></p>
<p dir="auto">I am trying to reproduce this and will report back.</p>
]]></description><link>https://forum.cloudron.io/post/130351</link><guid isPermaLink="true">https://forum.cloudron.io/post/130351</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:25:45 GMT</pubDate></item><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 08:21:42 GMT]]></title><description><![CDATA[<p dir="auto">I just install the app without SFTPd and then the app was not able to start with those logs<br />
<a href="https://paste.cloudron.io/p/mole-panda-whale" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/p/mole-panda-whale</a></p>
<p dir="auto">then I did my workaround and restarted the app to boot properly</p>
<p dir="auto">Workaround<br />
"sftpd": {<br />
"bindings": [{"port": 2022}],<br />
"host_keys": ["/app/data/id_rsa", "/app/data/id_ecdsa", "/app/data/id_ed25519"]<br />
}</p>
]]></description><link>https://forum.cloudron.io/post/130350</link><guid isPermaLink="true">https://forum.cloudron.io/post/130350</guid><dc:creator><![CDATA[Valexico]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 08:17:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: valexico">@<bdi>valexico</bdi></a></p>
<p dir="auto">When <code>SFTPd</code> is not enabled the host_key for SFTPd will not be configured.<br />
So when you enable <code>SFTPd</code> and save, it will restart the app and configure the default host_key.</p>
<p dir="auto">Please answer the following question:</p>
<p dir="auto">You did install the app without <code>SFTPd</code> enabled.<br />
Then you did what exactly to get to the state of:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: Valexico">@<bdi>Valexico</bdi></a> <a href="/post/130340">said</a>:</p>
<p dir="auto">No host keys configured and "id_rsa" does not exist; try to create a new host key<br />
error creating host key "id_rsa": open id_rsa: read-only file system<br />
could not start SFTP server: open id_rsa: read-only file system<br />
Healthcheck error: AbortError: The operation was aborted</p>
</blockquote>
]]></description><link>https://forum.cloudron.io/post/130349</link><guid isPermaLink="true">https://forum.cloudron.io/post/130349</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:17:26 GMT</pubDate></item><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 08:09:29 GMT]]></title><description><![CDATA[<p dir="auto">I did install it like this :</p>
<p dir="auto"><img src="/assets/uploads/files/1790928560579-2911254b-e505-484a-ad8c-7f07ef117661-image.jpeg" alt="digi-studio 2026-10-02 at 10.08.47.jpeg" class="img-markdown  img-fluid" width="501" height="785" /></p>
<p dir="auto">is this the cause ?</p>
]]></description><link>https://forum.cloudron.io/post/130345</link><guid isPermaLink="true">https://forum.cloudron.io/post/130345</guid><dc:creator><![CDATA[Valexico]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:09:29 GMT</pubDate></item><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 08:07:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: valexico">@<bdi>valexico</bdi></a><br />
I could not reproduce this with a fresh <a class="plugin-mentions-category plugin-mentions-a" href="/category/204/sftpgo" aria-label="Profile: sftpgo">@<bdi>sftpgo</bdi></a> installation.</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: Valexico">@<bdi>Valexico</bdi></a> <a href="/post/130340">said</a>:</p>
<p dir="auto">No host keys configured</p>
</blockquote>
<p dir="auto">By default, the <a class="plugin-mentions-category plugin-mentions-a" href="/category/204/sftpgo" aria-label="Profile: sftpgo">@<bdi>sftpgo</bdi></a> app always generates the <code>/app/data/sftpgo_host_key</code> and automatically configures the <code>/app/data/sftpgo.json</code> file.<br />
Only when the app is started without the <code>SFTPd</code> port the config file does not automatically configure the <code>'.sftpd.host_keys[0]'</code> config entry:<br />
When enabling the <code>SFTPd</code> port it configures it again.<br />
Just tested this.</p>
<p dir="auto">Could please share the real log file from your <a class="plugin-mentions-category plugin-mentions-a" href="/category/204/sftpgo" aria-label="Profile: sftpgo">@<bdi>sftpgo</bdi></a> app via <a href="https://paste.cloudron.io/" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/</a> ?</p>
]]></description><link>https://forum.cloudron.io/post/130342</link><guid isPermaLink="true">https://forum.cloudron.io/post/130342</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 02 Oct 2026 08:07:06 GMT</pubDate></item><item><title><![CDATA[Reply to SFTPGo fails to start: "could not start SFTP server: open id_rsa: read-only file system" on Fri, 02 Oct 2026 07:41:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/valexico" aria-label="Profile: valexico">@<bdi>valexico</bdi></a><br />
Thanks for reporting, I will look into this.</p>
]]></description><link>https://forum.cloudron.io/post/130341</link><guid isPermaLink="true">https://forum.cloudron.io/post/130341</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 02 Oct 2026 07:41:43 GMT</pubDate></item></channel></rss>