<?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[Changing root account email in fresh Discourse install]]></title><description><![CDATA[<p dir="auto">Hiya! I just installed Discourse, and am trying to change my root user's email and password. However I first need to change it from root@cloudron.local to a mailbox I actually can access.</p>
<p dir="auto">I found <a href="https://cloudron.io/documentation/apps/discourse/" target="_blank" rel="noopener noreferrer nofollow ugc">these instructions in the Cloudron docs</a> but when I follow the "Changing root account email" directions, the second command</p>
<pre><code>irb(main):001:0&gt; u = User.find_by_username("root")
</code></pre>
<p dir="auto">gives me this error</p>
<pre><code>bash: syntax error near unexpected token `main'
</code></pre>
<p dir="auto">Am I doing something wrong? Are the directions wrong? Is there something I might have done in the cloudron dashboard that changes the command I need to use? Halp! <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f640.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--scream_cat" style="height:23px;width:auto;vertical-align:middle" title="🙀" alt="🙀" /></p>
]]></description><link>https://forum.cloudron.io/topic/2232/changing-root-account-email-in-fresh-discourse-install</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 06:39:45 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2232.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Mar 2020 04:02:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Fri, 16 Jul 2021 16:37:57 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> said in <a href="/post/33377">Changing root account email in fresh Discourse install</a>:</p>
<blockquote>
<p dir="auto">sudo -E -u root bundle exec script/rails console</p>
</blockquote>
<p dir="auto">Thanks, it solved the issue <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://forum.cloudron.io/post/34011</link><guid isPermaLink="true">https://forum.cloudron.io/post/34011</guid><dc:creator><![CDATA[alkomy]]></dc:creator><pubDate>Fri, 16 Jul 2021 16:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Fri, 16 Jul 2021 16:32:03 GMT]]></title><description><![CDATA[<p dir="auto">Same error here</p>
]]></description><link>https://forum.cloudron.io/post/34010</link><guid isPermaLink="true">https://forum.cloudron.io/post/34010</guid><dc:creator><![CDATA[alkomy]]></dc:creator><pubDate>Fri, 16 Jul 2021 16:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Mon, 12 Jul 2021 15:41: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 a lot! The problem is solved.</p>
]]></description><link>https://forum.cloudron.io/post/33768</link><guid isPermaLink="true">https://forum.cloudron.io/post/33768</guid><dc:creator><![CDATA[arpad]]></dc:creator><pubDate>Mon, 12 Jul 2021 15:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Wed, 07 Jul 2021 07:06:16 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 for this, I had the same issue, running it with root worked</p>
]]></description><link>https://forum.cloudron.io/post/33502</link><guid isPermaLink="true">https://forum.cloudron.io/post/33502</guid><dc:creator><![CDATA[bmann]]></dc:creator><pubDate>Wed, 07 Jul 2021 07:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Tue, 06 Jul 2021 21:31:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arpad" aria-label="Profile: arpad">@<bdi>arpad</bdi></a> thanks for reporting, I can reproduce this. Trying to debug what the issue is. I can also confirm that what <a class="plugin-mentions-user plugin-mentions-a" href="/user/scooke" aria-label="Profile: scooke">@<bdi>scooke</bdi></a> said works but I am trying to get to the bottom of why use <code>cloudron</code> user does not work.</p>
]]></description><link>https://forum.cloudron.io/post/33484</link><guid isPermaLink="true">https://forum.cloudron.io/post/33484</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 06 Jul 2021 21:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Sat, 03 Jul 2021 08:01:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arpad" aria-label="Profile: arpad">@<bdi>arpad</bdi></a> said in <a href="/post/33283">Changing root account email in fresh Discourse install</a>:</p>
<blockquote>
<p dir="auto">sudo -E -u cloudron bundle exec script/rails console</p>
</blockquote>
<p dir="auto">I just helped someone with a similar problem. I installed Discourse just to see what is happening, and I found that I had to change the user in that command from ‘cloudron’ to ‘root’ -&gt;</p>
<p dir="auto">sudo -E -u root bundle exec script/rails console</p>
<p dir="auto">That seems like a significant change though.</p>
]]></description><link>https://forum.cloudron.io/post/33377</link><guid isPermaLink="true">https://forum.cloudron.io/post/33377</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Sat, 03 Jul 2021 08:01:38 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Wed, 30 Jun 2021 20:41:17 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><br />
When I run <code>sudo -E -u cloudron bundle exec script/rails console</code> from the Web terminal, I get the following error (fresh Discourse installation):</p>
<pre><code> `/root` is not writable.
Bundler will use `/tmp/bundler20210630-751-12unu01751' as your home directory temporarily.
Loading production environment (Rails 6.1.3.2)
bundler: failed to load command: script/rails (script/rails)
Traceback (most recent call last):
        50: from /usr/local/bin/bundle:23:in `&lt;main&gt;'
        49: from /usr/local/bin/bundle:23:in `load'
        48: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/exe/bundle:37:in `&lt;top (required)&gt;'
        47: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
        46: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/exe/bundle:49:in `block in &lt;top (required)&gt;'
        45: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli.rb:24:in `start'
        44: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        43: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli.rb:30:in `dispatch'
        42: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        41: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        40: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        39: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli.rb:474:in `exec'
        38: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli/exec.rb:28:in `run'
        37: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli/exec.rb:63:in `kernel_load'
        36: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli/exec.rb:63:in `load'
        35: from script/rails:8:in `&lt;top (required)&gt;'
        34: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        33: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        32: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        31: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        30: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        29: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `&lt;main&gt;'
        28: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
        27: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
        26: from /app/code/vendor/bundle/ruby/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        25: from /app/code/vendor/bundle/ruby/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        24: from /app/code/vendor/bundle/ruby/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        23: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/console/console_command.rb:102:in `perform'
        22: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/console/console_command.rb:19:in `start'
        21: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/console/console_command.rb:70:in `start'
        20: from /usr/local/lib/ruby/2.7.0/irb.rb:400:in `start'
        19: from /usr/local/lib/ruby/2.7.0/irb.rb:471:in `run'
        18: from /usr/local/lib/ruby/2.7.0/irb.rb:471:in `catch'
        17: from /usr/local/lib/ruby/2.7.0/irb.rb:472:in `block in run'
        16: from /usr/local/lib/ruby/2.7.0/irb.rb:537:in `eval_input'
        15: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:150:in `each_top_level_statement'
        14: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:150:in `catch'
        13: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:151:in `block in each_top_level_statement'
        12: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:151:in `loop'
        11: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:154:in `block (2 levels) in each_top_level_statement'
        10: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:182:in `lex'
         9: from /usr/local/lib/ruby/2.7.0/irb.rb:518:in `block in eval_input'
         8: from /usr/local/lib/ruby/2.7.0/irb.rb:704:in `signal_status'
         7: from /usr/local/lib/ruby/2.7.0/irb.rb:519:in `block (2 levels) in eval_input'
         6: from /usr/local/lib/ruby/2.7.0/irb/input-method.rb:294:in `gets'
         5: from /usr/local/lib/ruby/2.7.0/forwardable.rb:235:in `readmultiline'
         4: from /usr/local/lib/ruby/2.7.0/forwardable.rb:235:in `readmultiline'
         3: from /usr/local/lib/ruby/2.7.0/reline.rb:175:in `readmultiline'
         2: from /usr/local/lib/ruby/2.7.0/reline.rb:228:in `inner_readline'
         1: from /usr/local/lib/ruby/2.7.0/reline/config.rb:122:in `read'
/usr/local/lib/ruby/2.7.0/reline/config.rb:122:in `readlines': Permission denied @ rb_sysopen - /root/.inputrc (Errno::EACCES)
        37: from /usr/local/bin/bundle:23:in `&lt;main&gt;'
        36: from /usr/local/bin/bundle:23:in `load'
        35: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/exe/bundle:37:in `&lt;top (required)&gt;'
        34: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
        33: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/exe/bundle:49:in `block in &lt;top (required)&gt;'
        32: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli.rb:24:in `start'
        31: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        30: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli.rb:30:in `dispatch'
        29: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        28: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        27: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        26: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli.rb:474:in `exec'
        25: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli/exec.rb:28:in `run'
        24: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli/exec.rb:63:in `kernel_load'
        23: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.20/lib/bundler/cli/exec.rb:63:in `load'
        22: from script/rails:8:in `&lt;top (required)&gt;'
        21: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        20: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        19: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        18: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        17: from /app/code/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        16: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `&lt;main&gt;'
        15: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
        14: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
        13: from /app/code/vendor/bundle/ruby/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        12: from /app/code/vendor/bundle/ruby/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        11: from /app/code/vendor/bundle/ruby/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        10: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/console/console_command.rb:102:in `perform'
         9: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/console/console_command.rb:19:in `start'
         8: from /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/console/console_command.rb:70:in `start'
         7: from /usr/local/lib/ruby/2.7.0/irb.rb:400:in `start'
         6: from /usr/local/lib/ruby/2.7.0/irb.rb:475:in `run'
         5: from /usr/local/lib/ruby/2.7.0/irb.rb:475:in `ensure in run'
         4: from /usr/local/lib/ruby/2.7.0/irb.rb:475:in `each'
         3: from /usr/local/lib/ruby/2.7.0/irb.rb:475:in `block in run'
         2: from /usr/local/lib/ruby/2.7.0/irb/ext/save-history.rb:60:in `block in extended'
         1: from /usr/local/lib/ruby/2.7.0/irb/ext/save-history.rb:98:in `save_history'
/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)

</code></pre>
<p dir="auto">Do you have any suggestion?</p>
]]></description><link>https://forum.cloudron.io/post/33283</link><guid isPermaLink="true">https://forum.cloudron.io/post/33283</guid><dc:creator><![CDATA[arpad]]></dc:creator><pubDate>Wed, 30 Jun 2021 20:41:17 GMT</pubDate></item><item><title><![CDATA[Reply to Changing root account email in fresh Discourse install on Mon, 16 Mar 2020 16:01:45 GMT]]></title><description><![CDATA[<p dir="auto">I tried this now in a fresh install and it seems to work.</p>
<p dir="auto">Please note that you are supposed to run the commands in the app's web terminal (i.e Click the gear button in the cloudron dashboard app -&gt; Console -&gt; Terminal). And then you must put in <code>sudo -E -u cloudron bundle exec script/rails console</code> in the shell. Like below:</p>
<p dir="auto"><img src="/assets/uploads/files/1584374397829-5c71c01d-4b8e-449d-9708-c46e356a4a04-image.png" alt="5c71c01d-4b8e-449d-9708-c46e356a4a04-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/6531</link><guid isPermaLink="true">https://forum.cloudron.io/post/6531</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 16 Mar 2020 16:01:45 GMT</pubDate></item></channel></rss>