aMule Forum

English => aMule Help => Topic started by: sah on January 27, 2005, 10:52:39 AM

Title: RemoteControls doesnt work
Post by: sah on January 27, 2005, 10:52:39 AM
I chose to launch http server in the "RemoteControls" tab, but when I tried to visit the webpage, the IE returned a error saying "The page cannot be displayed. The page you requested is currently unavailable. Perhaps the site is having some technical problems, or you may have to adjust your configuration of your browser".
The error message is translated from  Chinese by myself, so it will be different from what you used to see.
Now what should I do to fix this?
My aMule is running on a Fedora Core 2 system and I tried to visit the webpage from a WinXP system through a LAN.
Title: Re: RemoteControls doesnt work
Post by: thedude0001 on January 27, 2005, 11:46:53 AM
Did you restart amule after checking "run webserver on startup"? The webserver on amule works a little different then its emule counterpart.

To explain this: The amule webserver is a program independent from amule itself. Usually you would start amule and then start the webserver and let it connect to amule manually. The checkbox in the preferences does the second step autmatically for you on amule startup.

And: Did you take a look at the webserver howto in the wiki? You have to copy some files around in order for the webserver to work.
Title: Re: RemoteControls doesnt work
Post by: phoenix on January 27, 2005, 01:44:14 PM
sah,

thedude0001 is right, amuleweb is an independent program and must be run separetely. Look here:
http://www.amule.org/wiki/index.php/Webserver

Also, the message you say you receive looks like a message received from an internet domain owner for an unassigned domain. You may have used a wrong address on the browser. First try from the local machine http://localhost:4711, then after you try with the address of your machine from another host.

Don't forget to read the wiki link above!

Cheers!
Title: Re: RemoteControls doesnt work
Post by: sah on January 27, 2005, 02:56:27 PM
First of all, thanks alot for helping!
I restarted aMule everytime I did the setting. And I also tried "http://127.0.0.1:4711". I am sure the server was not running at all.
I just read the wiki and its helpful.
But unfortunately, I read it after I uninstalled aMule. I uninstalled it because I saw in the wiki it says that if I installed from an rpm, I can't use webserver. I wanted to compile aMule and wish it works. Unfortunately again, I failed. I got a lot of messages saying wxUSE_XXXXXXXXXXX was not defined when I run make after configure. What is that? What should I do? Continue trying to compile? Or reinstall using the rpm?
Title: Re: RemoteControls doesnt work
Post by: Skuromis on January 27, 2005, 03:51:18 PM
Go on trying to compile ;O) It seems there are missing some dependencies.. but you should open a new thread in the compiling problems section ;O)

cö, Skuro
Title: Re: RemoteControls doesnt work
Post by: lfroen on January 27, 2005, 04:21:53 PM
On latest cvs snapshots external connections are automaticallly disabled if you do not assign password. Go to preferences and assign some password to external connections.
Title: Re: RemoteControls doesnt work
Post by: phoenix on January 27, 2005, 05:43:28 PM
sah,

Quote
Originally posted by sah
First of all, thanks alot for helping!
I restarted aMule everytime I did the setting. And I also tried "http://127.0.0.1:4711". I am sure the server was not running at all.

I don't know if I understand what you say. What I mean is that you must do:

$ amule &
$ amuleweb -f

Also, lfroen is right, you MUST assign a password before doing these steps. You can do that from the preferences dialog in aMule.

Quote
Originally posted by sah
I just read the wiki and its helpful.
But unfortunately, I read it after I uninstalled aMule. I uninstalled it because I saw in the wiki it says that if I installed from an rpm, I can't use webserver.
I am sorry, this information is wrong, I have fixed it in the wiki. Just do:
$cp /usr/share/amuleweb/aMule.tmpl ~/.aMule/
$cp /usr/share/amuleweb/webserver/ ~/.aMule/

Quote
Originally posted by sah
I wanted to compile aMule and wish it works. Unfortunately again, I failed. I got a lot of messages saying wxUSE_XXXXXXXXXXX was not defined when I run make after configure. What is that? What should I do? Continue trying to compile? Or reinstall using the rpm?

1) Go to wx website and get wxGTK-2.5.3 tarball. Untar it and go to the directory. Then
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --enable-unicode --prefix=/usr/local/wxWidgets-cvsu && make
$ su
$ make install

I imagine you are from China, so you will probably want to enable unicode+gtk2. If you do not have root access, you can use some directory inside your home dir instead of /usr/local/wxWidgets-cvsu in the prefix.

2) Get the amule tarball and untar it. Go to the dir and do:
./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --with-wx-config=/usr/local/wxWidgets-cvsu/bin/wx-config && make

3) Run amule with the following command:
LD_LIBRARY_PATH=/usr/local/wxWidgets-cvsu/lib/ /path/to/amule/tarball/dir/src/amule &

