Madsonic doens't start anymore after upgrading on OSX

Post your Server Bug Report

Madsonic doens't start anymore after upgrading on OSX

Unread postby skopo » 15 Dec 2014, 18:06

For some reason Madsonic doens't start anymore after upgrading 5.2 Beta2.

How to troubleshoot?
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times

Re: Madsonic doens't start anymore after upgrading

Unread postby Madevil » 15 Dec 2014, 18:20

Hi there,

Please provide more Infos:

  • used operating system
  • used CPU architecture
  • used server memory
  • used Java version
  • Madsonic Build before
  • Madsonic Build upgrade to
  • Error messages
  • Log entries

it is very difficult to make diagnoses without any clues. ;)

Support guide: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Best regards
User avatar
Madevil
Administrator
Administrator
 
Posts: 881
Joined: 07 Dec 2012, 03:58
Has thanked: 1281 times
Been thanked: 947 times

Re: Madsonic doens't start anymore after upgrading

Unread postby skopo » 15 Dec 2014, 18:47

  • used operating system: OSX 10.10.1
  • used CPU architecture: i5 sandybridge x64
  • used server memory: old one 64.4 MB / 81.1 MB
  • used Java version: Java 7. update 71
  • Madsonic Build before: 5.0.3830
  • Madsonic Build upgrade to: 5.2 Beta2
  • Error messages: N/A just doens't start. no process
  • Log entries: How to find on osx?
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times

Re: Madsonic doens't start anymore after upgrading

Unread postby Madevil » 15 Dec 2014, 18:58

skopo wrote:
  • used operating system: OSX 10.10.1
  • used CPU architecture: i5 sandybridge x64
  • used server memory: old one 64.4 MB / 81.1 MB
  • used Java version: Java 7. update 71
  • Madsonic Build before: 5.0.3830
  • Madsonic Build upgrade to: 5.2 Beta2
  • Error messages: N/A just doens't start. no process
  • Log entries: How to find on osx?


I wish also such a Mac for testing, but need to test it all even virtually. :(

Maybe the new Madsonic starter script doesn't work right on Yosemite.

Infos about the OSX installer can found here: http://beta.madsonic.org/installation.jsp#mac

best regards
User avatar
Madevil
Administrator
Administrator
 
Posts: 881
Joined: 07 Dec 2012, 03:58
Has thanked: 1281 times
Been thanked: 947 times

Re: Madsonic doens't start anymore after upgrading

Unread postby skopo » 15 Dec 2014, 19:24

Maybe the new Madsonic starter script doesn't work right on Yosemite.


I think that might cause the problem.

But problem remains with my older mac on work that runs 10.9.4. (test bench for everything. Should be re-installed from very beginning)
I have tried to get standalone running but problem remains the same (even with older builds) it just won't start.
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times

Re: Madsonic doens't start anymore after upgrading

Unread postby Madevil » 15 Dec 2014, 19:49

skopo wrote:
Maybe the new Madsonic starter script doesn't work right on Yosemite.


I think that might cause the problem.

But problem remains with my older mac on work that runs 10.9.4. (test bench for everything. Should be re-installed from very beginning)
I have tried to get standalone running but problem remains the same (even with older builds) it just won't start.


Did you use the new OSX installer?

Please try the following:

open Terminal.app

Code: Select all
cd /Applications/Madsonic.app/Contents/Resources/Java/
java -cp madsonic-booter.jar org.madsonic.booter.Main -mac


you should see something like this:

Code: Select all
Dez 15, 2014 7:47:04 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@67abaab: display name [org.springframework.context.support.ClassPathXmlApplicationContext@67abaab]; startup date [Mon Dec 15 19:47:04 CET 2014]; root of context hierarchy
Dez 15, 2014 7:47:04 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext-mac.xml]
Dez 15, 2014 7:47:04 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@67abaab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4a8acc0c
Dez 15, 2014 7:47:04 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4a8acc0c: defining beans [deployer,frame,controller]; root of factory hierarchy
Using WAR file: /Applications/Madsonic.app/Contents/Resources/Java/madsonic.war
Extracting webapp to /Library/Application Support/Madsonic/jetty/5420
Using WAR file: /Applications/Madsonic.app/Contents/Resources/Java/madsonic.war
Using GZIP-compression for REST
2014-12-15 19:47:04.651:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2014-12-15 19:47:07.831:INFO:/:Initializing Spring root WebApplicationContext
Dez 15, 2014 7:47:07 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Dez 15, 2014 7:47:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Mon Dec 15 19:47:07 CET 2014]; root of context hierarchy
Dez 15, 2014 7:47:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-service.xml]
Dez 15, 2014 7:47:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-security.xml]
Dez 15, 2014 7:47:08 PM org.springframework.security.config.SecurityNamespaceHandler <init>
INFO: Spring Security 'config' module version is 3.2.5.RELEASE
Dez 15, 2014 7:47:08 PM org.springframework.security.config.http.FilterInvocationSecurityMetadataSourceParser parseInterceptUrlsForFilterInvocationRequestMap
INFO: Creating access control expression attribute 'permitAll' for /**
...
...


OSX.png


Madsonic starts and you can see the whole start procedure, after some seconds the Madsonic tray icon should appear.

Not all error/warnings will be logged into the file, maybe some strange errors can only found on the debug console.

Madsonic logfile can be found here: /Library/Application Support/Madsonic/madsonic.log

Best regards
User avatar
Madevil
Administrator
Administrator
 
Posts: 881
Joined: 07 Dec 2012, 03:58
Has thanked: 1281 times
Been thanked: 947 times

Re: Madsonic doens't start anymore after upgrading on OSX

Unread postby skopo » 16 Dec 2014, 14:32

Test server gives this when running terminal command.

Code: Select all
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/madsonic/booter/Main : Unsupported major.minor version 51.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times

Re: Madsonic doens't start anymore after upgrading on OSX

Unread postby Madevil » 17 Dec 2014, 17:30

This error mean, your system use the internal Apple JAVA6 engine as default. But Madsonic need to run the installed Java7.

You can override this with the environment setting JAVA_HOME

Literally all you have to do is:

Code: Select all
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile


and restart your shell and try it again.

Now this comand should return the right path

Code: Select all
echo $JAVA_HOME

/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home

or

Code: Select all
java -version

java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
User avatar
Madevil
Administrator
Administrator
 
Posts: 881
Joined: 07 Dec 2012, 03:58
Has thanked: 1281 times
Been thanked: 947 times

Re: Madsonic doens't start anymore after upgrading on OSX

Unread postby DoCC » 17 Dec 2014, 18:17

if only v6 is installed, install v7 additionally.

then list your java versions again in the terminal.

if there is still v6 listed,
then you have to alter the default engine.

in linux there is a way like "update-alternatives --config java"
then you can select the new default ...

but as we all know apple wants it the hardway ...

this is a way to switch it in osx
http://superuser.com/questions/490425/h ... s-x-10-8-2
User avatar
DoCC
Contributor
Contributor
 
Posts: 210
Joined: 25 Feb 2014, 14:41
Location: UpperBavaria : ))
Has thanked: 41 times
Been thanked: 71 times

Re: Madsonic doens't start anymore after upgrading on OSX

Unread postby skopo » 18 Dec 2014, 08:12

That did the trick!

I had installed Java 1.6 after 1.7 for some applications.

I thought 1.7 should stay as default.

Now running like dream. (Had to rebuild DB but that was expected anyway)
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times


Return to Bug Reports 5.x

Who is online

Users browsing this forum: No registered users and 1 guest