aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Reload shared files clears shareddir.dat file?  (Read 4352 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Reload shared files clears shareddir.dat file?
« on: June 04, 2006, 01:10:49 PM »

I don't know if this is just something that happens to me, but I have witnessed this 3 times already with 2.1.2:
- I use the amuled on a Linux Mandrake 10.0 server and webserver / amulegui to control it.
- After moving downloaded files around on the filesystem I force a re-check of all shared files by using the "reload shared" button on the web GUI, the remote GUI or via the command line.
- In case of using the web gui or the remote gui the shareddir.dat file is cleaned out, 0 bytes, no data left at all.
- Using the command line this has not happened yet, it seems that the command line is the safest way of reloading the shared files list.

I have witnessed this bug once before on aMule 2.0.3, but not on 2.1.1. Which is what made me create a backup of the shareddir file everytime I change it....

Anybody have any idea what is going on here?
Logged
A waste is a terrible thing to mind.

morph

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 213
    • http://matrixhasu.altervista.org/
Re: Reload shared files clears shareddir.dat file?
« Reply #1 on: June 04, 2006, 06:31:02 PM »

Same thing happens here:

Code: [Select]
$ cat ~/.aMule/shareddir.dat
$

And I've just started (5 minuts ago, 20060603) amuled and files in directories that were in shareddir.dat were loaded correctly.

So the issue seems to lay in some piece of code that empty shareddir.dat file, even before reloading shared, that show the issue indeed.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Reload shared files clears shareddir.dat file?
« Reply #2 on: June 09, 2006, 11:46:16 AM »

Well, I am disappointed to report that amulecmd also displays this behaviour: Type "reload shared" and the shareddir.dat file is history.  :(
Logged
A waste is a terrible thing to mind.

Yew

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Reload shared files clears shareddir.dat file?
« Reply #3 on: September 24, 2006, 06:48:26 PM »

me too
v2.1.3
when amulegui lanched ,the shareddir.dat would be erased to zero immediately!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Logged

Yew

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Reload shared files clears shareddir.dat file?
« Reply #5 on: September 24, 2006, 08:04:06 PM »

Hi
Cause I don't change shareddir frequently , I now use
Code: [Select]
chattr +i ^/.aMule/shareddir.datit dose work :] but you must be root at first :D
« Last Edit: September 24, 2006, 08:21:04 PM by Yew »
Logged