13. Juli 2019 at 18:33 #46303
I was successfully running LMS via Max2PLay v2.47 on a Raspberry 3B+, with an activated license.
After updating to v2.50 I can no longer activate the license through email or key.
I’ve also done the following: Set a fixed IP, switched from WiFi to Ethernet, de-activated a number of plugins incl. the Hifiberry plugin.
The Pi was running as squeezelite + LMS and is a LMS now only.
Which of the above things might have broken the license mechanism?
How to troubleshoot?15. Juli 2019 at 15:26 #46309
I checked your license and it activated our tester.
None of the things you mentioned should have any bearing on our license server and its authentication process.
The only thing you can check is that the automatic access point in WiFi/LAN does not block the internet access.
Please try the following:
Make sure your Max2Play device is connected to the internet.
Delete the license in the Max2Play interface and click „save“ with a blank field.
Click on „Settings/Reboot“ again, reenter your license and click „save“.
Check if the green „Activated“ field appears. If not, contact us again for further help.15. Juli 2019 at 16:20 #46318
I did further troubleshooting:
Changing from eth0 to wlan0 did nothing to solve the issue.
I then checked DNS requests in pi-hole and it seems a successful (DNS) request is made after clicking the „Save“ button on the Settings tab.
Time Type Domain Client Status Reply Action 2019-07-15 15:12:46 A www.max2play.com 192.168.XXX.XXX OK (cached) IP (0.2ms) Blacklist 2019-07-15 15:12:46 AAAA www.max2play.com 192.168.XXX.XXX OK (cached) IP (0.2ms) Blacklist
Based on that I can only guess that either, low-level networking is borked in some way (which should be easy to troubleshoot), or, the license activation function somehow fails.15. Juli 2019 at 18:42 #46322
I hope this is helpful:
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /var/www/max2play/application/model/CheckLicense.php on line 28 Warning: file_get_contents(): Failed to enable crypto in /var/www/max2play/application/model/CheckLicense.php on line 28 Warning: file_get_contents(https://XXX.com/XXX?email=XXX): failed to open stream: operation failed in /var/www/max2play/application/model/CheckLicense.php on line 2815. Juli 2019 at 22:58 #46326
While I first thought ShairTunes2 LMS plugin might have played a role, my understanding now is that Php comes with its own version of openSSL.
Stack Overflow reveals that the error in many cases is triggered by a missing certificate.
While trying to download the recommended certificate I encountered something strange:
$ wget https://curl.haxx.se/ca/cacert.pem --2019-07-15 22:35:35-- https://curl.haxx.se/ca/cacert.pem Resolving curl.haxx.se (curl.haxx.se)... 220.127.116.11, 18.104.22.168, 22.214.171.124, ... Connecting to curl.haxx.se (curl.haxx.se)|126.96.36.199|:443... connected. ERROR: The certificate of ‘curl.haxx.se’ is not trusted. ERROR: The certificate of ‘curl.haxx.se’ hasn't got a known issuer.
Turns out, the certificate store (here /etc/ssl/certs) was empty.
Luckily on Debian the solution is trivial:
sudo apt-get install ca-certificates
I can’t exclude the possibility that something else cleared the certificate store (couldn’t say what did), however, I strongly suggest to check your upgrade scripts.
You must be logged in to reply to this topic.