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. Discourse root email

Discourse root email

Scheduled Pinned Locked Moved Solved Discourse
4 Posts 3 Posters 603 Views 3 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.
  • F Offline
    F Offline
    fed21
    wrote on last edited by
    #1

    Hello!
    hope to find some help, Discourse is completely new to me...
    I went through all the previous posts on same subject, but still I can't change the root email.
    When I enter the first line it doesn't show the user id, created_at/updated_at, but only the four rows below:

    irb(main):001:0> u = User.find_by_username("root")
    =>
    #<User:0x00007f56d1eeff00
    ...

    When I enter the line 4 I get the message below:

    irb(main):004:0> u.save!
    /app/code/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/validations.rb:80:in `raise_validation_error': Validation failed: Primary email has already been taken (ActiveRecord::RecordInvalid)
    irb(main):005:0>

    Thank you

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Looks like some other users already has the same email address? Maybe you have logged into the app with a user with that email before?

      S 1 Reply Last reply
      0
      • nebulonN nebulon

        Looks like some other users already has the same email address? Maybe you have logged into the app with a user with that email before?

        S Offline
        S Offline
        Seer
        wrote on last edited by
        #3

        @nebulon Thanks for this. I also had this issue.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fed21
          wrote on last edited by
          #4

          @nebulon thank you, all sorted now!

          1 Reply Last reply
          1
          • nebulonN nebulon marked this topic as a question on
          • nebulonN nebulon has marked this topic as solved on
          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