aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: amulecmd & amuled  (Read 7921 times)

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
amulecmd & amuled
« 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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amulecmd & amuled
« Reply #1 on: July 09, 2005, 05:21:56 PM »

Quote
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.

Quote
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.

Quote
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.

Quote
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]
Logged
concordia cum veritate

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amulecmd & amuled
« Reply #2 on: July 09, 2005, 08:58:26 PM »

Quote
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.
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: amulecmd & amuled
« Reply #3 on: July 10, 2005, 09:13:40 PM »

Hi GonoszTopi,

thank you much for your explinations! Now many things are much clearer for me.

Many greetings & thanks,
Chris
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amulecmd & amuled
« Reply #4 on: July 11, 2005, 03:38:07 AM »

You're welcome.
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
amuleweb password
« Reply #5 on: July 11, 2005, 03:05:06 PM »

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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amulecmd & amuled
« Reply #6 on: July 11, 2005, 03:07:54 PM »

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...

Code: [Select]
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
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."

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: amulecmd & amuled
« Reply #7 on: July 11, 2005, 05:13:51 PM »

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
Logged

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
another boolean bug
« Reply #8 on: July 12, 2005, 03:02:42 PM »

Hello again,

the config value Enabled under the group [WebServer] seems to have the same problem like Reconnect and Autoconnect.

Greetings,
Chris
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amulecmd & amuled
« Reply #9 on: July 12, 2005, 03:27:42 PM »

Did you update since I said it was fixed?
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: amulecmd & amuled
« Reply #10 on: July 12, 2005, 08:27:48 PM »

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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amulecmd & amuled
« Reply #11 on: July 12, 2005, 09:16:09 PM »

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...
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: amulecmd & amuled
« Reply #12 on: July 12, 2005, 09:58:45 PM »

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
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amulecmd & amuled
« Reply #13 on: July 13, 2005, 07:56:43 PM »

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:
Code: [Select]
$ amulecmd -c "setupbwlimit 20"And then (before starting amuled I copied amule.conf to amule.conf.orig):

Code: [Select]
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$
Logged
concordia cum veritate

PsychoChris

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 66
Re: amulecmd & amuled
« Reply #14 on: July 14, 2005, 12:48:35 AM »

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:

Code: [Select]
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
Logged
Pages: [1] 2