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

    Solved ==> Changing ownership on every restart

    Minio
    4
    12
    192
    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 luckow

      Hi,

      in my Cloudron use case, I backup a Cloudron instance with 41 apps (as crypted tgz files) to a different Cloudron instance with the minio app. I've observed in case of minio updates, that this special minio app needs up to 4 hours to get back beeing responsive. Can we put the chown command into a kind of "hot fix" instead of using it on every restart?
      Do others have the same issue?

      Pronouns: he/him | Primary language: German

      mehdi 1 Reply Last reply Reply Quote 0
      • mehdi
        mehdi App Dev @luckow last edited by

        @luckow I don't think it's the chown command that takes time. It's really fast, even on large amounts of files.

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

          I am surprised as well. chown should be quick enough (not 4 hours anyway). Do you get the same performance if you run the command on the server directly? How much data are we talking about (you can do find . -type f | wc -l in the data directory ) ?

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

            sorry for "lying". it felt like 4 hours. the last update/restart takes only 1h10m
            Sep 11 17:08:53 ==> Changing ownership
            Sep 11 18:16:21 ==> Starting minio

            :/app/data#find . -type f | wc -l
            50 minutes later
            1178082

            Pronouns: he/him | Primary language: German

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

              OK, I have pushed an update now which will chown only if required. It's a bit of hack, but if it causes problems we can fix it in a future update.

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

                I've run the update. It's a little bit faster:
                Sep 11 21:58:16 ==> Changing ownership
                Sep 11 22:41:17 ==> Starting minio

                Pronouns: he/him | Primary language: German

                1 Reply Last reply Reply Quote 0
                • mehdi
                  mehdi App Dev last edited by

                  @luckow maybe it's really long on your machine because it actually has to change the ownership, not just ensure it's correct?

                  Do you have any kind of unusual setup that could cause this ?

                  1 Reply Last reply Reply Quote 0
                  • imc67
                    imc67 translator last edited by

                    strange, I use a Minio app on Cloudron with about 300GB files (backup from my MacBook) and there are absolutely no issues, after update it's immediate available

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

                      @luckow Oh, let me guess 🙂 maybe it's on a filesystem which is not ext4 and does not actually support permissions! can you do ls -l /app/data ?

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

                        @girish said in ==> Changing ownership on every restart:

                        ls -l /app/data

                        from inside the container it looks like

                        root@3435b3d0-07cb-4c5e-9723-d69d7feb6285:/app/code# ls -l /app/data
                        total 4
                        drwxr-xr-x 4 cloudron cloudron 4096 Sep 11 20:41 data

                        Pronouns: he/him | Primary language: German

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

                          @luckow Do you know if the partition is ext4?

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

                            taken from https://my.example.org/#/system

                            /dev/sda4 mounted at /home
                            This ext4 disk contains: ...

                            Pronouns: he/him | Primary language: German

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