OneOffTech / laravel-tus-upload

A package for handling resumable file uploads in a Laravel application via the http://tus.io/ resumable file upload protocol.
https://oneofftech.xyz/open-source/
MIT License
50 stars 13 forks source link

tus:start tusd-mac permission denied #4

Closed s1rc closed 6 years ago

s1rc commented 6 years ago

I'm trying to start the Tus.io server with php artisan tus:start however I'm getting the following error:

ERROR output -----------------
sh: /Users/Matt/Development/PHP/test/bin/tusd-mac: Permission denied
sh: line 0: exec: /Users/Matt/Development/PHP/test/bin/tusd-mac: cannot execute: Undefined error: 0

I tried to set the executable and hooks dirs in tusupload.php to the vendor folder version, it also has the same error.

avvertix commented 6 years ago

Could you check if the MacOS binary is executable?

You can do that by entering the binaries folder and try to run the MacOS version directly

s1rc commented 6 years ago

Definitely not executable.

-rw-r--r--   1 Matt  staff      1081 Apr 27 12:11 LICENSE.txt
-rw-r--r--   1 Matt  staff      8219 Apr 27 12:11 README.md
-rw-r--r--   1 Matt  staff  19608457 Apr 27 12:11 tusd-linux
-rw-r--r--   1 Matt  staff  19387712 Apr 27 12:11 tusd-mac
-rw-r--r--   1 Matt  staff  19524096 Apr 27 12:11 tusd-win.exe

Do I need to move the /bin and /hooks directory over manually and I'm guessing make the binary executable? I wasn't sure if I was or if it should run from automatically from the /vendor folder.

avvertix commented 6 years ago

Normally it runs from the /vendor folder. Just try to make executable both the binary and the hooks

s1rc commented 6 years ago

Making the /bin and /hooks binary files executable works.

fidelix commented 6 years ago

This issue needs to be re-opened.

I tried it on Linux and the same issue is there. The hooks are also not invoked properly.

This needs to either be documented or the binaries need to be made executable

avvertix commented 6 years ago

We are open to accept pull requests on the topic