Saiyato / volumio-snapcast-plugin

Volumio 2 SnapCast plugin, to easily manage SnapCast functionality
115 stars 25 forks source link

TypeError: Cannot read property 'name' #32

Closed andlo closed 6 years ago

andlo commented 6 years ago

When i try to upload the plugin, i get:

The following error occurred when installing the plugin: TypeError: Cannot read property 'name' of undefined

I am using Rapsberrypi and new install of volumio

What have I missed ?

Saiyato commented 6 years ago

Can you tell me step by step what you saw?

Saiyato commented 6 years ago

I'm looking for the log when you installed. I just tried several times on different Pi's, so it must be something local.

My installation log:

Feb 02 07:57:54 volumiolcd volumio[951]: Uploading: volumio-snapcast-plugin.zip
Feb 02 07:57:54 volumiolcd volumio[951]: Created safe filename as '61ff2286-6c0c-4112-8443-b73e1e3abb27.zip'
Feb 02 07:57:54 volumiolcd volumio[951]: Upload Finished of volumio-snapcast-plugin.zip as 61ff2286-6c0c-4112-8443-b73e1e3abb27.zip
Feb 02 07:57:54 volumiolcd volumio[951]: info: Downloading plugin at http://127.0.0.1:3000/plugin-serve/61ff2286-6c0c-4112-8443-b73e1e3abb27.zip
Feb 02 07:57:54 volumiolcd volumio[951]: info: END DOWNLOAD: http://127.0.0.1:3000/plugin-serve/61ff2286-6c0c-4112-8443-b73e1e3abb27.zip
Feb 02 07:57:54 volumiolcd volumio[951]: info: Folder /tmp/plugins removed
Feb 02 07:57:54 volumiolcd volumio[951]: info: Checking if plugin already exists
Feb 02 07:57:54 volumiolcd volumio[951]: info: Rename folder
Feb 02 07:57:54 volumiolcd volumio[951]: info: Folder /tmp/downloaded_plugin.zip removed
Feb 02 07:57:54 volumiolcd volumio[951]: info: Move to category
Feb 02 07:57:55 volumiolcd volumio[951]: info: Checking if install.sh is present
Feb 02 07:57:55 volumiolcd volumio[951]: info: Executing install.sh
Feb 02 07:57:55 volumiolcd sudo[14000]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/sh /data/plugins/miscellanea/snapcast/install.sh
Feb 02 07:57:55 volumiolcd sudo[14000]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 02 07:57:55 volumiolcd volumio[951]: info: Installing SnapCast and its dependencies...
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie InRelease
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspberrypi.org jessie InRelease
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/main Sources
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/contrib Sources
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/non-free Sources
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspberrypi.org jessie/main Sources
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/rpi Sources
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/main armhf Packages
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspberrypi.org jessie/ui Sources
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/contrib armhf Packages
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/non-free armhf Packages
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspberrypi.org jessie/main armhf Packages
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspbian.org jessie/rpi armhf Packages
Feb 02 07:57:55 volumiolcd volumio[951]: info: Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Feb 02 07:57:55 volumiolcd volumio[951]: info: Ign http://archive.raspbian.org jessie/contrib Translation-en
Feb 02 07:57:55 volumiolcd volumio[951]: info: Ign http://archive.raspbian.org jessie/main Translation-en
Feb 02 07:57:55 volumiolcd volumio[951]: info: Ign http://archive.raspbian.org jessie/non-free Translation-en
Feb 02 07:57:55 volumiolcd volumio[951]: info: Ign http://archive.raspbian.org jessie/rpi Translation-en
Feb 02 07:57:56 volumiolcd volumio[951]: info: Ign http://archive.raspberrypi.org jessie/main Translation-en
Feb 02 07:57:56 volumiolcd volumio[951]: info: Ign http://archive.raspberrypi.org jessie/ui Translation-en
Feb 02 07:58:15 volumiolcd volumio[951]: info: Reading package lists...
Feb 02 07:58:22 volumiolcd volumio[951]: info: Selecting previously unselected package snapclient.
Feb 02 07:58:22 volumiolcd volumio[951]: info: (Reading database ... 22352 files and directories currently installed.)
Feb 02 07:58:22 volumiolcd volumio[951]: info: Preparing to unpack .../snapclient_0.12.0_armhf.deb ...
Feb 02 07:58:22 volumiolcd volumio[951]: info: Unpacking snapclient (0.12.0) ...
Feb 02 07:58:23 volumiolcd volumio[951]: info: Setting up snapclient (0.12.0) ...
Feb 02 07:58:23 volumiolcd useradd[14073]: new user: name=snapclient, UID=999, GID=29, home=/var/lib/snapclient, shell=/bin/sh
Feb 02 07:58:23 volumiolcd systemd[1]: Reloading.
Feb 02 07:58:23 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
Feb 02 07:58:23 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Feb 02 07:58:23 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Feb 02 07:58:23 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Reloading.
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Reloading.
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Starting Snapcast client...
Feb 02 07:58:24 volumiolcd snapclient[14142]: daemon started
Feb 02 07:58:24 volumiolcd systemd[1]: Started Snapcast client.
Feb 02 07:58:24 volumiolcd volumio[951]: info: Processing triggers for systemd (215-17+deb8u7) ...
Feb 02 07:58:24 volumiolcd systemd[1]: Reloading.
Feb 02 07:58:24 volumiolcd snapclient[14142]: Connected to 192.168.179.9
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Feb 02 07:58:24 volumiolcd systemd[1]: Configuration file /lib/systemd/system/spop.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Feb 02 07:58:25 volumiolcd volumio[951]: info: Selecting previously unselected package snapserver.
Feb 02 07:58:25 volumiolcd volumio[951]: info: (Reading database ... 22361 files and directories currently installed.)
Feb 02 07:58:25 volumiolcd volumio[951]: info: Preparing to unpack .../snapserver_0.12.0_armhf.deb ...
Feb 02 07:58:25 volumiolcd volumio[951]: info: Unpacking snapserver (0.12.0) ...
Feb 02 07:58:25 volumiolcd volumio[951]: info: Setting up snapserver (0.12.0) ...
Feb 02 07:58:25 volumiolcd useradd[14177]: new group: name=snapserver, GID=997
Feb 02 07:58:25 volumiolcd useradd[14177]: new user: name=snapserver, UID=998, GID=997, home=/var/lib/snapserver, shell=/bin/sh
Feb 02 07:58:26 volumiolcd systemd[1]: Reloading.
andlo commented 6 years ago

