elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.97k stars 24.75k forks source link

Elastic Nest 7 , unknown from: POST /_reindex?wait_for_completion=true #114898

Open Blqck666 opened 1 week ago

Blqck666 commented 1 week ago

i'm reindexing docs from one index to another and usually i got this exception which i dont know what cause it, in my local pc i didnt have it but in az pipeline it happens frequently . this is the code i'm using to do the reindex :

var result = await client.ReindexOnServerAsync(r =>
            {
                return r.Source(s => s.Index(startIndex))
                    .Destination(d => d.Index(finalIndexName))
                    .Script(s=>s.Source(scriptContent.Source).Lang(scriptContent.Lang).Params(scriptContent.Params))
                    .WaitForCompletion();
            });

Elasticsearch.Net.ElasticsearchClientException: An error occurred while sending the request. Call: Status code unknown from: POST /_reindex?wait_for_completion=true 2024-10-16T09:48:05.2852394Z ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. 2024-10-16T09:48:05.2854157Z ---> System.IO.IOException: The decryption operation failed, see inner exception. 2024-10-16T09:48:05.2855892Z ---> Interop+OpenSsl+SslException: Decrypt failed with OpenSSL error - SSL_ERROR_SSL. 2024-10-16T09:48:05.2857883Z ---> Interop+Crypto+OpenSslCryptographicException: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac 2024-10-16T09:48:05.2859493Z --- End of inner exception stack trace ---

pxsalehi commented 1 week ago

This suggests that the client connection to ES is not working. Do other functionalities other than reindex work? e.g. if you index or query data via the client? How are you running ES?