Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discourse
  3. Error trying to change Discourse 'root' email

Error trying to change Discourse 'root' email

Scheduled Pinned Locked Moved Discourse
2 Posts 2 Posters 627 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    baslow
    wrote on last edited by
    #1

    Setting up Discourse, I tried to follow these instructions to change the root account email address but failed at the first step:

    # sudo -E -u cloudron bundle exec script/rails console
    Loading production environment (Rails 6.1.3.2)
    bundler: failed to load command: script/rails (script/rails)
    

    of the almost 100 lines of traceback that followed I'm guessing these are the most relevant:

    /usr/local/lib/ruby/2.7.0/reline/config.rb:122:in `readlines': Permission denied @ rb_sysopen - /root/.inputrc (Errno::EACCES)
    ...
    /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)
    

    When I do a cd into /root and then ls -la I see neither .inputrc nor .irb_history

    Anyone know what's going on? Suggestions?
    Thanks.

    girishG 1 Reply Last reply
    0
    • B baslow

      Setting up Discourse, I tried to follow these instructions to change the root account email address but failed at the first step:

      # sudo -E -u cloudron bundle exec script/rails console
      Loading production environment (Rails 6.1.3.2)
      bundler: failed to load command: script/rails (script/rails)
      

      of the almost 100 lines of traceback that followed I'm guessing these are the most relevant:

      /usr/local/lib/ruby/2.7.0/reline/config.rb:122:in `readlines': Permission denied @ rb_sysopen - /root/.inputrc (Errno::EACCES)
      ...
      /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)
      

      When I do a cd into /root and then ls -la I see neither .inputrc nor .irb_history

      Anyone know what's going on? Suggestions?
      Thanks.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @baslow please see https://forum.cloudron.io/topic/2232/changing-root-account-email-in-fresh-discourse-install/4 for the fix. Basically, run sudo -E -u root bundle exec script/rails console instead.

      (I am still investigating why the "-u cloudron" does not work, but that should not affect usage of the app.)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search