My log says this:

2018-02-02T17:19:11.432Z - info: Downloading plugin at http://127.0.0.1:3000/plugin-serve/0ce632f9-30bf-4137-9e91-223cf4 7716f7.zip 2018-02-02T17:19:11.482Z - info: END DOWNLOAD: http://127.0.0.1:3000/plugin-serve/0ce632f9-30bf-4137-9e91-223cf47716f7.z ip 2018-02-02T17:19:11.490Z - info: Folder /tmp/plugins removed 2018-02-02T17:19:11.581Z - info: Checking if plugin already exists 2018-02-02T17:19:11.589Z - info: An error occurred installing the plugin. Rolling back config 2018-02-02T17:19:11.589Z - info: Plugin folders cleanup 2018-02-02T17:19:11.590Z - info: Scanning into folder /volumio/app/plugins/ 2018-02-02T17:19:11.590Z - info: Scanning category audio_interface 2018-02-02T17:19:11.591Z - info: Scanning category miscellanea 2018-02-02T17:19:11.593Z - info: Scanning category music_service 2018-02-02T17:19:11.594Z - info: Scanning category plugins.json 2018-02-02T17:19:11.595Z - info: Scanning category system_controller 2018-02-02T17:19:11.596Z - info: Scanning category user_interface 2018-02-02T17:19:11.597Z - info: Scanning into folder /data/plugins/ 2018-02-02T17:19:11.605Z - info: Scanning category miscellanea 2018-02-02T17:19:11.606Z - info: Scanning category music_service 2018-02-02T17:19:11.607Z - info: Plugin folders cleanup completed 2018-02-02T17:19:11.609Z - info: Error: Error 2018-02-02T17:19:11.616Z - info: Folder /tmp/plugins removed 2018-02-02T17:19:11.623Z - info: Folder /tmp/downloaded_plugin.zip removed 2018-02-02T17:19:11.625Z - info: Folder /tmp/downloaded_plugin.zip removed 2018-02-02T17:19:11.709Z - info: Folder /data/temp removed

