nodetunes icon indicating copy to clipboard operation
nodetunes copied to clipboard

Fix for nodestunes crypto crash; 302.

Open Kolky opened this issue 8 years ago • 31 comments

This solves airsonos issue #302. Using node v6.2.1 and npm 3.9.6.

Kolky avatar Jun 19 '16 21:06 Kolky

Thanks, this fixed AirSonos for me 👍

NPM v3.10.3, NodeJS v6.2.2 Mac OS X v10.11.5

ntwb avatar Jul 08 '16 23:07 ntwb

Great, solved the problem for me too! Thank you :)

NPM 3.9.3 NodeJS 6.2.1 Mac OS X 10.10.5

mrjcleaver avatar Jul 09 '16 13:07 mrjcleaver

This worked great for me too. Thanks!

NPM 3.8.8 NodeJS v6.2.0 Mac OS X v10.11.5

nickgs avatar Jul 16 '16 04:07 nickgs

Works for me too, thanks.

denisbr avatar Jul 16 '16 09:07 denisbr

works, thanks!

foomac:airsonos doe$ system_profiler SPSoftwareDataType Software:

System Software Overview:

  System Version: OS X 10.11.5 (15F34)
  Kernel Version: Darwin 15.5.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: foomac
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled

foomac:airsonos doe$ node --version v6.2.0 foomac:airsonos doe$ npm --version 3.10.3

rib1 avatar Jul 18 '16 13:07 rib1

works, thanks! node 6.3.0, npm 3.10.3, RaspberryPi 3

h9nry avatar Jul 19 '16 18:07 h9nry

Also allowed me to use airsonos. Couldn't be happier. Thanks so much!

richardtape avatar Jul 22 '16 04:07 richardtape

This is definitely the fix for the airsonos issue (worked for me at least!) Would be great to see this merged.

bengotow avatar Aug 10 '16 15:08 bengotow

This fixed Nodetunes for me (macOS Sierra / iOS 10)

Please Pull!!

alessiodionisi avatar Sep 14 '16 23:09 alessiodionisi

Hello everyone I am totally beginner and I try to install airsonos on my mac Sierra 10.12. So I followed your advice .. but when I run youtube or VLC I get the following error: Error: Invalid key length this is from the that I can not understand how you manage to settle the problem. If someone has a little time to help me I would be grateful thank you

zzamzoum avatar Oct 14 '16 10:10 zzamzoum

Hi, Complete newbie to techie stuff also. Sorry, need a bit of a dummies guide here! How/where am I inputting this fix?

Thanks, Georgie

georgieapt avatar Nov 13 '16 13:11 georgieapt

FYI: The new Sonos beta software version 7 now supports playing directly from Spotify 💥 So if you're here for the AIrSonos fix and you use Spotify you might no longer need this 🎉

ntwb avatar Nov 14 '16 23:11 ntwb

I also need help. I installed airsonos using this tutorial: https://hipsterpixel.co/2016/02/02/how-to-airplay-music-and-podcasts-to-your-sonos-speakers-tutorial/

I am not sure how to input this change. I have a Mac and am using Terminal. Do i use npm to install this fix? I am a total noob. Please help. I just need what command I need to put into Terminal to get this working.

ernie932 avatar Nov 21 '16 04:11 ernie932

Alright - How to install a working version:

First remove everything you've installed already:

npm uninstall -g airsonos
npm uninstall -g nodetunes

Then install the working forks:

npm install -g git://github.com/Kolky/nodetunes.git#master
cd ~
git clone https://github.com/lsmith77/airsonos.git airsonos
cd airsonos
npm install babel
npm install -g

Now everything should be installed so you now can execute that damn thing and hopefully it works:

airsonos

gismo141 avatar Nov 21 '16 15:11 gismo141

Thank you! I will try this out when I get home. One quick question: Why do I need to install babel? Is it something that airsonos needs to run properly?

ernie932 avatar Nov 21 '16 21:11 ernie932

Yes somehow it is needed and written down as well in the dependencies.

I just reset my Mac so I was forced to reinstall everything and babel was one of the missing things. Hopefully you're able to resolve the problem as well!

gismo141 avatar Nov 21 '16 22:11 gismo141