If you get any messages, please post them and we will try to work them out. Most of them will be about packages you must have installed to compile both amule and wxGTK.

Cheers!
Title: Re: RemoteControls doesnt work
Post by: sah on January 28, 2005, 02:25:40 AM
Quote
Originally posted by phoenix
sah,

1) Go to wx website and get wxGTK-2.5.3 tarball. Untar it and go to the directory. Then
$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --enable-unicode --prefix=/usr/local/wxWidgets-cvsu && make
$ su
$ make install

I imagine you are from China, so you will probably want to enable unicode+gtk2. If you do not have root access, you can use some directory inside your home dir instead of /usr/local/wxWidgets-cvsu in the prefix.

2) Get the amule tarball and untar it. Go to the dir and do:
./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd --with-wx-config=/usr/local/wxWidgets-cvsu/bin/wx-config && make

3) Run amule with the following command:
LD_LIBRARY_PATH=/usr/local/wxWidgets-cvsu/lib/ /path/to/amule/tarball/dir/src/amule &

If you get any messages, please post them and we will try to work them out. Most of them will be about packages you must have installed to compile both amule and wxGTK.

Cheers!

Well this is good. This is really very much detailed.
I tried to compile aMule after installed wxBase2.5.2's rpm but got a large quantity of error messages. And I didnt know how to install wx-2.5.3 because there is no such a rpm on their site. I have been working untill about 00:30 this morning, haha.
About the wiki, I thought it was my misunderstanding.
Ok, I will have a try, compile wxGTK2.5.3 today.
Thank you all!
PS. I am from China and I like phoenix.
Title: Re: RemoteControls doesnt work
Post by: sah on January 28, 2005, 03:57:48 AM
pheonix, did you forget make install for amule?
Title: Re: RemoteControls doesnt work
Post by: deltaHF on January 28, 2005, 04:06:55 AM
hi,

no he don't ;)

you can run amule from the src directory, i.e:

cd amule-cvs/src

and then

./amule

cheers
Title: Re: RemoteControls doesnt work
Post by: sah on January 28, 2005, 04:33:13 AM
oh, I see.
Title: Re: RemoteControls doesnt work
Post by: sah on January 28, 2005, 04:38:54 AM
Here is what I got:

Quote
Initialising aMule
Saving userhash: 03D416A12C0E2461989BA09FD7EF6F05
Userhash loaded: 03D416A12C0E2461989BA09FD7EF6F05
*** UDP socket at 4665
No cryptkey.dat found, creating
 
--------------------------------------------------------------------------------
OOPS! Houston, we have a situation: seems like aMule crashed!
Please, post these lines on the backtrace forum on http://www.amule.org/
aMule version is: 2.0.0rc8 using wxGTK2 v2.5.3 (Unicoded)
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
 
  • CamuleApp::OnFatalException() in amule.cpp:979
  • [1] wxFatalSignalHandler in /usr/local/wxWidgets-cvsu/lib/libwx_baseu-2.5.so.3
[0x37574c]
[2] ?? in [0x654420]
[3] CamuleGuiApp::NotifyEvent(GUIEvent) in amule-gui.cpp:828
[4] ExternalConn::ExternalConn() in ExternalConn.cpp:111
[5] CamuleApp::OnInit() in amule.cpp:578
[6] CamuleGuiApp::OnInit() in amule-gui.cpp:198
[7] wxAppConsole::CallOnInit() in app.h:87
[8] wxEntry(int&, wchar_t**) in /usr/local/wxWidgets-cvsu/lib/libwx_baseu-2.5.so.3[0x316c20]
[9] wxEntry(int&, char**) in /usr/local/wxWidgets-cvsu/lib/libwx_baseu-2.5.so.3[0x316d6f]
[10] main in amule-gui.cpp:161
[11] __libc_start_main in /lib/tls/libc.so.6[0x3296ad4]
[12] wxMemoryDC::SetPen(wxPen const&) in /opt/aMule/src/amule[0x8134c31]
 
--------------------------------------------------------------------------------
Title: Re: RemoteControls doesnt work
Post by: deltaHF on January 28, 2005, 02:13:01 PM
are you running amule in english or with chinese translation?
Title: Re: RemoteControls doesnt work
Post by: sah on January 28, 2005, 03:35:49 PM
hi deltaHF,
I don't understand what you say very well.
My Fedora Core 2 is set to Chinese, and the aMule I installed using rpm before was also in Chinese. This time, before the backtrace, the aMule window showed up for a while, and I saw it was in English.
Is it the problem of Language settings?
Title: Re: RemoteControls doesnt work
Post by: phoenix on January 28, 2005, 07:06:59 PM
sah,

I see you were in the IRC channel, I hope most of your questions are answered.

