<?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 change root email error]]></title><description><![CDATA[<pre><code>SyntaxError ((irb):2: syntax error, unexpected ':', expecting `end')
irb(main):001:0&gt; u = User.find_by_usern...
         ^
</code></pre>
<p dir="auto">The Cloudron instructions to change root's email are here;</p>
<p dir="auto"><a href="https://docs.cloudron.io/apps/discourse/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/discourse/</a></p>
]]></description><link>https://forum.cloudron.io/topic/7598/discourse-change-root-email-error</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 20:31:25 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/7598.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Aug 2022 21:31:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Discourse change root email error on Tue, 30 Aug 2022 21:51:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/loudlemur" aria-label="Profile: LoudLemur">@<bdi>LoudLemur</bdi></a> works like expected. Please do not copy the whole line and not everything all at once.</p>
<pre><code>root@24b1add9-15ef-4255-9c41-818b8ab7b3dc:/app/code# sudo -E -u root bundle exec script/rails console
fatal: not a git repository (or any of the parent directories): .git
Loading production environment (Rails 6.1.6.1)
irb(main):001:0&gt; u = User.find_by_username("root")
=&gt; #&lt;User id: 1, username: "root", created_at: "2022-08-30 21:45:35.005212000 +0000", updated_at: "2022...
irb(main):002:0&gt; u.email = "admin@test.pro"
=&gt; "admin@test.pro"
irb(main):003:0&gt; u.email_tokens.create(email: u.email)
=&gt; #&lt;EmailToken id: 6, user_id: 1, email: "admin@test.pro", confirmed: false, expired: false, created_at: "2022-08-30 21:48:23.999384866 +0000", updated_at: "2022-08-30 21:48:23.999384866 +0000", token_hash: "16536bc4c1bc61d44853bcdc8bb5dbe18833341fe1612d74bd...", scope: nil&gt;
irb(main):004:0&gt; u.save!
=&gt; true
irb(main):005:0&gt;
</code></pre>
<p dir="auto">First you enter the console and afterwards you paste the commands line by line starting with  <code>u = User.find_by_username("root")</code>...</p>
]]></description><link>https://forum.cloudron.io/post/52861</link><guid isPermaLink="true">https://forum.cloudron.io/post/52861</guid><dc:creator><![CDATA[subven]]></dc:creator><pubDate>Tue, 30 Aug 2022 21:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse change root email error on Wed, 31 Aug 2022 08:57:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/subven" aria-label="Profile: subven">@<bdi>subven</bdi></a> Thank you! I tried again</p>
]]></description><link>https://forum.cloudron.io/post/52867</link><guid isPermaLink="true">https://forum.cloudron.io/post/52867</guid><dc:creator><![CDATA[LoudLemur]]></dc:creator><pubDate>Wed, 31 Aug 2022 08:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Discourse change root email error on Tue, 30 Aug 2022 21:51:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/loudlemur" aria-label="Profile: LoudLemur">@<bdi>LoudLemur</bdi></a> works like expected. Please do not copy the whole line and not everything all at once.</p>
<pre><code>root@24b1add9-15ef-4255-9c41-818b8ab7b3dc:/app/code# sudo -E -u root bundle exec script/rails console
fatal: not a git repository (or any of the parent directories): .git
Loading production environment (Rails 6.1.6.1)
irb(main):001:0&gt; u = User.find_by_username("root")
=&gt; #&lt;User id: 1, username: "root", created_at: "2022-08-30 21:45:35.005212000 +0000", updated_at: "2022...
irb(main):002:0&gt; u.email = "admin@test.pro"
=&gt; "admin@test.pro"
irb(main):003:0&gt; u.email_tokens.create(email: u.email)
=&gt; #&lt;EmailToken id: 6, user_id: 1, email: "admin@test.pro", confirmed: false, expired: false, created_at: "2022-08-30 21:48:23.999384866 +0000", updated_at: "2022-08-30 21:48:23.999384866 +0000", token_hash: "16536bc4c1bc61d44853bcdc8bb5dbe18833341fe1612d74bd...", scope: nil&gt;
irb(main):004:0&gt; u.save!
=&gt; true
irb(main):005:0&gt;
</code></pre>
<p dir="auto">First you enter the console and afterwards you paste the commands line by line starting with  <code>u = User.find_by_username("root")</code>...</p>
]]></description><link>https://forum.cloudron.io/post/52861</link><guid isPermaLink="true">https://forum.cloudron.io/post/52861</guid><dc:creator><![CDATA[subven]]></dc:creator><pubDate>Tue, 30 Aug 2022 21:51:18 GMT</pubDate></item></channel></rss>