Closed martnst closed 9 months ago
Here is how I installed it:
Create & enter a temporary working folder
mkdir tmp-install-tusd && cd tmp-install-tusd
Download
wget https://github.com/tus/tusd/releases/download/v2.2.0/tusd_linux_386.tar.gz
Verify integrity of the file
curl -L -s https://github.com/tus/tusd/releases/download/v2.2.0/tusd_linux_386.tar.gz.sha256 | shasum -a 256 -c
tusd_linux_386.tar.gz: OK
Unpack the archive
tar xzf tusd_linux_386.tar.gz
Move the binary
cp -v tusd_linux_386/tusd /usr/local/bin/
'tusd_linux_386/tusd' -> '/usr/local/bin/tusd'
Test the server
tsud
Output should look like this:
2023/12/13 11:29:31.164283 Using '/root/data' as directory storage.
2023/12/13 11:29:31.164608 Using 0.00MB as maximum size.
2023/12/13 11:29:31.164635 Supported tus extensions: creation,creation-with-upload,termination,concatenation,creation-defer-length
2023/12/13 11:29:31.164640 Using 0.0.0.0:8080 as address to listen.
2023/12/13 11:29:31.164645 Using /files/ as the base path.
2023/12/13 11:29:31.164678 Using /metrics as the metrics path.
2023/12/13 11:29:31.164860 You can now upload files to: http://[::]:8080/files/
Remove the working folder
cd .. && rm -rfv tmp-install-tusd
Thanks for the detailed report, that's very helpful!
You seem to be on a 64-bit machine (x84_64) but downloaded a 32-bit build of tusd (386 architecture). Was there a particular reason why you downloaded tusd_linux_386.tar.gz and not tusd_linux_amd64.tar.gz?
I found similar reports where this happened when the Go code was compiled for 32-bit architecture, e.g. https://www.couchbase.com/forums/t/go-sdk-panics-with-unaligned-64-bit-atomic-operation-on-x86-64-ubuntu-server/34124/2
The panic is caused by https://github.com/tus/tusd/blob/f03aa9b4ddd69cf83c1fa3f74f1172c179be7bdc/pkg/handler/body_reader.go#L43
We should be able to fix this by adjusting the position of the field that is written to like they did in https://github.com/blevesearch/zapx/pull/148.
Ah right. Thanks a lot. That was a stupid mistake of mine. I am not working with linux on a daily basis.
Describe the bug File Upload not working on Debian Installation.
I did install the the binary from https://github.com/tus/tusd/releases/download/v2.2.1/tusd_linux_386.tar.gz on a Debian server.
Attempting to upload file I get this error:
To Reproduce Steps to reproduce the behavior:
Expected behavior Request should work.
Setup details Please provide following details, if applicable to your situation:
Operating System: Linux
Used tusd version: 2.2.1
Used tusd configuration: (running as root)
Used tusd data storage: local disk store
Used tus client library: curl: