Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unsupported Zip compression method #376

Open
janaxhell opened this issue Aug 4, 2024 · 6 comments
Open

Error: unsupported Zip compression method #376

janaxhell opened this issue Aug 4, 2024 · 6 comments

Comments

@janaxhell
Copy link

Last night my server crashed and the culprit was amule. It had borked all resources repeating
Error: unsupported Zip compression method
It seems related to ipfilter.dat, but I'm not sure of that.
I tried to delete it, but as soon as I restarted amule, ipfilter reappeared along with the error messages.
I had amule sitting for month just serving the same files, which are a few movies and a few comics, so I haven't touched it in a long time.
I am running it as docker container on a OMV server.
This is the initial part of the log, after that it repeats the same forever:

 2024-08-04 10:47:40: Logging to stdout enabled
 2024-08-04 10:47:40: Initialising aMuleD 2.3.3 compiled with wxBase(GTK2) v3.2.4 and Boost 1.84
 2024-08-04 10:47:40: Checking if there is an instance already running...
 2024-08-04 10:47:40: 10:47:40: Error: Lock file '/home/amule/.aMule/muleLock' has incorrect permissions.
 2024-08-04 10:47:40: No other instances are running.
 2024-08-04 10:47:41: Creditfile loaded, 76 clients are known
 2024-08-04 10:47:41:  - Credits expired for 1 client!
 2024-08-04 10:47:41: *** TCP socket (ECServer) listening on 0.0.0.0:4712
 2024-08-04 10:47:41: Created Server UDP-Socket at port 4665
 2024-08-04 10:47:41: ListenSocket: Ok.
 2024-08-04 10:47:41: Created Client UDP-Socket at port 4672
 2024-08-04 10:47:41: Loading server.met file: /home/amule/.aMule/server.met
!2024-08-04 10:47:41: 10 servers in server.met found
 2024-08-04 10:47:41: Loading temp files from /temp.
 2024-08-04 10:47:41: All PartFiles Loaded.
 2024-08-04 10:47:41: No part files found
 2024-08-04 10:47:41: Found 35 known shared files
!2024-08-04 10:47:41: web server running on pid 45
 2024-08-04 10:47:41: amuled: OnInit - starting timer
 2024-08-04 10:47:41: Asio thread 1 started
 2024-08-04 10:47:41: Asio thread 3 started
 2024-08-04 10:47:41: Asio thread 2 started
 2024-08-04 10:47:41: Asio thread 4 started
 2024-08-04 10:47:41: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
 2024-08-04 10:47:41: Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter.dat'.
 2024-08-04 10:47:41: Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter_static.dat'.
 2024-08-04 10:47:41: IP filter is ready
!2024-08-04 10:47:41: Connecting
 2024-08-04 10:47:41: Connecting to eMule Security (5.45.85.226 - 5.45.85.226:6584) using protocol obfuscation.
 2024-08-04 10:47:41: Read 150 Kad contacts
!2024-08-04 10:47:41: Kad started.
 2024-08-04 10:47:41: New external connection accepted
 2024-08-04 10:47:41: Connecting client: aMuleweb 2.3.3
 2024-08-04 10:47:41: Access granted.
 2024-08-04 10:47:41: eMule Security (5.45.85.226:6584) appears to be dead.
 2024-08-04 10:47:41: Connecting to eMule Sunrise (176.123.5.89 - 176.123.5.89:4725) using protocol obfuscation.
 2024-08-04 10:47:41: Connected to eMule Sunrise (176.123.5.89:4725)
 2024-08-04 10:47:41: 10:47:41: Error: Failed to unregister descriptor 20 from epoll descriptor 15 (error 2: No such file or directory)
 2024-08-04 10:47:41: 10:47:41: Error: Failed to unregister descriptor 20 from epoll descriptor 15 (error 2: No such file or directory)
 2024-08-04 10:47:41: 10:47:41: Error: Failed to unregister descriptor 20 from epoll descriptor 15 (error 2: No such file or directory)
 2024-08-04 10:47:41: 10:47:41: Error: Failed to unregister descriptor 20 from epoll descriptor 15 (error 2: No such file or directory)
 2024-08-04 10:47:41: 10:47:41: Error: Failed to unregister descriptor 20 from epoll descriptor 15 (error 2: No such file or directory)
 2024-08-04 10:47:41: 10:47:41: Error: Failed to unregister descriptor 20 from epoll descriptor 15 (error 2: No such file or directory)
 2024-08-04 10:47:42: Successfully updated ipfilter.dat
 2024-08-04 10:47:42: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
 2024-08-04 10:47:42: 10:47:42: Error: unsupported Zip compression method
 2024-08-04 10:47:42: 10:47:42: Error: unsupported Zip compression method
 2024-08-04 10:47:42: 10:47:42: Error: unsupported Zip compression method
 2024-08-04 10:47:42: 10:47:42: Error: unsupported Zip compression method

