Node 6.2.9260 problems

Madsonic Node 6.x

Node 6.2.9260 problems

Unread postby IrishMLK » 27 Feb 2017, 07:41

I am running the standalone linux version 9260 on r-pi3.

After chmod 0777 the transcode folder and forcing java 8 I have gotten to this point... I have verified via banshee that my hifiberry is functional by testing an mp3.
I feel like i am THIS close to a working node... thanks for any help!

Below is an excerpt from the madsonic-node.sh.log

[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Set new Madsonic server credential.
[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Host: http://192.168.xx.xx:4040/default
[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Username: node
[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Password: enc:pw hash
[2017-02-27 06:05:50] [INFO ] [qtp33407056-12] PlaylistController - Playing stream - http://192.168.xx.xx:4040/rest2/stream. ... e&p=enc:pw hash&id=29313 offset: 0
[2017-02-27 06:05:50] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: ")" unexpected
[2017-02-27 06:05:50] [DEBUG] [qtp33407056-12] LocalAudioPlayer - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@cf6a09
[2017-02-27 06:05:50] [DEBUG] [qtp33407056-12] PlaylistController - changeState: PLAYING
[2017-02-27 06:05:50] [DEBUG] [Thread-13] PlaylistController - changeState: EOM
[2017-02-27 06:05:50] [DEBUG] [Thread-13] LocalAudioPlayer - CLOSED line com.sun.media.sound.DirectAudioDevice$DirectSDL@cf6a09
[2017-02-27 06:11:25] [INFO ] [qtp33407056-14] PlaylistController - Playing stream - http://192.168.xx.xx:4040/rest2/stream. ... e&p=enc:pw hash&id=29315 offset: 0
[2017-02-27 06:11:25] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: ")" unexpected
[2017-02-27 06:11:25] [DEBUG] [qtp33407056-14] LocalAudioPlayer - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@1e3f986
[2017-02-27 06:11:25] [DEBUG] [qtp33407056-14] PlaylistController - changeState: PLAYING
[2017-02-27 06:11:25] [DEBUG] [Thread-14] PlaylistController - changeState: EOM
[2017-02-27 06:11:25] [DEBUG] [Thread-14] LocalAudioPlayer - CLOSED line com.sun.media.sound.DirectAudioDevice$DirectSDL@1e3f986
[2017-02-27 06:26:37] [INFO ] [qtp33407056-16] PlaylistController - Playing stream - http://192.168.xx.xx:4040/rest2/stream. ... e&p=enc:pw hash&id=29315 offset: 0
[2017-02-27 06:26:37] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: ")" unexpected
[2017-02-27 06:26:37] [DEBUG] [qtp33407056-16] LocalAudioPlayer - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@9d8d7d
[2017-02-27 06:26:37] [DEBUG] [qtp33407056-16] PlaylistController - changeState: PLAYING
[2017-02-27 06:26:37] [DEBUG] [Thread-15] PlaylistController - changeState: EOM
[2017-02-27 06:26:37] [DEBUG] [Thread-15] LocalAudioPlayer - CLOSED line com.sun.media.sound.DirectAudioDevice$DirectSDL@9d8d7d
IrishMLK
Contributor
Contributor
 
Posts: 5
Joined: 21 Jan 2014, 04:45
Has thanked: 1 time
Been thanked: 3 times

Re: Node 6.2.9260 problems

Unread postby IrishMLK » 28 Feb 2017, 06:59

Got it working this evening using the link below to add libx264 and clean ffmpeg.

http://engineer2you.blogspot.com/2016/10/rasbperry-pi-ffmpeg-install-and-stream.html

I followed the instructions for first two steps and then renamed the ffmpeg file in the /var/madsonic-node/transcode/ folder. I then copied the new ffmpeg from /usr/src/ffmpeg/ to the transcode folder above using the command below:

Code: Select all
sudo cp ffmpeg /var/madsonic-node/transcode/


I didn't even need to restart the Pi before things started working. I tested mp3 and flac streaming successfully. Now if only the madsonic android app had a node control option... :thumbsup:

Also, is there a way to update the node local webgui to be more user friendly like the node control frame in the main madsonic webgui? I can't stand the XML tab that opens in Chrome everytime you click a command. This may facilitate using a small touch screen with the Pi to control playback.

XML tab content from clicking "Start" on the node local webgui:
Code: Select all
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<madsonic-response xmlns="http://madsonic.org/restapi" status="ok" version="2.5.0" type="node">
<nodeStatus currentIndex="15" playing="true" gain="0.75" position="0" registered="false"/>
</madsonic-response>


Node webgui code:
Code: Select all
<HTML><title>Madsonic-Node</title><HEAD><link rel='shortcut icon' href='img/fav.ico' type='text/css'></HEAD><STYLE>@import url('http://fonts.googleapis.com/css?family=Montserrat:400,700');body {background-image:url('img/back.png');background-repeat:no-repeat;background-position:top left;background-size:cover;margin:0 0 0 0;padding:20px;font-size:13px;} body, form, h1, h2, label, table, a, select, input {font-family: 'Montserrat', arial, sans-serif !important;}a {font-weight:700;}</STYLE><BODY><div style='width:280px'><img src='img/node.png'style='width:100px'></img><h2><B>MADSONIC NODE REST API 2.5.0</B></h2>see <a href='http://www.madsonic.org'>online</a> for more details.<br><br><hr><b>USR:</b> node<br><b>SRV:</b> http://192.168.10.15:4040<br><hr><br><a href='rest/node.view/setCredential/admin/admin/false/localhost:4040/default' target='new'>/setCredential ...</a><br><br><a href='rest/node.view/register' target='new'>/register</a><br><a href='rest/node.view/unregister' target='new'>/unregister</a><br><br><a href='rest/node.view/status' target='new'>/status</a><br><a href='rest/node.view/set/1,2,3' target='new'>/set/1,2,3 ...</a><br><a href='rest/node.view/get' target='new'>/get</a><br><br><a href='rest/node.view/start' target='new'>/start</a><br><a href='rest/node.view/skip' target='new'>/skip</a><br><a href='rest/node.view/skip/0/0' target='new'>/skip/?/?</a><br><a href='rest/node.view/pause' target='new'>/pause</a><br><a href='rest/node.view/resume' target='new'>/resume</a><br><a href='rest/node.view/stop' target='new'>/stop</a><br><a href='rest/node.view/clear' target='new'>/clear</a><br></div></body></html>


Madsonic frame buttons:
Code: Select all
 <table class="indent" id="nodesTable" >
        <tr>
            <th colspan="8" style="padding-left:1em"></th>
            <th>Node URL</th>
            <th>Node Name</th>
            <th style="padding-left:15px">Online</th>
            <th style="padding-left:5px">Enabled</th>
            <th style="padding-left:5px">Delete</th>
        </tr>
       
            <tr>
                <td><input type="submit" name="open[2]" value="open" onclick="window.open('http://192.168.10.246:8181','_blank')"/></td>
                <td><input type="button" name="start[2]" value="start" onclick="controlNode('http://192.168.10.246:8181','start')"/></td>
                <td><input type="button" name="pause[2]" value="pause" onclick="controlNode('http://192.168.10.246:8181', 'pause')"/></td>
                <td><input type="button" name="resume[2]" value="resume" onclick="controlNode('http://192.168.10.246:8181', 'resume')"/></td>
                <td><input type="button" name="skip[2]" value="skip" onclick="controlNode('http://192.168.10.246:8181', 'skip')"/></td>
                <td><input type="button" name="stop[2]" value="stop" onclick="controlNode('http://192.168.10.246:8181', 'stop')"/></td>
                <td><input type="button" name="transfer[2]" value="transfer" onclick="send2Nodes('http://192.168.10.246:8181')"/></td>
                <td><input type="button" name="config[2]" value="config" onclick="configNode('http://192.168.10.246:8181')"/></td>
                <td><input type="text" name="url[2]" size="25" value="http://192.168.10.246:8181"/></td>
                <td style="padding-right:10px"><input type="text" name="name[2]" size="20" value="NODE-192.168.10.246"/></td>
                <td align="center" class=online><input disabled type="checkbox" checked name="online[2]" class="checkbox"/></td>
                <td align="center" class=online><input type="checkbox" checked name="enabled[2]" class="checkbox"/></td>
                <td align="center" style="padding-left:1em"><input type="checkbox" name="delete[2]" class="checkbox"/></td>
            </tr>
       
        <tr>
            <th colspan="8" style="padding-left:1em"></th>
            <th align="left" style="padding-top:1em">Add Node device</th>
        </tr>
       
        <tr>
            <td colspan="8"> </td>
            <td ><input type="text" name="url" size="25" placeholder="Node URL"/></td>
            <td><input type="text" name="name" size="20" placeholder="Node Name"/></td>
            <td align="center" class="online"><input name="online" checked type="checkbox" class="checkbox"/></td>
            <td align="center" class="online"><input name="enabled" checked type="checkbox" class="checkbox"/></td>
            <td/>
        </tr>
        <tr>
     
            <td style="padding-top:1.5em" colspan="8"></td>
        </tr>
    </table>


Hope this helps someone.
IrishMLK
Contributor
Contributor
 
Posts: 5
Joined: 21 Jan 2014, 04:45
Has thanked: 1 time
Been thanked: 3 times

Re: Node 6.2.9260 problems

Unread postby IrishMLK » 28 Feb 2017, 15:34

Got to work today with my node and hooked it up to the stereo in my office and was able to set the server credentials via REST. Only problem now is that the API does not allow to force registration from a remote network. It looks like it is limited to a broadcast subnet.

log detail:
Code: Select all
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Set new Madsonic server credential.
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Host: http://XXXX.xxx:xxxx/default
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Username: admin
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Password: enc:pw hash
[2017-02-28 14:19:04] [DEBUG] [Thread-16] BroadcastRegister - Request packet data: REGISTER_MADSONIC_NODE_REQUEST_31302e37362e352e32393a38313831
[2017-02-28 14:19:04] [DEBUG] [Thread-16] BroadcastRegister - Request packet sent to: 10.xx.xx.xx; Interface: eth0
[2017-02-28 14:19:04] [DEBUG] [Thread-16] BroadcastRegister - Done looping over all network interfaces. Now waiting for a reply!


Will remote nodes be possible?

Side note - I am so glad I moved to Madsonic from Subsonic. It is features like the node and common-sense GUI variations that make me wish I had switched much earlier. Thanks for all your efforts!
IrishMLK
Contributor
Contributor
 
Posts: 5
Joined: 21 Jan 2014, 04:45
Has thanked: 1 time
Been thanked: 3 times

Re: Node 6.2.9260 problems

Unread postby IrishMLK » 06 Mar 2017, 04:12

In case this will help

=========================================================================================
VERSION: MADSONIC-NODE 6.2 | BUILD: 9260
SERVLET: JETTY
SERVER: VM ESXI: 4cores | ARCH: X64 | MEMORY: 4GB
OS: Raspbian Jessie w\ Pixel
SYSTEM: RASPBERRY PI
INSTALLER: STANDALONE
JAVA: ORACLE JDK 1.8
BROWSER: CHROME 56
DESCRIPTION: Cannot register node from remote network
REPRODUCIBLE: YES
=========================================================================================
IrishMLK
Contributor
Contributor
 
Posts: 5
Joined: 21 Jan 2014, 04:45
Has thanked: 1 time
Been thanked: 3 times

Re: Node 6.2.9260 problems

Unread postby piretro999 » 29 May 2017, 14:56

Hello, I just installed my node on a raspberry pi zero w, running the last raspbian with pixel.
the installation went good and the node is accessing the server. However I am not able to play any music/playlist. :(
Here is the log of the exception thrown by the node.
Can anyone explain what does it means? should I have to modify something?
(In the meantime I am also following the way indicated by IrishMLK)

--------------------------HERE IS THE LOG--------------------------

[2017-05-29 11:53:50] [INFO ] [qtp16769923-16] PlaylistController - Playing stream - http://fortemedia.madsonic.org/rest2/st ... &id=168254 offset: 0
[2017-05-29 11:53:50] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: Unterminated quoted string
java.lang.RuntimeException: javax.sound.sampled.LineUnavailableException
at org.madsonic.controller.PlaylistController.createPlayer(PlaylistController.java:177)
at org.madsonic.controller.PlaylistController.play(PlaylistController.java:61)
at org.madsonic.controller.NodeController.start(NodeController.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:927)
at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:875)
at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:829)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1487)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
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:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:973)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1035)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:641)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:231)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
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(Thread.java:745)
Caused by: javax.sound.sampled.LineUnavailableException
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openImpl(PulseAudioMixer.java:714)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:588)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:584)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.open(PulseAudioMixer.java:579)
at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:94)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:75)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:90)
at org.madsonic.service.jukebox.LocalAudioPlayer.<init>(LocalAudioPlayer.java:64)
at org.madsonic.controller.PlaylistController.createPlayer(PlaylistController.java:174)
... 46 more
piretro999
 
