Overview
This article addresses Linux connector deployment failures caused by insufficient permissions, specifically related to the !requiretty error.
It provides troubleshooting steps to identify and resolve permission issues with the /tmp and /var directories.
Common Deployment Error
When you try to deploy the connector on a Linux machine, it may fail with the following message:
Common Causes
Normally, this happens due to two reasons
- Insufficient permissions to the /tmp folder. Please add the relevant permissions.
- If /tmp is mounted as read-only, then please change the config to use a different /tmp folder.
- Insufficient permissions for the user in /var.
- Add permissions and try to refresh the status.
Troubleshooting Steps
If there is still an issue, you can verify using the following steps:
- Connect to the client server using the same username that was provided in the JetPatch console (the assigned account)
- Write a script, put it under [or download the echo_hello.sh attachment]
| echo "hello" |
| /tmp/test.sh |
- Validate that the owner of the script is the JetPatch User (the assigned account) (run )
| stat -c "%U %G" /path/to/file |
- Change permissions:
| chmod 764 /tmp/test.sh |
- Run the script:
| /tmp/test.sh |
Possible Outcomes and Solutions
Script Failed
The script failed - There is a permissions problem.
The user in use in the assigned account has insufficient permissions to the /tmp folder.
Please contact your admin and add the relevant permissions.
Alternatively, change the config to use a different /tmp folder.
Script Succeeded
The script succeeded. Edit the script to echo "hello" > /var/run/test [or download the echo_hello_var attachment] and run again.
- If the script failed, there are insufficient permissions for the user in /var. Add permissions and try to refresh the status.
- If the script succeeded, please contact the JetPatch support team at support@jetpatch.com
Comments
0 comments
Please sign in to leave a comment.