FAQ  •  Register  •  Login

[Solved] OS X 1.5 console won't start

<<

vidjam

Serviio newbie

Posts: 6

Joined: Thu Jan 15, 2015 12:17 am

Post Thu Jan 15, 2015 12:26 am

[Solved] OS X 1.5 console won't start

I've just updated from 1.4 to 1.5 as I understand that running/maintaining on a Mac is meant to be somewhat easier now that Serviio itself runs as a launchd etc. But the Serviio-Console app doesn't start. This is the error message from the OS X console:

15/01/2015 00:12:13.703 com.apple.xpc.launchd[1]: (org.serviio.serviio-console.38088[897]) Could not find and/or execute program specified by service: 2: No such file or directory: /Applications/Serviio-Console.app/Contents/MacOS/JavaApplicationStub
15/01/2015 00:12:13.704 Finder[356]: spawn_via_launchd() failed, errno=111 label=org.serviio.serviio-console.38088 path=/Applications/Serviio-Console.app/Contents/MacOS/JavaApplicationStub flags=1 : LaunchApplicationClient.cp #1136 LaunchApplicationViaLaunchDJobLabel() q=com.apple.root.default-qos
15/01/2015 00:12:13.704 Finder[356]: spawn_via_launchd() failed, errno=111 label=org.serviio.serviio-console.38088 path=/Applications/Serviio-Console.app/Contents/MacOS/JavaApplicationStub flags=1
15/01/2015 00:12:13.704 com.apple.xpc.launchd[1]: (org.serviio.serviio-console.38088[897]) Service setup event to handle failure and will not launch until it fires.

Despite having run the installer several times, I have no JavaApplicationStub in /Applications/Serviio-Console.app/Contents/MacOS/ . The only file in that folder is called JavaAppLauncher. Is anyone else having the same problem? Or has something unexpected happened when I've attempted to install the Console here? Many thanks for any insight!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 15, 2015 12:30 am

Re: OS X 1.5 console won't start

This looks like the previous Console version, which used the stub file. Was your 1.4 console under Applications? If yes, try to remove it from there and install again.

Otherwise, what is the contents of your console's Info.plist?
<<

vidjam

Serviio newbie

Posts: 6

Joined: Thu Jan 15, 2015 12:17 am

Post Thu Jan 15, 2015 12:41 am

Re: OS X 1.5 console won't start

HI Petr, thank you for the amazingly swift reply! Yes, 1.4 console was under Applications, but was completely removed. Am definitely installing from 1.5 .pkg installer -- it's correctly installed the main process as a launchd:

David-James-Mac-Mini-2:~ davidjames2012$ sudo launchctl list | grep serviio
679 0 org.serviio.server

If I delete Serviio-Console app and reinstall only it via the 'Customize' option on the installer, then the installation type shows up as 'Upgrade' (with size 4.1MB) even though the previous copy is entirely absent. That isn't necessarily significant though. The Console app is reporting its version as 1.5 when I run Get Info on it. But I'm definitely still getting that error when I attempt to run it.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 15, 2015 12:43 am

Re: OS X 1.5 console won't start

The version string comes from the server, so it doesn't matter. I just tried it on my Mac and it works for me. What is the contents of your

/Applications/Serviio-Console.app/Contents/Info.plist
<<

vidjam

Serviio newbie

Posts: 6

Joined: Thu Jan 15, 2015 12:17 am

Post Thu Jan 15, 2015 12:51 am

Re: OS X 1.5 console won't start

Both the version numbers in there are 1.5:

<key>CFBundleShortVersionString</key>
<string>1.5</string>
[...]
<key>NSHumanReadableCopyright</key>
<string>1.5 (c) 2009 - 2015 Petr Nejedly</string>

So I think the installation is OK. I figure maybe there's some legacy 1.4 component lying around somewhere on the Mac that's messing up the 1.5 console when it tries to start?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 15, 2015 12:57 am

Re: OS X 1.5 console won't start

Does your Info.plist include this?

  Code:
<key>CFBundleExecutable</key>
<string>JavaAppLauncher</string>


and no mention of JavaApplicationStub ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 15, 2015 1:02 am

