Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tus:start tusd-mac permission denied #4

Closed
s1rc opened this issue May 1, 2018 · 6 comments
Closed

tus:start tusd-mac permission denied #4

s1rc opened this issue May 1, 2018 · 6 comments

Comments

@s1rc
Copy link

s1rc commented May 1, 2018

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
Copy link
Contributor

avvertix commented May 1, 2018

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
Copy link
Author

s1rc commented May 1, 2018

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
Copy link
Contributor

avvertix commented May 1, 2018

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

@s1rc
Copy link
Author

s1rc commented May 1, 2018

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

@avvertix avvertix closed this as completed May 2, 2018
@fidelix
Copy link

fidelix commented Aug 11, 2018

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
Copy link
Contributor

We are open to accept pull requests on the topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants