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

    Changed credentials does not work for login

    Minio
    3
    7
    246
    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.
    • luckow
      luckow translator last edited by

      Package version: io.minio.cloudronapp@2.3.2
      Fresh install

      /app/code/minio-credentials set admin secret
      

      App restart

      /app/code/minio-credentials get 
      Access Key: admin
      Secret Key: secret
      

      https://minio.example.org
      admin:secret
      Error: The Access Key Id you provided does not exist in our records.

      But
      https://minio.example.org
      minioadmin:minioadmin

      works.

      Pronouns: he/him | Primary language: German

      1 Reply Last reply Reply Quote 1
      • luckow
        luckow translator last edited by

        Now I have found a second place where I can change the login data.

        Web terminal -> env file

        export MINIO_ROOT_USER=minioadmin
        export MINIO_ROOT_PASSWORD=minioadmin
        

        If you change these values, they will be accepted in the web browser.
        It sounds like a documentation issue to me.

        Pronouns: he/him | Primary language: German

        1 Reply Last reply Reply Quote 2
        • luckow
          luckow translator last edited by

          Next topic for documentation:
          API server domain.
          I lost an hour of my life because I learned in previous versions of minio that location = the URL in each app setting. Now it's not like that anymore.
          You have to select the API server domain in the app settings to connect to your minio instance.
          The error messages in the browser console tell you about CORS errors. CORS could become a new hobby topic 🙂

          Pronouns: he/him | Primary language: German

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

            @luckow yes, correct, with latest minio, the UI and the API are in different locations. Also see, https://forum.cloudron.io/topic/5395/possibly-breaking-changes-in-next-package and https://forum.cloudron.io/topic/2495/minio-package-updates/79

            I will look into the minio-credentials script, it was for the legacy minio. I probaby should remove it.

            timconsidine 1 Reply Last reply Reply Quote 3
            • timconsidine
              timconsidine App Dev @girish last edited by timconsidine

              @girish small polite reminder that setup instructions don't seem to be updated.

              Just having the same issue this evening as reported by @luckow

              I will try his 'fix'

              EDIT : I tried to edit env.sh in /app/code. But it is readonly.
              So I tried in /app/data. It works there.
              But isn't /app/data potentially reachable from internet?
              If so, putting access keys there seems bad idea.
              Maybe I'm not understanding access rights of /app/data

              girish 2 Replies Last reply Reply Quote 1
              • girish
                girish Staff @timconsidine last edited by

                @timconsidine Forgot about this one, thanks for the reminder. I have fixed the instructions.

                Something like below in /app/data/env.sh is the way to go:

                export MINIO_ROOT_USER=superadmin
                export MINIO_ROOT_PASSWORD=CorrectHorseBatteryStaple
                
                1 Reply Last reply Reply Quote 2
                • girish
                  girish Staff @timconsidine last edited by

                  @timconsidine said in Changed credentials does not work for login:

                  But isn't /app/data potentially reachable from internet?

                  /app/data is just the part of the file system that the app can write to. It is only reachable via the Cloudron dashboard.

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