Page 1 of 1

Music scan appears to be hung

PostPosted: Tue Feb 12, 2013 11:55 pm
by killermojo
Would love to get this working, but the media scan does not seem to be working! My setup:

Ubuntu Server 12.04
Standalone Subsonic 4.7 install at /var/srv/subsonic/
Applied latest version of standalone music cabinet
Installed Java 7
Installed postgresql 9.1
Signed into last.fm
Started music scan

The music scan then hangs here:

Progress:

directories found during search [not started]
0 new files read for meta-data
artist relations [not started]
artist top tracks [not started]
artist tags [not started]
artist biographies [not started]
album descriptions [not started]
tag descriptions [not started]
weekly group artist charts [not started]
tag top artists [not started]
user top artist periods [not started]
user recommended artists [not started]
scrobbled tracks statistics [not started]

Any ideas??

Re: Music scan appears to be hung

PostPosted: Wed Feb 13, 2013 12:05 am
by shadow.8
Anything in /var/srv/subsonic/subsonic_sh.log ?

Re: Music scan appears to be hung

PostPosted: Wed Feb 13, 2013 12:14 am
by killermojo
Hmm good idea. Here's what I see on the last few lines. The GC lines are incrementing, but checking the postgresql db and nothing is being inserted..:

013-02-12 17:12:36.909:INFO:/:Initializing Spring FrameworkServlet 'subsonic'
[GC 46785K->20445K(141376K), 0.0081580 secs]
[GC 47581K->20233K(131904K), 0.0068070 secs]
[GC 47369K->20683K(140352K), 0.0033580 secs]
[GC 46155K->21099K(128448K), 0.0022530 secs]
[GC 46571K->21718K(140160K), 0.0019130 secs]
2013-02-12 17:12:37.835:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:4040
Subsonic running on: http://localhost:4040/
[GC 38016K->25969K(140288K), 0.0043380 secs]
[Full GC 25969K->20737K(140288K), 0.0895260 secs]
Load user admin
[GC 45313K->24826K(138432K), 0.0074610 secs]
[GC 50106K->29757K(139712K), 0.0068710 secs]
[GC 55031K->34577K(140672K), 0.0109690 secs]
[GC 61585K->34924K(141056K), 0.0126700 secs]

Re: Music scan appears to be hung

PostPosted: Wed Feb 13, 2013 12:32 am
by shadow.8
Seems to be working. How big is your music collection? How long has it been running? It will take some time the first time. What happens when you press the refresh button on the bottom of the frame?

Re: Music scan appears to be hung

PostPosted: Wed Feb 13, 2013 6:45 am
by hakko
Also check the musiccabinet.log. Location is found from the About view.

Note that log files are overwritten when you restart the service, so you have to check them when the error occurs.

Re: Music scan appears to be hung

PostPosted: Thu Feb 14, 2013 8:34 pm
by killermojo
I let it run overnight... Everything still reads not started. Forgot to grab the log before restarting the serv, but this is what musiccabinet.log looks like after attempting another scan:

[2013-02-14 13:27:39] INFO PlaylistGeneratorService - MusicCabinet playlist service started at Thu Feb 14 13:27:39 MST 2013.
[2013-02-14 13:27:40] DEBUG DatabaseAdministrationService - databaseUpdated = true
[2013-02-14 13:27:40] DEBUG DatabaseAdministrationService - databaseCreated = true
[2013-02-14 13:27:40] DEBUG PlaylistGeneratorService - allowed radio song length interval (45, 600)
[2013-02-14 13:31:44] DEBUG PlaylistGeneratorService - allowed radio song length interval (45, 600)
[2013-02-14 13:31:44] INFO LibraryUpdateService - Starting library update. Scan [/var/srv/subsonic/Library], offline = false
[2013-02-14 13:31:46] DEBUG PlaylistGeneratorService - allowed radio song length interval (45, 600)
[2013-02-14 13:31:54] DEBUG PlaylistGeneratorService - allowed radio song length interval (45, 600)
[2013-02-14 13:31:55] DEBUG PlaylistGeneratorService - allowed radio song length interval (45, 600)

Library is a symlink to my music store.

Re: Music scan appears to be hung

PostPosted: Thu Feb 14, 2013 9:10 pm
by killermojo
Okay, I tried running it with the default directory (/var/subsonic/) and it's working fine now.

Re: Music scan appears to be hung

PostPosted: Fri Mar 15, 2013 9:26 pm
by efang
Hi, I'm having the same issue, and my library is also symlinked. I'm not completely understanding your solution. You just removed the symlink?