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


Navigation

    Cloudron Forum

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

    SOLVED Ampache - How to add a catalog / media with custom storage?

    Ampache
    3
    22
    161
    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.
    • jdaviescoates
      jdaviescoates @girish last edited by

      @girish at first I couldn't do that because I had mounted the Volume as Read only.

      Even after changing that and then doing chmod 777 Music/ (from within the /media/ folder) it doesn't seem to have made any difference. I still get the exact same:

      The folder couldn't be read. Does it exist? /media/Music
      
      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @jdaviescoates did you try the chmod on the host? (and not inside container)

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

          @girish said in Ampache - How to add a catalog / media with custom storage?:

          @jdaviescoates did you try the chmod on the host? (and not inside container)

          Ah, no, I did it within the Web Terminal of the App itself.

          I think if I need to actually SSH into my server in order to actually get Volumes to work with Ampache then perhaps I'll just not use Ampache at all!

          I'm also wondering what the security implications of making it 777 are and if that could potentially mean other people could delete files from there without me wanting them to?

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

            @jdaviescoates said in Ampache - How to add a catalog / media with custom storage?:

            I'm also wondering what the security implications of making it 777 are and if that could potentially mean other people could delete files from there without me wanting them to?

            Do other people have access to the server? (i.e can they ssh in?). Do you also require that Cloudron admins should not be able to delete files from the say the Volume -> file manager ?

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

              @girish said in Ampache - How to add a catalog / media with custom storage?:

              Do other people have access to the server? (i.e can they ssh in?).

              No.

              @girish said in Ampache - How to add a catalog / media with custom storage?:

              Do you also require that Cloudron admins should not be able to delete files from the say the Volume -> file manager ?

              At present there are no other admins. But if there were, I'd trust them to not do that.

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

                @jdaviescoates Ah ok, if there are no admins, there is no danger of chmod 777 and other people being able to delete things.

                A more "unixy" way is to create a group. Cloudron already creates a group called media. Then, add the www-data (that ampache uses) to that group on the host. Then change ownership of the directory to be media group and have rwx permissions. That should work too.

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

                  @girish this just doesn't feel like the Cloudron "it just works" way 🙂

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

                    @jdaviescoates yeah, it's a bit rough.. AFAIK, fixing permissions cannot be done for ext4 mounts without a chmod and I don't know if it's a good idea to do this automagically since it changes the metadata on the external disk. Maybe someone else can chime in.

                    Is yours a ext4 volume or something else? Because others like CIFS support umask flag when mounting. Maybe that's an option too.

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

                      @girish said in Ampache - How to add a catalog / media with custom storage?:

                      CIFS support umask flag when mounting

                      Yeah it's CIFS

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

                        @jdaviescoates Maybe you can try file_mode and dir_mode flag in the /etc/fstab. See https://askubuntu.com/questions/313093/how-do-i-mount-a-cifs-share-via-fstab-and-give-full-rw-to-guest .

                        I guess this is part of the complexity in implementing this 🙂 Worth automating!

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post