Unoffical empeg BBS

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

Topic Options
#190129 - 19/11/2003 15:18 Hijack Bug (per request of the faq master)
kswish0
enthusiast

Registered: 06/02/2002
Posts: 212
Loc: Virginia, USA
Using Tony's advice from this thread

I reinstalled 2.00 to get rid of hijack and everything worked perfectly fine again. Then I downloaded a new hijack file incase my old one was corrupt, and reinstalled it. Same problem again.
Mark, could you please look here and here

edit:(changed stupid typo to make everyone happy )


Edited by kswish0 (19/11/2003 18:17)

Top
#190130 - 19/11/2003 15:34 Re: Hijack Bug (per request of the faq master) [Re: kswish0]
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
advice.
thats another one that gets to me. not that i want you to change for me, of course.

Top
#190131 - 19/11/2003 15:42 Re: Hijack Bug (per request of the faq master) [Re: RobotCaleb]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Heh, and I just got done watching this week's StrongBad...

Y - O - U - R...
Y - O - U - apostrophe - R - E...
They're as different as night and daaaaay...
Don't you think night and day are diiiiiiferent?"
_________________________
Tony Fabris

Top
#190132 - 19/11/2003 17:19 Re: Hijack Bug (per request of the faq master) [Re: tfabris]
strong_bad
new poster

Registered: 11/04/2003
Posts: 14
What's wrooooong with youuuu.
_________________________
Holy Crap

Top
#190133 - 20/11/2003 02:57 Re: Hijack Bug (per request of the faq master) [Re: kswish0]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
I reinstalled 2.00 to get rid of hijack and everything worked perfectly fine again. Then I downloaded a new hijack file incase my old one was corrupt, and reinstalled it. Same problem again.

I think I am currently fighting with the same bug. Something is creating new style FID directories (/empeg/fids0/_00000) on a player using the old fid structure. Once those directories exist jemplode (not sure about emplode) will start using them on the next sync and you will lose access to any previously uploaded music.

I am guessing this is related to the fid rewriting code added around hijack 344 so if you have an older copy you might try downgrading. Perhaps the player software is getting confused by the fid rewriting and trying to be helpful by creating the directories?

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190134 - 20/11/2003 03:25 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Perhaps the player software is getting confused by the fid rewriting and trying to be helpful by creating the directories?
Player v2 never creates directories; player v3 always does. Both versions cope fine with a situation where some fids are in subdirectories and some aren't.

Peter

Top
#190135 - 20/11/2003 03:53 Re: Hijack Bug (per request of the faq master) [Re: peter]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Both versions cope fine with a situation where some fids are in subdirectories and some aren't.

Must be a jemplode or hijack bug then (or my player is possessed). If I have fids in a subdirectory under v2 all music in the main fids directories disappears in jemplode. I haven't checked to see if it is still accessible from the player.

Also, if both versions of the player software can handle mixed directory structures then why does the fid path rewriting code even exist in hijack?

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190136 - 20/11/2003 18:12 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
kswish0
enthusiast

Registered: 06/02/2002
Posts: 212
Loc: Virginia, USA
Does anyone have an older version of hijack I could use? I want one that is before the fids stuff, so pre 344.

