<?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[Ghost -  app fails to start as it cannot login to into MySQL]]></title><description><![CDATA[<p dir="auto">I have a couple of Ghost instances running, one of them has stopped being able to log into its MySQL database, and so refuses to start.</p>
<p dir="auto">In the Ghost log I see:</p>
<pre><code>Jun 29 16:36:39 ==&gt; Start ghost
Jun 29 16:36:39 ==&gt; Clear potential migration lock
Jun 29 16:36:39 mysql: [Warning] Using a password on the command line interface can be insecure.
Jun 29 16:36:39 ERROR 1045 (28000): Access denied for user '7a3734398b393a1d'@'37d74e68-8cfa-4dfe-88e9-faafd777950b.cloudron' (using password: YES)
Jun 29 16:36:39 json: updated "/app/data/config.production.json" in-place
Jun 29 16:36:39 json: updated "/app/data/config.production.json" in-place
Jun 29 16:36:39 json: updated "/app/data/config.production.json" in-place
Jun 29 16:36:39 ===&gt; Copy frotend/public folder for asset generation
Jun 29 16:36:39 ==&gt; Loading /app/data/env for potential overrides
Jun 29 16:36:39 ==&gt; Ensure permissions
Jun 29 16:36:39 ==&gt; Migrating database
Jun 29 16:36:39 [2025-06-29 20:36:39] ERROR Access denied for user '7a3734398b393a1d'@'37d74e68-8cfa-4dfe-88e9-faafd777950b.cloudron' (using password: YES)
Jun 29 16:36:39
Jun 29 16:36:39 Access denied for user '7a3734398b393a1d'@'37d74e68-8cfa-4dfe-88e9-faafd777950b.cloudron' (using password: YES)
Jun 29 16:36:39 2025-06-29T20:36:39Z
Jun 29 16:36:39 "Unknown database error"
Jun 29 16:36:39 2025-06-29T20:36:39Z
Jun 29 16:36:39 Error ID:
Jun 29 16:36:39 500
Jun 29 16:36:39 2025-06-29T20:36:39Z
Jun 29 16:36:39 Error Code:
Jun 29 16:36:39 DATABASE_CREATION_FAILED
Jun 29 16:36:39 2025-06-29T20:36:39Z
Jun 29 16:36:39 ----------------------------------------
Jun 29 16:36:39 2025-06-29T20:36:39Z
Jun 29 16:36:39 Error: Access denied for user '7a3734398b393a1d'@'37d74e68-8cfa-4dfe-88e9-faafd777950b.cloudron' (using password: YES)
Jun 29 16:36:39 at /home/cloudron/ghost/versions/5.126.1/node_modules/knex-migrator/lib/database.js:134:19
Jun 29 16:36:39 at /home/cloudron/ghost/versions/5.126.1/node_modules/knex-migrator/lib/database.js:57:19
Jun 29 16:36:39 at Packet.asError (/home/cloudron/ghost/versions/5.126.1/node_modules/mysql2/lib/packets/packet.js:740:17)
Jun 29 16:36:39 at ClientHandshake.execute (/home/cloudron/ghost/versions/5.126.1/node_modules/mysql2/lib/commands/command.js:29:26)
Jun 29 16:36:39 at Connection.handlePacket (/home/cloudron/ghost/versions/5.126.1/node_modules/mysql2/lib/base/connection.js:475:34)
Jun 29 16:36:39 at PacketParser.onPacket (/home/cloudron/ghost/versions/5.126.1/node_modules/mysql2/lib/base/connection.js:93:12)
Jun 29 16:36:39 at PacketParser.executeStart (/home/cloudron/ghost/versions/5.126.1/node_modules/mysql2/lib/packet_parser.js:75:16)
Jun 29 16:36:39 at Socket.&lt;anonymous&gt; (/home/cloudron/ghost/versions/5.126.1/node_modules/mysql2/lib/base/connection.js:100:25)
Jun 29 16:36:39 at Socket.emit (node:events:518:28)
Jun 29 16:36:39 at addChunk (node:internal/streams/readable:561:12)
Jun 29 16:36:39 at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
Jun 29 16:36:39 at Readable.push (node:internal/streams/readable:392:5)
</code></pre>
<p dir="auto">If I put the app into repair mode and try to log into the MySQL instance directly from the webterminal, same problem - login refused:</p>
<pre><code>root@37d74e68-8cfa-4dfe-88e9-faafd777950b:/# mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} 
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user '7a3734398b393a1d'@'37d74e68-8cfa-4dfe-88e9-faafd777950b.cloudron' (using password: YES)
</code></pre>
<p dir="auto">I've tried rolling back to a backup version from before the problems, but still having the same issue on startup now.  I've tried rolling back to various points and versions, but this does not seem to change the behavior.</p>
<p dir="auto">I've also tried restarting the MySQL service on the cloudron host, but that also made no difference.</p>
<p dir="auto">Anyone have any clues on the best way to troubleshoot this?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.cloudron.io/topic/14004/ghost-app-fails-to-start-as-it-cannot-login-to-into-mysql</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 23:24:08 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14004.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Jun 2025 20:49:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Tue, 01 Jul 2025 20:09:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jdeighton" aria-label="Profile: jdeighton">@<bdi>jdeighton</bdi></a><br />
Yes, that is possible. Here is also part of this in the documentation: <a href="https://docs.cloudron.io/guides/connect-mysql/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/connect-mysql/</a><br />
But! Not documented is the part how to access the main DB, since this is risky and most users should not do that.<br />
It is present in multiple forum posts so here.</p>
<p dir="auto">While connect to the root user on the server, run:</p>
<pre><code class="language-bash">docker exec -ti mysql /bin/bash
</code></pre>
<p dir="auto">and inside the container you can simply run:</p>
<pre><code class="language-bash">mysql -uroot -p$CLOUDRON_MYSQL_ROOT_PASSWORD
</code></pre>
]]></description><link>https://forum.cloudron.io/post/109550</link><guid isPermaLink="true">https://forum.cloudron.io/post/109550</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 01 Jul 2025 20:09:22 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Tue, 01 Jul 2025 18:57:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> That gets me into the DB for the individual app on that particular database - was wondering if it's possible to log into the MySQL service directly - that would let me list what databases exist, what users exist, and what permissions each user has.</p>
]]></description><link>https://forum.cloudron.io/post/109547</link><guid isPermaLink="true">https://forum.cloudron.io/post/109547</guid><dc:creator><![CDATA[jdeighton]]></dc:creator><pubDate>Tue, 01 Jul 2025 18:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Tue, 01 Jul 2025 00:22:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdeighton" aria-label="Profile: jdeighton">@<bdi>jdeighton</bdi></a> said in <a href="/post/109420">Ghost - app fails to start as it cannot login to into MySQL</a>:</p>
<blockquote>
<p dir="auto">Is there a way to log into MySQL as root to see if there is specific issue with that database?</p>
</blockquote>
<p dir="auto">Generally yes, open the app web terminal and click the paste DB credentials button in the top right.</p>
]]></description><link>https://forum.cloudron.io/post/109506</link><guid isPermaLink="true">https://forum.cloudron.io/post/109506</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Tue, 01 Jul 2025 00:22:11 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Mon, 30 Jun 2025 20:58:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdeighton" aria-label="Profile: jdeighton">@<bdi>jdeighton</bdi></a> Thanks for that.<br />
Not sure tho, need to investigate.</p>
]]></description><link>https://forum.cloudron.io/post/109496</link><guid isPermaLink="true">https://forum.cloudron.io/post/109496</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 30 Jun 2025 20:58:51 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Mon, 30 Jun 2025 20:40:39 GMT]]></title><description><![CDATA[<p dir="auto">The sqldump file had the same database name listed in there:</p>
<pre><code>-- MySQL dump 10.13  Distrib 8.0.41, for Linux (x86_64)
--
-- Host: localhost    Database: 7a3734398b393a1d
-- ------------------------------------------------------
-- Server version	8.0.41-0ubuntu0.24.04.1
&lt;snip&gt;
</code></pre>
<p dir="auto">Not sure if the mysqldump thinking it was localhost instead of the 37d74e68-8cfa-4dfe-88e9-faafd777950b.cloudron' name could be part of the issue?</p>
]]></description><link>https://forum.cloudron.io/post/109492</link><guid isPermaLink="true">https://forum.cloudron.io/post/109492</guid><dc:creator><![CDATA[jdeighton]]></dc:creator><pubDate>Mon, 30 Jun 2025 20:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Mon, 30 Jun 2025 20:35:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> - Thanks, cloning the app backup to a new name, renaming the original to something else, the renaming the clone to the original name sorted everything out - appreciate the suggestion.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> I'll try downloading the backup locally and examining the sql file to check what it was doing in there.</p>
]]></description><link>https://forum.cloudron.io/post/109491</link><guid isPermaLink="true">https://forum.cloudron.io/post/109491</guid><dc:creator><![CDATA[jdeighton]]></dc:creator><pubDate>Mon, 30 Jun 2025 20:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Mon, 30 Jun 2025 08:39:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdeighton" aria-label="Profile: jdeighton">@<bdi>jdeighton</bdi></a> Have you tried cloning the app from the latest backup - <a href="https://docs.cloudron.io/backups/#clone-app" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/backups/#clone-app</a> ? This creates a new database and fresh credentials.</p>
<p dir="auto">That said, this is the first time I have seen an error like this.... Let me know what happens with a clone and that will give an idea of something wrong with MySQL addon itself or whether it is just this one app.</p>
]]></description><link>https://forum.cloudron.io/post/109449</link><guid isPermaLink="true">https://forum.cloudron.io/post/109449</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 30 Jun 2025 08:39:50 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Mon, 30 Jun 2025 08:10:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jdeighton" aria-label="Profile: jdeighton">@<bdi>jdeighton</bdi></a><br />
Can you please download the latest app backup to your drive directly.<br />
In that backup the database should be there as well as <code>sql</code> file.<br />
In that file, can you confirm that the database name is correct?</p>
]]></description><link>https://forum.cloudron.io/post/109442</link><guid isPermaLink="true">https://forum.cloudron.io/post/109442</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 30 Jun 2025 08:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Mon, 30 Jun 2025 02:08:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> Tried that, shows as healthy, restarted anyway - no change.  Other apps (including other Ghost instances) are all running OK on the same box.</p>
<p dir="auto">Is there a way to log into MySQL as root to see if there is specific issue with that database?</p>
]]></description><link>https://forum.cloudron.io/post/109420</link><guid isPermaLink="true">https://forum.cloudron.io/post/109420</guid><dc:creator><![CDATA[jdeighton]]></dc:creator><pubDate>Mon, 30 Jun 2025 02:08:38 GMT</pubDate></item><item><title><![CDATA[Reply to Ghost -  app fails to start as it cannot login to into MySQL on Sun, 29 Jun 2025 23:53:34 GMT]]></title><description><![CDATA[<p dir="auto">Check the services status in the dashboard to make sure MySQL is running and healthy. Restart if necessary.</p>
]]></description><link>https://forum.cloudron.io/post/109419</link><guid isPermaLink="true">https://forum.cloudron.io/post/109419</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Sun, 29 Jun 2025 23:53:34 GMT</pubDate></item></channel></rss>