Skip to content

Error: can't remove file 'C:\Users\cat\AppData\Roaming\aMule\ipfilter.dat' when adding a zipped ipfilter #276

Description

@minnyres

I am running amule 2.3.3 on Windows 10. When adding the ipfilter from http://upd.emule-security.org/ipfilter.zip in the preference -> security section, the log textbox would be filled with this error message. Below is my amule log. The issue can't be reproduced on Linux. It also works well if the ipfilter is not zipped.

2021-05-02 20:09:19: Initialising aMule 2.3.3 compiled with wxMSW v3.0.5
 2021-05-02 20:09:19: Checking if there is an instance already running...
 2021-05-02 20:09:19: No other instances are running.
 2021-05-02 20:09:19: Creditfile loaded, 0 clients are known
 2021-05-02 20:09:19: External connections disabled in config file
 2021-05-02 20:09:19: Created Server UDP-Socket at port 4665
 2021-05-02 20:09:19: ListenSocket: Ok.
 2021-05-02 20:09:19: Created Client UDP-Socket at port 4672
 
 2021-05-02 20:09:19:  - This is aMule 2.3.3 compiled with wxMSW v3.0.5 based on eMule.
 2021-05-02 20:09:19:    Running on Windows 8 (build 9200), 64-bit edition
 2021-05-02 20:09:19:  - Visit http://www.amule.org to check if a new version is available.
 
 2021-05-02 20:09:20: Loading server.met file: C:\Users\cat\AppData\Roaming\aMule\server.met
!2021-05-02 20:09:20: 2 servers in server.met found
 2021-05-02 20:09:20: Loading temp files from C:\Users\cat\AppData\Roaming\aMule\Temp.
 2021-05-02 20:09:20: All PartFiles Loaded.
 2021-05-02 20:09:20: No part files found
 2021-05-02 20:09:20: No shareable files found in directory: C:\Users\cat\Documents\aMule Downloads
 2021-05-02 20:09:20: Found 0 known shared files
 2021-05-02 20:09:20: Your copy of aMule is up to date.
 2021-05-02 20:09:20: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
 2021-05-02 20:09:20: Loaded 221622 IP-ranges from 'C:\Users\cat\AppData\Roaming\aMule\ipfilter.dat'.
 2021-05-02 20:09:20: Loaded 0 IP-ranges from 'C:\Users\cat\AppData\Roaming\aMule\ipfilter_static.dat'.
 2021-05-02 20:09:20: IP filter is ready
!2021-05-02 20:09:20: Connecting
 2021-05-02 20:09:20: Connecting to eMule Security No1 (80.208.228.241 - 80.208.228.241:8369) using protocol obfuscation.
!2021-05-02 20:09:20: No contacts found, please bootstrap, or download a nodes.dat file.
!2021-05-02 20:09:20: Kad started.
 2021-05-02 20:09:20: Connected to eMule Security No1 (80.208.228.241:8369)
 2021-05-02 20:09:21: Connecting to !! Sharing-Devils No.1 !! (91.208.184.143 - 91.208.184.143:4232) using protocol obfuscation.
 2021-05-02 20:09:21: Connected to !! Sharing-Devils No.1 !! (91.208.184.143:4232)
!2021-05-02 20:09:24: Connection established on: eMule Security No1
!2021-05-02 20:09:24: Connected to eMule Security No1 with HighID
 2021-05-02 20:09:24: New clientid is 2940470885
 2021-05-02 20:09:24: ServerMessage: server version 17.15 (lugdunum)
 2021-05-02 20:09:24: ServerMessage: Welcome to eMule Security! <> www.emule-security.org
 2021-05-02 20:09:24: ServerMessage: Download Safe Serverlist > http://www.emule-security.org/serverlist/
 2021-05-02 20:09:24: ServerMessage: IP-filter > http://www.emule-security.org/e107_plugins/faq/faq.php?0.cat.2.1
 2021-05-02 20:09:24: ServerMessage: nodes.dat > http://www.emule-security.org/e107_plugins/faq/faq.php?0.cat.6.6
 2021-05-02 20:09:24: ServerMessage: Ip-To-Country database> http://www.emule-security.org/e107_plugins/faq/faq.php?0.cat.7.10
 2021-05-02 20:09:24: ServerMessage: eMule MODs > http://www.emule-security.org/modb/
 2021-05-02 20:09:24: ServerMessage: Disclaimer: This server is only indexing file-hashes, and no contains any files,
 2021-05-02 20:09:24: ServerMessage: not directly involved in the exchange of files between users of p2p-network.
 2021-05-02 20:09:24: ServerMessage: Administration of server is not responsible for the contents of files
 2021-05-02 20:09:24: ServerMessage: shared by connected to the server users. Please do not share
 2021-05-02 20:09:24: ServerMessage: copyrighted material, DRM protected media, viruses or other harmful files!
 2021-05-02 20:09:49: Successfully updated ipfilter.dat
 2021-05-02 20:09:49: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
 2021-05-02 20:09:49: 20:09:49: Error: can't remove file 'C:\Users\cat\AppData\Roaming\aMule\ipfilter.dat' (error 32: The process cannot access the file because it is being used by another process)
 2021-05-02 20:09:49: 20:09:49: Error: can't remove file 'C:\Users\cat\AppData\Roaming\aMule\ipfilter.dat' (error 32: The process cannot access the file because it is being used by another process)
 2021-05-02 20:09:49: 20:09:49: Error: can't remove file 'C:\Users\cat\AppData\Roaming\aMule\ipfilter.dat' (error 32: The process cannot access the file because it is being used by another process)
 2021-05-02 20:09:49: 20:09:49: Error: can't remove file 'C:\Users\cat\AppData\Roaming\aMule\ipfilter.dat' (error 32: The process cannot access the file because it is being used by another process)
...

After adding the ipfilter, the file ipfilter.dat is renewed. However, it is not the unzipped ipfilter but the original zip file.
Meanwhile, there are many files named as ipf*.tmp in the config folder. Here is an example. I checked that these are the unzipped ipfilter.

-a----          2021/5/2     20:09       15248901 ipf5C59.tmp
-a----          2021/5/2     20:09       15248901 ipf5CD7.tmp
-a----          2021/5/2     20:09       15248901 ipf5D46.tmp
-a----          2021/5/2     20:09       15248901 ipf5DB4.tmp
-a----          2021/5/2     20:09       15248901 ipf5E22.tmp
-a----          2021/5/2     20:09       15248901 ipf5E81.tmp
-a----          2021/5/2     20:09       15248901 ipf5EF0.tmp
-a----          2021/5/2     20:09       15248901 ipf5F5E.tmp
-a----          2021/5/2     20:09       15248901 ipf5FCC.tmp
-a----          2021/5/2     20:09       15248901 ipf603B.tmp
-a----          2021/5/2     20:09       15248901 ipf60A9.tmp
-a----          2021/5/2     20:09       15248901 ipf6108.tmp
-a----          2021/5/2     20:09       15248901 ipf6176.tmp
-a----          2021/5/2     20:09       15248901 ipf61F5.tmp
-a----          2021/5/2     20:09       15248901 ipf6264.tmp
-a----          2021/5/2     20:09       15248901 ipf6320.tmp
-a----          2021/5/2     20:09       15248901 ipf639E.tmp
-a----          2021/5/2     20:09        3598649 ipfilter.dat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions