owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.38k stars 2.06k forks source link

[QA] https connection with invalid SSL-certificate only logs an 'unknown error' #40011

Open jnweiger opened 2 years ago

jnweiger commented 2 years ago

Seen with search_elastic 2.1.1-rc1 Probably not specific to search_elastic. sftp, ldaps, ... could also be affected.

owncloud.log has (same for a) and b) ):

{"reqId":"YmNdYqWDrcqPnF34nGInxgAAAAM","level":3,"time":"2022-04-23T01:58:58+00:00","remoteAddr":"2.247.253.233","user":"admin","app":"search_elastic","method":"GET","url":"\/ind
ex.php\/core\/search?query=hello&inApps%5B%5D=files&page=1&size=30","message":"Exception: {\"Exception\":\"Elastica\\\\Exception\\\\Connection\\\\HttpException\",\"Message\":\"Un
known error:60\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps-external\\\/search_elastic\\\/vendor\\\/ruflin\\\/elastica\\\/src\\\/Request.php(178): Elastica\\\\T
ransport\\\\Http->exec()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps-external\\\/search_elastic\\\/vendor\\\/ruflin\\\/elastica\\\/src\\\/Client.php(513): Elastica\\\\Request->send()
\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps-external\\\/search_elastic\\\/vendor\\\/ruflin\\\/elastica\\\/src\\\/Search.php(278): Elastica\\\\Client->request()\\n#3 \\\/var\\\/www\\
\/owncloud\\\/apps-external\\\/search_elastic\\\/lib\\\/SearchElasticService.php(205): Elastica\\\\Search->search()\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps-external\\\/search_ela
stic\\\/lib\\\/Search\\\/ElasticSearchProvider.php(198): OCA\\\\Search_Elastic\\\\SearchElasticService->search()\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps-external\\\/search_elasti
c\\\/lib\\\/Search\\\/ElasticSearchProvider.php(103): OCA\\\\Search_Elastic\\\\Search\\\\ElasticSearchProvider->fetchResults()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\
\/Search.php(67): OCA\\\\Search_Elastic\\\\Search\\\\ElasticSearchProvider->searchPaged()\\n#7 \\\/var\\\/www\\\/owncloud\\\/core\\\/search\\\/ajax\\\/search.php(56): OC\\\\Searc
h->searchPaged()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Route.php(155): require_once('\\\/var\\\/www\\\/ownclo...')\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\
\\/private\\\/Route\\\/Router.php(344): OC\\\\Route\\\\Route->OC\\\\Route\\\\{closure}(*** sensitive parameters replaced ***)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(
927): OC\\\\Route\\\\Router->match()\\n#11 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps-external\
\\/search_elastic\\\/vendor\\\/ruflin\\\/elastica\\\/src\\\/Transport\\\/Http.php\",\"Line\":186}"}

Expected behaviour:

Note that the error code 60 is seen in both, the curl error message, and the owncloud.log "Unknown error:60"

jnweiger commented 2 years ago

An identical "Unknown error: 60" is logged, when the certificate had expired. In any case, curl can be used to diagnose the actual cause.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue has been automatically closed.

jnweiger commented 1 year ago

stale bot should not close QA issues