Top
#190137 - 20/11/2003 19:38 Re: Hijack Bug (per request of the faq master) [Re: kswish0]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
You can try this one. It is version 340 with ext3 filesystem support enabled (shouldn't affect anything).

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190138 - 20/11/2003 19:54 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
kswish0
enthusiast

Registered: 06/02/2002
Posts: 212
Loc: Virginia, USA
I dont want to sound like an idiot but how do I upload this hijack. I've always used logo edit but this file is a different format than what I normally get from the hijack site. Logo edit wont recognize it.

Top
#190139 - 20/11/2003 21:29 Re: Hijack Bug (per request of the faq master) [Re: kswish0]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Sorry about that, it is compressed with gzip. WinZip or something similar should be able to uncompress it and then logo edit should recognize it. It is possible you also will need to rename it to somefilename.zImage

-Mike


Edited by mcomb (20/11/2003 21:31)
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190140 - 20/11/2003 22:52 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
zImage kernel files are already Gzip'd internally. Doing it again externally saves only a few bytes at best, and confuses people sometimes..

Cheers

Top
#190141 - 20/11/2003 22:58 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
>Also, if both versions of the player software can handle mixed directory
>structures then why does the fid path rewriting code even exist in hijack?

Simply because players prior to v3.0 never CREATE subdirs when uploading, so one can end up with a mishmash of stuff without Hijack doing it's thing. This is all described in gory detail in the Hijack release notes.

The problem in this particular thread is also a documented Hijack behaviour, but it seems that I may need to alter it to deal with slightly screwy setups.

-ml

Top
#190142 - 20/11/2003 23:01 Re: Hijack Bug (per request of the faq master) [Re: mlord]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
zImage kernel files are already Gzip'd internally. Doing it again externally saves only a few bytes at best, and confuses people sometimes

Yeah, but if the file can be uncompressed then you know it wasn't corrupted by a browser that downloaded it in ascii mode.

Did you get a chance to look into this possible bug? I was looking through the fid mangling code in hijack trying to decide if there was a condition where a fid subdirectory would be created on a a player with the old style layout, but it is a little over my head.

-Mike

EDIT: Never-mind you answered while I was asking


Edited by mcomb (20/11/2003 23:05)
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190143 - 21/11/2003 00:21 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Yeah. Still not sure how the fids dirs suddenly appear, but that's not really an issue one way or an other. The original Hijack fids implementation was to use subdirs EXCLUSIVELY if they exist, which turns out to be the real problem here. So I (think I) just modified v346 so that for read accesses (eg. rebuilding the database), Hijack no longer mangles anything, but rather lets the player do it's usual searching instead. This will be slower than the original method, but not a lot slower. And much more tolerant of weird stuff, as it turns out.

Cheers

Top
#190144 - 21/11/2003 01:53 Re: Hijack Bug (per request of the faq master) [Re: mlord]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Cool. While we are on the subject does the FID mangling for writes apply to hijack's ftp server as well (i.e. if I upload a fid via ftp to /empeg/fids?/XYZ hijack will put it in the appropriate subdirectory)?

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190145 - 21/11/2003 02:07 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
kswish0
enthusiast

Registered: 06/02/2002
Posts: 212
Loc: Virginia, USA
Sorry about that, it is compressed with gzip. WinZip or something similar should be able to uncompress it and then logo edit should recognize it. It is possible you also will need to rename it to somefilename.zImage
Before I even asked, I tried to unzip it using winzip and it said it was not a valid archive. I also noticed, that it was named differently and tried renaming it and that didn't work either. After reading this post, I tried unzipping it with several different programs and its still not working. They all say its not a valid archive. Could you please attach the file unarchived, just as it would be if I downloaded it from the hijack site.

I also just tried the new v346. No dice. The same thing is still happening on my player. It says its playing but its not. What could I have done in the process of rebuilding my corrupt database that would cause this problem?

Top
#190146 - 21/11/2003 02:32 Re: Hijack Bug (per request of the faq master) [Re: kswish0]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
I tried to unzip it using winzip and it said it was not a valid archive

See Mark, that is why I gzip things

Your browser is probably mangling the file. I seem to remember there being a windows program named GetRight that is supposed to work in these situations. Anyway, you can try the uncompressed version, but that may get messed up also.

What could I have done in the process of rebuilding my corrupt database that would cause this problem?


I suspect you have duplicate playlist fids at this point. Did you ever run Mark's fidsift.sh script to rearrange your files? If not you can probably safely remove any directories on your empeg beginning with /empeg/fids0/_0 and /empeg/fids1/_0 and your player will go back to a more normal state. I would try moving or renaming those directories and see what happens.

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#190147 - 21/11/2003 09:04 Re: Hijack Bug (per request of the faq master) [Re: mcomb]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Yes. Any writes to /empeg/fids get "mangled", but reads do NOT.

But the change has broken many things, so I'm going to have to have another hack at it today.. Eg. httpd playlists no longer work.

-ml

Top
#190148 - 21/11/2003 10:27 Re: Hijack Bug (per request of the faq master) [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Oh, sod it.

I'll go in and revamp it on the weekend, perhaps. Weather is too nice outside right now to continue with this frustration..

Gone caching..

Top
#190149 - 21/11/2003 17:15 Re: Hijack Bug (per request of the faq master) [Re: mlord]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
I'm sorry if this is a dumb question, but I'm not sure I fully understand the problem: Would it be best to hold off on sending files to the player until this gets sorted out?
_________________________
Brad B.

Top
#190150 - 22/11/2003 20:59 Re: Hijack Bug (per request of the faq master) [Re: SE_Sport_Driver]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
No.

But running fidsift.sh afterwards would be useful.

Cheers

Top