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
  • Brite
  • 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. Mastodon
  3. Unable to log in to Mastodon on Cloudron after installation

Unable to log in to Mastodon on Cloudron after installation

Scheduled Pinned Locked Moved Mastodon
5 Posts 3 Posters 63 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.
  • Y Offline
    Y Offline
    yossi6206
    wrote last edited by
    #1

    Hi everyone,
    I’ve installed Mastodon through Cloudron, and everything seems to be running correctly — the app is healthy and accessible.
    However, I’m unable to log in using the username and password that were created automatically by Cloudron during installation.

    I’ve tried multiple troubleshooting steps (checking the domain setup, restarting the app, verifying the .env variables, clearing browser cache, and even creating new users), but nothing works — it feels like something is blocking all logins entirely.

    Has anyone encountered this issue before?
    Could there be a specific configuration or Cloudron permission that prevents Cloudron users from logging into Mastodon directly?

    Thanks in advance for any help!

    1 Reply Last reply
    0
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @yossi6206
      Thanks for the report. I am looking into it.

      1 Reply Last reply
      0
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by
        #3

        Hello @yossi6206

        I have just installed the latest version of the Cloudron Mastodon app and while installation I chose the option Allow all users from this Cloudron.
        After the app was running I was able to log in with my Cloudron account with no issues:

        b36fb2ab-0fec-443e-8e33-00bb137cf411-image.png

        85a09bf8-397a-4141-99f8-de8eeb4f6e81-image.png


        When choosing Allow all users from this Cloudron:

        @yossi6206 said in Unable to log in to Mastodon on Cloudron after installation:

        However, I’m unable to log in using the username and password that were created automatically by Cloudron during installation.

        There is no automatically created user.


        To make sure, I installed the app again with the option Leave user management to the app.
        To enable registration I need to enable this first according to the doc, but I need an account first.
        So, create a user first and make him admin https://docs.cloudron.io/packages/mastodon/#adding-users

        /app/code/bin/tootctl accounts create james --email=james@cloudron.dev --approve
        

        Which gave me the password 8b5dab43b9c4e88bbf3f8ce23818c7ac and after confirming my account I was able to login.
        0284dbe9-ceae-48fb-aeeb-6396b7f9401e-image.png

        1 Reply Last reply
        3
        • jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote last edited by
          #4

          Just to add. Unless you want to restrict your instance of Mastodon to ONLY your users, you probably don't want to integrate it with Cloudron login at all. (Things may have changed since we moved from LDAP to OIDC but certainly in the past) Cloudron login integration did not play well with public accounts at all (from memory, the latter were unable to successfully reset passwords, etc).

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          2
          • Y Offline
            Y Offline
            yossi6206
            wrote last edited by
            #5

            @james
            Hi,

            First of all, thank you very much for taking the time to respond to my question and provide a solution to my issue — I really appreciate it!

            In the end, I managed to log in to Mastodon by manually creating an admin user.
            Here’s the command I used inside the Mastodon directory:

            RAILS_ENV=production bundle exec rails console << 'SCRIPT'
            user = User.new(email: 'user@example.com', password: 'StrongPassword123!', password_confirmation: 'StrongPassword123!', agreement: true, confirmed_at: Time.now.utc)
            user.account = Account.new(username: 'username')
            user.save!
            user.approve!
            user.update(role: UserRole.find_by(name: 'Owner'))
            puts "User created successfully: #{user.account.username} (#{user.email})"
            SCRIPT

            Only after creating the admin user this way, I was able to successfully access Mastodon.

            Best regards,
            Yossi

            1 Reply Last reply
            4
            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