abrt-cli는 "문제 디렉터리가 아님"을 보고합니다.

abrt-cli는 "문제 디렉터리가 아님"을 보고합니다.

/var/spool/abrt/rhel 7.2 시스템에서 모든 폴더를 삭제하려고 합니다.

서비스를 중단한 abrt-ccpp.serviceabrtd.service

더 이상 스풀 아래에 코어가 필요하지 않기 때문입니다.

하지만 우리는 얻습니다

find /var/spool/abrt/  -type d  -exec abrt-cli rm '{}' \;
'/var/spool/abrt' is not a problem directory
Can't delete '/var/spool/abrt/': (null)
'/var/spool/abrt/ccpp-2019-11-20-12:13:41-64941' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-12:13:41-64941': (null)
'/var/spool/abrt/ccpp-2019-11-20-12:16:12-2687' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-12:16:12-2687': (null)
'/var/spool/abrt/ccpp-2019-11-20-14:20:09-61612' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-14:20:09-61612': (null)
'/var/spool/abrt/ccpp-2019-11-20-15:12:03-55822' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-15:12:03-55822': (null)

스풀 아래 폴더는

drwx------  2 root root 4096 Dec 16 11:54 ccpp-2019-11-20-18:43:24-8768
drwx------  2 root root 4096 Dec 16 11:54 ccpp-2019-11-20-12:14:55-1014
drwx------  2 root root 4096 Dec 16 11:54 ccpp-2019-11-20-12:21:34-8475
drwx------  2 root root 4096 Dec 16 11:54 ccpp-2019-11-20-12:25:27-12740
drwx------  2 root root 4096 Dec 16 11:54 ccpp-2019-11-20-12:32:28-19585
drwx------  2 root root 4096 Dec 16 11:54 ccpp-2019-11-20-16:13:48-52746

이 문제에 대한 해결책이 있습니까?

우리도 노력한다

 find /var/spool/abrt/ -mindepth 1 -type d -exec abrt-cli rm '{}' \;

'/var/spool/abrt/ccpp-2019-11-20-12:13:41-64941' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-12:13:41-64941': (null)
'/var/spool/abrt/ccpp-2019-11-20-12:16:12-2687' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-12:16:12-2687': (null)
'/var/spool/abrt/ccpp-2019-11-20-14:20:09-61612' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-14:20:09-61612': (null)
'/var/spool/abrt/ccpp-2019-11-20-15:12:03-55822' is not a problem directory
Can't delete '/var/spool/abrt/ccpp-2019-11-20-15:12:03-55822': (null)

우리가 얻은 폴더는 다음과 같습니다.

find /var/spool/abrt/ -mindepth 1 -type d  -print |more
/var/spool/abrt/ccpp-2019-11-20-12:13:41-64941
/var/spool/abrt/ccpp-2019-11-20-12:16:12-2687
/var/spool/abrt/ccpp-2019-11-20-14:20:09-61612
/var/spool/abrt/ccpp-2019-11-20-15:12:03-55822
/var/spool/abrt/ccpp-2019-11-20-18:37:25-2253
/var/spool/abrt/ccpp-2019-11-20-12:22:50-9886
/var/spool/abrt/ccpp-2019-11-20-13:01:41-46329
/var/spool/abrt/ccpp-2019-11-20-13:20:12-582
/var/spool/abrt/ccpp-2019-11-20-14:07:40-48870
/var/spool/abrt/ccpp-2019-11-20-15:15:23-59287
/var/spool/abrt/ccpp-2019-11-20-19:35:27-61003
/var/spool/abrt/ccpp-2019-11-20-11:22:29-12490
/var/spool/abrt/ccpp-2019-11-20-14:44:22-26098
/var/spool/abrt/ccpp-2019-11-20-17:57:35-24985

관련 정보