Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Issue executing monitoring scripts

Avatar

Level 3

Hi,

I am using CQ 5.6.1 on AWS linux instance and am getting this error in my author server logs and it eventually stalls the server. I changed the permission of these files to 775 but am still facing the issue. Please advice.

{code:javascript}

15.04.2014 13:22:18.867 *ERROR* [Process Executor for diskusage.sh] com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Error while executing script /programs/author/crx-quickstart/monitoring/diskusage.sh java.io.IOException: Cannot run program "/programs/author/crx-quickstart/monitoring/diskusage.sh" (in directory "/programs/author/crx-quickstart/monitoring"): error=26, Text file busy
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
    at java.lang.Runtime.exec(Runtime.java:617)
    at com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl$ProcessExecutor.run(ShellScriptExecutorImpl.java:307)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.io.IOException: error=26, Text file busy
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
    ... 3 more
15.04.2014 13:22:48.882 *ERROR* [Process Executor for cpu.sh] com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Error while executing script /programs/author/crx-quickstart/monitoring/cpu.sh java.io.IOException: Cannot run program "/programs/author/crx-quickstart/monitoring/cpu.sh" (in directory "/programs/author/crx-quickstart/monitoring"): error=26, Text file busy
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
    at java.lang.Runtime.exec(Runtime.java:617)
    at com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl$ProcessExecutor.run(ShellScriptExecutorImpl.java:307)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.io.IOException: error=26, Text file busy
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
    ... 3 more

{code}

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

The script is already (or better: still) running. You might want to increase the interval or check why it's taking so much time.

Jörg

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

The script is already (or better: still) running. You might want to increase the interval or check why it's taking so much time.

Jörg

Avatar

Level 3

Thanks Jörg. That was a useful hint.