aMule Forum

English => aMule Help => Topic started by: vedran on April 07, 2005, 06:19:07 PM

Title: amulecmd: connection failed.
Post by: vedran on April 07, 2005, 06:19:07 PM
greetings!

i run Debian linux but without root privileges or X, and i've been able to compile amulecmd (thanks to Stefanero), and there is a problem running it.

it asks for a remote host, and a password, and by default uses localhost.localdomain:4712 (?)..

so, i get this:

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port:4712
Trying to connect (timeout = 10 sec)...
Connection Failed. Unable to connect to the specified host


i tried using 4662 or 4661 or 4672, or even 80, but it's the same (except at 80, it doesn't report the error, it simply times out)
i DON'T think this is some firewall issue, because i can normally run edonkeyclc for example, which opens port 4662 successfully, without root privileges..
only, edonkeyclc is a little... well i wouldn't like to be rude.. :) i'd only rather like to have amule running.

also, when this port is open (i.e. edonkeyclc running in a screen), i get this output when trying to run amulecmd on port 4662:

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port:4662
Trying to connect (timeout = 10 sec)...
ECSocket::ReadBuffer error The socket is non-blocking and the operation would block
A socket error occured during authentication. Exiting.


it doesn't seem logical.. BUT, i'm not remotely a linux expert, so things could be simple..

if anyone can help me with this, i'd appreciate it greatly!

thanks in advance!
Title: Re: amulecmd: connection failed.
Post by: stefanero on April 07, 2005, 07:44:20 PM
did you enable external connections in the .eMUle file?

did you read the howto for webserver? the setup is the same for amulecmd
check http://wiki.amule.org
Title: Re: amulecmd: connection failed.
Post by: GonoszTopi on April 07, 2005, 08:34:06 PM
Was amule or amuled running (on the same machine) when you tried amulecmd?
Title: Re: amulecmd: connection failed.
Post by: vedran on April 07, 2005, 09:46:15 PM
Quote
did you enable external connections in the .eMUle file?

no. and that is because the only thing i have is a 500kb binary amulecmd, i had make compile this only, since i don't need (have) a GUI..
i suppost all the config files will go to a ~/.aMule dir or something, but that is probably created the first time amule actually runs..

i put the binary in my ~/local/bin, but it runs with ./amulecmd just as well anywhere else and i don't see how it's gonna know where to look for config files... but then again, it may just know..

maybe i could create the file? this .eMUIe..
with remote connections enabled in it..
i'm really at a loss.

neither amule nor amuled were running, since i don't even have these binaries.. + none of the other users were running it either.
Title: Re: amulecmd: connection failed.
Post by: vedran on April 07, 2005, 10:00:27 PM
i created ~/.eMule with this in it:

[ExternalConnect]
AcceptExternalConnections=1
ECUseTCPPort=1


but still the same.. unable to connect to specified host (localhost.localdomaim), to any port.
Title: Re: amulecmd: connection failed.
Post by: GonoszTopi on April 07, 2005, 10:09:09 PM
Well, amulecmd is a remote control for a running amule or amuled. If you don't have/need GUI, then you can configure with --disable-monolithic --enable-amule-daemon --enable-amulecmd. Then you need to start amuled (the daemon version of aMule), and then you can connect to it with amulecmd.

Browse the wiki (http://wiki.amule.org/) for more help.
Title: Re: amulecmd: connection failed.
Post by: vedran on April 07, 2005, 10:38:55 PM
yes, i must have gotten things wrong..
but anyway, amuled won't compile, and really i hate to be such a bore, but here's what he says:

if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/home/vvekic/local/lib/wx/include/base-2.4 -I/home/vvekic/local/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -DAMULE_DAEMON  -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0   -MT amuled-AICHSyncThread.o -MD -MP -MF ".deps/amuled-AICHSyncThread.Tpo" \
  -c -o amuled-AICHSyncThread.o `test -f 'AICHSyncThread.cpp' || echo './'`AICHSyncThread.cpp; \
then mv -f ".deps/amuled-AICHSyncThread.Tpo" ".deps/amuled-AICHSyncThread.Po"; \
else rm -f ".deps/amuled-AICHSyncThread.Tpo"; exit 1; \
fi
In file included from AICHSyncThread.cpp:37:
amule.h:161: error: parse error before `{' token
amule.h:164: error: destructors must be member functions
amule.h:164: error: virtual outside class declaration
amule.h:166: error: virtual outside class declaration
amule.h:172: error: virtual outside class declaration
amule.h:174: error: virtual outside class declaration
amule.h:174: error: function `void NotifyEvent(const GUIEvent&)' is initialized like a variable
amule.h:175: error: virtual outside class declaration
amule.h:175: error: function `void ShowAlert(wxString, wxString, int)' is initialized like a variable
amule.h:178: error: non-member function `const bool IsRunning()' cannot have `const' method qualifier
amule.h: In function `const bool IsRunning()':
amule.h:178: error: `m_app_state' undeclared (first use this function)
amule.h:178: error: (Each undeclared identifier is reported only once for each function it appears in.)
amule.h: At global scope:
amule.h:179: error: non-member function `const bool IsOnShutDown()' cannot have `const' method qualifier
amule.h:205: error: non-member function `uint32 GetPublicIP()' cannot have `const' method qualifier
amule.h:242: error: non-member function `const wxString& GetOSType()' cannot have `const' method qualifier
amule.h: In function `const wxString& GetOSType()':
amule.h:242: error: `OSType' undeclared (first use this function)
amule.h: At global scope:
amule.h:246: error: parse error before `protected'
amule.h:265: error: parse error before `}' token
amule.h:284: error: `QueuedLogLine' was not declared in this scope
amule.h:284: error: template argument 1 is invalid
amule.h:284: error: template argument 2 is invalid
amule.h:284: error: ISO C++ forbids declaration of `m_logLines' with no type
amule.h:288: error: `APPState m_app_state' used prior to declaration
amule.h:293: error: `wxString OSType' used prior to declaration
amule.h:306: error: parse error before `}' token
amule.h:432: error: base class `CamuleApp' has incomplete type
amule.h:432: warning: `class CamuleDaemonApp' has virtual functions but non-virtual destructor
AICHSyncThread.cpp: In member function `virtual void* CAICHSyncThread::Entry()':
AICHSyncThread.cpp:151: error: 'class CamuleDaemonApp' has no member named 'ConfigDir'
AICHSyncThread.cpp:195: error: 'class CamuleDaemonApp' has no member named 'sharedfiles'
AICHSyncThread.cpp:201: error: 'class CamuleDaemonApp' has no member named 'sharedfiles'
AICHSyncThread.cpp:234: error: 'class CamuleDaemonApp' has no member named 'knownfiles'
AICHSyncThread.cpp:235: error: 'class CamuleDaemonApp' has no member named 'sharedfiles'
make: *** [amuled-AICHSyncThread.o] Error 1


it may be that i'm missing some package or other, but how do i tell which?
i'm starting to accept the destiny of amule not working, but if there is any hope, pray tell...

thanks..