Posts: 13
Joined: 10 Oct 2013, 15:09
Has thanked: 0 time
Been thanked: 4 times

Re: Node 6.2.9260 problems

Unread postby piretro999 » 29 May 2017, 18:15

HI, even after the installation of ffmpeg as it did not worked.
but something changed...
Now I don't really know what to do. Please HELP


[2017-05-29 17:06:00] [INFO ] [qtp21513864-12] PlaylistController - Playing stream - http://fortemedia.madsonic.org/rest2/st ... &id=168254 offset: 0
java.lang.RuntimeException: javax.sound.sampled.LineUnavailableException
at org.madsonic.controller.PlaylistController.createPlayer(PlaylistController.java:177)
at org.madsonic.controller.PlaylistController.play(PlaylistController.java:61)
at org.madsonic.controller.NodeController.start(NodeController.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:927)
at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:875)
at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:829)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1487)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
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:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:973)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1035)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:641)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:231)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
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(Thread.java:745)
Caused by: javax.sound.sampled.LineUnavailableException
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openImpl(PulseAudioMixer.java:714)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:588)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:584)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.open(PulseAudioMixer.java:579)
at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:94)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:75)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:90)
at org.madsonic.service.jukebox.LocalAudioPlayer.<init>(LocalAudioPlayer.java:64)
at org.madsonic.controller.PlaylistController.createPlayer(PlaylistController.java:174)
... 46 more
piretro999
 
