Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to fix com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Error while executing script caused by java.io.IOException: error=26, Text file busy

Avatar

Level 1

Platform: RHEL 6, 64-bit Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

cq-service-pack-5.5.2.20121012

cq-update-pkg-5.5.10

cq-5.5.0-hotfix-2586

com.adobe.granite.platform.content-0.2.11

*ERROR* [Shell Script Executor Thread for cpu.sh] com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Error while executing script /opt/cq/cq55/author/crx-quickstart/monitoring/cpu.sh java.io.IOException: Cannot run program "/opt/cq/cq55/author/crx-quickstart/monitoring/cpu.sh" (in directory "/opt/cq/cq55/author/crx-quickstart/monitoring"): java.io.IOException: error=26, Text file busy
Caused by: java.io.IOException: java.io.IOException: error=26, Text file busy

 

This error happen fundamentally because a java class fails to close a stream before trying to execve() the shell script ("cpu.sh" or "diskusage.sh").  How CQ gets into the state where it happens is unknown to me.  Has anyone found a solution to this?

4 Replies

Avatar

Level 1

Even i am facing same kind of issue. anyone has the solution for this type of issue? 

Avatar

Employee Advisor

What are the Unix permissions on these scripts?

Jörg

Avatar

Level 1
-rwxrw-r-- 1 cq cq 127 Sep 21  2012 cpu.sh -rwxrw-r-- 1 cq cq 168 Sep 21  2012 diskusage.sh

Avatar

Level 1

This stackoverflow report shows it happening in someone's custom code but I can't fix granite.

http://stackoverflow.com/questions/6345660/java-executing-bash-script-error-26-text-file-busy