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. Baserow
  3. baserow error on file column upload

baserow error on file column upload

Scheduled Pinned Locked Moved Solved Baserow
13 Posts 4 Posters 1.6k 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.
  • nebulonN nebulon

    Was just looking into this and couldn't figure out where you were trying to upload files. I uploaded csv files for import and that worked fine at least, so I guess there is some other area on the app where one can upload other things?

    M Offline
    M Offline
    midm
    wrote on last edited by
    #4

    @nebulon Yes there is a "file" column type on Baserow, to upload and store files. This is where I had this crash.

    robiR 1 Reply Last reply
    0
    • M midm

      @nebulon Yes there is a "file" column type on Baserow, to upload and store files. This is where I had this crash.

      robiR Offline
      robiR Offline
      robi
      wrote on last edited by robi
      #5

      @nebulon I can reproduce this on the demo instance.. when you create a new table, you get some default rows and columns, you then scroll right to add a new column, and choose file type, then try uploading any file. It will fail.

      UPDATE:
      The directories in /app/data/media are owned by root for some reason, chown -R to cloudron:cloudron does the trick.

      Not sure why there is 62+MB of random images in user_files/, there's over a thousand files there!

      Some images are back to root permissions after I did the chown to cloudron.

      Conscious tech

      1 Reply Last reply
      0
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by nebulon
        #6

        Actually on a fresh install for me the uploads work just fine, also I can't quite see the permission issue. The start.sh has a chown -R cloudron:cloudron /app/data however as you indicated, something apparently changes ownership or creates files with root while the app is running.

        Also all processes besides nginx are run as cloudron user https://git.cloudron.io/cloudron/baserow-app/-/blob/master/supervisor.conf

        robiR 1 Reply Last reply
        0
        • nebulonN nebulon

          Actually on a fresh install for me the uploads work just fine, also I can't quite see the permission issue. The start.sh has a chown -R cloudron:cloudron /app/data however as you indicated, something apparently changes ownership or creates files with root while the app is running.

          Also all processes besides nginx are run as cloudron user https://git.cloudron.io/cloudron/baserow-app/-/blob/master/supervisor.conf

          robiR Offline
          robiR Offline
          robi
          wrote on last edited by robi
          #7

          @nebulon wow, not my experience at all with the demo instance.. it seemed like the baserow instance was doing things I didn't want it doing, like downloading 1000+ stock images (that's not what baserow is for!).

          Did something nefarious sneak in there? You can inspect the app at https://brow.demo.cloudron.io/ (cloudron/cloudron)

          It'd be nice to be able to see what all is running and changing permissions. Is there a way you can run execsnoop from startup?

          Here's more info on execsnoop and how to log all processes being executed (it may not work with our new kernels though).

          You can apparently follow a process using strace. If you know the PID of the process then you can do:

          strace -o strace-<pid>.out -f -p <pid>

          Notice the -f switch. It will help you to follow newly created processes that are descendants of the process whose PID was used in the command, above.

          https://github.com/a2o/snoopy also seems to record process execution, aside from doing full audit process accounting (psacct).

          Conscious tech

          girishG 1 Reply Last reply
          0
          • nebulonN Away
            nebulonN Away
            nebulon
            Staff
            wrote on last edited by
            #8

            Hm really not sure how to reproduce this even in https://brow.demo.cloudron.io/database/13/table/70 (if that app instance still exists while others read this) I am able to upload files into the table just fine. PDFs as well as others, maybe something special about the file you try to upload?

            robiR 1 Reply Last reply
            0
            • nebulonN nebulon

              Hm really not sure how to reproduce this even in https://brow.demo.cloudron.io/database/13/table/70 (if that app instance still exists while others read this) I am able to upload files into the table just fine. PDFs as well as others, maybe something special about the file you try to upload?

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #9

              @nebulon that's because I fixed the permissions earlier, try a new instance and monitor the directory just as you chown

              Conscious tech

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

                I can confirm there is a whole bunch of files owned by root:

                7c05afa9-6e45-4df5-8388-d687c9ede696-image.png

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

                  I think the issue is that we do this sync_templates in the background:

                  echo "==> Syncing templates (in the background)"
                  /app/code/env/bin/python /app/code/backend/src/baserow/manage.py sync_templates &
                  

                  And the above thing is also downloading a whole bunch of images from the web, not sure why.

                  1 Reply Last reply
                  0
                  • robiR robi

                    @nebulon wow, not my experience at all with the demo instance.. it seemed like the baserow instance was doing things I didn't want it doing, like downloading 1000+ stock images (that's not what baserow is for!).

                    Did something nefarious sneak in there? You can inspect the app at https://brow.demo.cloudron.io/ (cloudron/cloudron)

                    It'd be nice to be able to see what all is running and changing permissions. Is there a way you can run execsnoop from startup?

                    Here's more info on execsnoop and how to log all processes being executed (it may not work with our new kernels though).

                    You can apparently follow a process using strace. If you know the PID of the process then you can do:

                    strace -o strace-<pid>.out -f -p <pid>

                    Notice the -f switch. It will help you to follow newly created processes that are descendants of the process whose PID was used in the command, above.

                    https://github.com/a2o/snoopy also seems to record process execution, aside from doing full audit process accounting (psacct).

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #12

                    @robi said in baserow error on file column upload:

                    @nebulon wow, not my experience at all with the demo instance.. it seemed like the baserow instance was doing things I didn't want it doing, like downloading 1000+ stock images (that's not what baserow is for!).

                    Apparently, all those images are part of the "templates" - https://gitlab.com/bramw/baserow/-/tree/develop/backend/templates

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

                      This is fixed in latest package.

                      1 Reply Last reply
                      1
                      • girishG girish 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