Subsonic not starting in FreeNAS
I'm probably doing something dumb here, but I might as well check anyways...
I was running FreeNAS 0.69.1 i386. The machine has a hardware-controlled RAID5 for a total of 1 TB of storage space. I use a 750 GB HDD that has a swap partition, the partition for FreeNAS (10 GB), and the remaining partition is used for backups and stuff. I had Subsonic 3.7 working on it for a couple of months (and I loved it!).
Yesterday, I upgraded FreeNAS to 0.7RC1 i386. Everything worked after the upgrade, even Subsonic still worked. I put in a different router and was putting the ports in when I decided that I wanted to switch the port for Subsonic (8080) and the FreeNAS web GUI (80). I used the web GUI to switch over the FreeNAS port and then I went into the subsonic.sh file located in /var/subsonic/standalone/ and changed the port number to 80. I restarted, and nothing I happened. I switched the ports back around and it still didn't work.
I deleted all of the subsonic files from the standalone directory, remade the standalone directory, and untarred a fresh copy of Subsonic into that directory. I'm pretty sure that is how I installed it before, but I don't remember exactly. I didn't touch any of the files, but I did a restart. Still didn't load. I have a postInit set to run the sh file. Actually, that was still there after the FreeNAS upgrade, so it still should have worked. Even manually running the sh script from PuTTY doesn't work. Well, it says that it has started and it gives the the PID number, but when I list the processes with the ps command, it shows subsonic, but only for a second or two.
I've tried deleting the standalone directory and untarring a fresh copy of Subsonic...multiple times. I tried replacing all of the defaults in the sh file with the actual values, but still, no success.
I tried untarring the WAR file, which worked, but the directory structure didn't look like what it was supposed to look like. Even then, that still won't let the sh file run (and stay running). It's like something is preventing the script to run.
I chmod'ed the standalone folder to 777...nothing. I chmod'ed all of the files in the tar file to 777...nothing.
So you see....I'm lost at what to do. Or, I'm just doing something really dumb and obvious, which is a very good possibility. If anyone has any ideas at all, please help! I need my Subsonic!
UPDATE: Here's a copy of the log file (subsonic_sh.log) located in the /var/subsonic/ directory (not in the standalone directory). Also, I know that Java is working because I just installed the SockSo music software and it works (and it uses Java too).
I was running FreeNAS 0.69.1 i386. The machine has a hardware-controlled RAID5 for a total of 1 TB of storage space. I use a 750 GB HDD that has a swap partition, the partition for FreeNAS (10 GB), and the remaining partition is used for backups and stuff. I had Subsonic 3.7 working on it for a couple of months (and I loved it!).
Yesterday, I upgraded FreeNAS to 0.7RC1 i386. Everything worked after the upgrade, even Subsonic still worked. I put in a different router and was putting the ports in when I decided that I wanted to switch the port for Subsonic (8080) and the FreeNAS web GUI (80). I used the web GUI to switch over the FreeNAS port and then I went into the subsonic.sh file located in /var/subsonic/standalone/ and changed the port number to 80. I restarted, and nothing I happened. I switched the ports back around and it still didn't work.
I deleted all of the subsonic files from the standalone directory, remade the standalone directory, and untarred a fresh copy of Subsonic into that directory. I'm pretty sure that is how I installed it before, but I don't remember exactly. I didn't touch any of the files, but I did a restart. Still didn't load. I have a postInit set to run the sh file. Actually, that was still there after the FreeNAS upgrade, so it still should have worked. Even manually running the sh script from PuTTY doesn't work. Well, it says that it has started and it gives the the PID number, but when I list the processes with the ps command, it shows subsonic, but only for a second or two.
I've tried deleting the standalone directory and untarring a fresh copy of Subsonic...multiple times. I tried replacing all of the defaults in the sh file with the actual values, but still, no success.
I tried untarring the WAR file, which worked, but the directory structure didn't look like what it was supposed to look like. Even then, that still won't let the sh file run (and stay running). It's like something is preventing the script to run.
I chmod'ed the standalone folder to 777...nothing. I chmod'ed all of the files in the tar file to 777...nothing.
So you see....I'm lost at what to do. Or, I'm just doing something really dumb and obvious, which is a very good possibility. If anyone has any ideas at all, please help! I need my Subsonic!
UPDATE: Here's a copy of the log file (subsonic_sh.log) located in the /var/subsonic/ directory (not in the standalone directory). Also, I know that Java is working because I just installed the SockSo music software and it works (and it uses Java too).
- Code: Select all
63 [main] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@34a1fc: display name [org.springframework.context.support.ClassPathXmlApplicationContext@34a1fc]; startup date [Fri Aug 28 16:27:20 GMT 2009]; root of context hierarchy
243 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [applicationContext-deployer.xml]
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [applicationContext-deployer.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:369)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:184)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at net.sourceforge.subsonic.booter.Main.<init>(Main.java:16)
at net.sourceforge.subsonic.booter.Main.main(Main.java:21)
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:78)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:361)
... 14 more