Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#287293 - 29/09/2006 15:34 Can I do this via FTP?
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
My player has too many FID's. So everytime I add more tunes I need to do a manual database rebuild. I've been doing it using the serial port as described in the FAQ, but I was wondering if I could achieve the same thing using FTP?

I would connect FTP, send a site command Q (not sure if this is necessary when using FTP), then a site comand RWM, then delete all the Tags, Database and Playlist stuff. Reboot the player by using the menu on the player itself, and when it restarts do a site command ROM.

So can I or Can't I???
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287294 - 29/09/2006 15:36 Re: Can I do this via FTP? [Re: bodybag]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
You could probably do it, though not quite with the commands you describe.

However, the first thing I would do if I were you is take a look at the MaxFID patch someone (mlord?) created and see if that solved your problem. I'll see if I can find a link.

Edit: maxfid patch


Edited by wfaulk (29/09/2006 15:41)
_________________________
Bitt Faulk

Top
#287295 - 29/09/2006 15:47 Re: Can I do this via FTP? [Re: bodybag]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
Quote:
Reboot the player by using the menu on the player itself, and when it restarts do a site command ROM.

Um, to do the procedure properly, you shouldn't be rebooting the player while it's set to RWM. Because if you reboot while it's set to read-write, you run into this problem.

Anyway, with Hijack installed, there is an HTTP command you can send to reboot the player, you don't even need to use its front panel ( http://empeg/?reboot&NODATA ). But in theory you shouldn't even need to reboot the player to do the database rebuild procedure. If you look closely at the database rebuild steps, at no time are you told to reboot the player to rebuild the database; only to exit and restart the player application to get it to perform the rebuild. Rebooting the player is only the last step (well after everything else is done) and I'm not sure that's even needed at all.

You're welcome to try doing those commands via FTP. Let us know how it goes?
_________________________
Tony Fabris

Top
#287296 - 29/09/2006 15:49 Re: Can I do this via FTP? [Re: tfabris]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
I have the MaxFID patch on this player and it seems to have done nothing at all. I originally installed it to eliminate this exact problem, but it was not effective. Maybe I didn't install it correctly? Anyone?
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287297 - 29/09/2006 15:52 Re: Can I do this via FTP? [Re: bodybag]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
One reason that you might be having database rebuild trouble wouldn't necessarily have anything to do with the number of tracks or Maxfid: You wouldn't happen to be running alpha software would you? The 3.0 alphas gave me that kind of trouble when I tried them.
_________________________
Tony Fabris

Top
#287298 - 29/09/2006 16:08 Re: Can I do this via FTP? [Re: tfabris]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
Nope, I'm running the 2.x final - whatever number that was.
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287299 - 29/09/2006 16:13 Re: Can I do this via FTP? [Re: bodybag]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
Let's rewind a bit. How many tracks do you have on the player, exactly what is going wrong that's preventing a normal synch (what is the exact error message), and have we already (as a group) diagnosed and determined that it really is the number of tracks that's causing the problem?
_________________________
Tony Fabris

Top
#287300 - 29/09/2006 16:31 Re: Can I do this via FTP? [Re: tfabris]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
There are 26618 tracks on the player. It's got dual 80gb drives and about 12.5gb free space.

I'm completeing a sync right now and should have an exact error message in a bout an hour when it gets done "crashing" Emplode. I'll report back.
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287301 - 29/09/2006 16:37 Re: Can I do this via FTP? [Re: bodybag]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Question: Did you reinstall the player since applying the patch?
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#287302 - 29/09/2006 16:41 Re: Can I do this via FTP? [Re: bodybag]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
Yeah, OK, with that many tracks it wouldn't surprise me if you've run up against the limit, even with MaxFID installed. I forget what the upper limit is with MaxFID installed, but that might very well reach it.

So yeah, doing manual database rebuilds: Definitely try the site commands to see if you can do it with FTP. That'd simplify things for times when you don't have a serial cable handy.
_________________________
Tony Fabris

Top
#287303 - 29/09/2006 17:00 Re: Can I do this via FTP? [Re: tfabris]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
That's exactly the problem, no serial handy at work, only at home.
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287304 - 29/09/2006 17:07 Re: Can I do this via FTP? [Re: tfabris]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
Let's get back to this one thing for a minute... if I shouldn't reboot the player while it's in RWM mode using the front panel, then how should I get the player to re-start and re-build the databases via FTP once I've deleted all the necessary folders?
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287305 - 29/09/2006 17:15 Re: Can I do this via FTP? [Re: bodybag]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
From the serial port, you'd just type "exit", which would restart the player application. Rebooting while the player is in RW mode is going to cause it to run an fsck, which is going to take a looooong time with two 80GB drives.

However, doing a "SITE Q" won't work, because "Q" isn't a command to the OS, it's a command to the player application. Let me think about the easiest way to solve that problem.
_________________________
Bitt Faulk

Top
#287306 - 29/09/2006 17:20 Re: Can I do this via FTP? [Re: tfabris]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4174
Loc: Cambridge, England
Quote:
Um, to do the procedure properly, you shouldn't be rebooting the player while it's set to RWM. Because if you reboot while it's set to read-write, you run into this problem.

Only if you forcibly reboot it by yanking the power. An orderly restart from the player's own menus is fine, as it never unmounts the disk. When the player starts again, the disks are still RW, and it will correctly rebuild and rewrite the database.

