[GH-ISSUE #399] Get info fails. Error: SSL operation failed. #287

Closed
opened 2026-02-26 02:32:41 +03:00 by kerem · 2 comments
Owner

Originally created by @BernardGoldberger on GitHub (Aug 10, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/399

image

The above seems to be affecting 2 things...

  1. Editing the song info, which just hangs with a loading icon.
  2. Last.fm which is not loading any info on the Album or Artist.

Additionally it seems like that when Editing a song is unable to to load, it hangs until Koel is reloaded.

Originally created by @BernardGoldberger on GitHub (Aug 10, 2016). Original GitHub issue: https://github.com/koel/koel/issues/399 ![image](https://cloud.githubusercontent.com/assets/10334679/17539277/eca1a984-5e7a-11e6-991b-351125710f25.png) The above seems to be affecting 2 things... 1. Editing the song info, which just hangs with a loading icon. 2. Last.fm which is not loading any info on the Album or Artist. Additionally it seems like that when Editing a song is unable to to load, it hangs until Koel is reloaded.
kerem closed this issue 2026-02-26 02:32:41 +03:00
Author
Owner

@phanan commented on GitHub (Aug 10, 2016):

Actually I can't reproduce this.

<!-- gh-comment-id:238758917 --> @phanan commented on GitHub (Aug 10, 2016): Actually I can't reproduce this.
Author
Owner

@BernardGoldberger commented on GitHub (Aug 10, 2016):

Me :-/ strikes again, It just happened on all the FLAC files I was working on and not on MP3, but I did some more tests and it had nothing to do with the file type, and it actually logged the following error in the laravel log file,

[2016-08-10 12:15:57] production.ERROR: ErrorException: file_get_contents(): SSL operation failed
with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
C:\wamp64\www\koel\app\Models\Album.php:86

I did some digging around and found this link hat helped me fix it.

I ran php -r "print_r(openssl_get_cert_locations());" which returned,

Array                                                
(                                                    
    [default_cert_file] => c:/usr/local/ssl/cert.pem 
    [default_cert_file_env] => SSL_CERT_FILE         
    [default_cert_dir] => c:/usr/local/ssl/certs     
    [default_cert_dir_env] => SSL_CERT_DIR           
    [default_private_dir] => c:/usr/local/ssl/private
    [default_default_cert_area] => c:/usr/local/ssl  
    [ini_cafile] =>                                  
    [ini_capath] =>                                  
)

Added the following lines to the php ini file
openssl.cafile= "C:\wamp64\bin\php\php7.0.9\extras\ssl\cacert.pem" and
openssl.capath= "C:\wamp64\bin\php\php7.0.9\extras\ssl", and its all good now.

NOTES

  1. You will need to download the cert file at https://curl.haxx.se/ca/cacert.pem
  2. If you are using Apache [through WAMP in my case], you might have to do this in the phpForApache ini file.
<!-- gh-comment-id:238872629 --> @BernardGoldberger commented on GitHub (Aug 10, 2016): Me :-/ strikes again, It just happened on all the `FLAC` files I was working on and not on `MP3`, but I did some more tests and it had nothing to do with the file type, and it actually logged the following error in the laravel log file, ``` [2016-08-10 12:15:57] production.ERROR: ErrorException: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\wamp64\www\koel\app\Models\Album.php:86 ``` I did some digging around and found [this link](https://akrabat.com/ssl-certificate-verification-on-php-5-6/) hat helped me fix it. I ran `php -r "print_r(openssl_get_cert_locations());"` which returned, ``` Array ( [default_cert_file] => c:/usr/local/ssl/cert.pem [default_cert_file_env] => SSL_CERT_FILE [default_cert_dir] => c:/usr/local/ssl/certs [default_cert_dir_env] => SSL_CERT_DIR [default_private_dir] => c:/usr/local/ssl/private [default_default_cert_area] => c:/usr/local/ssl [ini_cafile] => [ini_capath] => ) ``` Added the following lines to the `php` ini file `openssl.cafile= "C:\wamp64\bin\php\php7.0.9\extras\ssl\cacert.pem"` and `openssl.capath= "C:\wamp64\bin\php\php7.0.9\extras\ssl"`, and its all good now. **NOTES** 1. You will need to download the cert file at https://curl.haxx.se/ca/cacert.pem 2. If you are using Apache [through [WAMP](http://www.wampserver.com/en/) in my case], you might have to do this in the `phpForApache` ini file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#287
No description provided.