-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] agent_error: Failed to connect to localhost port 8126: Connection refused #1269
Comments
👋 @leonildojunior The Agent will try to connect to Also, the PHP tracer will not run with Xdebug 2.9.1, so that will need to be upgraded to 2.9.5 or greater to enable the PHP tracer. |
@SammyK thank you very much for your feedback. Even after adding the DD_AGENT_HOSTNAME you keep getting the error when connecting to the agent :(
One thing I noticed, outputting |
My apologies, I copied an old env var that is no longer used. In your configuration, |
I made the change and continue with the same problem, the environment variables:
In the laravel controller I did a test |
can you |
Inside the PHP Docker container I can ping datadog as shown in the print, but without the port and the IP I don't know if it's calling localhost which is the default. I added datadog to the PHP links as shown in the code below but it still gives an error in
|
Analyzing the datadog/agent container log I found a line with the error below, maybe it will help, but I don't know how to analyze it, I don't understand the error, but it appears at various times between the various INFO
Besides the error I have some WARN that follows below, other than that they are just INFO I don't know to what extent it would be relevant for the analysis.
|
Same issue here. It worked fine until I had to download the agent from docker-hub again. Now I'm using the image |
+1 on @gnumoksha , same dd-trace version |
Ughh, same boat. I've got the Was able to wade through a bunch of docs, and set this ENV variable: Everything spins up and runs, I'm not seeing any errors in The
while the service containing the OTEL tracing is spitting out these during spans:
So it appears as though it should be working, but no data shows up within the DD panel, so I'm unsure if it's swallowing errors, or just plain not working. If I swap out the DD provider and simply use a one that uses |
Maybe a typo in your comment, but is the port number you're using correct? I think it's supposed to be |
Bug description
I'm installing the extension to instrument a Laravel application and when I run
phpinfo()
I get the erroragent_error:Failed to connect to localhost port 8126: Connection refused
.I'm uploading my application using
docker-compose
. Below is how my file is:I'm setting the environment variables in the
php
Dockerfile as follows:And the conf looks like this:
PHP version
PHP 7.3.22
Installed extensions
Step 12/15 : RUN php -m
---> Running in b4ae84d9365f
Found incompatible Xdebug version 2.9.1; ddtrace requires Xdebug 2.9.5 or greater; disabling conflicting functionality
[PHP Modules]
apcu
Core
ctype
curl
date
ddtrace
dom
fileinfo
filter
gd
hash
iconv
igbinary
imagick
intl
json
libxml
mbstring
memcached
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
redis
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Xdebug
Zend OPcache
ddtrace
OS info
NAME="Alpine Linux"
VERSION_ID=3.11.11
PRETTY_NAME="Alpine Linux v3.11"
Diagnostics and configuration
Output of phpinfo() (ddtrace >= 0.47.0)
]
The text was updated successfully, but these errors were encountered: