aMule Forum
English => en_Bugs => Topic started by: PsychoChris on July 09, 2005, 02:09:35 AM
-
Hello aMule-Team,
i'm using amuled, amuleweb and amulecmd from CVS 20050707 and noticed a strange behavior of amulecmd. When i use the command SetUpBWLimit amulecmd always resets the amule.conf values Reconnect and Autoconnect to zero. Probably too when SetDownBWLimit is used but didn't test that but i guess it could happen every time amulecmd writes into amule.conf.
Another strange thing is that i dont need a password for amulecmd and amuleweb anymore. In aMule 2.0.3 i always needed. In my amule.conf i have defined passwords for the values Password and PasswordLow. Switching UseLowRightsUser from 0 to 1 doesn't change anything.
Another thing that makes me wonder is remote.conf. Is this used by only by amuleweb? Many values exist in amule.conf and remote.conf but which ones are really used by this applications?
And now the last thing for today: It seems like it is possible to launch the webserver in two ways. On the one hand by setting the webserver-values in amule.conf and on the other one by launching amuleweb by hand. The last way works quite good and i remember the first way did also in previous releases, but always had stability problems which led to a amuleweb [defunct] process and could not be accessed anymore. But i liked that amuled could start amuleweb by its own and in my CVS it is not reachable when it is launched by settings the webserver-values in amule.conf although the processes are visible. But the first try to connect to it makes it defunct and not accessible.
Greetings,
Chris
-
i'm using amuled, amuleweb and amulecmd from CVS 20050707 and noticed a strange behavior of amulecmd. When i use the command SetUpBWLimit amulecmd always resets the amule.conf values Reconnect and Autoconnect to zero. Probably too when SetDownBWLimit is used but didn't test that but i guess it could happen every time amulecmd writes into amule.conf.
Yay, boolean bug again... I'll check it.
Another strange thing is that i dont need a password for amulecmd and amuleweb anymore.
All remote applications (amulecmd, amuleweb, amulegui) use the remote.conf file by default. EC password, host, port, language, etc are stored in it.
In my amule.conf i have defined passwords for the values Password and PasswordLow. Switching UseLowRightsUser from 0 to 1 doesn't change anything.
These settings are for entering the web interface. There is always a "full rights/admin user" and optionally a "low rights/guest user". Guest user can only watch things, cannot make any changes - like cancelling downloads, etc.
It seems like it is possible to launch the webserver in two ways.
Yes, it is. Even more ways. read `man amuleweb` for more information. Basically three ways to start webserver:
[list=1]
- Typing `amuleweb` in the console. It will read configuration from ~/.aMule/remote.conf
- Starting with the -L or --load-settings command-line argument, in which case EC preferences will be read from remote.conf, and after connection webserver preferences will be queried from amule(d). (those that you can set in Preferences->External Connection)
- Letting amule(d) start the webserver, in which case all preferences will be read from amule.conf (to stay consistent with the preferences set in the GUI).
[/list=1]
-
i'm using amuled, amuleweb and amulecmd from CVS 20050707 and noticed a strange behavior of amulecmd. When i use the command SetUpBWLimit amulecmd always resets the amule.conf values Reconnect and Autoconnect to zero. Probably too when SetDownBWLimit is used but didn't test that but i guess it could happen every time amulecmd writes into amule.conf.
Now fixed. And just to make things clear, neither amulecmd, nor any app but amule(d) writes into amule.conf. For reading it is the same with the only exception of an automatically started amuleweb.
-
Hi GonoszTopi,
thank you much for your explinations! Now many things are much clearer for me.
Many greetings & thanks,
Chris
-
You're welcome.
-
Hello again,
i still don't manage to get amuleweb working with a login password. I start first amuled and then amuleweb so i guess amuleweb should read the password out of remote.conf where i set Password (which i find under the group EC), Password and PasswordLo (in group webserver) and ECPassword. First of all it's strange that in remote.conf are two entries called Password, one under EC and one under webserver. But although i set for all a password i still can only enter amuleweb by clicking 'Login now' without entering a password. Even in amule.conf i set those values to the same password for testing purpose but it seems that although i entered everywhere a password none is used.
Greetings,
Chris
-
hey
the pw fields have different names from remote.conf to amule.conf
dotn know why, ask gonszotopi :P
here is my remote.conf which works fine, just adjust the md5sums to your pass...
cat .aMule/remote.conf
Locale=
[EC]
Host=localhost
Port=4712
Password=e22a63fb76874c99488435f26b117e37
[Webserver]
Port=4000
Template=CTemplate
UseGzip=1
AllowGuest=0
AdminPassword=e22a63fb76874c99488435f26b117e37
GuestPassword=
PageRefreshTime=120
GraphHeight=149
GraphWidth=500
GraphScale=3
-
Thank you stefanero,
that was exactly the problem i had. But i would never get on this because when remote.conf was created it contained already Password and PasswordLo but not the new ones you mentioned.
Greetings,
Chris
-
Hello again,
the config value Enabled under the group [WebServer] seems to have the same problem like Reconnect and Autoconnect.
Greetings,
Chris
-
Did you update since I said it was fixed?
-
Hi GonoszTopi,
yes, i updated yesterday and today i updated again but still the same problem. Another value that is reset to 0 is UseSrcSeeds. Tell me when i should try again and i will report if it works.
Greetings,
Chris
-
Tell me what you do when these values get reset to zero. I've tested my fix and I haven't seen any values get reset after it...
-
Hi GonoszTopi,
i start amuled with config settings which start amuleweb automatically. Then i enter the webinterface by my WinXP computer and change the bandwidth-limits. After clickin apply i check in the console of my linux computer the file amule.conf and see the bandwidth changed, but also the values Reconnect, Autoconnect, Enabled and UseSrcSeeds set to zero.
Hope this helps. If you need more infos, just ask me.
Greetings,
Chris
-
PsychoChris, I don't know what's happening to you. I tried a number of amulecmd commands, and they only change what they should.
For example:
$ amulecmd -c "setupbwlimit 20"
And then (before starting amuled I copied amule.conf to amule.conf.orig):
topi:~/.aMule$ diff -u amule.conf.orig amule.conf
--- amule.conf.orig 2005-07-13 19:56:15.000000000 +0200
+++ amule.conf 2005-07-13 19:58:26.370048007 +0200
@@ -13,7 +13,7 @@
MinToTray=0
ToolTipDelay=1
MaxDownload=128
-MaxUpload=16
+MaxUpload=20
SlotAllocation=5
DownloadCapacity=128
UploadCapacity=16
topi:~/.aMule$
-
Hi GonoszTopi,
cannot reproduce it with amulecmd since the new cvs but like i wrote i used the webinterface to change the values and then i can reproduce this behavior. Here is exactly what i did:
linux:~/.aMule # cp amule.conf amule.conf.orig
linux:~/.aMule # amuled -f
linux:~/.aMule # diff -u amule.conf amule.conf.orig
--- amule.conf 2005-07-14 01:16:06.000000000 +0200
+++ amule.conf.orig 2005-07-14 01:09:48.000000000 +0200
@@ -4,19 +4,19 @@
QueueSizePref=50
VerboseDebug=0
MaxUpload=9
-MaxDownload=27
+MaxDownload=36
SlotAllocation=2
Port=4662
UDPPort=4672
UDPDisable=0
-Autoconnect=0
+Autoconnect=1
MaxSourcesPerFile=1100
MaxConnections=900
MaxConnectionsPerFiveSeconds=10
RemoveDeadServer=1
DeadServerRetry=2
ServerKeepAliveTimeout=0
-Reconnect=0
+Reconnect=1
Scoresystem=1
Serverlist=1
AddServersFromServer=1
@@ -134,11 +134,11 @@
ECPassword=25d2c2f3d33307cb9ffb355c7a2a734b
ShowProgressBar=1
ShowPercent=1
-UseSrcSeeds=0
+UseSrcSeeds=1
UseSecIdent=1
IpFilterOn=1
[WebServer]
-Enabled=0
+Enabled=1
Password=25d2c2f3d33307cb9ffb355c7a2a734b
PasswordLow=25d2c2f3d33307cb9ffb355c7a2a734b
Port=4711
Hope this helps.
Greetings,
Chris
-
From this discussion I conclude that EC from windows to Linux working ? Have you tried to change preferences in remote gui ?
-
Hi Ifroen,
i use amuled on a Linux 9.0 computer and changed the Settings through the webinterface i accessed on my WinXP computer. Every time i do this the three mentioned values are reset to zero.
This does not happen when i use amulecmd over putty from my WinXP computer.
Greetings,
Chris
-
Originally posted by lfroen
From this discussion I conclude that EC from windows to Linux working ? Have you tried to change preferences in remote gui ?
I think PsychoChris is running amuleweb on his linux box, and accessing it with a WinXP browser.
-
Yes GonoszTopi,
that's my setup here. A linux server for different kind of things including running amuled and a WinXP computer which actually is my main computer. Hope the bug can now be reproduced.
Greetings,
Chris
-
Hope the bug can now be reproduced.
Hopefully not anymore with tomorrow's cvs. 8)
Have fun.
-
As soon as i have the new cvs i will test it.
Greetings,
Chris