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. Matrix (Synapse/Element)
  3. How to login to Matrix as admin

How to login to Matrix as admin

Scheduled Pinned Locked Moved Solved Matrix (Synapse/Element)
matrixsynapseelementadminsetup
4 Posts 3 Posters 2.8k 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.
  • L Offline
    L Offline
    LoudLemur
    wrote on last edited by
    #1

    How do you login to Matrix/Synapse as an admin? Where is the login panel?

    1. Install Matrix
    2. Install Element
    3. Using Element, create an account using your Cloudron credentials
    4. Make an existing user an administrator...

    This 4th step is the tricky one. The documentation explains how to do it:
    Open a terminal and run the following command:

    PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} -c "UPDATE users SET admin=1 WHERE name='@user:example.com'"
    

    However, some of this command needs to be edited by the user, I think, and this editing should be mentioned in the documentation.

    If you do edit the command to use your own username, for example:

    @LoudLemur:exemplary.com
    

    and then run it

    PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} -c "UPDATE users SET admin=1 WHERE name='@LoudLemur:exemplary.com'"
    

    You would expect to be able to visit the matrix/synapse page and find a login panel. There isn't one to be seen. Perhaps you are just meant to login to Element as the user you just made an admin, but where do you find the Synapse section?

    KubernetesK 1 Reply Last reply
    0
    • L LoudLemur

      How do you login to Matrix/Synapse as an admin? Where is the login panel?

      1. Install Matrix
      2. Install Element
      3. Using Element, create an account using your Cloudron credentials
      4. Make an existing user an administrator...

      This 4th step is the tricky one. The documentation explains how to do it:
      Open a terminal and run the following command:

      PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} -c "UPDATE users SET admin=1 WHERE name='@user:example.com'"
      

      However, some of this command needs to be edited by the user, I think, and this editing should be mentioned in the documentation.

      If you do edit the command to use your own username, for example:

      @LoudLemur:exemplary.com
      

      and then run it

      PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} -c "UPDATE users SET admin=1 WHERE name='@LoudLemur:exemplary.com'"
      

      You would expect to be able to visit the matrix/synapse page and find a login panel. There isn't one to be seen. Perhaps you are just meant to login to Element as the user you just made an admin, but where do you find the Synapse section?

      KubernetesK Offline
      KubernetesK Offline
      Kubernetes
      App Dev
      wrote on last edited by
      #2

      @LoudLemur You can install a static webapp to a Surfer instance to manage your matrix synapse server. Source -> https://github.com/Awesome-Technologies/synapse-admin

      1 Reply Last reply
      2
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Per https://github.com/matrix-org/synapse/issues/2032 and https://github.com/matrix-org/synapse/issues/11932 the upstream project has no plans to ship an admin UI. I will add a note in the docs about this.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          I clarified in https://docs.cloudron.io/apps/synapse/#admin that there is no admin UI

          1 Reply Last reply
          1
          • L LoudLemur 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