carlonluca / docker-mldonkey

Project to build a docker image containing the mldonkey service.
GNU General Public License v3.0
7 stars 3 forks source link

i can't start mldonkey service #8

Closed pixatintes closed 1 month ago

pixatintes commented 3 months ago

Hi Luca, I have no way to run your docker.

services:
 mldonkey:
  image: carlonluca/mldonkey
  environment:
  - MLDONKEY_UID=1000 #user admin
  - MLDONKEY_GID=100
  - UUID=1000
  - GUID=100
  - MLDONKEY_ADMIN_PASSWORD=1234
  ports:
  - 4080:4080 
  - 4081:4081
  - 19040:19040
  - 19044:19044
  restart: unless-stopped

MldoneyNext is working in port 4081 but mldonkey server not works.

ps -ae

PID TTY          TIME CMD
  1 ?        00:00:00 run_supervisord
 11 ?        00:00:00 supervisord
 14 ?        00:00:00 mldonkey-next
 28 pts/0    00:00:00 bash
 42 pts/0    00:00:00 ps

cat /var/lib/mldonkey/mlnet.log


2024/06/30 10:47:02 [cO] Started logging...
2024/06/30 10:47:02 [dcCO] LETS reverse clients list NOW
2024/06/30 10:47:02 [cCO] Options correctly saved
2024/06/30 10:47:02 [dMain] loading server.met from web_infos/server.met.gz
2024/06/30 10:47:02 [EDK] server.met loaded from http://www.gruk.org/server.met.gz
2024/06/30 10:47:02 [EDK] 6 servers found, 0 new ones inserted
2024/06/30 10:47:02 [dMain] loading guarding.p2p from web_infos/ipfilter.zip
2024/06/30 10:47:02 [IPblock] loading web_infos/ipfilter.zip
2024/06/30 10:47:02 [IPblock] guarding.p2p found in zip file
2024/06/30 10:47:03 [IPblock] 222266 ranges loaded - optimized to 192083
2024/06/30 10:47:03 [dMain] loading guarding.p2p from web_infos/ipfilter.zip
2024/06/30 10:47:03 [IPblock] loading web_infos/ipfilter.zip
2024/06/30 10:47:03 [IPblock] guarding.p2p found in zip file
2024/06/30 10:47:03 [IPblock] 222266 ranges loaded - optimized to 192083
2024/06/30 10:47:03 [dMain] Check http://mldonkey.sf.net for updates
2024/06/30 10:47:03 [dMain] enabling networks: 
2024/06/30 10:47:03 [dMain] ---- enabling Donkey ----
2024/06/30 10:47:03 [EDK] loading sources completed
2024/06/30 10:47:03 [dMain] using port 20562 (client_port TCP)
2024/06/30 10:47:03 [dMain] using port 20566 (client_port UDP)
2024/06/30 10:47:03 [dMain] ---- enabling interfaces ----
2024/06/30 10:47:03 [dMain] using port 4080 (http_port)
2024/06/30 10:47:03 [dMain] using port 4000 (telnet_port)
2024/06/30 10:47:03 [dMain] using port 4001 (gui_port)
2024/06/30 10:47:03 [dMain] disabled networks: BitTorrent FileTP Fasttrack Direct Connect 
2024/06/30 10:47:03 [dMain] To command: telnet 127.0.0.1 4000
2024/06/30 10:47:03 [dMain] Or with browser: http://127.0.0.1:4080
2024/06/30 10:47:03 [dMain] For a GUI check out http://sancho-gui.sourceforge.net
2024/06/30 10:47:03 [dMain] Connect to IP 127.0.0.1, port 4001
2024/06/30 10:47:03 [dMain] If you connect from a remote machine adjust allowed_ips
2024/06/30 10:47:03 [dMain] Exception Not_found trying to set user_uid [docker]

Thanks in advance!

carlonluca commented 3 months ago

Remove UUID and GUID. Does MLDONKEY_UID and MLDONKEY_GID exist in your host?

pixatintes commented 3 months ago

Thanks, solved!

Now mldonkey-server works and it's accessible to 4080 but mldonkey-next not connected to the core.

Resetting mldonkey uid to 1000
usermod: no changes
Resetting mldonkey gid to 100
groupmod: GID '100' already exists
/usr/lib/python2.7/dist-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2024-07-01 21:01:09,416 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-07-01 21:01:09,417 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2024-07-01 21:01:09,447 INFO RPC interface 'supervisor' initialized
2024-07-01 21:01:09,448 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-07-01 21:01:09,449 INFO supervisord started with pid 11
2024-07-01 21:01:10,455 INFO spawned: 'mldonkey-next' with pid 14
2024-07-01 21:01:10,465 INFO spawned: 'mldonkey' with pid 15
Waiting for mldonkey to start...
WebSocket server listening on port: 4002
HTTP server listening on: http://localhost:4081
2024-07-01 21:01:11,857 INFO success: mldonkey-next entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-01 21:01:11,857 INFO success: mldonkey entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
����Welcome to MLDonkey 3.1.7.git
# cat /var/lib/mldonkey/downloads.ini |grep gui_port
 gui_port = 4001
carlonluca commented 3 months ago

Expose port 4002. That is where the websocket server is listening.