I believe that this is not a language setting problem, this is a problem with aMule. But if I recall correctly, this has been fixed in CVS. So, a CVS tarball snapshot will probably work for you.

Keep in touch, inform us about your results!

Cheers!
Title: Re: RemoteControls doesnt work
Post by: sah on January 30, 2005, 03:32:13 AM
(gdb) bt
#0  0x015e57a3 in strlen () from /lib/tls/libc.so.6
#1  0x082d1ee3 in CamuleApp::AddLogLine (this=0x8986838, msg=@0xfeefd3f8) at amule.cpp:1678
#2  0x082d5f39 in CamuleGuiApp::NotifyEvent (this=0x8986838, event=
      { = { = {_vptr.wxObject = 0x8330a08, static ms_classInfo = {m_className = 0x31e570, m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0x37c2c8, static sm_classTable = 0x8960008}, m_refData = 0x0}, m_eventObject = 0x0, m_eventType = 10223, m_timeStamp = 0, m_id = -1, m_callbackUserData = 0x0, m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false, static ms_classInfo = {m_className = 0x32e350, m_objectSize = 36, m_objectConstructor = 0, m_baseInfo1 = 0x37c28c, m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0x37c754, static sm_classTable = 0x8960008}}, ID = ADDLOGLINE, byte_value = 0 '\0', short_value = 0, long_value = 0, longlong_value = 0, string_value = { = {static npos = 4294967195, m_pchData = 0x8ca7334}, }, ptr_value = 0x0, ptr_aux_value = 0x0}) at amule-gui.cpp:830
#3  0x081b9404 in ExternalConn (this=0x8ca5fa0) at ExternalConn.cpp:101
#4  0x082cc89d in CamuleApp::OnInit (this=0x8986838) at amule.cpp:615
#5  0x082d405c in CamuleGuiApp::OnInit (this=0x8986838) at amule-gui.cpp:198
#6  0x082d2e1c in wxAppConsole::CallOnInit (this=0x8986838) at app.h:87
#7  0x002926dc in wxEntry (argc=@0xfeefdb50, argv=0x8961678) at src/common/init.cpp:394
#8  0x0029282b in wxEntry (argc=@0xfeefdb50, argv=0xfeefdbd4) at src/common/init.cpp:457
#9  0x082d3f21 in main (argc=1, argv=0xfeefdbd4) at amule-gui.cpp:161



=====================
backtrace in gdb
Title: Re: RemoteControls doesnt work
Post by: sah on January 30, 2005, 03:38:12 AM
(gdb) bt full
#0  0x015e57a3 in strlen () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x082d1ee3 in CamuleApp::AddLogLine (this=0x8986838, msg=@0xfeefd3f8) at amule.cpp:1678
        curr_date = { = {static npos = 4294967195, m_pchData = 0x8ca6574}, }
        date_str_buf = {m_str = 0x0}
        date_str = 0x0
        c_msg_buf = {m_str = 0x8ca6574 "2"}
        c_msg = 0x0
#2  0x082d5f39 in CamuleGuiApp::NotifyEvent (this=0x8986838, event=
      { = { = {_vptr.wxObject = 0x8330a08, static ms_classInfo = {m_className = 0x31e570, m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0x37c2c8, static sm_classTable = 0x8960008}, m_refData = 0x0}, m_eventObject = 0x0, m_eventType = 10223, m_timeStamp = 0, m_id = -1, m_callbackUserData = 0x0, m_propagationLevel = 0, m_skipped = false, m_isCommandEvent = false, static ms_classInfo = {m_className = 0x32e350, m_objectSize = 36, m_objectConstructor = 0, m_baseInfo1 = 0x37c28c, m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0x37c754, static sm_classTable = 0x8960008}}, ID = ADDLOGLINE, byte_value = 0 '\0', short_value = 0, long_value = 0, longlong_value = 0, string_value = { = {static npos = 4294967195, m_pchData = 0x8ca7334}, }, ptr_value = 0x0, ptr_aux_value = 0x0}) at amule-gui.cpp:830
No locals.
#3  0x081b9404 in ExternalConn (this=0x8ca5fa0) at ExternalConn.cpp:101
        port = 11032
        addr = { = { = { = {_vptr.wxObject = 0xe0ee08, static ms_classInfo = {
          m_className = 0x31e570, m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
          static sm_first = 0x8409b90, m_next = 0x37c2c8, static sm_classTable = 0x8960008}, m_refData = 0x0},
      static ms_classInfo = {m_className = 0xe065c4, m_objectSize = 12, m_objectConstructor = 0, m_baseInfo1 = 0x37c28c,
        m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0xe0f6a0, static sm_classTable = 0x8960008},
      m_address = 0x8ca5d78}, static ms_classInfo = {m_className = 0xe065fc, m_objectSize = 12, m_objectConstructor = 0,
      m_baseInfo1 = 0xe0f638, m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0xe0f638,
      static sm_classTable = 0x8960008}}, static ms_classInfo = {m_className = 0xe0662c, m_objectSize = 16,
    m_objectConstructor = 0xdf7908 , m_baseInfo1 = 0xe0f650, m_baseInfo2 = 0x0,
    static sm_first = 0x8409b90, m_next = 0xe0f650, static sm_classTable = 0x8960008}, m_origHostname = { = {
      static npos = 4294967195, m_pchData = 0x322610}, }}
