Can't rescan my Folders, due to Missing File/Folder

Post your Server Bug Report
KaeTuuN
Posts: 38
Joined: 09 Feb 2015, 23:30
Has thanked: 5 times
Been thanked: 17 times

Can't rescan my Folders, due to Missing File/Folder

Unread post by KaeTuuN » 25 Jun 2019, 18:16

Code: Select all

=========================================================================================
 VERSION:      Server 7.0.10390.a6fd24b.20190510.0829
 SERVLET:      JETTY
 SERVER:       CPU: Core i3-6100 | ARCH: x64 | MEMORY: 16GB
 OS:           WINDOWS 2012 R2 | WINDOWS 10 | DEBIAN 8.1 | FREBSD 9.1 | OSX | OTHER
 SYSTEM:       Ubuntu 18.04 LTS Server
 INSTALLER:    DEB
 JAVA:         OpenJDK 11.0.3
 DESCRIPTION:  See below
 REPRODUCIBLE: YES
 LOGGING:         No Logentry created (Loglevel: "DEBUG")
=========================================================================================
What I tried to do:
Clicked "Settings" -> "Media Tools" -> "Normal Rescan"

What Happened:
I got the following Error Message (Replaced Usernames with "<UsernName>").

Code: Select all

Exception 	java.io.FileNotFoundException
Message 	/var/media/playlists/backup/Various Artists - <UsernName> - 09.05.2019, 17-49.m3u8 (No such file or directory)
Java version 	Oracle Corporation 11.0.3
Operating system 	Linux 4.15.0-52-generic
Server 	jetty/9.4.z-SNAPSHOT
Memory 	Used 138 of 260 MB
Stack trace 	java.io.FileNotFoundException: /var/media/playlists/backup/Various Artists - <UsernName> - 09.05.2019, 17-49.m3u8 (No such file or directory)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
	at java.base/java.io.FileOutputStream.(FileOutputStream.java:237)
	at java.base/java.io.FileOutputStream.(FileOutputStream.java:126)
	at java.base/java.io.FileWriter.(FileWriter.java:66)
	at org.madsonic.service.PlaylistService.backupAllPlaylists(PlaylistService.java:303)
	at org.madsonic.controller.CleanupSettingsController.handleRequestInternal(CleanupSettingsController.java:127)
	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:933)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.madsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:44)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.madsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:63)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.madsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:60)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.madsonic.filter.MetricsFilter.doFilter(MetricsFilter.java:54)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:753)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:505)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:427)
	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:321)
	at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
	at java.base/java.lang.Thread.run(Thread.java:834)
When I create a DB Query "SELECT * from playlist" I can see the playlist named in the ERROR Message.
Created: 2019-05-09 17:49:54.161
Changed: 2019-06-25 03:01:05.123
Found these two Logentries wich have a corresponding Timestamp:
[25.06.19, 03:01] INFO PlaylistService Starting playlist import.
[25.06.19, 03:01] INFO PlaylistService Completed playlist import.

Last automatic Folder Scan: 2019-06-25 03:00 -> Was successful

Further Investigating:
Listed all Playlist Elements: "SELECT * FROM media_file WHERE ID in (SELECT media_file_id FROM playlist_file WHERE playlist_id = 1)"
Checked if all Files Exist with "find" Command on Server -> They do
Checked if File "/var/media/playlists/backup/Various Artists - <UsernName> - 09.05.2019, 17-49.m3u8" exist -> No, even the folder "/var/media/" does not exist, but other Playlists don't throw errors -> Might be a virtualised Folder?


So, what can I do know?

Greetings Kae

User avatar
Matt Zornig
Contributor
Contributor
Posts: 241
Joined: 14 Feb 2017, 12:03
Has thanked: 38 times
Been thanked: 26 times

Re: Can't rescan my Folders, due to Missing File/Folder

Unread post by Matt Zornig » 09 Jul 2019, 15:05

No help here, but maybe further investigation :-)
KaeTuuN wrote:
25 Jun 2019, 18:16
Further Investigating:
Listed all Playlist Elements: "SELECT * FROM media_file WHERE ID in (SELECT media_file_id FROM playlist_file WHERE playlist_id = 1)"
It would be useful, if we can see the output from this command.
KaeTuuN wrote:
25 Jun 2019, 18:16
Checked if File "/var/media/playlists/backup/Various Artists - <UsernName> - 09.05.2019, 17-49.m3u8" exist -> No, even the folder "/var/media/" does not exist, but other Playlists don't throw errors -> Might be a virtualised Folder?
Where are those other playlists located, which don't thow errors?

Post Reply