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: Error Traversing Database  (Read 9335 times)

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Error Traversing Database
« on: December 20, 2008, 07:55:06 PM »

Quote
Error Traversing Database for ipnum = 1326418381 - Perhaps database is corrupt?
Error Traversing Database for ipnum = 1537591195 - Perhaps database is corrupt?

Amule SVN 9278, this two lines are repeating indefinitely in the terminal window from where I launched amule.

Somebody knows what do they mean?
Logged

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #1 on: December 20, 2008, 08:34:19 PM »

ok, I fixed the problem by reloading IPfilter.dat.
 After a while the message restarted like this
Quote
Error Traversing Database for ipnum = 1460004398 - Perhaps database is corrupt?
Error Traversing Database for ipnum = 3196626597 - Perhaps database is corrupt?
somebody has an idea?
« Last Edit: December 20, 2008, 08:38:44 PM by luquino »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Error Traversing Database
« Reply #2 on: December 20, 2008, 09:58:54 PM »

This message is generated by the GeoIP library. Try updating its database.
Logged
concordia cum veritate

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #3 on: December 22, 2008, 03:52:29 PM »

This message is generated by the GeoIP library. Try updating its database.
Mhhhh... that's looks weird, until the previous version of svn I was using (9263) I had no problem with GeoIP, as soon I compiled 9278 I got this problem.
Anyway, I couldn't find how to update database, can you halp me?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Error Traversing Database
« Reply #4 on: December 22, 2008, 05:08:00 PM »

Just delete GeoIP.dat from the config directory (.amule), and it will redownload it on restart.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #5 on: December 23, 2008, 12:09:41 AM »

Ok problem fixed, but I had to download the file manually because the automatic download stopped after 64 KB and the DL window stay there without any progress.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Error Traversing Database
« Reply #6 on: December 23, 2008, 12:20:09 PM »

Can you reproduce the problem?
Does aMule leave a broken GeoIP.dat or no file at all?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #7 on: December 23, 2008, 03:57:22 PM »

well, on my computer I found two file GeoIP.dat: in /usr/share and in /home/my_user_name/.amule.
First I renamed the file in /usr/share, but the problem continued, so I removed the file in .amule and aMule started the download automatically, but it didn't finished.
When I saw the download window hanging I remembered that the same thing occurs a short time ago, probably when I migrate from svn 9263 to 9278, but until 9263 I had no problem at all. I can confirm this because obviously the country flags wasn't showed in 9278, but they was in 9263.
In .amule I found as well a GeoIP.dat.download, that is the part file created from the automatic download I suppose.

May be previously amule looked for the file in /usr/share?
« Last Edit: December 23, 2008, 04:01:36 PM by luquino »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Error Traversing Database
« Reply #8 on: December 24, 2008, 12:04:56 AM »

aMule SVN looks in .amule since I added the auto-download of the database in September. Last change on the issue was the change of the download URL in 9196 (25.11.).
The database is downloded to .amule/GeoIP.dat.download and renamed on success to GeoIP.dat .

So - does the download break always or was that a one-time event ? It's working fine here.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #9 on: December 26, 2008, 04:44:37 PM »

OK, I found the trick.
On my pc I share about 5.000 files, when aMule starts it spends 2 - 3 minutes scanning the directories to share, in the meanwhile it tries to download the GeoIP.dat (if needed) and it fails. If I share only a little amount of files (i.e. 200) the GeoIP.dat downloads correctly.
I don't know which is the relationship between the two events, but remember that I have only 1 Mb ADSL bandwidth.
Nor I know why aMule had to download the GeoIP.dat after upgrade from 9263 to 9278.
Attached you find what appears in the console when the download fails.
« Last Edit: December 26, 2008, 04:47:56 PM by luquino »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Error Traversing Database
« Reply #10 on: December 26, 2008, 08:23:36 PM »

I'd rather need the content of your logfile to find out what's going on.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #11 on: December 26, 2008, 09:42:12 PM »

Today I tried three times to rebuild the event.
I attach the file I received, all the times I found only this GeoIP.dat in ~/.amule, no files named .download, but I still receive the error message (traversing database....) and the country flags don't appears.
Note that I had to rename the file attached to GeoIP.dat.txt, otherwise the attachment is not allowed ;)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Error Traversing Database
« Reply #12 on: December 26, 2008, 10:09:08 PM »

That's the beginning of the compressed archive. Strange.
Please delete it, restart aMule, and if it breaks again post your logfile.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

luquino

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 124
Re: Error Traversing Database
« Reply #13 on: December 27, 2008, 01:16:21 AM »

I tried again, but it failed.
Attached the logfile
« Last Edit: December 27, 2008, 01:21:27 AM by Stu Redman »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Error Traversing Database
« Reply #14 on: December 27, 2008, 01:22:50 AM »

Thanks! I'll see to at least improving the error handling.
Removed your logfile - nobody needs to know what you're sharing.  ;)

Code: [Select]
2008-12-26 19:13:03: HTTPDownload.cpp(326): Host: geolite.maxmind.com:80
 2008-12-26 19:13:03: HTTPDownload.cpp(327): URL: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
 2008-12-26 19:13:03: HTTPDownload.cpp(328): Response: 200 (Error: 0)
 2008-12-26 19:13:03: HTTPDownload.cpp(199): Download size: 577935
 2008-12-26 19:13:03: HTTPDownload.cpp(246): HTTP download thread ended
 2008-12-26 19:13:03: amule.cpp(1887): Tu copia de aMule está actualizada.
 2008-12-26 19:13:12: Logger.cpp(342): Error: Can't read inflate stream: unexpected EOF in underlying stream.
 2008-12-26 19:13:12: IP2Country.cpp(128): Actualizacion GeoIP.dat satisfactoria
Duh, it's missing a check if the inflation was ok.
« Last Edit: December 27, 2008, 01:24:25 AM by Stu Redman »
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon
Pages: [1] 2