michael8335 / zeus2

work flow schedule

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

心跳脚本错误HeartBeat Shell Error

BestQu opened this issue · comments

commented

用的是root用户,这些sh文件都是空的。

2014-08-04 16:15:14,035 [ERROR] com.taobao.zeus.schedule.mvc.ScheduleInfoLog - HeartBeat Shell Error
java.lang.Exception: ZEUS# DEBUG Command:chmod u+x /tmp/zeus/2014-08-04/1407140114009.sh
ZEUS# DEBUG Command:dos2unix /tmp/zeus/2014-08-04/1407140114009.sh
ZEUS# DEBUG Command:sh /tmp/zeus/2014-08-04/1407140114009.sh
ZEUS# DEBUG Command:chmod u+x /tmp/zeus/2014-08-04/1407140114019.sh
ZEUS# DEBUG Command:dos2unix /tmp/zeus/2014-08-04/1407140114019.sh
ZEUS# DEBUG Command:sh /tmp/zeus/2014-08-04/1407140114019.sh
ZEUS# DEBUG Command:chmod u+x /tmp/zeus/2014-08-04/1407140114028.sh
ZEUS# DEBUG Command:dos2unix /tmp/zeus/2014-08-04/1407140114028.sh
ZEUS# DEBUG Command:sh /tmp/zeus/2014-08-04/1407140114028.sh

    at com.taobao.zeus.socket.worker.reqresp.WorkerHeartBeat.execute(WorkerHeartBeat.java:42)
    at com.taobao.zeus.socket.worker.ClientWorker$2.run(ClientWorker.java:83)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
commented

是因为dos2unix安装不正确导致的,执行这个命令时会清空脚本。
重新安装了一个就OK了。