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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Error on changing Discourse root email

    Discourse
    3
    12
    430
    Loading More Posts
    • 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.
    • Z
      zylstra last edited by

      Here is my screeshot:
      4b02e1b9-148e-4473-81ba-066f2f2dcbbb-image.png
      How can I fix this error?

      murgero girish 2 Replies Last reply Reply Quote 0
      • murgero
        murgero App Dev @zylstra last edited by

        @zylstra Are you able to login as root?

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~
        Matrix: @murgero:urgero.org

        1 Reply Last reply Reply Quote 1
        • girish
          girish Staff @zylstra last edited by

          @zylstra Can you check if that = is actually the equal to sign? Some browsers use different fonts and use some fancy character which looks like = but is not really equal to. From the screenshot you posted, it doesn't look like = ...

          Z 1 Reply Last reply Reply Quote 1
          • Z
            zylstra @girish last edited by

            @girish Yes, I checked the equal sign that I originally pasted. Then I tried again typing everything out just to be sure.

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @zylstra last edited by

              @zylstra As @murgero suggested, are you able to login as 'root' in discourse? It seems that user is not found.

              1 Reply Last reply Reply Quote 1
              • girish
                girish Staff last edited by

                My terminal session looks like this:

                root@52b89a18-00b8-4e38-b4f6-67920f021bd8:/app/code# sudo -E -u root bundle exec script/rails console
                Loading production environment (Rails 6.1.3.2)
                irb(main):001:0> u = User.find_by_username("root")
                => #<User id: 1, username: "root", created_at: "2021-10-01 17:39:37.393537000 +0000", updated_at: "2021-10-01 17:39:42.179054000 +0000"...
                irb(main):002:0> 
                

                The user 'root' is found and should not be nil.

                Z 1 Reply Last reply Reply Quote 1
                • Z
                  zylstra @girish last edited by

                  @girish Am I not logged in as root in Discourse automatically when I click on the terminal icon on the Cloudron app page?

                  Does the terminal prompt not show that I am logged in as root, i.e. the root in root@5dfbf59d-2d3e-45f8-b95f-42ff675cdeea:/app/code#?

                  How do I log in as root? su? su root?

                  c86b5bb4-1065-4c2f-ba0f-8d9c1bfd71ff-image.png

                  murgero 1 Reply Last reply Reply Quote 0
                  • murgero
                    murgero App Dev @zylstra last edited by

                    @zylstra Sorry - my comment was vague - I meant can you login as the root user on the discourse web app (not the terminal)

                    --
                    https://urgero.org
                    ~ Professional Nerd. Freelance Programmer. ~
                    Matrix: @murgero:urgero.org

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      zylstra @murgero last edited by

                      @murgero I clicked the "Skip the password; email me a login link" link after entering root as the username. I got the error "No account matches the username root".

                      e37ff971-4dd2-420d-bc4f-08a53663f0ea-image.png

                      girish murgero 2 Replies Last reply Reply Quote 0
                      • girish
                        girish Staff @zylstra last edited by girish

                        @zylstra the default login is root and password changeme123 . Does that work? Maybe the link only works after the first login, not sure.

                        1 Reply Last reply Reply Quote 0
                        • murgero
                          murgero App Dev @zylstra last edited by

                          @zylstra The original email is root@cloudron.local so that wont work until you change it. Login as @girish recommends using password.

                          --
                          https://urgero.org
                          ~ Professional Nerd. Freelance Programmer. ~
                          Matrix: @murgero:urgero.org

                          1 Reply Last reply Reply Quote 1
                          • Z
                            zylstra last edited by zylstra

                            @murgero @girish
                            I think I figured it out: I suspect that I changed root's username soon after install, then forgot about it, or did not realize that I did so. I am not sure what happened with the password either, but what I had wasn't working. So I was able to change the email address associated with the (renamed) root account. Then I had to wait a couple days to get a new password while time4vps's occasionally available support opened port 25. It's set up correctly now.

                            Now that I mentioned it, I will state for the record that time4vps's support is NOT 24/7 like they so proudly state on their homepage. Their hours are GMT +3:
                            weekdays: 8:30 till 21:30
                            weekends: 10:00 till 16:30
                            So if you are on the West Coast of the US you can get support until 11:30 am on weekdays and until 6:30 am on weekends. 😕

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Powered by NodeBB