Scanning the media folder does not add new media

Need help? Post your questions here.

Moderator: moderators

Scanning the media folder does not add new media

Postby dsides » Sat Feb 23, 2013 11:51 pm

First of all, I'm a big fan of Subsonic, and I have even donated to the project. It works very well, and I rarely run into issues. Using dSub on my Nexus 4 is a treat, and I love how I can carry my entire music collection wherever I go. However, I've been having this issue below since I started using Subsonic back in November.

Problem Description: Whenever Subsonic scans for newly added files in the "Enabled folder", it doesn't discover them. The only way I can get Subsonic to see my new files, and folders (if there is a new artist) is by first clicking "Clean up database" and then deleting the media folder, and re-enabling it. Simply forcing Subsonic to scan the media folder does nothing. I have tried clicking "refresh" but that does nothing.

Any help would be great.

Troubleshooting Steps: None. Other than what's stated above.

Playback Application and version: Remote web interface via (Firefox or Chrome) and dSub on various Android devices.
Subsonic Version: 4.7 (build 3106) – September 12, 2012
Server Version: jetty-6.1.x, java 1.7.0_13, Windows 7 x64 (48.3 MB / 73.1 MB)
Java Memory Limit: 256mb
Hardware Platform: Windows 7 x64

Code: Select all
Relevant lines from the log:
[2013-02-23 17:55:19,431] INFO MediaScannerService - Starting to scan media library.
[2013-02-23 17:55:19,819] INFO MediaScannerService - Scanned media library with 250 entries.
[2013-02-23 17:55:30,405] INFO MediaScannerService - Scanned media library with 13095 entries.
[2013-02-23 17:55:30,406] INFO MediaScannerService - Marking non-present files.
[2013-02-23 17:55:30,420] INFO MediaScannerService - Marking non-present artists.
[2013-02-23 17:55:30,422] INFO MediaScannerService - Marking non-present albums.
[2013-02-23 17:55:30,425] INFO MediaScannerService - Completed media library scan.
dsides
 
Posts: 1
Joined: Sat Feb 23, 2013 10:32 pm

Re: Scanning the media folder does not add new media

Postby hybrid512 » Mon Feb 25, 2013 8:41 am

Having the same issue.

Subsonic is working great so far but recently I added new files and Subsonic only registered the folders but not the content of these folders as if they were empty.
I refreshed many times, updated the database, cleaned the database, nothing can seems to work and the log doesn't state for any error.

Is there a way to activate a debug log ?

I checked the rights and they are all the same than the other files that have succesfully been registered before.

This happened without having updated anything neither on the server nor on Subsonic so I really don't understand what is happening here.

Regards.
hybrid512
 
Posts: 5
Joined: Mon Feb 11, 2013 9:58 am

Re: Scanning the media folder does not add new media

Postby hybrid512 » Mon Feb 25, 2013 9:26 am

I guess I'm on something ...

After many refresh/database cleanup/folders scan, nothing changed, I can see the folders in Subsonic but they are empty.

I moved my empty folders to the "Incoming" folder and then, everything is fine in "Incoming".
I then move them from "Incoming" to my root folder (where they were before) and now, everything is fine.

Maybe an option to force rebuild of the folder structure/database would be nice since it seems clean databse/scan folders doesn't work well.
hybrid512
 
Posts: 5
Joined: Mon Feb 11, 2013 9:58 am

Re: Scanning the media folder does not add new media

Postby ksn » Sat May 11, 2013 4:03 am

I am having the same problem as the original post. My library is currently linked to a network drive \\ipaddress\music.

Scanning does not update new songs. I have to delete the folder, clean up the database, then rescan the folder, which takes a considerably long time.

I have 13 days left on my trial and would really like to upgrade to pro, but not if I can't figure out why I can't easily update the library.

Any help is appreciated,
Thanks!
ksn
 
Posts: 4
Joined: Sat May 11, 2013 4:00 am

Re: Scanning the media folder does not add new media

Postby gurutech » Sat May 11, 2013 4:49 am

How do you have your drives mapped?

I had mine mapped from my server (running Linux) to a Windows PC (where my media is stored) as follows: (each line was a separate mapping, and a separate Windows Share)

\\server\media\music\
\\server\media\videos\
\\server\media\audiobooks\

And then in Subsonic, had each of these as a separate media folder.

When I figured out the problem as being a WINDOWS issue, I made changes to the IRPStackSize, but this would work for a while and then crap out again until I increased the IRP again, rebooted, synced, and waited for it to crap out yet again.

So, I made the following changes: On my Windows machine, I moved all of my media into a single folder/share called "Media", and mounted this single share in Linux as \\server\media\media\.

And then from Subsonic, I used the following as media folders:

\\server\media\media\music
\\server\media\media\videos
\\server\media\media\audiobooks

And I haven't run into the missing folders issue since.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Scanning the media folder does not add new media

Postby ksn » Sun May 12, 2013 8:36 am

