Directory problem cant delete files or change attributes!! Help!

Un Area

Well-Known Member
Nov 16, 2006
90
1
156
Hi, first of all I already had this issue in the past and could fix it but I dont remember how.

The thing is, I got a filesystem ext-3 error unlinked inode xxxx at directory xxxx. Well, I could find the problematic site, I removed it. But I cant delete the content inside ./spamasassin folder.
The username was something like 690 and group 686, instead of the correct username and group.

I could change the ./spamassasin permisions to root.root, but if I do it to the files inside it bayes_seen, bayes_token, the filesystem goes to read-only and I have to reboot the server.
Also there are two files in red with inode ?-------- user ------ group ----------

The other time that happened the same thing I remember moving the directory to /tmp and then remove it, but I dont remember the exact procedure.

Thanks for your help!


this is what i have inside ./spamassasin folder:

-rw------- 1 690 686 632K Aug 9 20:17 auto-whitelist
-rw------- 1 690 686 632K Aug 9 20:17 auto-whitelist
-rw------- 2 690 686 24 Aug 9 20:56 auto-whitelist.lock
-rw------- 2 690 686 24 Aug 9 20:56 auto-whitelist.lock
-rw------- 1 690 686 0 Aug 11 16:24 bayes.lock.server.server.com.1804
-rw------- 1 690 686 0 Aug 14 13:16 bayes.lock.server.server.com.19133
-rw------- 1 690 686 0 Aug 14 13:16 bayes.lock.server.server.com.19133
-rw------- 1 690 686 0 Aug 15 18:15 bayes.lock.server.server.com.19276
?--------- ? ? ? ? ? bayes.lock.server.server.com.23794
?--------- ? ? ? ? ? bayes.lock.server.server.com.2379
4
-rw------- 1 690 686 168K Aug 9 02:01 bayes_seen
-rw------- 1 690 686 168K Aug 9 02:01 bayes_seen
-rw------- 1 690 686 5.0M Aug 9 02:01 bayes_toks
-rw------- 1 690 686 5.0M Aug 9 02:01 bayes_toks
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Hello :)

Those files appear to be corrupted so running FSCK when the server boots is the best advice I can provide. You may want to consult with your data center or hosting provider if you continue to notice corrupted files on the machine as it may indicate an issue with your hard drive.

Thank you.
 

Un Area

Well-Known Member
Nov 16, 2006
90
1
156
Afert doing FSCK and running find . -inum xxxxxxx -exec rm -rf {} ';' I was able to remove the files.

Thanks!