Thank you so much! I was able to get it. Terminal gave me an error asking to run the command as root/Administrator. So I looked it up and ran the commands with sudo before it.

Thanks again!

ernie932 avatar Nov 23 '16 01:11 ernie932

Glad it worked - have fun!

gismo141 avatar Nov 23 '16 06:11 gismo141

This fixed airsonos for me! Any reason why this hasn't been merged into master yet?

burnflare avatar Nov 25 '16 11:11 burnflare

Hello Michael, I followed your explanations but here is the error message that appears when I run airsons. Could you help me ? Thank you in advance ;)


De : Michael Riedel [email protected] Envoyé : lundi 21 novembre 2016 16:32:29 À : stephen/nodetunes Cc : zzamzoum; Comment Objet : Re: [stephen/nodetunes] Fix for nodestunes crypto crash; 302. (#42)

Alright - How to install a working version:

First remove everything you already installed:

npm uninstall -g airsonos npm uninstall -g nodetunes

Then install the working forks:

npm install -g git://github.com/Kolky/nodetunes.git#master npm install babel cd ~ git clone https://github.com/lsmith77/airsonos.git airsonos cd airsonos npm install -g

Now everything should be installed so you now can execute that damn thing and hopefully it works:

airsonos

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/stephen/nodetunes/pull/42#issuecomment-261970525, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVxwqrsj2QJMbqeHMeE353spNT021T67ks5rAbmNgaJpZM4I5Quw.

zzamzoum avatar Dec 01 '16 14:12 zzamzoum

Search complete. Set up 1 device tunnel.

crypto.js:239

this._handle.initiv(cipher, toBuf(key), toBuf(iv));

           ^

Error: Invalid key length

at Error (native)

at new Decipheriv (crypto.js:239:16)

at Object.Decipheriv (crypto.js:236:12)

at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25)

at RtpServer.<anonymous> (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtp.js:32:23)

at emitTwo (events.js:106:13)

at Socket.emit (events.js:191:7)

at UDP.onMessage (dgram.js:550:8)

MacBook-Pro-de-abdelaziz:airsonos abdelazizboudriga$