Re: OS X 1.5 console won't start

So it looks like OSX actually caches the plist file. Here are some tips on how to invalidate the cache:

https://discussions.apple.com/thread/1496021
http://bridge.grumpy-troll.org/2011/01/ ... ched-apps/

Maybe even logout and login back would invalidate the cache..?
<<

vidjam

Serviio newbie

Posts: 6

Joined: Thu Jan 15, 2015 12:17 am

Post Thu Jan 15, 2015 1:04 am

Re: OS X 1.5 console won't start

Yep, that's correct:

David-James-Mac-Mini-2:Contents davidjames2012$ head Info.plist
<?xml version="1.0" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>JavaAppLauncher</string>
<key>CFBundleIconFile</key>
<string>serviio.icns</string>


No mention of JavaApplicationStub anywhere - except the error message when Serviio-Console won't start.

I've just seen your latest message - I'll reboot and if that doesn't work, I'll check those 2 links. Thanks for your assistance, much appreciated!
<<

vidjam

Serviio newbie

Posts: 6

Joined: Thu Jan 15, 2015 12:17 am

Post Thu Jan 15, 2015 1:12 am

Re: OS X 1.5 console won't start

In fact - not even rebooting has solved this. I should have realised it wouldn't, since I'd rebooted after completely deinstalling 1.4. I'll spend some more time on this tomorrow evening and follow up on those 2 links. Cheers for now!
<<

Shred

Streaming enthusiast

Posts: 25

Joined: Wed Jul 10, 2013 12:25 am

Post Thu Jan 15, 2015 1:14 am

Re: OS X 1.5 console won't start

I had the same problem with the console.

It seems like I was a cached plist issue. I moved the Serviio-Console.app to another spot and ran it - it opened fine this time. So I've now moved it back under Applications and everything's working properly again.
<<

vidjam

Serviio newbie

Posts: 6

Joined: Thu Jan 15, 2015 12:17 am

Post Thu Jan 15, 2015 1:16 am

Re: OS X 1.5 console won't start

Hi Shred! I literally just tried the same thing 2 minutes ago - move the Serviio-Console.app bundle somewhere else, and run it - and it worked fine. So I've moved it back to where it belongs, and again it works fine. Issue resolved, thank you and thank you Petr for your assistance!
<<

aacosta

Serviio newbie

Posts: 12

Joined: Mon Jan 31, 2011 7:57 pm

Post Thu Jan 15, 2015 11:57 pm

Re: [Solved] OS X 1.5 console won't start

Hi,

As zip suggests, the problem is that Launch Services had the "executable" key of bundle org.serviio.serviio-console (which is shared for version 1.4 and 1.5), set to "JavaApplicationStub" as showed by ltregister:

  Code:
`find /System/Library/Frameworks -name lsregister` -dump


  Code:
bundle  id:            126412
        Mach-O UUIDs:  5E54AC31-1068-E190-4963-CAF51A6A915A, 6E2AF648-359A-15FD-4DFE-8DF60B79A2D6
        sequenceNum:   3
        installType:   0
        appContainer: 
        dataContainer:
        path:          /Applications/Serviio-Console.app
        name:          Serviio-Console
        displayName:   
        itemName:     
        teamID:       
        staticSize:    0
        storeFront:    0
        category:     
        identifier:    org.serviio.serviio-console (0x80061369)
        vendor:       
        type:         
        version:       1.4.1
        versionString:
        displayVersion 1.4.1.2
        codeInfoID:   
        mod date:      1/16/2015 0:13:39
        reg date:      1/16/2015 0:13:45
        retries:       1
        type code:     'APPL'
        creator code:  '????'
        sys version:   1.4.1
        mach sys ver:  1.4.1
        execSDK ver:   10.5
        flags:         has-display-name  relative-icon-path  launch-disabled  requires-java-runtime 
        item flags:    container  package  application  extension-hidden  native-app  ppc  i386  x86_64 
        icons:         Contents/Resources/serviio.icns
        executable:    Contents/MacOS/JavaApplicationStub
        inode:         4459663
        exec inode:    4459669
        container id:  32
        library:       
        library items:
        activityTypes: NOTIFICATION#:org.serviio.serviio-console, pv-d4ebf7f6e436cb



The following command causes the OSX Launch Services register to add the new Serviio-Console 1.5 application (without needing to rename it), making the error go away:

  Code:
`find /System/Library/Frameworks -name lsregister` -apps user,local,system


This could either be a bug in OSX or a bad practice in the bundle identifier (I am not a OSX programmer but could it be that OSX expects a different identifier for different versions and builds the cache making that assumption?). Either way I think this should be looked into because it provides a bad experience for the faithful users who jumped from 1.4 to 1.5 .
<<

exsing

Serviio newbie

Posts: 1

Joined: Tue Jan 21, 2014 8:44 am

Post Sat Jan 17, 2015 3:53 am

Re: [Solved] OS X 1.5 console won't start

Hi guys,

I have been reading this thread and it fixed my issue of "Serviio Console cannot be opened" by moving the app to another location and then copying it back.

Now that I no longer get the message that Serviio Console cannot be opened, I have a different issue. Although the console can execute and open, I cannot see the physical app to modify my library. Can anyone help with this issue please?

Thank you.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jan 17, 2015 2:20 pm

Re: [Solved] OS X 1.5 console won't start

Start a new thread and provide some more details. Thx
<<

dbuchner

Serviio newbie

Posts: 1

Joined: Fri Feb 06, 2015 11:06 am

Post Fri Feb 06, 2015 11:31 am

Re: [Solved] OS X 1.5 console won't start

Hi,

I seem to be having exactly the same issues but none of what's been suggested has been able to resolve my issue.
Running OSX 10.10.2 and until earlier tonight ran Serviio 1.4.1.2 - after upgrading to 1.5 the server service starts fine and it's browsable but the Console fails to start.
I've reinstalled the application a few times, moved the console, renamed the console - all have the same result:

  Code:
 LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Serviio-Console.app.


  Code:
QBit:Applications Dan$ sudo launchctl list | grep serviio
Password:
1485    0       org.serviio.server


and from the Console

  Code:
6/02/2015 10:11:12.499 pm com.apple.xpc.launchd[1]: (org.serviio.serviio-console.51720[1527]) Could not find and/or execute program specified by service: 2: No such file or directory: /Applications/Serviio-Console.app/Contents/MacOS/JavaApplicationStub
<<

zingo1

Streaming enthusiast

Posts: 23

Joined: Fri May 04, 2012 8:14 am

Post Sun Mar 01, 2015 2:52 pm

Re: [Solved] OS X 1.5 console won't start

I am on OS X
I have been using Serviio for some time and i have same thing with 1.5
I removed 1.4 downloaded 1.5 ran the install but only the console installed, no server.
Tried moving renaming re downloading same thing all the time.
I have posted a few times but no one replies.
<<

phn2

User avatar

Serviio lover

Posts: 77

Joined: Tue Jan 04, 2011 10:53 pm

Post Sun Apr 12, 2015 10:03 am

Re: [Solved] OS X 1.5 console won't start

Same here on Linux mint; moved folder to desktop from home = it works
<<

Asubekti

Serviio newbie

Posts: 1

Joined: Mon Oct 06, 2014 11:09 pm

Post Sun Jul 05, 2015 1:15 am

Re: [Solved] OS X 1.5 console won't start

Moved the app to another folder does nor work for me. There's no serviio folder in library/application support/ created after installation.
<<

wazer

Serviio newbie

Posts: 19

Joined: Fri Dec 25, 2015 5:17 pm

Post Fri Dec 25, 2015 5:49 pm

Re: [Solved] OS X 1.5 console won't start

This is not a SOLO problem for topic creator, i have the exact same problem on windows, this is the FIRST time EVER I'm trying out serviio...
<<

Torence

Serviio newbie

Posts: 15

Joined: Mon Sep 11, 2017 4:48 am

Post Mon Sep 11, 2017 5:57 am

Re: [Solved] OS X 1.5 console won't start

The same to me is to catch answers on here. I want to fix that trouble in easy way.
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 42 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.