The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by Un Area, Dec 25, 2012.

  1. Un Area

    Un Area Well-Known Member

    Joined:
    Nov 16, 2006
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    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
     
    #1 Un Area, Dec 25, 2012
    Last edited: Dec 25, 2012
  2. Un Area

    Un Area Well-Known Member

    Joined:
    Nov 16, 2006
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. Un Area

    Un Area Well-Known Member

    Joined:
    Nov 16, 2006
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Afert doing FSCK and running find . -inum xxxxxxx -exec rm -rf {} ';' I was able to remove the files.

    Thanks!
     
Loading...

Share This Page