Skip to content

Commit aff8b7e

Browse files
committed
Debug elastcisearch8 connection
1 parent b9bae61 commit aff8b7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Elasticsearch/Setup/Validator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public function validate(): array
3838
$errors = [];
3939
try {
4040
$client = $this->clientResolver->create();
41+
echo "Check elasticsearch8 server up or not with command line\n";
42+
shell_exec("curl localhost:9200/");
43+
44+
$output = shell_exec('netstat -tuln');
45+
echo "<pre>$output</pre>";
4146
if (!$client->testConnection()) {
4247
$errors[] = 'Could not validate a connection to Elasticsearch.'
4348
. ' Verify that the Elasticsearch host and port are configured correctly.';

0 commit comments

Comments
 (0)