https://signoz.io logo
#support
Title
# support
r

Ruslan Alentiev

09/15/2023, 7:31 AM
Hello, Support team. Hope all you are doing well. This is Ruslan from Ukraine. I have set up the SigNoz server on hosting and get some erros: Please check the screenshot.
Copy code
[book@stage <http://stage.bookretreats.com|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!
The log from my php server for instrumentation. Please help me to sovle this.
v

Vishal Sharma

09/15/2023, 7:47 AM
How did you instrument? Are you using using http exporter or grpc?
r

Ruslan Alentiev

09/15/2023, 7:47 AM
http
I've set up the server by docker standalone
v

Vishal Sharma

09/15/2023, 7:49 AM
Is
<http://194.140.199.96:4318/v1/traces>
accessible from your app?
r

Ruslan Alentiev

09/15/2023, 7:49 AM
no
v

Vishal Sharma

09/15/2023, 7:50 AM
That’s why there’s an error
Please make sure exporter can export to 4318
r

Ruslan Alentiev

09/15/2023, 7:50 AM
how can configure that?
I've changed nothing
v

Vishal Sharma

09/15/2023, 7:51 AM
How are you running SigNoz?
r

Ruslan Alentiev

09/15/2023, 7:52 AM
please check here. 🙏
v

Vishal Sharma

09/15/2023, 7:53 AM
Please expose 4318 port of the machine where you are running signoz
r

Ruslan Alentiev

09/15/2023, 7:53 AM
to do that, what should I configure?
v

Vishal Sharma

09/15/2023, 7:54 AM
That depends on machine on which you are running
Is it on AWS/GCP? You can go settings of that machine and expose 4318
r

Ruslan Alentiev

09/15/2023, 7:55 AM
Linux vmi1452187.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 184924 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Purchased on Contabo
Need to do with sudo command
yes, I expose 4318 port of my machine. with this command: sudo ufw allow 4318/tcp What is the next?
v

Vishal Sharma

09/15/2023, 7:59 AM
Try sending data now
r

Ruslan Alentiev

09/15/2023, 8:00 AM
but still http://194.140.199.96:4318/v1/traces is not working
image.png
after set up the SigNoz server primarily by docker standalone guide, is there anything to change the setting for port 4318?
v

Vishal Sharma

09/15/2023, 8:03 AM
Can you please run:
docker ps
r

Ruslan Alentiev

09/15/2023, 8:03 AM
image.png
v

Vishal Sharma

09/15/2023, 8:04 AM
Your signoz otel collector is restarting
Can you check logs of that
r

Ruslan Alentiev

09/15/2023, 8:05 AM
image.png
Still restarting
what is the problem?
v

Vishal Sharma

09/15/2023, 8:06 AM
Check logs of otel collector by running:
docker logs -f <container-id>
r

Ruslan Alentiev

09/15/2023, 8:11 AM
In the logs, there is a error in these lines. is this wrong?
v

Vishal Sharma

09/15/2023, 8:11 AM
What’s the error? Please share logs
r

Ruslan Alentiev

09/15/2023, 8:14 AM
image.png
v

Vishal Sharma

09/15/2023, 8:14 AM
Check line 39
Use a yaml file validator: https://www.yamllint.com/
r

Ruslan Alentiev

09/15/2023, 8:18 AM
image.png
the error occured in "cors:"
what is the problem there, @Vishal Sharma
?
v

Vishal Sharma

09/15/2023, 8:27 AM
Have you used tabs? Can you copy and share you config here?
endpoint
should have colon
:
r

Ruslan Alentiev

09/15/2023, 8:29 AM
ahh
Ok, let me fix it and restart again
Yes. It works
image.png
But still same error [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-14T132441.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-14T132441.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-14T132441.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-14T132441.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!
from my php server
v

Vishal Sharma

09/15/2023, 9:52 AM
Only explanation I have is that your machine’s port is not open
r

Ruslan Alentiev

09/15/2023, 12:42 PM
thanks, so I tried it. what is this error?
v

Vishal Sharma

09/15/2023, 12:48 PM
It's unable to connect to your server
r

Ruslan Alentiev

09/15/2023, 2:46 PM
then what should I do?
v

Vishal Sharma

09/16/2023, 11:46 PM
Expose the ports of your machine correctly
3 Views