aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: clients.met behavior  (Read 4294 times)

mistiff

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
clients.met behavior
« on: June 22, 2009, 09:11:15 PM »

I use aMule 2.2.5 on Debian. (I use the repository version, not a customized aMule compilation.)

1. I wrongly modified the permissions of the .aMule folder recursively and aMule mistakenly thought that there was no hard disk space left, according to what was printed in the aMule log. (It was not lack of disk space, it was lack of permissions.) aMule should distinguish permissions from hard disk space.
2. aMule erased the clients.met file when it thought there was no hard disk space left. Why does aMule do that???
3. aMule does not make a backup copy of clients.met when the backup is larger than the clients.met file. Why does aMule do that??? This could mean that there are no backups made in months if you do not use aMule regularily. (If you do not use aMule regularily, or modify the upload prefs to less upload, the backup will always be larger than the normal file.)

Overall, I fucked up the folder permissions and therefore lost the clients.met file. I used the backup file but it was 6 months old, so all the clients got erased at startup. I ended up having a zero client client.met file.

Please fix so this crap will not happen again. It was kind of painful because I had a 60,000+ clients.met file.

Do not know C++ nor WxWidgets so cannot help!
« Last Edit: June 22, 2009, 09:24:25 PM by mistiff »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: clients.met behavior
« Reply #1 on: June 23, 2009, 09:17:39 PM »

I wrongly modified the permissions of the .aMule folder recursively

How exactly?
Logged
concordia cum veritate

mistiff

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: clients.met behavior
« Reply #2 on: June 23, 2009, 10:55:40 PM »

I wrongly modified the permissions of the .aMule folder recursively

How exactly?

chmod 666 -R /path-to/.aMule/
chmod 660 -R /path-to/.aMule/

Try both chmods when aMule is running. I tried to reproduce the errors and here are two logfiles.

- In the first error log: There is an error trying to open the clients.met because it lacks permissions so it tries to create it. Likewise, if there is a glitch and aMule cannot read it, it erases it and creates a new one? But, if the backup one is larger, then the file is not backed up and the user loses the clients.met file permanently. aMule should try various times to read the file before erasing and creating a new one. This would prevent glitches.
- In the second error log: It seems aMule thinks there is a lack of disk space when there is simply a lack of permissions.

Therefore, I could not reproduce the deletion of clients.met probably because it was a glitch when aMule tried to read it and therefore created a new one. This would make sense because it is the first time that happened to me in the 4 years I have been using eMule/aMule.

By the way, aMule checks the first 10 chars of the IP filter before loading it. Unfortunately, a very famous IP filter (hostex.de/emule/ipfilter) has an invalid char in the first 10 chars and aMule fails to load it. Maybe, there is a better way of checking if the file is loadable? Other programming languages use is_readable(), I do not know about C++.

Quote
2009-06-24 13:19:21: Starting aMule 2.2.5 using wxGTK2 v2.8.7
2009-06-24 13:19:21: Creditfile loaded, 2581 clients are known
2009-06-24 13:19:21: Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2009-06-24 13:19:22: Loaded 217083 IP-ranges from '/path-to/.aMule/ipfilter.dat'. 0 malformed lines were discarded.
2009-06-24 13:19:22: Loaded 182 IP-ranges from '/path-to/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
2009-06-24 13:19:22: External connections disabled in config file
2009-06-24 13:19:22: Created Client UDP-Socket at port XXXX
2009-06-24 13:19:22:
2009-06-24 13:19:22:  - This is aMule 2.2.5 using wxGTK2 v2.8.7 based on eMule.
2009-06-24 13:19:22:    Running on Linux 2.6.26-2-amd64 x86_64
2009-06-24 13:19:22:  - Visit http://www.amule.org to check if a new version is available.
2009-06-24 13:19:22:
2009-06-24 13:19:22: Loaded 248 flag bitmaps.
2009-06-24 13:19:22: Loading server.met file: /path-to/.aMule/server.met
2009-06-24 13:19:22: 0 servers in server.met found
2009-06-24 13:19:22: Found 41 part files
2009-06-24 13:19:22: Found 34 known shared files
2009-06-24 13:19:22: Connecting
2009-06-24 13:19:22: Read 186 Kad contacts
2009-06-24 13:19:22: ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2009-06-24 13:19:23: Connected to Kad (firewalled)
2009-06-24 13:19:37: Connected to Kad (ok)
2009-06-24 13:20:21: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:20:21: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 13:20:21: Error: can't open user configuration file.
2009-06-24 13:21:21: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:21:21: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 13:21:21: Error: can't open user configuration file.
2009-06-24 13:22:21: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:21: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 13:22:21: Error: can't open user configuration file.
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/nodes.dat): Permission denied
2009-06-24 13:22:24: Wrote 0 Kad contacts
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/load_index.dat): Permission denied
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/src_index.dat): Permission denied
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/key_index.dat): Permission denied
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/preferencesKad.dat): Permission denied
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/known.met): Permission denied
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/preferences.dat): Permission denied
2009-06-24 13:22:24: CFile: Error when opening file (/path-to/.aMule/preferences.dat): Permission denied
2009-06-24 13:22:24: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 13:22:24: Error: can't open user configuration file.
2009-06-24 13:22:24: Error: can't open file '/path-to/.aMule/shareddir.dat' (error 13: Permission denied)
2009-06-24 13:22:24: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 13:22:24: Error: can't open user configuration file.
2009-06-24 13:22:25: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 13:22:25: Error: can't open user configuration file.
2009-06-24 13:22:25: CFile: Error when opening file (/path-to/.aMule/clients.met): Permission denied
2009-06-24 13:22:25: Credits: Failed to create creditfile

