ashthespy / Vollibrespot

Spotify Connect daemon for Volumio
MIT License
20 stars 8 forks source link

Can't download Volibrespot when installing Volumio Spotify Connect2 #3

Closed OnFreund closed 5 years ago

OnFreund commented 5 years ago

(I hope this is the right place)

Hi,

I'm trying to install Volumio Spotify Connect2 and getting

Downloading plugin at http://volumio.github.io/volumio-plugins/plugins/volumio/armhf/music_service/volspotconnect2/volspotconnect2.zip
END DOWNLOAD: http://volumio.github.io/volumio-plugins/plugins/volumio/armhf/music_service/volspotconnect2/volspotconnect2.zip
Creating folder on disk
Unpacking plugin
Checking for duplicate plugin
Copying Plugin into location
Installing dependencies
Launching a bash shell
Installing Volspotconnect2 dependencies
Configuration file doesn't exist, nothing to do
Detected cpu architecture as armv7l
Supported device (arch = armv7l), downloading required packages for vollibrespot v0.1.6
Downloading from https://api.github.com/repos/ashthespy/vollibrespot/releases/tags/v0.1.6

Failed to download vollibrespot daemon. Stopping installation now. Check your internet connection, and check DNS settings in Volumio for possible cause Exitting now
The following error occurred when installing the plugin: Error

I also tried SSHing to the device and running:

curl https://gist.githubusercontent.com/ashthespy/8f86f1825acbd716fc4b78c63d7ce683/raw/54f3b32b0b80ee016a7545c6983a3592f644d304/getVollibrespot.sh | bash

The output is:

Failed to stop volspotconnect2.service: Unit volspotconnect2.service not loaded.
Detected cpu architecture as armv7l
bash: line 33: cd: /data/plugins/music_service/volspotconnect2: No such file or directory
jq: package.json: No such file or directory
Supported device (arch = armv7l), downloading required packages for vollibrespot v
bash: line 41: [: !=: unary operator expected
Downloading from https://api.github.com/repos/ashthespy/vollibrespot/releases/tags/v

curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Failed to download vollibrespot daemon. Stopping installation now. Check your internet connection, and check DNS settings in Volumio for possible cause Exitting now
ashthespy commented 5 years ago

Where are you trying to install the plugin from? Please try with the latest version from balbuze/volumio-plugins

OnFreund commented 5 years ago

I'm trying to install from the WebUI. Will try the link you sent and let you know.

OnFreund commented 5 years ago

@ashthespy doesn't work either:

This command will install the plugin on your device

Compressing the plugin
Plugin succesfully compressed
Progress: 10
Status :Downloading plugin
Progress: 30
Status :Creating folder on disk
Progress: 40
Status :Unpacking plugin
Progress: 50
Status :Checking for duplicate plugin
Progress: 60
Status :Copying Plugin into location
Progress: 70
Status :Installing dependencies
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :Installing dependencies
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :Installing dependencies
Progress: 70
Status :Installing dependencies
Progress: 70
Status :Installing dependencies
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :Installing dependencies
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :Installing dependencies
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :Installing dependencies
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :The following error occurred when installing the plugin: Error
Progress: 70
Status :Installing dependencies
Progress: 0
Status :The following error occurred when installing the plugin: Error
ashthespy commented 5 years ago

Those logs don't really help do they? :-( As a first round, could you try manually executing the install.sh script to check if succeeds to download the right version of the backend? This would then be:

wget https://github.com/balbuze/volumio-plugins/raw/master/plugins/music_service/volspotconnect2/volspotconnect2.zip
mkdir ./volspotconnect2
miniunzip volspotconnect2.zip -d ./volspotconnect2
cd ./volspotconnect2
chmod +x install.sh
./install.sh
OnFreund commented 5 years ago

Those logs don't really help do they? :-(

That was the output :)

Here's the output when executing manually:

Installing Volspotconnect2 dependencies
Configuration file doesn't exist, nothing to do
Detected cpu architecture as armv7l
./install.sh: line 42: cd: /data/plugins/music_service/volspotconnect2: No such file or directory
Supported device (arch = armv7l), downloading required packages for vollibrespot v0.1.7
./install.sh: line 50: [: !=: unary operator expected
Downloading from https://api.github.com/repos/ashthespy/vollibrespot/releases/tags/v0.1.7

curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Failed to download vollibrespot daemon. Stopping installation now. Check your internet connection, and check DNS settings in Volumio for possible cause Exitting now
ashthespy commented 5 years ago

Stranger and stranger. Could you try

RELEASE_JSON=$(curl --silent "https://api.github.com/repos/ashthespy/vollibrespot/releases/latest")
LATEST_VER=$(jq -r  '.tag_name' <<< "${RELEASE_JSON}")
echo $LATEST_VER
OnFreund commented 5 years ago

$LATEST_VER is empty

OnFreund commented 5 years ago

and so is $RELEASE_JSON

OnFreund commented 5 years ago

OK, first clue:

> wget https://api.github.com/repos/ashthespy/vollibrespot/releases/latest
--2019-01-05 23:41:34--  https://api.github.com/repos/ashthespy/vollibrespot/releases/latest
Resolving api.github.com (api.github.com)... 140.82.118.6
Connecting to api.github.com (api.github.com)|140.82.118.6|:443... connected.
ERROR: The certificate of ‘api.github.com’ is not trusted.
ERROR: The certificate of ‘api.github.com’ is not yet activated.
The certificate has not yet been activated
ashthespy commented 5 years ago

Ah, what version of Volumio are you on?

sudo apt-get install ssl-cert

should fix it

OnFreund commented 5 years ago

Running the latest version, but it's not about ssl-cert, but rather the local time. Apparently doesn't do NTP. I was able to get around it by doing timedatectl set-ntp true and was then able to install through the web-ui :)

Any idea how to enable NTP in Volumio by default?

ashthespy commented 5 years ago

https://github.com/volumio/Volumio2/issues/741#issuecomment-256066520 Is a long standing open issue.

Glad you figured it out!

OnFreund commented 5 years ago

Thanks for your help!