-
Notifications
You must be signed in to change notification settings - Fork 7
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
tJobInstanceLiveCheck problems to get PIDs on Debian 11 #33
Comments
Thanks a lot for your suggestion. I guess it would be helpful to make the commands for Windows and Linux configurable to allow such changes without the need of new component version. |
pgrep seems to not be a solution because it never shows the list of the whole system. |
Hi Jan, To make this command configurable is a good idea. But it would be fin to add one or two default values. Thank for your help! |
The live check component has now the ability to setup alternative commands to get the PID list and also alternative regex to extract the PIDs from the command output. Please try it out. |
We will test it asap :-) |
Hi, |
This means the expected Log4J v2 lib are not in place in the job. Actually log4j v2 should be the default for projects. |
This was a good point - but we get now a new error: |
Ok, I have tested it on my Mac. I will try to run it under Linux. |
The good news is, I can reproduce the error now. A very stupid error! I will fix that immediately! |
Sorry for confusion. Version 8.9 works now. Please check again. |
Sorry Jan,
Always the command response seems to be empty and then the matching does not fine anything. `[ERROR] 10:12:22 de.cimt.talendcomp.jobinstance.process.ProcessHelper- No pids could be extracted by unix command: 'ls -d /proc/*' using pattern: '[0-9]{1,8}' response: [FATAL] 10:12:22 beat17.management_check_broken_instances_3_6.management_check_broken_instances- tJobInstanceLiveCheck_1 No running OS processes detected, this is not a valid state, abort check! Detected OS: Unix Thanks for your help! |
I will install Debian 11 and check it. On my Mac it works. Because the response-part is empty, it shows me the command itself does not return a list. |
Hi Jan, is there something new? |
I am installing currently Ubuntu 22 and check today what went wrong. |
The problem with the ls command is, it is not a real program like ps but it is a command of the shell. Thats why the process builder from the JVM cannot run this. |
The component cannot handle piped commands yet. |
I cannot reproduce this issue. Actually it is also a problem which fixes itself. Only jobs wich are not ended will be treated by this component. And if the job is not actually dead and the component ends its entry, the job will perform an update at the end anyway and overwrite the false "died" update. |
Checkout the latest release 8.10 |
I have found another bug. Please use version 8.11 |
Hi Jan,
This issue pertains to calling PIDs via "ps -eo pid" in the tJobInstanceLiveCheck component. We've discovered that the live-check isn't functioning properly after upgrading Debian from 9 to 11 and Java from 8 to 11.
It seems to us that Debian 11 doesn't always respond with a complete set of PIDs using this command.
We would suggest that the component use "pgrep ." to retrieve this list. We hope this will resolve this behavior.
Thanks in advance!
Jens
The text was updated successfully, but these errors were encountered: