<@U03QKG6B1J4> reached out to with the following i...
# support
p
@Kanika Garg reached out to with the following information request. “They work for
Decision Point Pvt Ltd
. We are planning to use sigNoz with our one of the application as of now. We were already using OpenTelemetry with Jaeger with manual instrumentation mode. If you have some time can you guide me to integrate
SigNoz
. I’ve installed SigNoz and run it on a virtual machine but application is not able to get the spans/services associated with my application” Anyone with the right information, let’s help them with the migration.
1
Questions • System configuration (we don’t support Windows) • Are you seeing any error message? • Version of SigNoz you are using? You might want to follow our troubleshooting docs. Refer here: • https://signoz.io/docs/install/troubleshooting (Docs) • https://github.com/SigNoz/troubleshoot (Github Repo) •

https://www.youtube.com/watch?v=Y7OkvmuTRQ8

(SigNoz YouTube video)
k
System : Ubuntu 20.04.3 LTS
p
@Kanika Garg What is the message on running the troubleshooting tool - https://signoz.io/docs/install/troubleshooting ?
k
@Pranay I've upgraded signoz, using latest version v0.10.0 now. When I did troubleshooting, using the above link I had the following response. https://signoz.io/docs/instrumentation/python/ • When I'm trying to export the spans using the run command as mentioned in the link with port 4318 I'm getting this error in my application
OTEL_RESOURCE_ATTRIBUTES=service.name=Botproject_8085 OTEL_EXPORTER_OTLP_ENDPOINT="<http://localhost:4318>"  opentelemetry-instrument --traces_exporter otlp_proto_http gunicorn --daemon --workers 1 -b :8085 'bot_project.wsgi:application' --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --timeout 3600
• With port 4317 I'm getting this error in my application
OTEL_RESOURCE_ATTRIBUTES=service.name=Botproject_8085 OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" opentelemetry-instrument --traces_exporter otlp_proto_http gunicorn --daemon --workers 1 -b :8085 'bot_project.wsgi:application' --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --timeout 3600
2022-07-18 13:12:08 DEBUG Starting new HTTP connection (2): localhost:4317
2022-07-18 131208 ERROR Exception while exporting Span batch. Traceback (most recent call last): File "xxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "xxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 416, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1348, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 316, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 298, in _read_status raise BadStatusLine(line) http.client.BadStatusLine: @ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "xxxxxxx/env/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "xxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/urllib3/__init__.py", line 160, in instrumented_urlopen return wrapped(*args, **kwargs) File "xxxxxxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 719, in urlopen retries = retries.increment( File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/util/retry.py", line 400, in increment raise six.reraise(type(error), error, _stacktrace) File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise raise value.with_traceback(tb) File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "xxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 416, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1348, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 316, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 298, in _read_status raise BadStatusLine(line) urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/sdk/trace/export/__init__.py", line 358, in _export_batch self.span_exporter.export(self.spans_list[:idx]) # type: ignore File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 136, in export resp = self._export(serialized_data) File "/xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 107, in _export return self._session.post( File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/requests/sessions.py", line 578, in post return self.request('POST', url, data=data, json=json, **kwargs) File "xxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 122, in instrumented_request return _instrumented_requests_call( File "/xxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 152, in _instrumented_requests_call return call_wrapped() File "xxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 120, in call_wrapped return wrapped_request(self, method, url, *args, **kwargs) File "xxxxxxxxxxenv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "xxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 142, in instrumented_send return _instrumented_requests_call( File "xxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 152, in _instrumented_requests_call return call_wrapped() File "xxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 140, in call_wrapped return wrapped_send(self, request, **kwargs) File "xxxxxxxxx/env/lib/python3.8/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "xxxxxxxxxxxx/env/lib/python3.8/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00'))
p
Port 4317 is for proto/gRPC and Port 4318 is for proto/HTTP. so you mean to say, you tried running your app with both, once 4317 and 4318?
k
yes I did try both
p
@Prashant Shahi do you have any inputs on the above?
p
@Kanika Garg
4318
would make sense here since in guide above we are using HTTP exporter. can you share error log when
4318
port is used?
k
@Prashant Shahi with the port 4318 I'm getting this in the logs of my application.

https://files.slack.com/files-pri/T01HWUTP0LT-F03PZ2JPPDJ/image.png

p
@Kanika Garg can you try this =>
<http://localhost:4318/v1/traces>
?
🙌 1
k
@Prashant Shahi Thanks a ton! It worked!
🙌 1
🎉 3