Failed to scan media library.

Need help? Post your questions here.
TUFF
Posts: 5
Joined: 27 Feb 2014, 17:48
Has thanked: 0
Been thanked: 1 time

Failed to scan media library.

Unread post by TUFF » 14 Oct 2015, 15:28

cant scan media library successfully.
i have 3 folders set in mediafolder. it loaded successfully. but second folder status is scanning. started tomcat again and same thing, also installed madsonic fresh.
first time scan works after install.
before i installed madsonic v6 version 5.x works fine

get error: ERROR MediaScannerService Failed to scan media library.

madsonic.log:
ERROR MediaScannerService - Failed to scan media library.
java.lang.NullPointerException
at org.madsonic.service.MediaFileService.createMediaFile(MediaFileService.java:915)
at org.madsonic.service.MediaFileService.updateChildren(MediaFileService.java:653)
at org.madsonic.service.MediaFileService.getChildrenOf(MediaFileService.java:326)
at org.madsonic.service.MediaScannerService.scanFile(MediaScannerService.java:478)
at org.madsonic.service.MediaScannerService.doFullScanLibrary(MediaScannerService.java:350)
at org.madsonic.service.MediaScannerService.access$200(MediaScannerService.java:51)
at org.madsonic.service.MediaScannerService$4.run(MediaScannerService.java:196)

Code: Select all

=========================================================================================
 VERSION:      MADSONIC 6.0 | BUILD: 7600 
 SERVLET:      TOMCAT 7.0.53 Server
 SERVER:       CPU: ICORE3 | ARCH: X64 | MEMORY: 8GB | HDD: 5TB
 OS:           WINDOWS 2012 R2
 SYSTEM:       SERVER
 INSTALLER:    STANDALONE
 JAVA:         ORACLE JRE 1.7
 BROWSER:      CHROME 44 | FIREFOX 39 | IE 11
 REPRODUCIBLE: YES
=========================================================================================

TUFF
Posts: 5
Joined: 27 Feb 2014, 17:48
Has thanked: 0
Been thanked: 1 time

Re: Failed to scan media library.

Unread post by TUFF » 14 Oct 2015, 21:13

tryed do full scan.
[10/14/15 7:47 PM] INFO MediaScannerService Marking non-present files.
[10/14/15 7:47 PM] INFO MediaScannerService Scanned media library with 0 entries.
[10/14/15 7:47 PM] INFO MediaScannerService WATCHDOG:SCAN: doFullScanLibrary() started
[10/14/15 7:47 PM] INFO MusicFolderDao Disable music folders

now empty list off files.. also tryed android client nothing to play.
funny thing is when open playlist all music is playing.. also player shows all files.
playlist editor says every file missing still it plays those.

now set query on db tools.
UPDATE media_file SET present=true
now i can play music.. from folder 1


what query i can use to enable all 3 folders?

TUFF
Posts: 5
Joined: 27 Feb 2014, 17:48
Has thanked: 0
Been thanked: 1 time

Re: Failed to scan media library.

Unread post by TUFF » 14 Oct 2015, 21:21

this was query result with SELECT * FROM media_file where TYPE='DIRECTORY'
before i use that update query.. so all scanned music files are on db but madsonic dont show them.

Code: Select all

Result

ID PATH FOLDER TYPE OVERRIDE FORMAT DATA TITLE ALBUM ALBUM_NAME ARTIST ALBUM_ARTIST DISC_NUMBER TRACK_NUMBER YEAR GENRE MOOD BPM COMPOSER BIT_RATE VARIABLE_BIT_RATE DURATION_SECONDS FILE_SIZE WIDTH HEIGHT COVER_ART_PATH PARENT_PATH PLAY_COUNT LAST_PLAYED COMMENT CREATED CHANGED LAST_SCANNED FIRST_SCANNED CHILDREN_LAST_UPDATED PRESENT VERSION RANK 
2443 G:\SERVE IV\MP3_II G:\SERVE IV\MP3_II DIRECTORY false                false      G:\SERVE IV 0   2015-10-06 01:55:47.212 2015-10-14 01:19:23.556 2015-10-14 03:00:10.461 2015-10-13 19:00:59.385 1970-01-01 02:00:00.0 false 5 0 
4428 E:\SERVE V\_Audiobooks E:\SERVE V\_Audiobooks DIRECTORY false             0.0   false      E:\SERVE V 0   2015-10-10 14:08:26.017 2015-10-10 14:08:26.017 2015-10-13 20:23:10.564 2015-10-13 19:02:31.838 1970-01-01 02:00:00.0 false 5 0 
0 E:\SERVE V\MP3_I E:\SERVE V\MP3_I DIRECTORY false             0.0   false      E:\SERVE V 0   2015-10-10 17:59:35.503 2015-10-10 17:59:35.503 2015-10-14 23:15:33.004 2015-10-13 19:00:11.342 2015-10-10 17:59:35.503 false 5 0 
EDIT:

i restored DB from backup now all files are show.. but not newly added music.. and dont want scan again before some fix?

Post Reply