De : Michael Riedel [email protected] Envoyé : lundi 21 novembre 2016 16:32:29 À : stephen/nodetunes Cc : zzamzoum; Comment Objet : Re: [stephen/nodetunes] Fix for nodestunes crypto crash; 302. (#42)

Alright - How to install a working version:

First remove everything you already installed:

npm uninstall -g airsonos npm uninstall -g nodetunes

Then install the working forks:

npm install -g git://github.com/Kolky/nodetunes.git#master npm install babel cd ~ git clone https://github.com/lsmith77/airsonos.git airsonos cd airsonos npm install -g

Now everything should be installed so you now can execute that damn thing and hopefully it works:

airsonos

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/stephen/nodetunes/pull/42#issuecomment-261970525, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVxwqrsj2QJMbqeHMeE353spNT021T67ks5rAbmNgaJpZM4I5Quw.

zzamzoum avatar Dec 01 '16 14:12 zzamzoum

every thing was ok but when I enter this code : nom Install -g i have this

MacBook-Pro-de-abdelaziz:~ abdelazizboudriga$ sudo npm install -g

npm ERR! addLocal Could not install /Users/abdelazizboudriga

npm ERR! Darwin 16.1.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"

npm ERR! node v7.2.0

npm ERR! npm v3.10.9

npm ERR! code EISDIR

npm ERR! errno -21

npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read

npm ERR! eisdir This is most likely not a problem with npm itself

npm ERR! eisdir and is related to npm not being able to find a package.json in

npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:

npm ERR! /Users/abdelazizboudriga/npm-debug.log


De : Michael Riedel [email protected] Envoyé : lundi 21 novembre 2016 16:32:29 À : stephen/nodetunes Cc : zzamzoum; Comment Objet : Re: [stephen/nodetunes] Fix for nodestunes crypto crash; 302. (#42)

Alright - How to install a working version:

First remove everything you already installed:

npm uninstall -g airsonos npm uninstall -g nodetunes

Then install the working forks:

npm install -g git://github.com/Kolky/nodetunes.git#master npm install babel cd ~ git clone https://github.com/lsmith77/airsonos.git airsonos cd airsonos npm install -g

Now everything should be installed so you now can execute that damn thing and hopefully it works:

airsonos

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/stephen/nodetunes/pull/42#issuecomment-261970525, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVxwqrsj2QJMbqeHMeE353spNT021T67ks5rAbmNgaJpZM4I5Quw.

zzamzoum avatar Dec 01 '16 15:12 zzamzoum

It looks like you are executing the command in the wrong directory.

Please verify that you are executing it in the airsonos directory. You can verify the directory by issuing

pwd

gismo141 avatar Dec 01 '16 16:12 gismo141

i verify that but another pb..

MacBook-Pro-de-abdelaziz:airsonos abdelazizboudriga$ pwd

/Users/abdelazizboudriga/airsonos

MacBook-Pro-de-abdelaziz:airsonos abdelazizboudriga$ sudo npm install -g

npm WARN lifecycle [email protected]~prepublish: cannot run in wd %s %s (wd=%s) [email protected] babel ./lib/ -d ./bin/ /Users/abdelazizboudriga/airsonos

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

npm WARN deprecated [email protected]: use serve-favicon module

npm WARN deprecated [email protected]: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated

npm WARN deprecated [email protected]: use uuid module instead

npm ERR! Darwin 16.1.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"

npm ERR! node v6.9.1

npm ERR! npm v3.10.8

npm ERR! path /usr/local/lib/node_modules/airsonos/bin/index.js

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/airsonos/bin/index.js'

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/airsonos/bin/index.js'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! Please include the following file with any support request:

npm ERR! /Users/abdelazizboudriga/airsonos/npm-debug.log

MacBook-Pro-de-abdelaziz:airsonos abdelazizboudriga$


De : Michael Riedel [email protected] Envoyé : jeudi 1 décembre 2016 17:01:38 À : stephen/nodetunes Cc : zzamzoum; Comment Objet : Re: [stephen/nodetunes] Fix for nodestunes crypto crash; 302. (#42)

It looks like you are executing the command in the wrong directory.

Please verify that you are executing it in the airsonos directory. You can verify the directory by issuing

pwd

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/stephen/nodetunes/pull/42#issuecomment-264212971, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVxwqpyN6URAYNzl_NB2sfRFGgokijYpks5rDu9igaJpZM4I5Quw.

zzamzoum avatar Dec 01 '16 16:12 zzamzoum

I get the same error

layzzzee8 avatar Dec 03 '16 16:12 layzzzee8

Awesome this is working for me as well. Thank you!

JBalloonist avatar Dec 04 '16 19:12 JBalloonist

@layzzzee8 and @zzamzoum normally you shouldn't need to use sudo to install these things.

If you need to, then maybe you could add --unsafe-perm to the npm install-calls. E.g.

sudo npm install -g --unsafe-perm

See this Stack Overflow Topic.

Hopefully this helps.

gismo141 avatar Dec 05 '16 08:12 gismo141

Worked with the following procedure, as posted by @gismo141 above.

  • Remove existing install with:

npm uninstall -g airsono npm uninstall -g nodetunes

  • Install from forks:

npm install -g git://github.com/Kolky/nodetunes.git#master cd ~ (or whatever WD you want) git clone https://github.com/lsmith77/airsonos.git airsonos cd airsonos npm install -g

Installs airsonos in /usr/local/bin/airsonos (global prefix assumed).

I've been running it with forever:

npm install -g forever forever start -a -l forever.log -o airsonos.log -e airsonos_error.log /usr/local/bin/airsonos

System info:

System Version: macOS 10.12.2 (16C68) Kernel Version: Darwin 16.3.0 Boot Mode: Normal Secure Virtual Memory: Enabled System Integrity Protection: Enabled

npm -v 4.0.5

node -v v7.4.0

russbrenner avatar Jan 18 '17 03:01 russbrenner

@stephen Why is this not merged?

sabrehagen avatar Apr 01 '17 09:04 sabrehagen

@stephen Why is this not merged?

HugoGresse avatar Feb 07 '18 08:02 HugoGresse