aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb can't connect to amule-daemon  (Read 5396 times)

MiniMe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
amuleweb can't connect to amule-daemon
« on: October 20, 2005, 01:22:36 PM »

Hi,

 I've installed amule-daemon and amule-console-utils on Debin Sarge 3.1. The debs are from this repo:

deb http://amule-debian.dyndns.org/ debian/

Installation went fine, but i can't connect to amuled with amuleweb. I've enabled the "AcceptExternalConnection" in the amule.conf. Port is 4712. I've tried it with and without ECpassword.

When amuled starts, it always says:
"External connections disabled in config file"  and then continues.
Obviously this is not true,  because when I really disable them, amuled complains and tells me I should enable it. It really doesn't make sense to me.

When I then start amuleweb and try to connect, I always get the message that the connection to the host (localhost) is not possible.

Hope someone can help (the wiki is still down atm)
« Last Edit: October 20, 2005, 01:30:08 PM by MiniMe »
Logged

lfroen

  • Guest
Re: amuleweb can't connect to amule-daemon
« Reply #1 on: October 20, 2005, 01:35:07 PM »

Quote
"External connections disabled in config file" and then continues.
Obviously this is not true, because when I really disable them, amuled complains and tells me I should enable it. It really doesn't make sense to me.

Obviously this is true, because you can not connect. Use "netstat -nap | grep amuled" to ensure.
You must have EC password. The simpliest way to config those things: run amule (gui version) and set the preferences as you like.
Than run amuled
Logged

MiniMe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
Re: amuleweb can't connect to amule-daemon
« Reply #2 on: October 20, 2005, 01:57:23 PM »

Ok, I've tried the netstat command. here is the output:

tcp        0      0 0.0.0.0:8886            0.0.0.0:*               LISTEN     1384/amuled        
udp        0      0 0.0.0.0:8889            0.0.0.0:*                          1384/amuled        
udp        0      0 0.0.0.0:8896            0.0.0.0:*                          1384/amuled        
unix  2      [ ACC ]     STREAM     HÖRT          8366     1384/amuled         /home/remrot/.aMule/muleconn


Port 4711 is missing. But I've enabled "AcceptExternalConnection"

btw: I can't run amule (gui) on this machine. There is no X-Server installed...

Maybe i should paste my amule.conf:

Code: [Select]
...

DisableQueueList=0
MaxMessageSessions=50
PermissionsFiles=416
PermissionsDirs=488
[FakeCheck]
Browser=0
BrowserTab=1
CustomBrowser=
[Proxy]
ProxyEnableProxy=0
ProxyType=0
ProxyName=
ProxyPort=1080
ProxyEnablePassword=0
ProxyUser=
ProxyPassword=
[ExternalConnect]
ExtractMetaDataTags=0
FullChunkAlloc=0
FullPartAlloc=0
AcceptExternalConnections=1
ECUseTCPPort=0
ECPort=4712
ECPassword=test
ShowProgressBar=1
ShowPercent=0
UseSrcSeeds=0
UseSecIdent=1
IpFilterOn=1
[WebServer]
Enabled=0
Password=test
PasswordLow=
Port=4711
UseGzip=1
UseLowRightsUser=0
PageRefreshTime=120
[Razor_Preferences]
FastED2KLinksHandler=1
FullQueueSources=0
HighQueueRankingSources=0


Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb can't connect to amule-daemon
« Reply #3 on: October 20, 2005, 02:10:08 PM »

well wiki is down so I cant blame ya ;)

thing is unix-sockets is not working since LONG time, you have to enable TCP-port

ECUseTCPPort=0 --- this to 1


then it should work

tata
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

MiniMe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
Re: amuleweb can't connect to amule-daemon
« Reply #4 on: October 20, 2005, 02:26:43 PM »

That worked, thanks a lot!

Now amuled is listening on port 4712, but i still can't connect to it with amuleweb. The error output is (in german):

"ExternalConn: Zugang verweigert weil: Authentifizierung fehlgeschlagen."

means: "authentication failed"

Of course I used the correct password...

EDIT: is it possible that I have to use encrypted passwords? I thought I read something about that in the wiki, but I can't remember...
« Last Edit: October 20, 2005, 02:34:09 PM by MiniMe »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb can't connect to amule-daemon
« Reply #5 on: October 20, 2005, 02:38:35 PM »

md5sum...

Edit your ~/.eMule file, locate the [ExternalConnect] section and change:

    AcceptExternalConnections=1 <-- To enable aMule listening for External Connections.
    ECUseTCPPort=1 <-- To use the TCP port. Very important since Unix sockets are disabled.
    ECPassword=ca3c365274907c6fd527068788e14639 <-- To find the MD5 string for your password, do:

        $ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
        ca3c365274907c6fd527068788e14639


from wiki ;)

tata


btw: you NEED a remote.conf !!! if you start amuleweb manually, and NOT automatically with amuled itself
check the forum search for remote.conf if you need some examples...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

MiniMe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
Re: amuleweb can't connect to amule-daemon
« Reply #6 on: October 20, 2005, 03:05:49 PM »

Quote
btw: you NEED a remote.conf !!! if you start amuleweb manually, and NOT automatically with amuled itself
check the forum search for remote.conf if you need some examples...

Thx for that one. I've just realized that amuleweb doesn't work correctly when I start it manually. It shows the Login-Screen, but won't let me in. When I enable webserver in amule.conf, it works. At first there was an error saying "can't find amuleweb program" (or similar), but now it works.

btw: why does amuled AND amuleweb start 3 processes? (as shown with ps command) And what is the best way to stop them ("killall amuleweb" still leaves the process running))

One last question (I hope): Where can I get a serverlist from? The webinterface doesn't have the ability to download one...

thx a lot for your help!
« Last Edit: October 20, 2005, 03:08:14 PM by MiniMe »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb can't connect to amule-daemon
« Reply #7 on: October 20, 2005, 03:16:02 PM »

serverlist --> google if you dont have amulegui setup....

about the process, well for amuleweb killall is the winner, for amuled itself you can use amulecmd and the shutdown command...

about the processes, well they both you only have one process...so maybe you have an old one running
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

MiniMe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
Re: amuleweb can't connect to amule-daemon
« Reply #8 on: October 20, 2005, 03:25:05 PM »

I found a list, thx

the three processes are always present. When i start amuled, I get 3 amuled processes and also 3 amuleweb processes.

But for now, it works. I'll search for the remote.conf too

cu
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuleweb can't connect to amule-daemon
« Reply #9 on: October 20, 2005, 05:01:00 PM »

those are threads. Share memory with the main process. You don't have to worry about them.
Logged