2009-06-24 13:22:25: CFile: Error when opening file (/path-to/.aMule/server.met.new): Permission denied
2009-06-24 13:22:25: Failed to save server.met!
2009-06-24 13:22:25: CFile: Error when opening file (/path-to/.aMule/emfriends.met): Permission denied
2009-06-24 13:22:25: Failed to open friend list file 'emfriends.met' for writing!
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (076.part.met ==> file01.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (079.part.met ==> file02.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (078.part.met ==> file03.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (065.part.met ==> file04.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (066.part.met ==> file05.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (067.part.met ==> file06.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (068.part.met ==> file07.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (069.part.met ==> file08.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (070.part.met ==> file09.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (071.part.met ==> file10.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (072.part.met ==> file11.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (055.part.met ==> file12.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (059.part.met ==> file13.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (053.part.met ==> file14.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (058.part.met ==> file15.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (045.part.met ==> file16.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (044.part.met ==> file17.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (043.part.met ==> file18.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (042.part.met ==> file19.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (041.part.met ==> file20.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (037.part.met ==> file21.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (074.part.met ==> file22.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (073.part.met ==> file23.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (057.part.met ==> file24.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (006.part.met ==> file25.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (048.part.met ==> file26.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (004.part.met ==> file27.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (056.part.met ==> file28.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (052.part.met ==> file29.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (075.part.met ==> file30.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (002.part.met ==> file31.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (001.part.met ==> file32.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (049.part.met ==> file33.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (061.part.met ==> file34.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (063.part.met ==> file35.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (047.part.met ==> file36.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (062.part.met ==> file37.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (080.part.met ==> file38.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (026.part.met ==> file39.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (064.part.met ==> file40.avi)
2009-06-24 13:22:25: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 13:22:25: ERROR while saving partfile: .part file not found (060.part.met ==> file41.avi)
2009-06-24 13:22:25: Error: Failed to remove lock file '/path-to/.aMule/muleLock' (error 13: Permission denied)



Quote
2009-06-24 12:42:11: Starting aMule 2.2.5 using wxGTK2 v2.8.7
2009-06-24 12:42:11: Creditfile loaded, 2583 clients are known
2009-06-24 12:42:11: Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2009-06-24 12:42:11: Loaded 217083 IP-ranges from '/path-to/.aMule/ipfilter.dat'. 0 malformed lines were discarded.
2009-06-24 12:42:11: Loaded 182 IP-ranges from '/path-to/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
2009-06-24 12:42:11: External connections disabled in config file
2009-06-24 12:42:11: Created Client UDP-Socket at port XXXX

2009-06-24 12:42:11:  - This is aMule 2.2.5 using wxGTK2 v2.8.7 based on eMule.
2009-06-24 12:42:11:    Running on Linux 2.6.26-2-amd64 x86_64
2009-06-24 12:42:11:  - Visit http://www.amule.org to check if a new version is available.

2009-06-24 12:42:11: Loaded 248 flag bitmaps.
2009-06-24 12:42:11: Loading server.met file: /path-to/.aMule/server.met
2009-06-24 12:42:11: 0 servers in server.met found
2009-06-24 12:42:11: Found 41 part files
2009-06-24 12:42:11: Found 34 known shared files
2009-06-24 12:42:11: Connecting
2009-06-24 12:42:11: Read 190 Kad contacts
2009-06-24 12:42:11: ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2009-06-24 12:43:08: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 12:43:08: Error: Failed to create a temporary file name (error 13: Permission denied)
2009-06-24 12:43:08: Error: can't open user configuration file.
2009-06-24 12:43:11: Error: Failed to get file system statistics (error 13: Permission denied)
2009-06-24 12:43:11: WARNING: Not enough free disk-space! Pausing file: file21.avi

Edited to remove copyrighted filenames. Next time, please do it yourself.
« Last Edit: July 12, 2009, 06:15:09 PM by skolnick »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: clients.met behavior
« Reply #3 on: June 27, 2009, 09:19:49 PM »

- In the second error log: It seems aMule thinks there is a lack of disk space when there is simply a lack of permissions.

It doesn't matter why the temp folder is inaccessible (accidental wrong permissions; USB drive removed; etc), if we cannot check how much free space is available on it, the safest thing to do is to stop all writing (assume disk full).
Logged
concordia cum veritate