How to fix com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Error while executing script caused by java.io.IOException: error=26, Text file busy | Community
Skip to main content
October 16, 2015
Question

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

  • October 16, 2015
  • 4 replies
  • 2299 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

zaptasticAuthor
October 16, 2015

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

zaptasticAuthor
October 16, 2015
-rwxrw-r-- 1 cq cq 127 Sep 21  2012 cpu.sh -rwxrw-r-- 1 cq cq 168 Sep 21  2012 diskusage.sh
joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

What are the Unix permissions on these scripts?

Jörg

New Member
October 16, 2015

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