<?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[Correct mongodb connection parameters?]]></title><description><![CDATA[<p dir="auto">I am trying to package the CodexDocs app, and am struggling to express the required connection string in Cloudron format.</p>
<p dir="auto">The 'native' command is an environment variable :<br />
<code>APP_CONFIG_database_mongodb_uri=mongodb://mongo:fe7cb9063db50ab63c87@codexdocs_codex-db:27017</code></p>
<p dir="auto">I ham trying to express this in Cloudron syntax in <code>start.sh</code> for mongodb addon as :<br />
<code>export APP_CONFIG_database_mongodb_uri=mongodb://${CLOUDRON_MONGODB_USERNAME}:${CLOUDRON_MONGODB_PASSWORD}@${CLOUDRON_MONGODB_DATABASE}:${CLOUDRON_MONGODB_PORT}</code></p>
<p dir="auto">But I am getting <code>AuthenticationFailed</code><br />
And I can't see what is wrong. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--blush" style="height:23px;width:auto;vertical-align:middle" title=":blush:" alt="😊" /><br />
Just checking with y'all if my statement looks ok.</p>
<p dir="auto">Then I will try to check if the app is trying to connect with <code>mongo</code> username instead of <code>${CLOUDRON_MONGODB_USERNAME}</code></p>
]]></description><link>https://forum.cloudron.io/topic/10203/correct-mongodb-connection-parameters</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 00:50:07 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/10203.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Oct 2023 11:05:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Correct mongodb connection parameters? on Mon, 16 Oct 2023 12:44:58 GMT]]></title><description><![CDATA[<p dir="auto">Cool, that makes it more concise and less open to mis-use (by me <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":smile:" alt="😄" /> )</p>
]]></description><link>https://forum.cloudron.io/post/75412</link><guid isPermaLink="true">https://forum.cloudron.io/post/75412</guid><dc:creator><![CDATA[timconsidine]]></dc:creator><pubDate>Mon, 16 Oct 2023 12:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Correct mongodb connection parameters? on Mon, 16 Oct 2023 11:57:28 GMT]]></title><description><![CDATA[<p dir="auto">The <code>CLOUDRON_MONGODB_URL</code> variable already has the schema (<code>mongod://</code>) in it as well as the database identifier, so you should be able to just use that directly.</p>
]]></description><link>https://forum.cloudron.io/post/75405</link><guid isPermaLink="true">https://forum.cloudron.io/post/75405</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 16 Oct 2023 11:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to Correct mongodb connection parameters? on Mon, 16 Oct 2023 11:44:54 GMT]]></title><description><![CDATA[<p dir="auto">Blundering about with trial&amp;error, I managed to get it working by appending the database parameter.</p>
<p dir="auto"><code>export APP_CONFIG_database_mongodb_uri=mongodb://${CLOUDRON_MONGODB_USERNAME}:${CLOUDRON_MONGODB_PASSWORD}@${CLOUDRON_MONGODB_HOST}:${CLOUDRON_MONGODB_PORT}/${CLOUDRON_MONGODB_DATABASE}</code></p>
<p dir="auto">Sadly there is another problem with the app also experienced when I was using local storage that pages are not actually created.  I thought it might be a folders/permissions issue so tried to side-step it with a database.<br />
Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> for helping resolve that.<br />
But &lt;sigh&gt; behaviour persists.<br />
Oh well, I shall continuing investigating.</p>
]]></description><link>https://forum.cloudron.io/post/75404</link><guid isPermaLink="true">https://forum.cloudron.io/post/75404</guid><dc:creator><![CDATA[timconsidine]]></dc:creator><pubDate>Mon, 16 Oct 2023 11:44:54 GMT</pubDate></item><item><title><![CDATA[Reply to Correct mongodb connection parameters? on Mon, 16 Oct 2023 11:36:10 GMT]]></title><description><![CDATA[<p dir="auto">Oh interesting, so it could be just <code>mongodb://${CLOUDRON_MONGODB_URL}</code>, or it would still need user/password ?</p>
]]></description><link>https://forum.cloudron.io/post/75401</link><guid isPermaLink="true">https://forum.cloudron.io/post/75401</guid><dc:creator><![CDATA[timconsidine]]></dc:creator><pubDate>Mon, 16 Oct 2023 11:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to Correct mongodb connection parameters? on Mon, 16 Oct 2023 11:19:08 GMT]]></title><description><![CDATA[<p dir="auto">This kinda looks fine, there is also <code>CLOUDRON_MONGODB_URL</code> which has the connect URL string already prebuilt.</p>
]]></description><link>https://forum.cloudron.io/post/75400</link><guid isPermaLink="true">https://forum.cloudron.io/post/75400</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 16 Oct 2023 11:19:08 GMT</pubDate></item></channel></rss>