[SOLVED] HQPlayer cannot find NAA on Snakeoil machine
#51
(28-Feb-2017, 09:46 AM)scan80269 Wrote: I added the export line to /var/www/cgi/init and rebooted, but there was no change: webpage Player Status still shows ERROR.  I believe the NAA process name is simply "networkaudiod".  I did "ps aux | grep networkaudiod" but no networkaudiod process showed up.  I did "sudo NETWORKAUDIOD_IPV6=0 networkaudiod restart", opened another SSH window and this time the "ps aux | grep networkaudiod" showed a running thread, and the webpage Player Status changes to ok with the same PID as with "ps aux | grep networkaudiod".  I did all this with the standard x64 kernel only.  Thanks.

This is plain weird LOL

Guess the only option now is to use the IPv6 kernel. This kernel should allow NAA to start automatically everytime (let me know if it doesn't for you).

Rest assured will fix this in the next 0.1.x release, and also the newer 1.x release down the road Thumbs Up.
Snakeoil Operating System - Music, your way!
Reply

#52
A bit more data.  With stock x64 kernel, some form of NETWORKAUDIOD_IPV6=0 is needed.  Without it, networkaudiod will return a bunch of error messages:

[networkaudiod]  (2278): clSocket::Create() : socket() : Address family not supported by protocol

then finally terminate with:

[networkaudiod]  (2278): ALSA backend uninitialized

All this was the result of me doing "sudo networkaudiod restart" instead of "sudo NETWORKAUDIOD_IPV6=0 networkaudiod restart".

It looks like the issue of networkaudiod not getting launched at boot is not directly correlated with NETWORKAUDIOD_IPV6=0, though.

Actually, with 0.1.5b and the IPV6 kernel I still couldn't get networkaudiod to auto launch at boot.

With either stock x64 or IPV6 kernel, so far the only way I could get the NAA to run is to SSH in and do sudo.

Perhaps I should try uninstalling networkaudiod and re-installing?  Can these be done at the command prompt?

Thanks!
Reply

#53
(28-Feb-2017, 09:53 AM)scan80269 Wrote: A bit more data.  With stock x64 kernel, some form of NETWORKAUDIOD_IPV6=0 is needed.  Without it, networkaudiod will return a bunch of error messages:

[networkaudiod]  (2278): clSocket::Create() : socket() : Address family not supported by protocol

then finally terminate with:

[networkaudiod]  (2278): ALSA backend uninitialized

All this was the result of me doing "sudo networkaudiod restart" instead of "sudo NETWORKAUDIOD_IPV6=0 networkaudiod restart".

It looks like the issue of networkaudiod not getting launched at boot is not directly correlated with NETWORKAUDIOD_IPV6=0, though.

Actually, with 0.1.5b and the IPV6 kernel I still couldn't get networkaudiod to auto launch at boot.

With either stock x64 or IPV6 kernel, so far the only way I could get the NAA to run is to SSH in and do sudo.

Perhaps I should try uninstalling networkaudiod and re-installing?  Can these be done at the command prompt?

Thanks!
You can uninstall (and reinstall) NAA from the snakeoil tab. Shoot me a PM if you don't have a code (I think you do?).

I think the problem with NETWORKAUDIOD_IPV6 is this environment is not read correctly by NAA. There are 3 UIDs that are used (root, your user, and www-data), and www-data is trying to start this service via sudo, and somehow it's not picking it up. Embedding this variable in the startup script used to work, but now it's a hit and miss for some reason.

Ideally NAA should detect there are no IPv6 interfaces and continue on, but it decide to quit with an error instead Huh. Exporting a variable is a silly way of doing things IMO but then again I'm sure the guy is a much better programmer than I am and it's just me that don't understand the smarts Thumbs Up.

Hopefully I can get some free time this weekend and look into this more. Will probably spin up a new firmware again then. Big Grin
Snakeoil Operating System - Music, your way!
Reply

#54
Thanks for all the help!  I think this issue is a small one, but perhaps a bit vexing.

BTW, I uninstalled HQPlayer NAA from the Snakeoil tab, rebooted, but afterwards HQPlayer NAA still appears as "Installed" within the Snakeoil tab.  No Software Player appears selected within the Software tab, though.  I repeated this twice but the NAA still shows as "Installed".  I can't tell whether this is just an installation status error or that the uninstallations failed or weren't completed.

Sorry I'm quite a Linux Neanderthal.  I can get a PC to boot Windows 10 without any local storage, but when it comes to anything Linux, I haven't advanced past the Stone Age... Shy
Reply

#55
Thanks for releasing 0.1.5c, Agent Kith!

I just got NAA working great with 0.1.5c and x64-ipv6 kernel.  With stock x64 kernel, the NAA process also shows as OK (running), but HQPlayer fails to sense the NAA over the network.  Once I switched to x64-ipv6 kernel, it works consistently!  I'll keep this box running Snakeoil with the x64-ipv6 kernel, and move on to the fun part: listening!
[-] The following 1 user Likes scan80269's post:
  • agent_kith
Reply

#56
Thanks for the work on NAA HQ Player through NAA is seamless now.
[-] The following 1 user Likes a.dent's post:
  • agent_kith
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  snakeoil always refuse connecting from vnc viewer clark8888 2 419 15-Oct-2023, 10:37 AM
Last Post: clark8888
  Rpi4+AlloDigiOne sig. Snakeoil os installation problem Luke 38 13 1,921 06-Sep-2023, 07:36 AM
Last Post: agent_kith
  [SOLVEDAdapting Snakeoil for general media streaming patricia1066 9 1,005 22-Jul-2023, 07:35 AM
Last Post: agent_kith
  Equalizer for LMS/Snakeoil Tecko 2 557 30-Apr-2023, 10:04 PM
Last Post: Tecko
  SnakeOil OS to NAA Steely 1 411 04-Apr-2023, 05:11 AM
Last Post: Snoopy8



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 612
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 149
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 70
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4137
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 365
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4125

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.