throws OSError when trying to upload local files

I am trying to upload a local uncompressed fastq file to a shared data library via the upload from user directory dialog.

The upload job gets started but then fails with the following error:

Traceback (most recent call last): File "/srv/galaxy/tools/data_source/[](", line 14, in from galaxy.datatypes import sniff File "/srv/galaxy/lib/galaxy/datatypes/[](", line 680 raise OSError(f'Problem uncompressing {compr

these are some lines from the galaxy log:

galaxy.tool_util.output_checker INFO 2022-12-21 12:57:13,291 [pN:main.web.1,p:1423215,w:1,m:0,tN:DRMAARunner.work_thread-1] Job error detected, failing job. Reasons are [{'type': 'exit_code', 'desc': 'Fatal error: Exit code 1 ()', 'exit_code': 1, 'code_desc': '', 'error_level': 3}] DEBUG 2022-12-21 12:57:13,945 [pN:main.web.1,p:1423215,w:1,m:0,tN:DRMAARunner.work_thread-1] (29) setting dataset 31 state to ERROR INFO 2022-12-21 12:57:14,346 [pN:main.web.1,p:1423215,w:1,m:0,tN:DRMAARunner.work_thread-1] Collecting metrics for Job 29 in /srv/galaxy/database/jobs_directory/000/29

there is no folder 29 at this location though.

Edit: this is on galaxy 21.09 running on ubuntu i should add

What could be causing this?