#4  0x082cc89d in CamuleApp::OnInit (this=0x8986838) at amule.cpp:615
        cmdline = {m_data = 0x89dced0}
        geometry_enabled = false
        geom_string = { = {static npos = 4294967195, m_pchData = 0x322610}, }
        server = { = {static npos = 4294967195, m_pchData = 0x89ddc94}, }
        host = { = {static npos = 4294967195, m_pchData = 0x89ddbf4}, }
        IPC = { = {static npos = 4294967195, m_pchData = 0x89ddd34}, }
        client = (class wxTCPClient *) 0x89ddc48
        conn = (class wxConnectionBase *) 0x0
        lMulePrefDir = { = {static npos = 4294967195, m_pchData = 0x89de404}, }
        xMulePrefDir = { = {static npos = 4294967195, m_pchData = 0x89de4a4}, }
        vfile = { = {_vptr.wxTextBuffer = 0x84095f8, static typeDefault = wxTextFileType_Unix,
    m_strBufferName = { = {static npos = 4294967195, m_pchData = 0x89f8014}, },
---Type to continue, or q to quit---
    m_aTypes = { = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0}, }, m_aLines = {m_nSize = 0,
      m_nCount = 0, m_pItems = 0x0, m_autoSort = false}, m_nCurLine = 0, m_isOpened = false}, m_file = {m_fd = -1,
    m_error = false}}
        newMule = { = {static npos = 4294967195, m_pchData = 0x8a08514}, }
        mnt_tab = (FILE *) 0x8a186c8
        myaddr = { = { = { = { = {_vptr.wxObject = 0x89ebcd4,
          static ms_classInfo = {m_className = 0x31e570, m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0,
            m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0x37c2c8, static sm_classTable = 0x8960008},
          m_refData = 0x16980fc}, static ms_classInfo = {m_className = 0xe065c4, m_objectSize = 12,
          m_objectConstructor = 0, m_baseInfo1 = 0x37c28c, m_baseInfo2 = 0x0, static sm_first = 0x8409b90,
          m_next = 0xe0f6a0, static sm_classTable = 0x8960008}, m_address = 0xfeefd658}, static ms_classInfo = {
        m_className = 0xe065fc, m_objectSize = 12, m_objectConstructor = 0, m_baseInfo1 = 0xe0f638, m_baseInfo2 = 0x0,
        static sm_first = 0x8409b90, m_next = 0xe0f638, static sm_classTable = 0x8960008}}, static ms_classInfo = {
      m_className = 0xe0662c, m_objectSize = 16, m_objectConstructor = 0xdf7908 ,
      m_baseInfo1 = 0xe0f650, m_baseInfo2 = 0x0, static sm_first = 0x8409b90, m_next = 0xe0f650,
      static sm_classTable = 0x8960008}, m_origHostname = { = {static npos = 4294967195,
        m_pchData = 0x2bfee6}, }}, }
#5  0x082d405c in CamuleGuiApp::OnInit (this=0x8986838) at amule-gui.cpp:198
No locals.
#6  0x082d2e1c in wxAppConsole::CallOnInit (this=0x8986838) at app.h:87
No locals.
#7  0x002926dc in wxEntry (argc=@0xfeefdb50, argv=0x8961678) at src/common/init.cpp:394
        callOnExit = {}
        cleanupOnExit = {}
#8  0x0029282b in wxEntry (argc=@0xfeefdb50, argv=0xfeefdbd4) at src/common/init.cpp:457
No locals.
#9  0x082d3f21 in main (argc=1, argv=0xfeefdbd4) at amule-gui.cpp:161
No locals.



=============
bt full
Title: Re: RemoteControls doesnt work
Post by: phoenix on January 30, 2005, 07:24:54 AM
sah,

Thank you for your patience and for your report. Thanks to you,  I have found the problem and made a fix for it. Please test tomorrow (01-02-2005) cvs tarball and report your results.

Cheers!
Title: Re: RemoteControls doesnt work
Post by: sah on January 30, 2005, 08:23:13 AM
OK, Phoenix, I will try again tomorrwo. I guess you mean Jan-31 version.
BTW, anything about testing aMule on a Chinese system, I can help you, if you need. :--)