Thanks, I'm not sure what an IRP Stack is. My Subsonic is installed on a Windows 7 machine.

I have an external drive connected to my router (airport extreme). Currently, I'm accessing it through \\ksn\music\ and in Subsonic I have it set up as \\ksn\music\ as well.

Do you mean, I should set up the subdirectories in Subsonic? So like:
\\ksn\music\rock
\\ksn\music\instrumentals
ksn
 
Posts: 4
Joined: Sat May 11, 2013 4:00 am

Re: Scanning the media folder does not add new media

Postby gurutech » Sun May 12, 2013 12:19 pm

If your Subsonic is installed on the same PC as the one where you store your media, then you probably won't need to edit the IRP - that's mainly for accessing files from another computer.

Here's how I have mine configured in Subsonic:
http://buster1.servemp3.com:8008/signatures/ss1.jpg

And how it's set up on my Windows machine:
http://buster1.servemp3.com:8008/signatures/ss2.jpg

I have the "Media" folder shared on Windows, and mapped to my Linux server. Previously, I had each of the subfolders as a separate share (ie. "Music", "Movies", and "Audiobooks", and each of these mapped to Linux separately.) This is where the IRP thing came into play - too many network connections to the same computer.

If your media is on the same computer as Subsonic, then in the media folders section, you should be able to just enter C:\Music or D:\Music to the paths - you don't need to enter the full "UNC" path.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Scanning the media folder does not add new media

Postby GJ51 » Sun May 12, 2013 3:57 pm

Settings/Media folders - uncheck all folders.

Scan with all folders unchecked.

Clean db

Recheck all media folders.

Scan library

Enjoy
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Scanning the media folder does not add new media

Postby frankspin » Fri May 17, 2013 2:08 pm

GJ51 wrote:Settings/Media folders - uncheck all folders.

Scan with all folders unchecked.

Clean db

Recheck all media folders.

Scan library

Enjoy

This works for me almost every time but I feel like this needs to happen to frequently when using it with network shares.
frankspin
 
Posts: 11
Joined: Fri Aug 06, 2010 2:31 pm

Re: Scanning the media folder does not add new media

Postby GJ51 » Sat May 18, 2013 4:26 pm

I'm certainly not suggesting that this is the way it should work - just merely sharing what I've found to be helpful.

I've moved all my sites to the Madsonic fork and find it to be very stable and not as prone to this issue.

There have been many nagging issues that never seem to get fixed with Subsonic, but I'm not the developer and can't explain why some of the persistent problems never get addressed. The underlying db crashes and failures are repeatedly referenced in posts, but never seem to get fixed. Hakko frequently posts about the shortcomings of the db Subsonic uses and has moves to Postgres in his Music Cabinet fork. MadEvil, Hakko, and Bushman4 have far more expertise in this area than I and many of their posts contain additional information on this topic.

I've moved to the Madsonic fork on a Windows Server platform using the latest Java version and 64 bit Tomcat 7 to run the war version. I am very happy with the features, stability, and integration with the Madsonic Android app.

YMMV

HTH

Additionally, MadEvil is very active on his forum site and addresses users questions and issues very quickly.

http://forum.madsonic.org/index.php
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Scanning the media folder does not add new media

Postby ksn » Sat May 25, 2013 1:12 pm

I tried installing Madsonic, it's pretty cool, but same issue with scanning new media. Have to clear DB and rescan in order to add new files.
ksn
 
Posts: 4
Joined: Sat May 11, 2013 4:00 am

Re: Scanning the media folder does not add new media

Postby GJ51 » Sat May 25, 2013 2:36 pm

Did you do a "Clean" install - removing all traces of any previous installation first?

I have two instances of Madsonic running and neither has any of the problems you're having. We add music almost daily without any problems. If you're installing over the old db you're most likely retaining the original defect that is causing the issue.

Save the data directory in a backup area. Uninstall Subsonic/Madsonic, delete the data directory, uninstall java.

Reboot the host machine, do a clean install of Java to the latest version, then install the latest version of Madsonic. This will generate a new clean db to start out with. Then start adding your music media folders.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Scanning the media folder does not add new media

Postby ksn » Sun May 26, 2013 11:12 am

Hmm, I uninstalled Madsonic, deleted the folder in Program Files, reinstalled and after changing a couple settings, all the music was back without having to do any scanning. What am I missing in the uninstall?
ksn
 
Posts: 4
Joined: Sat May 11, 2013 4:00 am

Re: Scanning the media folder does not add new media

Postby GJ51 » Sun May 26, 2013 2:33 pm

The data directory with the database - in Windows it's stored at C:\Subsonic.

The error is most likely in the database. When you reinstall any Subsonic version it will look to see if the data directory is still there and then use it. To generate a clean db you need to delete the original data directory first if you want a new clean db.

I'm not that familiar with Linux, but I think it's in something like var\Subsonic.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 27 guests