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

High CPU usage after ipfilter load #51

Closed
Manuel5cc opened this issue Aug 4, 2024 · 11 comments
Closed

High CPU usage after ipfilter load #51

Manuel5cc opened this issue Aug 4, 2024 · 11 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Manuel5cc
Copy link

I'm experiencing this issue since this morning. After the ipfilter file loads, there is some error apparently related with the zip compression and the container starts using huge amounts of cpu until it almost freezes the whole system.

I'm using this ipfilter file in the config:
http://upd.emule-security.org/ipfilter.zip

Here is the log, it runs normally until it loads ipfilter:

2024-08-04 09:03:13: Logging to stdout enabled
 2024-08-04 09:03:13: Initialising aMuleD 2.3.3 compiled with wxBase(GTK2) v3.2.4 and Boost 1.84
 2024-08-04 09:03:13: Checking if there is an instance already running...
 2024-08-04 09:03:13: No other instances are running.
 2024-08-04 09:03:13: Creditfile loaded, 143 clients are known
 2024-08-04 09:03:13: *** TCP socket (ECServer) listening on 0.0.0.0:4712
 2024-08-04 09:03:13: Created Server UDP-Socket at port 4665
 2024-08-04 09:03:13: ListenSocket: Ok.
 2024-08-04 09:03:13: Created Client UDP-Socket at port 4672
 2024-08-04 09:03:13: Loading server.met file: /home/amule/.aMule/server.met
!2024-08-04 09:03:13: 8 servers in server.met found
 2024-08-04 09:03:13: Loading temp files from /temp.
 2024-08-04 09:03:13: All PartFiles Loaded.
 2024-08-04 09:03:13: No part files found
 2024-08-04 09:03:13: Found 8 known shared files
!2024-08-04 09:03:13: web server running on pid 43
 2024-08-04 09:03:13: amuled: OnInit - starting timer
 2024-08-04 09:03:13: Asio thread 1 started
 2024-08-04 09:03:13: Asio thread 2 started
 2024-08-04 09:03:13: Asio thread 3 started
 2024-08-04 09:03:13: Asio thread 4 started
 2024-08-04 09:03:13: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
 2024-08-04 09:03:13: 09:03:13: Error: unsupported Zip compression method
@n1eko
Copy link

n1eko commented Aug 4, 2024

I have the same problem

@ngosang ngosang added bug Something isn't working help wanted Extra attention is needed labels Aug 4, 2024
@ngosang
Copy link
Owner

ngosang commented Aug 4, 2024

I having the same problem. It must be something in the last release of ipfilter => https://www.emule-security.org/
I fixed it by:

  1. Stopping the container
  2. Setting IPFilterAutoLoad=0 in amule.conf
  3. Deleting all files starting with ipfilter*
  4. Starting the container

If they publish a new release with this issue fixed I would like to re-enable this feature. Please, report back.

@Lordpedal
Copy link

Lordpedal commented Aug 4, 2024

@ngosang a global solution is launch a fix version with this entrypoint.sh change:

IPFilterURL=http://upd.emule-security.org/ipfilter.zip

To:
IPFilterURL=http://emuling.gitlab.io/ipfilter.zip

Another change that i recommend is change:

Ed2kServersUrl=http://upd.emule-security.org/server.met

To:
Ed2kServersUrl=http://emuling.gitlab.io/server.met

For a better list of server

@Lordpedal
Copy link

Lordpedal commented Aug 4, 2024

@ngosang a better local solution is:

1.Stopping the container docker compose down
2.Deleting all files starting with ipfilter* in config folder
3.Change IPFilterURL to this address http://emuling.gitlab.io/ipfilter.zip in amule.conf
4.Starting the container docker compose up -d

@namelivia
Copy link

Same problem here! I was puzzled since I had not changed the container and the sever stared going nuts last night. I fixed it switching to emuling's filter as suggested by @Lordpedal

@stochasticparrot42
Copy link

stochasticparrot42 commented Aug 5, 2024

Removing ipfilter.dat in config folder and relaunching the container seems to work (as mentioned here). Probably the initial .zip file provided by emule-security folks had something wrong (but now seems to be fixed).

@xhente
Copy link

xhente commented Aug 5, 2024

Same problem here.

@toketin
Copy link

toketin commented Aug 5, 2024

I had the same issue yesterday, the cpu of the server machine was over 100%. I fixed deleting the ipfilter* files as reported by @Lordpedal. Thank you!

@Manuel5cc
Copy link
Author

I can confirm that using the emuling.gitlab.io sources fixes the issue for now.

@Marcosaurios
Copy link

@Manuel5cc I'd advise to not close the issue until it's fixed properly in the codebase.

The solution @Lordpedal proposed seems very suitable for a PR, although I do not have the knowledge to assert his changes are for good (although it works perfectly fine, I'm not too experienced in Ed2k-related domain)

@Manuel5cc Manuel5cc reopened this Aug 9, 2024
@ngosang
Copy link
Owner

ngosang commented Sep 15, 2024

I'm going to close this issue since the problem was caused by https://www.emule-security.org/ and they already fix the problem long time ago.

For those who applied the solutions in this issue I recommend you to revert the changes and have this configuration:

  • IPFilterAutoLoad=1
  • IPFilterURL=http://upd.emule-security.org/ipfilter.zip

About emuling.gitlab.io:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

10 participants