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. Mastodon
  3. http 500 at picture upload (after adding Volume)

http 500 at picture upload (after adding Volume)

Scheduled Pinned Locked Moved Mastodon
11 Posts 4 Posters 882 Views 4 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.
  • J Offline
    J Offline
    johannesjom
    wrote on last edited by
    #1

    Hello Cloudron Forum,
    I think I'm making a mistake and would really appreciate some help!

    I have installed a Mastodon instance on my Server and then integrated a Hetzner Storage Box via CIFS.
    CleanShot 2022-12-05 at 10.34.11@2x.png
    Then I migrated all files via the Cloudron interface.
    CleanShot 2022-12-05 at 10.36.55@2x.png
    Now the start of the Mastodon instance takes forever (20 minutes and more) and unfortunately I can't upload any more pictures (500 error).

    At /mnt/volumes the folder is there:
    CleanShot 2022-12-05 at 10.38.10@2x.png

    Inside the Container i able to see and create files in

    root@083b2dba-dbf8-4afc-bdcc-2b55e9f8511a:/media/Hetzner/mastodondata# ls
    config.sh  env.production  system
    

    What I notice in the logs, I keep running into this error:

    "error_message":"Operation not permitted @ apply2files - /app/code/public/s
    

    Have I forgotten any step at the migration to the Volume?
    Before the migration, the upload worked.
    Thank you!
    jom

    J 1 Reply Last reply
    0
    • J johannesjom

      Hello Cloudron Forum,
      I think I'm making a mistake and would really appreciate some help!

      I have installed a Mastodon instance on my Server and then integrated a Hetzner Storage Box via CIFS.
      CleanShot 2022-12-05 at 10.34.11@2x.png
      Then I migrated all files via the Cloudron interface.
      CleanShot 2022-12-05 at 10.36.55@2x.png
      Now the start of the Mastodon instance takes forever (20 minutes and more) and unfortunately I can't upload any more pictures (500 error).

      At /mnt/volumes the folder is there:
      CleanShot 2022-12-05 at 10.38.10@2x.png

      Inside the Container i able to see and create files in

      root@083b2dba-dbf8-4afc-bdcc-2b55e9f8511a:/media/Hetzner/mastodondata# ls
      config.sh  env.production  system
      

      What I notice in the logs, I keep running into this error:

      "error_message":"Operation not permitted @ apply2files - /app/code/public/s
      

      Have I forgotten any step at the migration to the Volume?
      Before the migration, the upload worked.
      Thank you!
      jom

      J Offline
      J Offline
      johannesjom
      wrote on last edited by
      #2

      CleanShot 2022-12-05 at 15.07.37@2x.png

      Looks bad :/. Anyone with the same problem?

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #3

        For a start, not sure why you have moved the app data directory to the hetzner volume AND also have the same added as a volume mounted into the app, I guess you can remove the volume mount.

        However since the app startup script will ensure ownership of files, and according to the error messages, this is not supported by CIFS setup of the Hetzner storage box, I am afraid mastodon, and a lot of other apps will not support moving the data directory to that volume.

        What you can do is, to have the main data directory on the local ext4 disk and then have to see how one can make use of volumes for the mastodon media cache (just like the S3 support)

        J 1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • nebulonN nebulon

          For a start, not sure why you have moved the app data directory to the hetzner volume AND also have the same added as a volume mounted into the app, I guess you can remove the volume mount.

          However since the app startup script will ensure ownership of files, and according to the error messages, this is not supported by CIFS setup of the Hetzner storage box, I am afraid mastodon, and a lot of other apps will not support moving the data directory to that volume.

          What you can do is, to have the main data directory on the local ext4 disk and then have to see how one can make use of volumes for the mastodon media cache (just like the S3 support)

          J Offline
          J Offline
          johannesjom
          wrote on last edited by
          #4

          @nebulon said in http 500 at picture upload (after adding Volume):

          For a start, not sure why you have moved the app data directory to the hetzner volume AND also have the same added as a volume mounted into the app, I guess you can remove the volume mount.

          I thought better twice than mounted in the wrong place. But I have now removed the /media/ mount again.

          However since the app startup script will ensure ownership of files, and according to the error messages, this is not supported by CIFS setup of the Hetzner storage box, I am afraid mastodon, and a lot of other apps will not support moving the data directory to that volume.

          What you can do is, to have the main data directory on the local ext4 disk and then have to see how one can make use of volumes for the mastodon media cache (just like the S3 support)

          mmh. But not as easy as I had hoped. 🙂
          Then I guess I'll have a go with s3 instead of CIFS mount.....

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            I think so yes, there is a thread about this at https://forum.cloudron.io/topic/8141/http-500-at-picture-upload-after-adding-volume/2

            jdaviescoatesJ 1 Reply Last reply
            0
            • nebulonN nebulon referenced this topic on
            • nebulonN nebulon

              I think so yes, there is a thread about this at https://forum.cloudron.io/topic/8141/http-500-at-picture-upload-after-adding-volume/2

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by
              #6

              @nebulon said in http 500 at picture upload (after adding Volume):

              I think so yes, there is a thread about this at https://forum.cloudron.io/topic/8141/http-500-at-picture-upload-after-adding-volume/2

              That's the wrong link (it points to this same self thread).

              This is the thread with the most relevant posts. It starts out being about how great Minio is, but you can of course connect to any S3 service.

              Here is my post in that thread with what worked for me using Scaleway Object Storage:

              https://forum.cloudron.io/post/57033

              I use Cloudron with Gandi & Hetzner

              nebulonN 1 Reply Last reply
              1
              • jdaviescoatesJ jdaviescoates referenced this topic on
              • jdaviescoatesJ jdaviescoates

                @nebulon said in http 500 at picture upload (after adding Volume):

                I think so yes, there is a thread about this at https://forum.cloudron.io/topic/8141/http-500-at-picture-upload-after-adding-volume/2

                That's the wrong link (it points to this same self thread).

                This is the thread with the most relevant posts. It starts out being about how great Minio is, but you can of course connect to any S3 service.

                Here is my post in that thread with what worked for me using Scaleway Object Storage:

                https://forum.cloudron.io/post/57033

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #7

                @jdaviescoates oh thanks for the correction.

                1 Reply Last reply
                0
                • girishG girish marked this topic as a regular topic on
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  Maybe we should disallow CIFS mounts to be app data volumes ? I don't know if it's universal that CIFS does not support permissions.

                  nebulonN 1 Reply Last reply
                  0
                  • girishG girish

                    Maybe we should disallow CIFS mounts to be app data volumes ? I don't know if it's universal that CIFS does not support permissions.

                    nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #9

                    @girish as far as I know proper permissions are supported, but not by the storage box. But it also seems that the hetzner storage box is about to be the only cifs storage used so far with Cloudron.

                    J 1 Reply Last reply
                    1
                    • nebulonN nebulon

                      @girish as far as I know proper permissions are supported, but not by the storage box. But it also seems that the hetzner storage box is about to be the only cifs storage used so far with Cloudron.

                      J Offline
                      J Offline
                      johannesjom
                      wrote on last edited by
                      #10

                      @nebulon Hetzner is quite cheap...
                      did you find any CIFS storage where volumes worked?

                      nebulonN 1 Reply Last reply
                      0
                      • J johannesjom

                        @nebulon Hetzner is quite cheap...
                        did you find any CIFS storage where volumes worked?

                        nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #11

                        @johannesjom generally the permissions are basically everyone can do everything on hetzner cifs storage, in this particular case the changing of permissions from the app startup script fails. So apps which do not require this, will likely work just fine.

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