#36 jempeg can't recover from inconsistency

open
nobody
None
5
2001-04-20
2001-04-20
Marc Merlin
No

When an upload fails for whatever reason, I need to use
emptool to fix the empeg database. Jempeg is dead in
the water and unable to fix it itself.
(I had to type repair and sync, maybe jempeg could do
that automatically, by using emptool or not)

Here's a sample emptool session:
moremagic(@va):~# emptool
Scanning Ethernet for an empegcar...
P socket.cpp 103 ( 7648): Binding to
0.0.0.0:8300empegcar 'Marc's Empeg' (ID number 0) found
at 10.1.3.227
Connection is 0x80a5660
P socket.cpp 79 ( 7648): Socket::CloseP #W
connection_unix.cpp 625 ( 7648): poll on socket timed
out (0ms)
P connection_unix.cpp 531 ( 7648): Flushed receive
buffer
2000 Checking
connection
[ 0%]P #W connection_unix.cpp 625 ( 7648): poll on
socket timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (2000ms)
2000 Checking
connection
[Done]P #W connection_unix.cpp 625 ( 7648): poll on
socket timed out (0ms)

2121 Downloading
2121 Starting
download
[Done]
2122 Retrieving tags
index [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)

2125 Rebuilding databases
2103 Locking player UIP #W connection_unix.cpp 625 (
7648): poll on socket timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2103 Locking player
UI
[Done]
2104 Checking player
media [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2104 Checking player
media
[Done]
2105 Enabling write
access [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2105 Enabling write
access
[Done]
2106 Removing old
databases
[Done]
2109 Rebuilding
databases
[ 0%]P #W connection_unix.cpp 625 ( 7648): poll on
socket timed out (0ms)
2109 Rebuilding
databases
[Done]
2110 Disabling write
access [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2110 Disabling write
access
[Done]
2111 Restarting
player
[ 0%]P #W connection_unix.cpp 625 ( 7648): poll on
socket timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P connection_unix.cpp 531 ( 7648): Flushed receive
buffer
2111 Restarting
player
[Done]
2112 Waiting for player to
restart [ 0%]P
#W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2112 Waiting for player to
restart [Done]
2121 Starting
download
[Done]
2122 Retrieving tags
index
[Done]
2123 Retrieving
databases
[Done]
2124 Retrieving
playlists
[Done]
3240 Found orphaned item Interlude: Come Back Interlude
(fid 20e0)
3240 Found orphaned item Love Will Never Do (Without
You) (fid 20f0)
3240 Found orphaned item Livin' In A World (They Didn't
Make) (fid 2100)
3240 Found orphaned item Alright (fid 2110)
3240 Found orphaned item Interlude: Hey Baby (fid 2120)
3240 Found orphaned item Escapade (fid 24e0)
3240 Found orphaned item Interlude: No Acid (fid 24f0)
3240 Found orphaned item Black Cat (fid 25b0)
3240 Found orphaned item Where Are You Now (fid 3e50)
3240 Found orphaned item Interlude - Twisted Elegance
(fid 40c0)
3240 Found orphaned item Velvet rope (fid 40d0)
3240 Found orphaned item You (fid 4870)
3240 Found orphaned item Got 'til it's gone (fid 4880)
3240 Found orphaned item Interlude - Speaker phone (fid
54a0)
3240 Found orphaned item My need (fid 54b0)
3240 Found orphaned item Interlude - Fasten your
seatbelts (fid 54d0)
3240 Found orphaned item Go deep (fid 54e0)
3240 Found orphaned item Free xone (fid 54f0)
3240 Found orphaned item Interlude - Memory (fid 5500)
3240 Found orphaned item Together again (fid 5510)
3240 Found orphaned item Interlude - On line (fid 5520)
3240 Found orphaned item Empty (fid 5530)
3240 Found orphaned item Interlude - Full (fid 5540)
3240 Found orphaned item What about (fid 5550)
3240 Found orphaned item Every time (fid 5560)
3240 Found orphaned item Tonight's the night (fid 5570)
3240 Found orphaned item I get lonely (fid 5580)
3240 Found orphaned item Rope burn (fid 5590)
3240 Found orphaned item Anything (fid 55a0)
3240 Found orphaned item Interlude - Sad (fid 55b0)
3240 Found orphaned item Special (fid 55c0)
1290 There are 31 unrepaired errors in the database
/> repair
Repairing database...
3241 Attached orphaned item Interlude: Come Back
Interlude (fid 20e0) to 'Unattached Items'
3241 Attached orphaned item Love Will Never Do (Without
You) (fid 20f0) to 'Unattached Items'
3241 Attached orphaned item Livin' In A World (They
Didn't Make) (fid 2100) to 'Unattached Items'
3241 Attached orphaned item Alright (fid 2110) to
'Unattached Items'
3241 Attached orphaned item Interlude: Hey Baby (fid
2120) to 'Unattached Items'
3241 Attached orphaned item Escapade (fid 24e0) to
'Unattached Items'
3241 Attached orphaned item Interlude: No Acid (fid
24f0) to 'Unattached Items'
3241 Attached orphaned item Black Cat (fid 25b0) to
'Unattached Items'
3241 Attached orphaned item Where Are You Now (fid
3e50) to 'Unattached Items'
3241 Attached orphaned item Interlude - Twisted
Elegance (fid 40c0) to 'Unattached Items'
3241 Attached orphaned item Velvet rope (fid 40d0) to
'Unattached Items'
3241 Attached orphaned item You (fid 4870) to
'Unattached Items'
3241 Attached orphaned item Got 'til it's gone (fid
4880) to 'Unattached Items'
3241 Attached orphaned item Interlude - Speaker phone
(fid 54a0) to 'Unattached Items'
3241 Attached orphaned item My need (fid 54b0) to
'Unattached Items'
3241 Attached orphaned item Interlude - Fasten your
seatbelts (fid 54d0) to 'Unattached Items'
3241 Attached orphaned item Go deep (fid 54e0) to
'Unattached Items'
3241 Attached orphaned item Free xone (fid 54f0) to
'Unattached Items'
3241 Attached orphaned item Interlude - Memory (fid
5500) to 'Unattached Items'
3241 Attached orphaned item Together again (fid 5510)
to 'Unattached Items'
3241 Attached orphaned item Interlude - On line (fid
5520) to 'Unattached Items'
3241 Attached orphaned item Empty (fid 5530) to
'Unattached Items'
3241 Attached orphaned item Interlude - Full (fid 5540)
to 'Unattached Items'
3241 Attached orphaned item What about (fid 5550) to
'Unattached Items'
3241 Attached orphaned item Every time (fid 5560) to
'Unattached Items'
3241 Attached orphaned item Tonight's the night (fid
5570) to 'Unattached Items'
3241 Attached orphaned item I get lonely (fid 5580) to
'Unattached Items'
3241 Attached orphaned item Rope burn (fid 5590) to
'Unattached Items'
3241 Attached orphaned item Anything (fid 55a0) to
'Unattached Items'
3241 Attached orphaned item Interlude - Sad (fid 55b0)
to 'Unattached Items'
3241 Attached orphaned item Special (fid 55c0) to
'Unattached Items'
Repaired 31 faults
Use "sync" to sychronise changes with player
/> sync
2100
Synchronising
[ 0%]
2101 Starting synchronise
2102 Checking connection
status [ 0%]P
#W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2102 Checking connection
status [Done]
2103 Locking player
interface [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2103 Locking player
interface
[Done]
2104 Checking player
media [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2104 Checking player
media
[Done]
2105 Enabling write
access [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2105 Enabling write
access
[Done]
2106 Removing old
database
[Done]
2100
Synchronising
[ 11%]
2109 Rebuilding
databases
[ 0%]P #W connection_unix.cpp 625 ( 7648): poll on
socket timed out (0ms)
2109 Rebuilding
databases
[Done]
2110 Disabling write
access [
0%]P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2110 Disabling write
access
[Done]
2111 Restarting
player
[ 0%]P #W connection_unix.cpp 625 ( 7648): poll on
socket timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P #W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
P connection_unix.cpp 531 ( 7648): Flushed receive
buffer
2111 Restarting
player
[Done]
2112 Waiting for player to
restart [ 0%]P
#W connection_unix.cpp 625 ( 7648): poll on socket
timed out (0ms)
2112 Waiting for player to
restart [Done]
2121 Starting
download
[Done]
2122 Retrieving tags
index
[Done]
2123 Retrieving
databases
[Done]
2124 Retrieving
playlists
[Done]
2100
Synchronising
[Done]
2119 Finished synchronise
2120
Downloading
[ 0%]
2120
Downloading
[Done]

Discussion


Log in to post a comment.