Posts: 13
Joined: 10 Oct 2013, 15:09
Has thanked: 0 time
Been thanked: 4 times

Re: Node 6.2.9260 problems

Unread postby Madevil » 29 May 2017, 21:19

hi there,

Try to check step by step to see if all the requirements are met:

  • install your PI with latest image: https://www.raspberrypi.org/downloads/raspbian/
  • check latest updates: sudo apt update
  • install latest update: sudo apt upgrade
  • install java: sudo install openjdk-8-jdk
  • set default: sudo update-alternatives --config java
  • set default: sudo update-alternatives --config javac
  • install Madsonic-node: dpkg -i madsonic-node.deb
  • install ffmpeg: dpkg -i ffmpeg_3.1.1-1_armhf.deb
  • link to Madsonic: sudo ln -s /usr/bin/ffmpeg /var/madsonic-node/transcode/ffmpeg
  • edit script: sudo nano /usr/share/madsonic-node/madsonic-node.sh
  • insert config: -Djavax.sound.sampled.SourceDataLine='#ALSA [default]' \ (after line: -Djava.awt.headless=true \)
  • set audio mixer: sudo amixer -c 0 cset numid=1
    1 = 3.5mm jack, 2 = HDMI port, 3 = Default
  • reboot PI

That’s it! ;)

download prebuild ffmpeg for ARM:

Code: Select all
wget https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb


best regards,
The Madsonic Team
User avatar
Madevil
Administrator
Administrator
 
Posts: 911
Joined: 07 Dec 2012, 03:58
Has thanked: 1323 times
Been thanked: 951 times


Return to Node 6.x

Who is online

Users browsing this forum: No registered users and 0 guests