SigNoz Server Setup Issue: Connection Errors
TLDR Ruslan faced issues setting up SigNoz server, encountering connection errors. vishal-signoz suggested ensuring the machine port is open for exporter, checking OTLP collector logs, and using yaml file validator for troubleshooting. However, the issue remains unresolved.
Sep 15, 2023 (2 months ago)
Ruslan
07:31 AMThis is Ruslan from Ukraine.
I have set up the SigNoz server on hosting and get some erros: Please check the screenshot.
[book@stage ]$ php htdocs/signoz.php
Endpoint:
Service Name: BookRetreats-PHP-Server
Insecure: true
Starting OTLP example[2023-09-14T13:24:41.005846+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-09-14T13:24:41.217725+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-09-14T13:24:41.513919+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-09-14T13:24:41.796673+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
OTLP complete!
The log from my php server for instrumentation.
Please help me to sovle this.
vishal-signoz
07:47 AMAre you using using http exporter or grpc?
Ruslan
07:47 AMRuslan
07:49 AMvishal-signoz
07:49 AM<http://194.140.199.96:4318/v1/traces>
accessible from your app?Ruslan
07:49 AMvishal-signoz
07:50 AMvishal-signoz
07:50 AMRuslan
07:50 AMRuslan
07:51 AMvishal-signoz
07:51 AMRuslan
07:52 AMRuslan
07:52 AMvishal-signoz
07:53 AMRuslan
07:53 AMvishal-signoz
07:54 AMvishal-signoz
07:54 AMRuslan
07:55 AMPurchased on Contabo
Ruslan
07:55 AMRuslan
07:59 AMwith this command: sudo ufw allow 4318/tcp
What is the next?
vishal-signoz
07:59 AMRuslan
08:00 AMRuslan
08:00 AMRuslan
08:01 AMis there anything to change the setting for port 4318?
vishal-signoz
08:03 AMdocker ps
Ruslan
08:03 AMvishal-signoz
08:04 AMvishal-signoz
08:04 AMRuslan
08:05 AMRuslan
08:05 AMRuslan
08:05 AMvishal-signoz
08:06 AMdocker logs -f <container-id>
Ruslan
08:11 AMis this wrong?
vishal-signoz
08:11 AMPlease share logs
Ruslan
08:14 AMvishal-signoz
08:14 AMvishal-signoz
08:15 AMRuslan
08:18 AMRuslan
08:18 AMRuslan
08:24 AMRuslan
08:24 AMvishal-signoz
08:27 AMCan you copy and share you config here?
vishal-signoz
08:28 AMendpoint
should have colon :
Ruslan
08:29 AMRuslan
08:29 AMRuslan
08:38 AMRuslan
08:38 AMRuslan
08:38 AM[book@stage stage.bookretreats.com]$ php htdocs/signoz.php
Endpoint: http://194.140.199.96:4318/v1/traces
Service Name: BookRetreats-PHP-Server
Insecure: true
Starting OTLP example[2023-09-14T13:24:41.005846+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-09-14T13:24:41.217725+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-09-14T13:24:41.513919+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
[2023-09-14T13:24:41.796673+00:00] php-otlp-example.ERROR: Export failure {"exception":"[object] (RuntimeException(code: 0): Export retry limit exceeded at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/open-telemetry/sdk/Common/Export/Http/PsrTransport.php:114)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Psr18NetworkException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Psr18Client.php:130)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Chunk/ErrorChunk.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\TransportException(code: 0): Failed to connect to 194.140.199.96 port 4318: Connection refused for \"http://194.140.199.96:4318/v1/traces\". at /var/www/html/bookretreats.com/stage.bookretreats.com/vendor/symfony/http-client/Response/CurlResponse.php:324)","source":"OpenTelemetry\\Contrib\\Otlp\\SpanExporter"} []
OTLP complete!
Ruslan
08:38 AMvishal-signoz
09:52 AMvishal-signoz
10:15 AMRuslan
12:42 PMwhat is this error?
vishal-signoz
12:48 PMRuslan
02:46 PMSep 16, 2023 (2 months ago)
vishal-signoz
11:46 PMSigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Resolving Signoz Query Service Error
Einav encountered an error related to a missing table in the Signoz service which was preventing data visibility in the UI. Srikanth guided them to restart specific components and drop a database table, which resolved the issue.
Troubleshooting SigNoz Auto-Instrumentation Configuration
igor is having trouble configuring auto-instrumentation for Java applications using SigNoz, with traces not appearing in the SigNoz UI. Prashant advises to check logs of the otel sidecar, use service name for endpoint, verify supported libraries, and test with telemetrygen. However, the issue still persists.
Troubleshooting Interactive Message Errors on Query-Service
Javier asked how to check query-service logs and shared an error message. Srikanth helped Javier identify the problem and suggested restarting the `clickhouse-setup_otel-collector-1` container. Javier confirmed the solution worked.
Signoz Deployment Error: Unsupported Metric Type
Einav is having trouble with a signoz deployment, receiving an error regarding unsupported metric types. Srikanth suggests they may be encountering a known error and provides a link for reference.
Issue Accessing Pod Logs in SigNoz UI on AKS
prashant is facing an issue accessing pod logs of their application in SigNoz UI on AKS. nitya-signoz and Prashant provide suggestions related to log file paths and potential issues, but the problem remains unresolved.