I can't play some tracks

Need help? Post your questions here.

Moderator: moderators

I can't play some tracks

Postby nitche » Mon Mar 18, 2013 12:52 pm

subsonic 4.7 + MusicCabinet

i uploaded a lot of files directly to my server and moves them to home/music/ (at the beginning they was in var/). they are all at root and 755. today, i can play only some artists, but for a lot the player doesn't lauch. it's not a problem of mp3/flac. i restarted subsonic, i entered my new folders in the settings, i re-scanned. do you have an issue for this please?

log message after a song not played: [2013-03-18 13:40:13,891] DEBUG StreamController - got mfId = 325 from param 325

Edit: when i do F5, a pop-up appears with this message: "error" ...

the problem seems to come from MusicCabinet (or lastfm?), because when i browse from files in the left menu, tracks are played.
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby hakko » Mon Mar 18, 2013 4:04 pm

Try adding your upload directory as a media folder, and scan. Then remove the upload directory as a media folder, and scan again.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: I can't play some tracks

Postby nitche » Mon Mar 18, 2013 4:07 pm

ok, i will try tonight. but there are hours of uploading made :(
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby hakko » Mon Mar 18, 2013 4:27 pm

I'm not telling you to remove the files that you have uploaded? I'm just saying that to force a full scan of your hard drive, you have to add / as a media folder (Settings -> Media folders), and scan it. Then remove it as a media folder, and scan again.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: I can't play some tracks

Postby nitche » Tue Mar 19, 2013 12:43 pm

i followed your instructions: scan / as a folder, then remove, then rescan. actually, it really made a full scan of something because it was much longer than yesterday. but the result is exactly the same, same files played and same not :(

new info: when i go to "file tree", folders appears as empty, but not for folders where files are played. i don't understand because all the rights are the same on folders...

edit: today, logs have changed: "[19/03/13 14:41:23 CET] DEBUG MediaFileService media file not in memory, load meta data from db!"
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby nitche » Tue Mar 19, 2013 3:32 pm

Exception java.lang.NullPointerException
Message null
Java version Oracle Corporation 1.7.0_15
Operating system Linux 3.2.13-grsec-xxxx-grs-ipv6-64
Server jetty/8.y.z-SNAPSHOT
Memory Used 52 of 87 MB
Stack trace java.lang.NullPointerException
at net.sourceforge.subsonic.controller.ArtistController.setArtistInfo(ArtistController.java:148)
at net.sourceforge.subsonic.controller.ArtistController.handleRequestInternal(ArtistController.java:89)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:365)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:722)
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby hakko » Tue Mar 19, 2013 10:42 pm

If you don't mind posting your subsonic.log and musiccabinet.log file, I'd like to have a look. Locations for them are found from the about view. Also, the more details you can give on your setup, the more it helps. I can't really follow your first post on how this happened, and getting one line from the log file doesn't help either (those are normal debug statements).

Useful information would be for example
-if you ever had it working fine or if this started immediately on installation
-the location of your media folders
-how they relate to the music you moved around
-your general directory structure
-if you have the same music in multiple folders etc.
Otherwise I'll just be guessing quite blindly.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: I can't play some tracks

Postby nitche » Wed Mar 20, 2013 9:06 am

sorry if i not explain very well, i am french and my english is not very good.

i try to describe again the situation: because of my provider's setings on the server, i had to move my audio files from var/www/ to home/music/ (the / partition is different from the home/ partition and have a small disk space). when i installed subsonic, it seemed to work fine, although i did not test all files, because i upload a lot of files with winSCP. with musiccabinet, i'm not sure if it was working at the beginning.

i hope this answers yours questions. and i have my music only in home/music and then in sub-folders. i send you my logs as attachments. thanks again for giving me your time.

note: yesterday, i uploaded a new directory and files are played. if it resolves the problem for all directories, i still can upload all files again, it don't mind...

EDIT: i don't understand why i see the files/ folder which was delected days ago. do i have to clean the database? how can i do that?
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby hakko » Wed Mar 20, 2013 10:18 pm

Thanks for the logs! I think I've found one error that's purely my fault.

I also think that the reason that some files cannot be read is a character encoding issue, for example for 01 - Los Natas - Traici�n en el Arrocero (Tomatito).mp3. Can you double check that your system locale is set to xx_XX.UTF8 and that your subsonic.sh startup script uses the parameter -Dfile.encoding=UTF8 ?

To clean the database from all info of scanned files, connect to it using psql or pgAdmin III. Issue the sql command "truncate library.directory cascade;" to delete all traces of indexed files.

Sorry about the hassle.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: I can't play some tracks

Postby nitche » Thu Mar 21, 2013 1:39 pm

hi,

- my system locale is set to xx_XX.UTF8, i checked;
- i did not find the parameter -Dfile.encoding=UTF8 in my subsonic.sh startup script, and no line with "Dfile.encoding";
- you should explain how to find the tables/bases to execute your sql command, because i don't know postgre, and i would need newbies'instructions for it. the psql command lines would be great, knowing that i used the default installation, i should find it easily with yours steps.

if you tell me that it can be an encoding problem, a friend of mine tells me that it can be because of winSCP, which doesn't respect encodings. i uploaded files in part with winSCP and in part with ubuntu, so it can make the difference. but that doesn't explain why the old tree "files" is still shown in the interface.

thx again for your time.
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby hakko » Thu Mar 21, 2013 9:37 pm

Yeah, encoding problems can be a pain to solve. To be honest, the easiest way is just to use plain ascii for filenames. The indexing of files and the file tree works slightly different so it can definitely be that one works and the other doesn't.

I wrote an FAQ thread on how to connect to your database. Here it is: viewtopic.php?f=11&t=11772
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: I can't play some tracks

Postby nitche » Fri Mar 22, 2013 8:21 am

the easiest way is just to use plain ascii for filenames
: that's ok for me, but the bug detected (songs in catalog not played, directories empty in files tree) doesn't concern filenames, because english groups have the problem, and for the example you gave (Los Natas, an argentin stoner group, with somes titles in spanish, and sources of decoding caracters problem detected in logs), there are many titles with only plain ascii caracters.

actually, i already connected to posgre with psql yesterday, but i don't know the syntax (who to see databases? tables?), and my request was a step by step helping to empty indexed files, because your sql command "truncate library.directory cascade;" doesn't match if i use it just after entering psql.

i don't give up, because i still believe that subsonic and musiccabinet are great programs. maybe this week-end i will uninstall all the stuff, including postgre, and clean my directories uploaded through winSCP. i will tell you about it. :wink:
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm

Re: I can't play some tracks

Postby nitche » Sun Mar 24, 2013 6:18 pm

i did it!

here are the sql commands to clean the musiccabinet database:
sudo -u postgres psql
\connect musiccabinet;
truncate library.directory cascade;

the second one was the one i need to execute your command :)

then i rescanned files, and all the files seem to be playable now, even those who did not before the truncate! :D
maybe it was not an encoding problem, maybe the move directory caused an error and it tried to play files from old paths...
nevertheless, thanks a lot for your help, i will talk about subsonic and musiccabinet, because when it works it's a great application :wink:
nitche
 
Posts: 18
Joined: Mon Mar 11, 2013 2:48 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 31 guests