Saiyato commented 6 years ago

Looks like a general error, not necessarily related to this plugin, here's where the magic happens:

2018-02-02T17:19:11.607Z - info: Plugin folders cleanup completed 
2018-02-02T17:19:11.609Z - info: Error: Error 
2018-02-02T17:19:11.616Z - info: Folder /tmp/plugins removed

Does it happen on new clean install and which image are you on?

andlo commented 6 years ago

Yes It happens on new install "Funny" part is that other plugins install fine....

I use Raspberypi volumio 2.348 and did try make a total new install and no other olugins and install this plugin - same error :(

Saiyato commented 6 years ago

I think you're having network problems, but let's not jump to conclusions, can you download from github in the Pi?

Example: wget $(curl -s https://api.github.com/repos/badaix/snapcast/releases/latest | grep 'armhf' | cut -d\" -f4) -P /home/volumio/snapcast

If that doesn't work I can't help you, then it's a problem in downloading from github which I can't solve.

andlo commented 6 years ago

Well your example didnt go well, but dooing a wget did

volumio@volumio:~$ wget https://github.com/Saiyato/volumio-snapcast-plugin/archive/1.2.3.zip
--2018-02-03 15:30:38--  https://github.com/Saiyato/volumio-snapcast-plugin/archive/1.2.3.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Saiyato/volumio-snapcast-plugin/zip/1.2.3 [following]
--2018-02-03 15:30:39--  https://codeload.github.com/Saiyato/volumio-snapcast-plugin/zip/1.2.3
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘1.2.3.zip’

1.2.3.zip                         [    <=>                                             ] 426.08K   387KB/s   in 1.1s

2018-02-03 15:30:41 (387 KB/s) - ‘1.2.3.zip’ saved [436306]
andlo commented 6 years ago

Your example did just this

volumio@volumio:~$ wget $(curl -s https://api.github.com/repos/badaix/snapcast/releases/latest | grep 'armhf' | cut -d" -f4) -P /home/volumio/snapcast
>
Saiyato commented 6 years ago

Odd, I'm getting the following:

volumio@volumiolcd:~$ wget $(curl -s https://api.github.com/repos/badaix/snapcast/releases/latest | grep 'armhf' | cut -d\" -f4) -P /home/volumio/snapcast
converted 'http://snapclient_0.12.0_armhf.deb' (ANSI_X3.4-1968) -> 'http://snapclient_0.12.0_armhf.deb' (UTF-8)
--2018-02-03 15:35:08--  http://snapclient_0.12.0_armhf.deb/
Resolving snapclient_0.12.0_armhf.deb (snapclient_0.12.0_armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address 'snapclient_0.12.0_armhf.deb'
converted 'https://github.com/badaix/snapcast/releases/download/v0.12.0/snapclient_0.12.0_armhf.deb' (ANSI_X3.4-1968) -> 'https://github.com/badaix/snapcast/releases/download/v0.12.0/snapclient_0.12.0_armhf.deb' (UTF-8)
--2018-02-03 15:35:09--  https://github.com/badaix/snapcast/releases/download/v0.12.0/snapclient_0.12.0_armhf.deb
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/797d7c1c-b383-11e7-90a4-acd3293f0ede?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T153510Z&X-Amz-Expires=300&X-Amz-Signature=b269e263e73829633b79df9fdc1340266b1862babf31c691127848b6eaffc5fa&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapclient_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream [following]
converted 'https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/797d7c1c-b383-11e7-90a4-acd3293f0ede?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T153510Z&X-Amz-Expires=300&X-Amz-Signature=b269e263e73829633b79df9fdc1340266b1862babf31c691127848b6eaffc5fa&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapclient_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream' (ANSI_X3.4-1968) -> 'https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/797d7c1c-b383-11e7-90a4-acd3293f0ede?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180203/us-east-1/s3/aws4_request&X-Amz-Date=20180203T153510Z&X-Amz-Expires=300&X-Amz-Signature=b269e263e73829633b79df9fdc1340266b1862babf31c691127848b6eaffc5fa&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=snapclient_0.12.0_armhf.deb&response-content-type=application/octet-stream' (UTF-8)
--2018-02-03 15:35:10--  https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/797d7c1c-b383-11e7-90a4-acd3293f0ede?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180203/us-east-1/s3/aws4_request&X-Amz-Date=20180203T153510Z&X-Amz-Expires=300&X-Amz-Signature=b269e263e73829633b79df9fdc1340266b1862babf31c691127848b6eaffc5fa&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=snapclient_0.12.0_armhf.deb&response-content-type=application/octet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 54.231.72.243
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|54.231.72.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 316028 (309K) [application/octet-stream]
/home/volumio/snapcast/snapclient_0.12.0_armhf.deb.1: Permission denied

Cannot write to '/home/volumio/snapcast/snapclient_0.12.0_armhf.deb.1' (Permission denied).
converted 'http://snapserver_0.12.0_armhf.deb' (ANSI_X3.4-1968) -> 'http://snapserver_0.12.0_armhf.deb' (UTF-8)
--2018-02-03 15:35:10--  http://snapserver_0.12.0_armhf.deb/
Resolving snapserver_0.12.0_armhf.deb (snapserver_0.12.0_armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address 'snapserver_0.12.0_armhf.deb'
converted 'https://github.com/badaix/snapcast/releases/download/v0.12.0/snapserver_0.12.0_armhf.deb' (ANSI_X3.4-1968) -> 'https://github.com/badaix/snapcast/releases/download/v0.12.0/snapserver_0.12.0_armhf.deb' (UTF-8)
--2018-02-03 15:35:11--  https://github.com/badaix/snapcast/releases/download/v0.12.0/snapserver_0.12.0_armhf.deb
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/79fde000-b383-11e7-8022-702a163c1512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T153511Z&X-Amz-Expires=300&X-Amz-Signature=081befa97b7fe91c0b5387b5e4f59908658408d5c0a9097eb60f4d6070b5d5db&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapserver_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream [following]
converted 'https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/79fde000-b383-11e7-8022-702a163c1512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T153511Z&X-Amz-Expires=300&X-Amz-Signature=081befa97b7fe91c0b5387b5e4f59908658408d5c0a9097eb60f4d6070b5d5db&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapserver_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream' (ANSI_X3.4-1968) -> 'https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/79fde000-b383-11e7-8022-702a163c1512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180203/us-east-1/s3/aws4_request&X-Amz-Date=20180203T153511Z&X-Amz-Expires=300&X-Amz-Signature=081befa97b7fe91c0b5387b5e4f59908658408d5c0a9097eb60f4d6070b5d5db&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=snapserver_0.12.0_armhf.deb&response-content-type=application/octet-stream' (UTF-8)
--2018-02-03 15:35:11--  https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/79fde000-b383-11e7-8022-702a163c1512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180203/us-east-1/s3/aws4_request&X-Amz-Date=20180203T153511Z&X-Amz-Expires=300&X-Amz-Signature=081befa97b7fe91c0b5387b5e4f59908658408d5c0a9097eb60f4d6070b5d5db&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=snapserver_0.12.0_armhf.deb&response-content-type=application/octet-stream
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|54.231.72.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 388792 (380K) [application/octet-stream]
/home/volumio/snapcast/snapserver_0.12.0_armhf.deb.1: Permission denied

Cannot write to '/home/volumio/snapcast/snapserver_0.12.0_armhf.deb.1' (Permission denied).
Saiyato commented 6 years ago

The problem is in the amazonaws location I believe, but I'm not entirely sure.

andlo commented 6 years ago

Well what you did were OK - and it worked for me - se down. The first example were missing a backslash in the cut -d\" ....

volumio@volumio:~$ wget $(curl -s https://api.github.com/repos/badaix/snapcast/releases/latest | grep 'armhf' | cut -d\" -f4) -P /home/volumio/snapcast
--2018-02-03 16:10:26--  http://snapclient_0.12.0_armhf.deb/
Resolving snapclient_0.12.0_armhf.deb (snapclient_0.12.0_armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘snapclient_0.12.0_armhf.deb’
--2018-02-03 16:10:27--  https://github.com/badaix/snapcast/releases/download/v0.12.0/snapclient_0.12.0_armhf.deb
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/797d7c1c-b383-11e7-90a4-acd3293f0ede?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T161027Z&X-Amz-Expires=300&X-Amz-Signature=06ad45023042fac60cde154c16ea9e14be25bd6117a4dff6ea2f7f3a7e9dec5c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapclient_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream [following]
--2018-02-03 16:10:28--  https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/797d7c1c-b383-11e7-90a4-acd3293f0ede?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T161027Z&X-Amz-Expires=300&X-Amz-Signature=06ad45023042fac60cde154c16ea9e14be25bd6117a4dff6ea2f7f3a7e9dec5c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapclient_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.96.203
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.96.203|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 316028 (309K) [application/octet-stream]
Saving to: ‘/home/volumio/snapcast/snapclient_0.12.0_armhf.deb’

/home/volumio/snapcast/snapcl 100%[===================================================>] 308.62K   607KB/s   in 0.5s

2018-02-03 16:10:28 (607 KB/s) - ‘/home/volumio/snapcast/snapclient_0.12.0_armhf.deb’ saved [316028/316028]

--2018-02-03 16:10:28--  http://snapserver_0.12.0_armhf.deb/
Resolving snapserver_0.12.0_armhf.deb (snapserver_0.12.0_armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘snapserver_0.12.0_armhf.deb’
--2018-02-03 16:10:29--  https://github.com/badaix/snapcast/releases/download/v0.12.0/snapserver_0.12.0_armhf.deb
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/79fde000-b383-11e7-8022-702a163c1512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T161029Z&X-Amz-Expires=300&X-Amz-Signature=556bb5d1dcd0b5593d9df2fd5dcf570108172a0c0445a06a9455c7cbe0426a30&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapserver_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream [following]
--2018-02-03 16:10:30--  https://github-production-release-asset-2e65be.s3.amazonaws.com/28706706/79fde000-b383-11e7-8022-702a163c1512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180203T161029Z&X-Amz-Expires=300&X-Amz-Signature=556bb5d1dcd0b5593d9df2fd5dcf570108172a0c0445a06a9455c7cbe0426a30&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsnapserver_0.12.0_armhf.deb&response-content-type=application%2Foctet-stream
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.96.203|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 388792 (380K) [application/octet-stream]
Saving to: ‘/home/volumio/snapcast/snapserver_0.12.0_armhf.deb’

/home/volumio/snapcast/snapse 100%[===================================================>] 379.68K   571KB/s   in 0.7s

2018-02-03 16:10:31 (571 KB/s) - ‘/home/volumio/snapcast/snapserver_0.12.0_armhf.deb’ saved [388792/388792]
Total wall clock time: 4.4s
Downloaded: 2 files, 688K in 1.2s (587 KB/s)
volumio@volumio:~$
FINISHED --2018-02-03 16:10:31--
Saiyato commented 6 years ago

Just one more question, what version of the plugin are you using? There have been a lot of changes in the past, related to not being able to install.

I think the package might be corrupt, because it fails before any of my code is reached (it start with install.sh).

andlo commented 6 years ago

Well - I dont know.....I did first download directly from git, and then I downloaded the zipfile and then I did download the 1.2.3.zip under releases. Can you point me to the right one to download ?

andlo commented 6 years ago

GOT IT WORKING :)

Downloaded from here https://github.com/Saiyato/volumio-snapcast-plugin/blob/master/volumio-snapcast-plugin.zip

Saiyato commented 6 years ago

Awesome!

Yeah the release was a try that failed... Don't really get that part on github yet, mea culpa. But is the installation resolved now? :)

andlo commented 6 years ago

Yes I got it installed...Now I dont have sound, but think that is because I don understand how to set it up correctly.

Saiyato commented 6 years ago

Aye, you might want to look into the output device and select your soundcard ;)

andlo commented 6 years ago

Thanks - but it is set to Audio Jack and thats were sound should go. So I dont think that is the problem :(

Saiyato commented 6 years ago

In the plugin or in Volumio?

andlo commented 6 years ago

In the plugin and volumio....But then I did try changeing in /etc/spopd.con the Output_name from spotififo to snapfifo, and then I got some sound out....

Ill make a reinstall now of volumio and install everything again to be sure i didnt mess something up :)

[sox] output_type = raw output_name = /tmp/snapfifo

andlo commented 6 years ago

New install - everything seems OK :)

Saiyato commented 6 years ago

Awesome! It's quite unforgiving if you change settings that don't go together, there are too many options I think.