Strange error in blacklist

feerdispzoo

Verified User
Joined
Jan 17, 2022
Messages
189
I try open file blacklist:
vi /usr/local/directadmin/data/admin/ip_blacklist

I get very strange error:
Code:
E325: ATTENTION
Found a swap file by the name "/usr/local/directadmin/data/admin/.ip_blacklist.s
wp"
          owned by: root   dated: Thu Jun 23 08:38:11 2022
         file name: /usr/local/directadmin/data/admin/ip_blacklist
          modified: no
         user name: root   host name: vmi916035.contaboserver.net
        process ID: 29834
While opening file "/usr/local/directadmin/data/admin/ip_blacklist"

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /usr/local/directadmin/data/a
dmin/ip_blacklist"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/usr/local/directadmin/data/a
dmin/.ip_blacklist.swp"
    to avoid this message.
"/usr/local/directadmin/data/admin/ip_blacklist" [New File]
Press ENTER or type command to continue


Can anyone explain to me what it might be?
 
Somehow when editing that file it was not saved properly , just delete the ip_blacklist.swp file
 
Currently I delete this file:
cd /usr/local/directadmin/data/admin
rm -rf ip_blacklist.swp

when I try again
cd ~
vi /usr/local/directadmin/data/admin/ip_blacklist

Then shown the same error.
 
Check for hidden file. You tried to remove the ip_blacklist.swp but I see this:
Code:
admin/.ip_blacklist.s
wp
So put after each other it's admin/.ip_blacklist.swp
The dot in front points to a hidden file.

Try this:
Code:
cd /usr/local/directadmin/data/admin/
ls -all
now see if the hidden file is present, it's has a dot in front. If yes, then:
rm -rf .ip_blacklist.swp
and then try to edit the ip_blacklist again.
 
Back
Top