<?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[Discourse: create new root email]]></title><description><![CDATA[<p dir="auto">Trying to change the default email for Discourse per instructions at <a href="https://docs.cloudron.io/apps/discourse/#changing-root-account-email" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/discourse/#changing-root-account-email</a>. But when I enter the suggested command on the CLI:</p>
<blockquote>
<p dir="auto">sudo -E -u cloudron bundle exec script/rails console</p>
</blockquote>
<p dir="auto">I get:</p>
<blockquote>
<p dir="auto">sudo: unknown user: cloudron<br />
sudo: unable to initialize policy plugin</p>
</blockquote>
<p dir="auto">Also tried</p>
<blockquote>
<p dir="auto">sudo rails console</p>
</blockquote>
<p dir="auto">And got:</p>
<blockquote>
<p dir="auto">sudo: rails: command not found</p>
</blockquote>
<p dir="auto">It should go without saying that I don't really know what I'm doing. Any help would be greatly appreciated! Thanks.</p>
]]></description><link>https://forum.cloudron.io/topic/5299/discourse-create-new-root-email</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 08:36:45 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5299.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Jul 2021 14:25:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 21:02:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qimmiq" aria-label="Profile: qimmiq">@<bdi>qimmiq</bdi></a> Great! Imma gonna uninstall that Discourse ram hog now!</p>
]]></description><link>https://forum.cloudron.io/post/33362</link><guid isPermaLink="true">https://forum.cloudron.io/post/33362</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Fri, 02 Jul 2021 21:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 20:59:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scooke" aria-label="Profile: scooke">@<bdi>scooke</bdi></a> Thanks much. I followed your steps and the email was changed. It didn't like u.activate. Said the email was already taken ... but the change was made.</p>
]]></description><link>https://forum.cloudron.io/post/33361</link><guid isPermaLink="true">https://forum.cloudron.io/post/33361</guid><dc:creator><![CDATA[qimmiq]]></dc:creator><pubDate>Fri, 02 Jul 2021 20:59:25 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 20:56:26 GMT]]></title><description><![CDATA[<p dir="auto">Long story short: Change the user in <code>sudo -E -u cloudron bundle exec script/rails console</code> from <code>cloudron</code> to <code>root</code>.</p>
]]></description><link>https://forum.cloudron.io/post/33360</link><guid isPermaLink="true">https://forum.cloudron.io/post/33360</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Fri, 02 Jul 2021 20:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 20:52:57 GMT]]></title><description><![CDATA[<p dir="auto">Well, having installed it, and then running through the Setup steps, and then trying <code>sudo -E -u cloudron bundle exec script/rails console</code>, it failed too. But it seemed like a permission error, so I reran it with <code>sudo -E -u root bundle exec script/rails console</code> - I changed <code>cloudron</code> to <code>root</code>, and now it ran.<br />
<code>sudo -E -u root bundle exec script/rails console</code> started, and I copied and pasted, line by line, the following, changing the <code>YOUR_NEW_EMAIL_ADDRESS</code> to my new email address. Each of those lines below I copied into the prompt. That is, the space after the &gt;. IN the gray box, each line that starts with <code>irb(main):001:0&gt;</code>  is a prompt, and I pasted each portion of those lines into that prompt space.  I hope that makes sense.</p>
<p dir="auto">For me, the Help at <a href="https://docs.cloudron.io/apps/discourse/#changing-root-account-email" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/discourse/#changing-root-account-email</a> didn't make it clear enough that you don't copy and paste the entire block, but it looks like that since they've made the entire gray block copy-able:</p>
<p dir="auto">u = User.find_by_username("root") (This I pasted after the line <code>irb(main):001:0&gt;</code>)<br />
u.email = "<a href="mailto:mynew@email.com" target="_blank" rel="noopener noreferrer nofollow ugc">mynew@email.com</a>" (This was pasted after the line <code>irb(main):002:0&gt;</code>, you can see how the counter goes up 1 each time, and etc.)<br />
u.email_tokens.create(email: u.email)<br />
u.activate<br />
u.save!</p>
<p dir="auto">then typed <code>exit</code> at the final prompt. And it closed.</p>
<p dir="auto">I refreshed the Discourse site and voila, the new email address is present and visible!</p>
]]></description><link>https://forum.cloudron.io/post/33359</link><guid isPermaLink="true">https://forum.cloudron.io/post/33359</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Fri, 02 Jul 2021 20:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 20:55:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qimmiq" aria-label="Profile: qimmiq">@<bdi>qimmiq</bdi></a> Did you run through the entire Discourse setup BEFORE trying to change the admin email stuff? I just installed Discourse, and before even logging in to the actual site I tried the same commands, and they failed too. So I went to the site, logged in, and discovered there is still more Setup steps. I'm doing those right now. One of them, <a href="https://discourse.example.com/wizard/steps/privacy" target="_blank" rel="noopener noreferrer nofollow ugc">https://discourse.example.com/wizard/steps/privacy</a>, asked for an admin email address and whether users could sign up, and whether the app was public or private. I've chosen the most open options. I wonder if the failure we've seen happens because these Setup steps weren't done?</p>
]]></description><link>https://forum.cloudron.io/post/33358</link><guid isPermaLink="true">https://forum.cloudron.io/post/33358</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Fri, 02 Jul 2021 20:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 17:18:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qimmiq" aria-label="Profile: qimmiq">@<bdi>qimmiq</bdi></a> Maybe I should just use NodeBB instead ...</p>
]]></description><link>https://forum.cloudron.io/post/33355</link><guid isPermaLink="true">https://forum.cloudron.io/post/33355</guid><dc:creator><![CDATA[qimmiq]]></dc:creator><pubDate>Fri, 02 Jul 2021 17:18:47 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 17:05:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scooke" aria-label="Profile: scooke">@<bdi>scooke</bdi></a> Ahh! Thanks.</p>
<p dir="auto">Progress, but not success.</p>
<blockquote>
<p dir="auto">root@211e24ef-c9b0-45cb-891e-2edddc692bde:/app/code# sudo -E -u cloudron bundle exec script/rails console</p>
</blockquote>
<p dir="auto">Produced:</p>
<blockquote>
<p dir="auto"><code>/root</code> is not writable.<br />
Bundler will use `/tmp/bundler20210702-197-1buhzyh197' as your home directory temporarily.<br />
Loading production environment (Rails 6.1.3.2)<br />
bundler: failed to load command: script/rails (script/rails)</p>
</blockquote>
<p dir="auto">Then a lot of traceback, ending in:</p>
<blockquote>
<p dir="auto">/usr/local/lib/ruby/2.7.0/irb/ext/save-history.rb:98:in `stat': Permission denied @ rb_file_s_stat - /root/.irb_history (Errno::EACCES)</p>
</blockquote>
<p dir="auto">What next? Thanks very much.</p>
]]></description><link>https://forum.cloudron.io/post/33354</link><guid isPermaLink="true">https://forum.cloudron.io/post/33354</guid><dc:creator><![CDATA[qimmiq]]></dc:creator><pubDate>Fri, 02 Jul 2021 17:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse: create new root email on Fri, 02 Jul 2021 14:42:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qimmiq" aria-label="Profile: qimmiq">@<bdi>qimmiq</bdi></a> Make sure you are using the CLI of the app in question <em>from within Cloudron</em>, per <a href="https://docs.cloudron.io/apps/#web-terminal" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/#web-terminal</a>.</p>
<p dir="auto">This isn't from the usual ssh-ing in with your Terminal on your local machine.</p>
]]></description><link>https://forum.cloudron.io/post/33350</link><guid isPermaLink="true">https://forum.cloudron.io/post/33350</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Fri, 02 Jul 2021 14:42:04 GMT</pubDate></item></channel></rss>