Charlemagne^W Peter

Top
#287307 - 29/09/2006 17:20 Re: Can I do this via FTP? [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Quote:
I forget what the upper limit is with MaxFID installed, but that might very well reach it.

According to the linked thread, the max with maxfid is 43648. The default max is 21802.
_________________________
Bitt Faulk

Top
#287308 - 29/09/2006 17:22 Re: Can I do this via FTP? [Re: peter]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Quote:
Only if you forcibly reboot it by yanking the power.

Or use the Hijack reboot option, which is what I was thinking of.
_________________________
Bitt Faulk

Top
#287309 - 29/09/2006 17:25 Re: Can I do this via FTP? [Re: wfaulk]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4174
Loc: Cambridge, England
Quote:
Or use the Hijack reboot option, which is what I was thinking of.

Ah, right, yes, if that does an actual reboot then that too would be problematic. (If it just kills and restarts the player application, it would be fine.)

Peter

Top
#287310 - 29/09/2006 17:44 Re: Can I do this via FTP? [Re: wfaulk]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
So where would one modify the set maxfid app to go higher than 26618?
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287311 - 29/09/2006 17:56 Re: Can I do this via FTP? [Re: bodybag]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
Will this also keep Emplode from doing a "Checking Disk Intergrity" test everytime I sync?


Edited by bodybag (29/09/2006 17:57)
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287312 - 29/09/2006 18:12 Re: Can I do this via FTP? [Re: bodybag]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14484
Loc: Canada
Take care to note the exact terminology here: "reboot" means to effectively cycle power to the machine; "restart" means to kill off the player process and start it again with a command.

Cheers

Top
#287313 - 29/09/2006 19:11 Re: Can I do this via FTP? [Re: tfabris]
bodybag
addict

Registered: 07/03/2002
Posts: 504
Loc: Southern California
Quote:
Let's rewind a bit. ... exactly what is going wrong that's preventing a normal synch (what is the exact error message)...?


Here is the exact Error Message:

Synchorinze failed while writing player configuration.
An operation was attempted on something that is not a socket.
(error 0x80072736)
_________________________
Bodybag - So Cal
Not a Whiner any more!!!

Top
#287314 - 29/09/2006 19:19 Re: Can I do this via FTP? [Re: bodybag]
Mataglap
enthusiast

Registered: 11/06/2003
Posts: 384
The maxfid patch doesn't work quite that way; you can't set it for a particular number.

What happens is that the size of the dynamic data partition isn't absolutely set -- it depends on the size and geometry of your particular hard drives. Kind of like a rounding error, the actual partition size is going to be at least the set size, but there might be a little bit of extra space. It's like asking for 1.5 plates of food and the chef giving you two, because he only makes whole plates. If you want 0.8 plates, you get one, if you want 1.1 plates you get two. Integer units of measure. It's not rounding, and not truncating, I forget the exact term.

Newer and larger harddrives have larger minimum units for allocation. (Don't forget that the factory default drive sizes were like 8 & 12 gigs.) So when the disk is partitioned, in order to get the expected 16MB of disk space the partition may actually be 18MB or 21MB or 32MB or whatever it happens to be based on the geometry of that particular drive. (These numbers aren't real, but should serve as examples. Cylinders, heads, sectors, blocks, &c. are more detailed than I care to deal with right now, and then there's all the IDE dynamic addressing stuff.)

Mark's maxfid patch first figures out exactly how big your particular dynamic data partition is And then it overwrites the player binary file with a number that corresponds to the size of your dynamic data partition. What gets overwritten is a number that is based on a true 16MB partition, and takes into account how the dynamic data partition is allocated. So if you have a 22MB instead of the safe-to-assume 16MB, then you have 6 more MB's worth of fids, how ever many fids that ends up working out to.

When you run the program it will tell you how many fids there's room for. And that's the number you get. With an 80GB drive, you're likely to be fine, since you're not that far over the default max.

Bitt will likely post in a few minutes correcting all of the errors and assumptions I've made in this post.

--Nathan

Top
#287315 - 29/09/2006 19:59 Re: Can I do this via FTP? [Re: Mataglap]
TigerJimmy
old hand

Registered: 15/02/2002
Posts: 1049
Does all this mean that if one built their drive by hand, they could have a 40 or 50mb partition? Is there an upper limit to what will work with the patch?

Top
#287316 - 29/09/2006 20:24 Re: Can I do this via FTP? [Re: Mataglap]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Quote:
Bitt will likely post in a few minutes correcting all of the errors and assumptions I've made in this post.

Hell, no. You remembered it way better than I did.
_________________________
Bitt Faulk

Top
#287317 - 29/09/2006 20:35 Re: Can I do this via FTP? [Re: TigerJimmy]
Mataglap
enthusiast

Registered: 11/06/2003
Posts: 384
You could, but it would get overwritten the next time you applied a standard empeg upgrade image, which includes partitioning information.

If you only use tools like Mark's upgrader and the upgrade splitter and did everything manually, then you could, and have a different sized spare partition as well.

The dynamic data partition (hda3) doesn't need to be very big. There's a =lot= of technical details in the thread Bitt linked to above, and if 16MB gives you ~22k fids, then 32MB is going to be more than double that because the 16MB includes space for saving playlists.

I think most of us with 30GB+ drives end up with at least 30k fids just using the extra space with the default partitioning.

--Nathan

Top