And this is the compose

---
version: "2.1"
services:
  amule:
    image: ngosang/amule
    container_name: amule
    environment:
      - PUID=998
      - PGID=100
      - TZ=Europe/Rome
      # GUI_PWD and WEBUI_PWD are only used in initial setup
      - GUI_PWD=XXXXXXX
      - WEBUI_PWD=XXXXXXXx
      - MOD_AUTO_RESTART_ENABLED=true
      - MOD_AUTO_RESTART_CRON=0 6 * * *
      - MOD_AUTO_SHARE_ENABLED=false
      - MOD_AUTO_SHARE_DIRECTORIES=/incoming;/my_movies
      - MOD_FIX_KAD_GRAPH_ENABLED=true
    ports:
      - "4711:4711" # web ui
      - "4712:4712" # remote gui, webserver, cmd ...
      - "4662:4662" # ed2k tcp
      - "4665:4665/udp" # ed2k global search udp (tcp port +3)
      - "4672:4672/udp" # ed2k udp
    volumes:
      - /srv/dev-disk-by-uuid-5b67514d-485e-4306-873e-b1cbb54ccf99/Config/aMule:/home/amule/.aMule
      - /srv/dev-disk-by-uuid-A870CA6B70CA3FB4/data/emule:/incoming
      - /srv/dev-disk-by-uuid-A870CA6B70CA3FB4/data/emule/incomplete:/temp
@stochasticparrot42
Copy link

I am also experiencing this issue from today.

@j0nny55555
Copy link

also experiencing this

@SimoPk
Copy link

SimoPk commented Aug 5, 2024

me too. my guess it's that the code gets stuck in the while loop at https://github.com/amule-project/amule/blob/master/src/libs/common/FileFunctions.cpp#L142 due to some malformed or well formed but newer standard .zip file. emule-security released a new ipfilter zip file on Aug 3rd, just when the problem start appearing, and the ngosang/amule image is preconfigured to download ipfilter from there. I'd say that if you're good going without ipfilters you can just edit your amule.conf to stop downloading them (or at least stop downloading them from emule-security.org). btw the problem is not in the newer zip file, which downloads and extract fine both on linux and on windows, but rather in the amule source code

@SimoPk
Copy link

SimoPk commented Aug 5, 2024

btw, I deleted ipfilter.dat and upon relaunching the container, it downloaded the ipfilter.zip and used it without issues... maybe it was just a bad .zip file that the guys at emule-security fixed

@janaxhell
Copy link
Author

btw, I deleted ipfilter.dat and upon relaunching the container, it downloaded the ipfilter.zip and used it without issues... maybe it was just a bad .zip file that the guys at emule-security fixed

Confirmed. Yesterday it was not possible to do that, today it works fine. !Solved.

 2024-08-05 11:25:22: Successfully updated ipfilter.dat
 2024-08-05 11:25:22: Connecting to !! Sharing-Devils No.2 !! (37.221.65.76 - 37.221.65.76:4232) using protocol obfuscation.
!2024-08-05 11:25:22: Connection established on: eMule Sunrise
!2024-08-05 11:25:22: Connected to eMule Sunrise with HighID
 2024-08-05 11:25:22: New clientid is XXXXXXXX
 2024-08-05 11:25:22: ServerMessage: server version 17.15 (lugdunum)
 2024-08-05 11:25:22: ServerMessage: Welcome to eMule Sunrise!
 2024-08-05 11:25:22: ServerMessage: Disclaimer: This server is indexing file-hashes only, does not contains any files and
 2024-08-05 11:25:22: ServerMessage: it is not directly involved in the exchange of files between users of P2P network.
 2024-08-05 11:25:22: ServerMessage: Administration of server is not responsible for the contents of files
 2024-08-05 11:25:22: ServerMessage: shared by users connected to the server. Please do not share
 2024-08-05 11:25:22: ServerMessage: copyrighted material, DRM protected media, viruses or other harmful files!
!2024-08-05 11:25:22: Kad stopped.
!2024-08-05 11:25:22: Connected to Kad (firewalled)
 2024-08-05 11:25:22: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
 2024-08-05 11:25:22: Loaded 235381 IP-ranges from '/home/amule/.aMule/ipfilter.dat'.
 2024-08-05 11:25:22: Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter_static.dat'.
 2024-08-05 11:25:22: IP filter is ready
!2024-08-05 11:25:48: Connected to Kad (ok)

@SimoPk
Copy link

SimoPk commented Aug 6, 2024

"solved" between many many airquotes... some sanity check on external input should be implemented, it's not a good thing that a malformed zip file could cause the log to be submerged with tens of gigabytes of messages in the span of a morning.. unfortunately I don't have the time to fix this. it's a pity that amule is not being mantained anymore. (last commit was years ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants