Skip to content

Commit 2d55a06

Browse files
committed
Debug elastcisearch8 connection
1 parent 65dc8e4 commit 2d55a06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ public function validate(): array
3838
$errors = [];
3939
try {
4040
echo "Check elasticsearch8 server up or not with command line\n";
41-
shell_exec("curl localhost:9200/");
41+
shell_exec("curl http://127.0.0.1:9200/");
4242

4343
$output = shell_exec('netstat -tuln');
4444
echo "<pre>$output</pre>";
4545

46+
47+
$output = shell_exec("cat /var/log/elasticsearch/elasticsearch.log");
48+
echo "<pre>$output</pre>";
49+
4650
$client = $this->clientResolver->create();
4751
if (!$client->testConnection()) {
4852
$errors[] = 'Could not validate a connection to Elasticsearch.'

0 commit comments

Comments
 (0)