1. 程式人生 > >重啟rsync時候報錯,檔案已存在

重啟rsync時候報錯,檔案已存在

2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.Initializer.class.LTZegt" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.JspContextPathView.class.Q0kBSC" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.MySessionContext.class.DgxYuM" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.MySessionListener.class.4gym7V" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.SecurityConfiguration.class.hn8KJ5" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.SystemProperty.class.k8Oamf" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] inflate returned -3 (21 bytes)
2018/11/11 18:52:29 [19827] rsync error: error in rsync protocol data stream (code 12) at token.c(548) [receiver=3.0.9]
2018/11/11 18:52:29 [19827] rsync: connection unexpectedly closed (181 bytes received so far) [generator]
2018/11/11 18:52:29 [19827] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9]
2018/11/12 10:24:45 [25543] rsync: failed to create pid file /var/run/rsyncd.pid: File exists (17)
2018/11/12 10:24:45 [25543] rsync error: error in file IO (code 11) at clientserver.c(995) [Receiver=3.0.9]

重啟rsync時候報錯,檔案已存在

解決方案:

刪除該目錄下pid檔案即可,命令:rm -rf /var/run/rsyncd.pid