XF 2.2 Error Logs cURL and Elastisearch

RobNH

Member
I have been getting a ton of the following errors across three of my xenForo websites on my dedicated server:

cURL error 7: Failed to connect to localhost port 9200 after 0 ms: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Today at 8:12 AM src/addons/XFES/Elasticsearch/Api.php:405

cURL error 7: Failed to connect to localhost port 9200 after 0 ms: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Today at 8:07 AM src/addons/XFES/Elasticsearch/Api.php:405

cURL error 7: Failed to connect to localhost port 9200 after 0 ms: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Today at 8:06 AM src/addons/XFES/Elasticsearch/Api.php:405

cURL error 7: Failed to connect to localhost port 9200 after 0 ms: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Today at 8:06 AM src/addons/XFES/Elasticsearch/Api.php:405

Similar thread cache rebuild failure: cURL error 7: Failed to connect to localhost port 9200 after 0 ms: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Today at 8:03 AM src/addons/XFES/Elasticsearch/Api.php:405


This has been going on now for a couple of weeks - at least. cURL is installed and running correctly on my server. What is causing this issue? My server environment specs are below:



PHP version
8.0.18

MySQL version
10.3.34 (10.3.34-MariaDB)

PHP memory_limit
250M

PHP post_max_size
225M

PHP upload_max_filesize
650M

PHP max_input_vars
1000

PHP max_execution_time
90

cURL version
7.83.0

cURL SSL version
OpenSSL/1.1.1n

OpenSSL version
OpenSSL 1.1.1n 15 Mar 2022

Suhosin enabled
No

Imagick support
Yes

EXIF support
Yes

GZip support
Yes

mbstring support
Yes

gmp support
Yes

ZipArchive support
Yes
 
This error occurs when a connection to Elasticsearch could not be established. Make sure Elasticsearch is up and running. If the errors were intermittent they can probably be ignored.
 
This error occurs when a connection to Elasticsearch could not be established. Make sure Elasticsearch is up and running. If the errors were intermittent they can probably be ignored.
The errors related to Elasticsearch have ended, but I'm still getting a ton of the following:



  • Generated by: Unknown account
  • May 16, 2022 at 8:36 AM


Stack trace​


#0 src/XF.php(219): XF\Error->logError('Push notificati...', false)
#1 src/XF/Service/PushNotification.php(243): XF::logError('Push notificati...')
#2 src/XF/Service/PushNotification.php(176): XF\Service\PushNotification->handleResults(Object(Generator))
#3 src/XF/Service/PusherTrait.php(194): XF\Service\PushNotification->sendNotifications()
#4 src/XF/Repository/UserAlert.php(165): XF\Service\Alert\Pusher->push()
#5 src/XF/Repository/UserAlert.php(116): XF\Repository\UserAlert->insertAlert(1660, 1874, 'Tabman', 'post', 34553, 'insert', Array, Array)
#6 src/XF/Notifier/AbstractNotifier.php(63): XF\Repository\UserAlert->alert(Object(XFMG\XF\Entity\User), 1874, 'Tabman', 'post', 34553, 'insert', Array, Array)
#7 src/XF/Notifier/Post/AbstractWatch.php(112): XF\Notifier\AbstractNotifier->basicAlert(Object(XFMG\XF\Entity\User), 1874, 'Tabman', 'post', 34553, 'insert')
#8 src/XF/Service/AbstractNotifier.php(88): XF\Notifier\Post\AbstractWatch->sendAlert(Object(XFMG\XF\Entity\User))
#9 src/XF/Service/AbstractNotifier.php(46): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\ThreadWatch), Array, 1.6527E+9)
#10 src/XF/Job/Notifier.php(35): XF\Service\AbstractNotifier->notify(8)
#11 src/XF/Job/Manager.php(260): XF\Job\Notifier->run(8)
#12 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#13 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#14 job.php(43): XF\Job\Manager->runQueue(false, 8)
#15 {main}
 
Your server failed to make an outgoing connection to the push endpoint (a service provided by browser vendors to send a push notification). This can occur due to intermittent network issues, so unless it's persistent it is typically safe to ignore. See here for further details:

 
Top Bottom