#311009 - 05/06/2008 20:46
Building Databases issue
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
For some reason my main empeg has started acting up, and currently takes about 12 minutes to go through Building Databases and about the same again Loading Playlists. I have had it on v2.01final dev image for ages, and Hijack is at around 488. Unfortunately I can't use emplode to fix it as it takes so long emplode gives up in disgust. Had a quick shot at fscking it (required both swapspaces enabled) but no joy. Then went and tried the FAQ guidance If synching once with Emplode doesn't solve the problem, you can force it to rebuild the database as follows:
...
* You should be at a shell prompt now. Enter:
rwm (There will be a long pause)
rm /drive0/var/database
rm /drive0/var/database3
rm /drive0/var/tags
rm /drive0/var/playlists
rm /drive1/var/database
rm /drive1/var/database3
rm /drive1/var/tags
rm /drive1/var/playlists
(Note that some or all of those RM commands may not work, that's OK)
exit
(The player application will run and rebuild the databases; watch the screen and wait until it is done, then q out of it again...)
q
(This should exit the player application back to the shell prompt.)
rom
exit
* Cycle the power on the player. Make sure it boots correctly, without the long pause. Unfortunately, even though most of the rm commands worked, the symptoms are exactly the same. Now, I know what I should do - go for Mark's latest Bigdisk build and redo both disks, but that will involve getting an older machine out of the attic as this one has no serial port (the USB to serial works fine for hyperterm type stuff, but not for the .upgrade files) Any thoughts before I take that route?
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311011 - 05/06/2008 21:15
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
After using rm to nuke the database files, the next step is to do this:
rwm player # now wait for the player to rebuild databases and start up, # then hit Control^C to kill it again, and do: rom exit
Problem solved.
|
Top
|
|
|
|
#311014 - 05/06/2008 21:45
Re: Building Databases issue
[Re: mlord]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
He doesn't need the "rwm"; it's already been done. If it hadn't, all of the "rm"s would have failed. (Not that it hurts anything for it to be run again.)
The rest of it matches what he did, assuming what he did is what he pasted here. Yeah, it's a different route, but it gets you to exactly the same places.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#311015 - 06/06/2008 00:19
Re: Building Databases issue
[Re: wfaulk]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
The only thing I can imagine is that, in the place in my instructions where he types EXIT, it doesn't go back into the player software and therefore doesn't rebuild the databases.
At that point, Mark's instructions for running PLAYER would be more correct.
But from everything I understand, the instructions in the FAQ are correct and typing EXIT at that point should have done the right thing and caused the player software to rebuild the databases.
|
Top
|
|
|
|
#311016 - 06/06/2008 00:22
Re: Building Databases issue
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Question:
If Q <enter> doesn't work, and they end up pressing Ctrl-C to kill the player app, would EXIT get them back to the player at that point?
If not, perhaps that's what happened.
|
Top
|
|
|
|
#311017 - 06/06/2008 00:25
Re: Building Databases issue
[Re: tfabris]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
If Q <enter> doesn't work, and they end up pressing Ctrl-C to kill the player app, would EXIT get them back to the player at that point? Should do, yes.
_________________________
-- roger
|
Top
|
|
|
|
#311018 - 06/06/2008 06:53
Re: Building Databases issue
[Re: mlord]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
Using "exit" or at least "exec player" is better than just "player", as that last keeps the shell around in memory while the player runs, whereas "exec player" and "exit" both replace the shell with the player. Peter
|
Top
|
|
|
|
#311020 - 06/06/2008 08:05
Re: Building Databases issue
[Re: peter]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Thanks guys - things to try this afternoon. I have been ctrl-c ing, as 'q' isn't giving me access.
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311035 - 06/06/2008 10:50
Re: Building Databases issue
[Re: frog51]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Hmm - okay have tried
rwm player # now wait for the player to rebuild databases and start up, # then hit Control^C to kill it again, and do: rom exit
and tried
rwm exec player # Control^C took me to Shell Exit so I had to use another Control^C to kill it again, and do: rom exit
Both methods took about the same time - around 20 minutes at Building music databases and around 15 minutes at Loading playlists. And I get a time out on emplode if I try to connect (building databases doesn't complete by the time emplode gives up)
My next thing to try is timing on the Control^C - does it make a difference if I do it while the Loading Playlists message is up?
Also, interesting information point - if I wait the half hour until the player comes up selecting playlist from the front panel immediately gives me a segfault (maybe that is normal behaviour as I guess my playlists are nuked at that point)
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311039 - 06/06/2008 11:25
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
rwm exec player # Control^C took me to Shell Exit so I had to use another Control^C to kill it again, and do: rom exit [...] My next thing to try is timing on the Control^C - does it make a difference if I do it while the Loading Playlists message is up? Yes. You need to wait for each stage to finish before doing the next one. So at the shell prompt, type rwm, hit return, and don't do anything else until the next shell prompt "#" appears (this takes a while on big disks). Then exec the player, and don't do anything else until everything has finished building and the normal player screen appears. Then hit q, or Ctrl-C, and once the "#" appears issue the rom command. Peter
|
Top
|
|
|
|
#311040 - 06/06/2008 11:28
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
# Control^C took me to Shell Exit so I had to use another Control^C to kill it again Actually, on thinking about it a bit more, yes, it will do, sorry. It really is best to use "exit" and not "exec player" or "player". Peter
|
Top
|
|
|
|
#311043 - 06/06/2008 12:44
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
.. Both methods took about the same time - around 20 minutes at Building music databases and around 15 minutes at Loading playlists. And I get a time out on emplode if I try to connect (building databases doesn't complete by the time emplode gives up) Err.. missing step 0: kill off and close emplode/JEmplode *before* attempting any of this, and don't restart them until all of this has been completed.
|
Top
|
|
|
|
#311044 - 06/06/2008 12:47
Re: Building Databases issue
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
.. Both methods took about the same time - around 20 minutes at Building music databases and around 15 minutes at Loading playlists. And I get a time out on emplode if I try to connect (building databases doesn't complete by the time emplode gives up) Err.. missing step 0: kill off and close emplode/JEmplode *before* attempting any of this, and don't restart them until all of this has been completed. And perhaps also do this after the database rebuild, before attempting to use emplode/jemplode: rom e2fsck -fy / e2fsck -fy /dev/hda4 tune2fs -c -1 -i 0 /dev/hda4 tune2fs -c 1 -i 0 /dev/hda5
That should cure it permanently. -ml
|
Top
|
|
|
|
#311048 - 06/06/2008 15:50
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Thanks guys - things to try this afternoon. I have been ctrl-c ing, as 'q' isn't giving me access. This is unusual. Have you been pressing the ENTER key after pressing q? And did you try it more than once? I'm wondering if that's a symptom of some other kind of problem. The software in question is 2.0? About how many songs are on this player? Two disk drives or one?
|
Top
|
|
|
|
#311050 - 06/06/2008 15:57
Re: Building Databases issue
[Re: tfabris]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
I have been ctrl-c ing, as 'q' isn't giving me access. This is unusual. Not in the light of the next question: does it make a difference if I do it while the Loading Playlists message is up? I don't think the player starts listening for q's until it's started up properly. Meanwhile Ctrl-C quits the player even if it's in the middle of the database rebuild we're trying to do in the first place. Peter
|
Top
|
|
|
|
#311053 - 06/06/2008 15:59
Re: Building Databases issue
[Re: peter]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
|
Top
|
|
|
|
#311071 - 06/06/2008 18:14
Re: Building Databases issue
[Re: tfabris]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
I have not tried to do it during the Database message, but I have tried during the loading playlists message and waiting the full 35-40 minutes till the player starts...no difference in symptoms. It doesn't do a faster rebuild when all the var/* files are removed, and although it does eventually get to the player I can't play anything, and emplode fails. Err.. missing step 0: kill off and close emplode/JEmplode *before* attempting any of this, and don't restart them until all of this has been completed. Don't worry - I have only tried them once the player is running again. I'll try the tunefs stuff though - see if it changes anything.
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311072 - 06/06/2008 18:18
Re: Building Databases issue
[Re: tfabris]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
I've never used q, as far as I can remember - it seemed to require faaster reflexes than I have The software in question is 2.0? About how many songs are on this player? Two disk drives or one? 2 disks, around 22,000 tracks, version 2.01 final
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311073 - 06/06/2008 19:35
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
although it does eventually get to the player I can't play anything Oh! Oh dear, now I look back upthread you did kind-of say that before, and I didn't notice. If that's the case, the problem you have isn't the one we've all been trying to fix for you. And it's one I haven't seen before against 2.01-final: I had thought we'd found and fixed all the "persistent database rebuild failure" problems, but your player must have come up with a new one. You probably have something bogus in your *0 files that the player thinks is some kind of mammoth playlist. But as Empeg has now all ended and we don't have access to the source code any more, there's nothing I can have you do to diagnose this, I'm afraid. Under the unfortunate circumstances, the quickest way to get your player back to life, unless anyone's got any really bright ideas, is to delete the contents of both drives' "fids" directories and re-populate it from empty. Peter
|
Top
|
|
|
|
#311074 - 06/06/2008 19:47
Re: Building Databases issue
[Re: peter]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Oh, good point. First, make sure this isn't simply a "second disk drive not appearing this film" problem. If both drives are working fine and you can browse their FIDS folders... Something worth trying. Get a directory listing of all of the fids, divided into lists of the *1 files and *0 files. You might need to work with a largefile ASCII editor and/or a spreadsheet program to do this.... Ideally the *1 files should all be very tiny. If you find a huge one, that might be your culprit, examine its contents. The *0 files should be divided into two groups: All the MP3 files and all the playlist contents files. The MP3 files will be large and will be many in number (22,000), the playlist contents files will be relatively small and theoretically few in number. If possible grab all of the *0 playlists contents files and see if they all truly contain playlist content data, or if one of them is somehow corrupted.
|
Top
|
|
|
|
#311076 - 06/06/2008 19:55
Re: Building Databases issue
[Re: peter]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
You probably have something bogus in your *0 files that the player thinks is some kind of mammoth playlist. Once scenario in which I can imagine this happening involves data from two different players. For example, trying to combine the FIDS folders of two disjoint players with multiple hard disks each. You could end up with a disjointed *1 and *0 file, and have the database expecting a playlist for the *0 file and getting an MP3 data file instead. What about a situation where you have: - Two disk drives - One drive goes offline because of a loose cable - You add some songs and synch - Second drive comes back online - You try to synch again Might that cause a similar problem?
|
Top
|
|
|
|
#311077 - 06/06/2008 19:55
Re: Building Databases issue
[Re: tfabris]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Thanks for all the help so far guys - I am trying to let this one last run through complete, then I'll check for a massive *1 file. Failing that I will go for the full rebuild with Mark's latest BigDisk - which I would have had to go for at some point anyway I'm sure.
And I have retrieved a machine with proper serial ports so I can give it a shot this weekend.
(I want to make sure it all works before Cambridge!!! :-)
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311082 - 06/06/2008 20:56
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Thanks for all the help so far guys - I am trying to let this one last run through complete ... One more somewhat obvious thing (to some of us) to try here: Perhaps the player is running out of memory for that huge tracklist of yours. So, do a swapon /dev/hda6 before re-attempting the recipe. This will give it more (virtual) memory to play with. Cheers
|
Top
|
|
|
|
#311083 - 06/06/2008 21:32
Re: Building Databases issue
[Re: mlord]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Sorry - yep, I did try that this afternoon (as I noticed I needed /dev/hda6 and /dev/hdc6 to fsck fully)
Still no joy I'm afraid - tomorrow I'm running the bigdisk builder v10 and redoing the lot.
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311312 - 12/06/2008 15:16
Re: Building Databases issue
[Re: frog51]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Well - there is definitely an issue somewhere. To get the builder to work I got rid of all the fids etc, then fsck'ed as it was complaining a lot but eventually that worked.
But then -
Running the bigdisk builder on each disk looks like it works but after installing either the v2.01 or the 3a11 on boot up I see a pump hda5 648:2 message come up briefly, and emplode sees 0 space
So I figure the easiest first step is just to buy a nice new shiny bigger disk (probably a 250) to replace the two currently there and run a build from new to see how it goes.
Then, if I can get that last wire fixed on for the memory upgrade that could help with things I guess.
And after that I have discovered after installing my new amp, wiring etc into the Forester that the dash DIN slots are not quite DIN. Specifically they are 5mm narrower than an empeg.
My Dremel awaits...
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#311324 - 12/06/2008 17:55
Re: Building Databases issue
[Re: frog51]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Yup, you are not the only person who has had to dremel their scooby dashboard. Plenty of examples in the install gallery on riocar.org. Some good solutions and nice installs in scoobies can be found there or by searching for subaru installs here on the BBS.
|
Top
|
|
|
|
|
|