-
Notifications
You must be signed in to change notification settings - Fork 0
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
Inline scripts failed time to time #62
Comments
You say "from time to time" That implies sometimes it does work, correct? Can you estimate the frequency of failure? Are the servers close to each other on the network? Does debug show anything? Maybe a log of a failed network connection? Have you found anything reproducible about the failure? |
Yep, in the screenshots you see, one succeed and one failed in the same minute, just lauched the job 3-4 times manually, if I continue to launch it it will alternate between failed and succeed. [workflow] beginExecuteNodeStep(cust_preprod-cust-app-com-rsl-task-pre-prod-cust-app-com-1): NodeDispatch: ScriptFileItem{script=[42 chars]} It's in french, chmod: impossible d'accéder à '/tmp/288-34-cust_preprod-cust-app-com-rsl-task-pre-prod-cust-app-com-1-dispatch-script.tmp.sh': Aucun fichier ou dossier de ce type' meens 'cannot access file, no such file or directory' |
I cannot seem to reproduce this at all -- I have tried with both the file copy based on the rancher cli, and the configuration that uses the wbe socket to do the copy without the rancher CLI. You are using the web socket -- I see tha from the PUT. Maybe that is failing (it is a bit of a hack) -- if the file for the inline script is larger than mine, maybe it becomes unreliable? Can you install rancher CLI on the RunDeck host and add its path to the file copier configuration...then see if that makes a difference? |
Hello kdebisschop, I hope you are doing well in this strange period :-/
I come back to you regarding a problem I have with "Inline script".
I have started a new rundeck instance from scratch to be sure to not get disturbances from other plugins or features, add the plugin and make a simple bash Inline script executing the hostname command.
Rundeck is connected via the plugin to a Rancher instance managing about 200 containers.
The bug is that time to time, the execution of the script is not done with this error:
"chmod: cannot access /tmp/117-28-custeuro_preprod-custeuro-app-com-rsl-task-pre-prod-custeuro-app-com-1-dispatch-script.tmp.sh: No such file or directory"
and the fact is that the temporary file is present on the container:
ls -lrt /tmp/117-28-custeuro_preprod-custeuro-app-com-rsl-task-pre-prod-custeuro-app-com-1-dispatch-script.tmp.sh
-rw-r--r-- 1 root root 42 14 avril 13:58 /tmp/117-28-custeuro_preprod-custeuro-app-com-rsl-task-pre-prod-custeuro-app-com-1-dispatch-script.tmp.sh
So the script has well been copied, but for any reason it has not been found to be executed.
The screenshots display the same job executed twice, one succeed and the other failed.
I tried many different settings modifications (Sync cache,cache delay, refresh nodes before execute, use scp or rancher copy, include services, global containers, system containers ...), but the problem is till present.
If I use the generic command menu of the project to launch the 'hostname' command on nodes, I do not get any issue.
Any idea what could cause this behavior ?
Thank you for your help.
Regards,
The text was updated successfully, but these errors were encountered: