-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
webhook snap can't execute command #530
Comments
It appears you are running webhook in an environment where it does not inherit the environment variables from your user/process and therefore $PATH is undefined. So you either need to define it, or give the full path to the binary.
There is a saying that goes "What goes around, comes around". Maybe you are just the one that is painful to work with? ;-) |
$PATH is defined, I made "echo $PATH > log.txt" and everything exists in path. |
If you use the full path to the git binary, does it work? |
No, it gives:
I already tried with passing working directory and without passing anything, nothing works. |
What version of webhook and how did you install it? Check your file permissions. Does the user running the webhook service have access to execute the git binary? Are you using selinux or anything would prevent the webhook service from execution git? |
Version: 2.8.0
Sure
Nothing, just regular ubuntu (slightly old, 16.04). |
I don't use snaps, but I'm assuming that's the problem. Cc: @adnanh |
there are no configuration hooks and vars in snap, so I'd assume it won't work from snap |
May be it is a good idea at least to mention in README.md that |
Pretty much indeed🤷♂️ |
I don't know how snap works and I wanted to give it a try by installing the latest version of webhook. I did not find any information for the configuration, how to edit the service or where I have to put the configuration file. |
+1, I have the same behavior in centos |
I have some knowledge about snaps. There are various interfaces and tools to poke holes in the sandbox, but I agree that with a tool like this the sandbox make little sense. My suggestion it make it a "classic snap" with is a snap package without a sandbox. A classic snap needs to be manually approved by Canonical, I think this tool have a good case why it should be approved. It can still be useful to use the snap store for discoverability and ease of installation for users. If not, I suggest that you merge #566 and unpublish the snap from the store. Let me know if you need any help. |
I have a script with following content:
Script doesn't work, and there is an error in logs:
line 3: git: command not found
Webhook is running under the same user, standalone script launch is 100% working, git command present in bash.
Why opensource usage is such a pain?
The text was updated successfully, but these errors were encountered: