<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[baserow error on file column upload]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">On a fresh install of Cloudron, I'm unable to upload files to Baserow, with followings error in logs :</p>
<pre><code>Dec 28 00:08:13 ERROR 2022-12-27 23:08:13,289 django.request.log_response:224- Internal Server Error: /api/user-files/upload-file/
Dec 28 00:08:13 Traceback (most recent call last):
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 482, in thread_handler
Dec 28 00:08:13 raise exc_info[1]
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 38, in inner
Dec 28 00:08:13 response = await get_response(request)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 233, in _get_response_async
Dec 28 00:08:13 response = await wrapped_callback(request, *callback_args, **callback_kwargs)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 444, in __call__
Dec 28 00:08:13 ret = await asyncio.wait_for(future, timeout=None)
Dec 28 00:08:13 File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
Dec 28 00:08:13 return await fut
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/asgiref/current_thread_executor.py", line 22, in run
Dec 28 00:08:13 result = self.fn(*self.args, **self.kwargs)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/asgiref/sync.py", line 486, in thread_handler
Dec 28 00:08:13 return func(*args, **kwargs)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
Dec 28 00:08:13 return view_func(*args, **kwargs)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/django/views/generic/base.py", line 70, in view
Dec 28 00:08:13 return self.dispatch(request, *args, **kwargs)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
Dec 28 00:08:13 response = self.handle_exception(exc)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
Dec 28 00:08:13 self.raise_uncaught_exception(exc)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Dec 28 00:08:13 raise exc
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
Dec 28 00:08:13 response = handler(request, *args, **kwargs)
Dec 28 00:08:13 File "/usr/lib/python3.10/contextlib.py", line 79, in inner
Dec 28 00:08:13 return func(*args, **kwds)
Dec 28 00:08:13 File "/app/code/backend/src/baserow/api/decorators.py", line 90, in func_wrapper
Dec 28 00:08:13 return func(*args, **kwargs)
Dec 28 00:08:13 File "/app/code/backend/src/baserow/api/user_files/views.py", line 61, in post
Dec 28 00:08:13 user_file = UserFileHandler().upload_user_file(request.user, file.name, file)
Dec 28 00:08:13 File "/app/code/backend/src/baserow/core/user_files/handler.py", line 257, in upload_user_file
Dec 28 00:08:13 storage.save(full_path, stream)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/django/core/files/storage.py", line 54, in save
Dec 28 00:08:13 name = self._save(name, content)
Dec 28 00:08:13 File "/app/code/backend/src/baserow/core/storage.py", line 8, in _save
Dec 28 00:08:13 return super()._save(name, content)
Dec 28 00:08:13 File "/app/code/env/lib/python3.10/site-packages/django/core/files/storage.py", line 279, in _save
Dec 28 00:08:13 fd = os.open(full_path, self.OS_OPEN_FLAGS, 0o666)
Dec 28 00:08:13 PermissionError: [Errno 13] Permission denied: '/app/data/media/user_files/sIjCc9JiqO2tnF3n7kcWdLaEJ3o1Geuv_a6e867bf79213cf4a792c688bfde862914c9faa44e1cb02e3c8c03ad89efc573.pdf'
</code></pre>
]]></description><link>https://forum.cloudron.io/topic/8290/baserow-error-on-file-column-upload</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 19:28:32 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/8290.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Dec 2022 23:10:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to baserow error on file column upload on Mon, 23 Jan 2023 21:22:02 GMT]]></title><description><![CDATA[<p dir="auto">This is fixed in latest package.</p>
]]></description><link>https://forum.cloudron.io/post/60716</link><guid isPermaLink="true">https://forum.cloudron.io/post/60716</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 23 Jan 2023 21:22:02 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Mon, 23 Jan 2023 21:04:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> said in <a href="/post/59971">baserow error on file column upload</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> 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!).</p>
</blockquote>
<p dir="auto">Apparently, all those images are part of the "templates" - <a href="https://gitlab.com/bramw/baserow/-/tree/develop/backend/templates" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/bramw/baserow/-/tree/develop/backend/templates</a></p>
]]></description><link>https://forum.cloudron.io/post/60713</link><guid isPermaLink="true">https://forum.cloudron.io/post/60713</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 23 Jan 2023 21:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Mon, 23 Jan 2023 20:47:05 GMT]]></title><description><![CDATA[<p dir="auto">I think the issue is that we do this sync_templates in the background:</p>
<pre><code>echo "==&gt; Syncing templates (in the background)"
/app/code/env/bin/python /app/code/backend/src/baserow/manage.py sync_templates &amp;
</code></pre>
<p dir="auto">And the above thing is also downloading a whole bunch of images from the web, not sure why.</p>
]]></description><link>https://forum.cloudron.io/post/60711</link><guid isPermaLink="true">https://forum.cloudron.io/post/60711</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 23 Jan 2023 20:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Mon, 23 Jan 2023 20:45:11 GMT]]></title><description><![CDATA[<p dir="auto">I can confirm there is a whole bunch of files owned by root:</p>
<p dir="auto"><img src="/assets/uploads/files/1674506708388-7c05afa9-6e45-4df5-8388-d687c9ede696-image-resized.png" alt="7c05afa9-6e45-4df5-8388-d687c9ede696-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/60710</link><guid isPermaLink="true">https://forum.cloudron.io/post/60710</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 23 Jan 2023 20:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Mon, 16 Jan 2023 21:00:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> that's because I fixed the permissions earlier, try a new instance and monitor the directory just as you <code>chown</code></p>
]]></description><link>https://forum.cloudron.io/post/60261</link><guid isPermaLink="true">https://forum.cloudron.io/post/60261</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Mon, 16 Jan 2023 21:00:42 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Mon, 16 Jan 2023 19:23:45 GMT]]></title><description><![CDATA[<p dir="auto">Hm really not sure how to reproduce this even in <a href="https://brow.demo.cloudron.io/database/13/table/70" target="_blank" rel="noopener noreferrer nofollow ugc">https://brow.demo.cloudron.io/database/13/table/70</a> (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?</p>
]]></description><link>https://forum.cloudron.io/post/60249</link><guid isPermaLink="true">https://forum.cloudron.io/post/60249</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 16 Jan 2023 19:23:45 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Fri, 13 Jan 2023 01:11:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> 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!).</p>
<p dir="auto">Did something nefarious sneak in there? You can inspect the app at <a href="https://brow.demo.cloudron.io/" target="_blank" rel="noopener noreferrer nofollow ugc">https://brow.demo.cloudron.io/</a> (cloudron/cloudron)</p>
<p dir="auto">It'd be nice to be able to see what all is running and changing permissions. Is there a way you can run <code>execsnoop</code> from startup?</p>
<p dir="auto">Here's more info on <a href="https://www.brendangregg.com/blog/2014-07-28/execsnoop-for-linux.html" target="_blank" rel="noopener noreferrer nofollow ugc">execsnoop</a> and how to log all processes being executed (<a href="https://unix.stackexchange.com/questions/260162/how-to-track-newly-created-processes-in-linux" target="_blank" rel="noopener noreferrer nofollow ugc">it may not work with our new kernels though</a>).</p>
<p dir="auto">You can apparently follow a process using strace. If you know the PID of the process then you can do:</p>
<p dir="auto"><code>strace -o strace-&lt;pid&gt;.out -f -p &lt;pid&gt;</code></p>
<p dir="auto">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.</p>
<p dir="auto"><a href="https://github.com/a2o/snoopy" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/a2o/snoopy</a> also seems to record process execution, aside from doing full audit process accounting (psacct).</p>
]]></description><link>https://forum.cloudron.io/post/59971</link><guid isPermaLink="true">https://forum.cloudron.io/post/59971</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 13 Jan 2023 01:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Thu, 12 Jan 2023 13:59:24 GMT]]></title><description><![CDATA[<p dir="auto">Actually on a fresh install for me the uploads work just fine, also I can't quite see the permission issue. The <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> has a <code>chown -R cloudron:cloudron /app/data</code> however as you indicated, something apparently changes ownership or creates files with <code>root</code> while the app is running.</p>
<p dir="auto">Also all processes besides nginx are run as <code>cloudron</code> user <a href="https://git.cloudron.io/cloudron/baserow-app/-/blob/master/supervisor.conf" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/baserow-app/-/blob/master/supervisor.conf</a></p>
]]></description><link>https://forum.cloudron.io/post/59953</link><guid isPermaLink="true">https://forum.cloudron.io/post/59953</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 12 Jan 2023 13:59:24 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Thu, 12 Jan 2023 01:11:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a>  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.</p>
<p dir="auto">UPDATE:<br />
The directories in /app/data/media are owned by root for some reason, chown -R to cloudron:cloudron does the trick.</p>
<p dir="auto">Not sure why there is 62+MB of random images in user_files/, there's over a thousand files there!</p>
<p dir="auto">Some images are back to root permissions after I did the <code>chown</code> to cloudron.</p>
]]></description><link>https://forum.cloudron.io/post/59926</link><guid isPermaLink="true">https://forum.cloudron.io/post/59926</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Thu, 12 Jan 2023 01:11:37 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Wed, 11 Jan 2023 22:35:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Yes there is a "file" column type on Baserow, to upload and store files. This is where I had this crash.</p>
]]></description><link>https://forum.cloudron.io/post/59923</link><guid isPermaLink="true">https://forum.cloudron.io/post/59923</guid><dc:creator><![CDATA[midm]]></dc:creator><pubDate>Wed, 11 Jan 2023 22:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Wed, 11 Jan 2023 18:44:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> the error points to the path below with a .pdf</p>
<blockquote>
<p dir="auto">[Errno 13] Permission denied: '/app/data/media/user_files/*.pdf</p>
</blockquote>
]]></description><link>https://forum.cloudron.io/post/59914</link><guid isPermaLink="true">https://forum.cloudron.io/post/59914</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 11 Jan 2023 18:44:03 GMT</pubDate></item><item><title><![CDATA[Reply to baserow error on file column upload on Wed, 11 Jan 2023 12:17:00 GMT]]></title><description><![CDATA[<p dir="auto">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?</p>
]]></description><link>https://forum.cloudron.io/post/59867</link><guid isPermaLink="true">https://forum.cloudron.io/post/59867</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 11 Jan 2023 12:17:00 GMT</pubDate></item></channel></rss>