Java Error on new install

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Java Error on new install

Postby jacobthe4th » Sat Feb 15, 2014 9:00 pm

Hello All,

I've been running some form of Subsonic since 2010, and I have been using MusicCabinet since 2012, more or less without issue. Last weekend, I was no longer able to connect to the server, as it had a java error.

So, I decided to take this time to rebuild my server, with a new OS... joy! All was going well enough with the new server (WHS 2011) and I decided to recover my music server once again. I installed Java 7, Postgre 9.2.1-1, installed Subsonic 4.7, and then installed the executable subsonic-musiccabinet-0.7-setup, but once I attempted to login, I experienced a Java error once again, but this time I was able to login into the server. I attempted, go to Settings and enter the Musiccabinet information for logging into Postgre and got the error below...

Code: Select all
Error
Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.

Exception   org.springframework.jdbc.CannotGetJdbcConnectionException
Message   Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
Java version   Oracle Corporation 1.7.0
Operating system   Windows Server 2008 R2 6.1
Server   jetty/8.y.z-SNAPSHOT
Memory   Used 44 of 54 MB
Stack trace   org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
   at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
   at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)
   at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:456)
   at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:464)
   at com.github.hakko.musiccabinet.dao.jdbc.JdbcLibraryBrowserDao.getFilesMissingMetadata(JdbcLibraryBrowserDao.java:741)
   at com.github.hakko.musiccabinet.service.LibraryBrowserService.getFilesMissingMetadata(LibraryBrowserService.java:143)
   at net.sourceforge.subsonic.controller.MediaFolderSettingsController.handleRequestInternal(MediaFolderSettingsController.java:79)
   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(Unknown Source)
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
   at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
   at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:641)
   at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
   at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
   at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
   ... 72 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
   at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1406)
   at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:594)
   at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:514)
   at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:707)
   at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:634)
   ... 75 more



Any ideas? Should I update to Postgre 9.2.6 or 9.3.2?

Also, before I torn down my old server, I copied the contents of the c:\cubsonic directory, what files do I need to copy over to get my users and settings back? I though it was just c:\subsonic\db and c:\subsonic\subsonic.properties

Any help will be much appreciated.

Thanks,

Jacob
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Re: Java Error on new install

Postby shadow.8 » Sat Feb 15, 2014 9:19 pm

It's been a while since I've been through the install process, but this thread suggest you need to choose "Configure MusicCabinet" before going into settings. Did you try that?

EDIT: Also, I have PostgreSQL 9.3.2 installed in my linux server and haven't had any issues.
676 artists
2,348 albums
26,738 songs
276.51 GB (~ 1,993 hours)
User avatar
shadow.8
 
Posts: 110
Joined: Wed Sep 26, 2012 12:12 am

Re: Java Error on new install

Postby jacobthe4th » Sat Feb 15, 2014 9:28 pm

It's been a while for me to on the install. You were right, once I clicked the url for Configuring MusicCabinet from the home page, entered my password, all was good.

Do you recall how restore your users from old install? I've searched the forum, but haven't found a good thread for that one yet.

Thanks
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Re: Java Error on new install

Postby shadow.8 » Sat Feb 15, 2014 9:35 pm

I don't, the last time I reinstalled I didn't worry about users or settings since I'm the only one on my server and didn't care. :P I did find this thread, it may be of help.
676 artists
2,348 albums
26,738 songs
276.51 GB (~ 1,993 hours)
User avatar
shadow.8
 
Posts: 110
Joined: Wed Sep 26, 2012 12:12 am

Re: Java Error on new install

Postby jacobthe4th » Sat Feb 15, 2014 10:02 pm

I saw that thread too, but did not drop those tables before, because I remembered doing this instead, but wasn't sure.

In case you ever have to do it...

Yes, it is the /subsonic/db directory and the subsonic.properties file.

Thanks again for your help
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 23 guests