Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

No events receiving #78

Closed
robov opened this issue Jul 6, 2022 · 12 comments
Closed

No events receiving #78

robov opened this issue Jul 6, 2022 · 12 comments

Comments

@robov
Copy link

robov commented Jul 6, 2022

Any ideas?
I powered up the docker containers as you specified
I installed vardumper and ray in my laravel application
in the controller I do
dd('hello'); ray('hiya');
But when I navigate to http:https://localhost:23517/
It keeps spinning "Hurry! Give me something. I can't wait to show it."
So I guess no events are coming in

Any ideas

@butschster
Copy link
Member

@robov
Copy link
Author

robov commented Jul 7, 2022

Yes. I did the following
i used
buggregator:
image: butschster/buggregator:latest
ports:
- 23517:8000
- 1025:1025
- 9912:9912
- 9913:9913

to startup the server

then I installed inside the laravel container
composer require --dev symfony/var-dumper

then I added to my laravel app
VAR_DUMPER_FORMAT=server
VAR_DUMPER_SERVER=127.0.0.1:9912

The in a controller
dd('ii');

http:https://127.0.0.1:23517/
shows the "give me something" screen


When I add
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025

and send an email, then I get:
Connection could not be established with host "127.0.0.1:1025": stream_socket_client(): Unable to connect to 127.0.0.1:1025 (Connection refused)

@butschster
Copy link
Member

Do you run your application in another docker container?

@robov
Copy link
Author

robov commented Jul 7, 2022

yes, my host contains a application docker and buggretator

@robov
Copy link
Author

robov commented Jul 7, 2022

I have received an email. I had to make the following changes. Based on your question I realized they were both in a different network. So I had to add the network, and specify the host

MAIL_MAILER=smtp
MAIL_HOST=buggregator
MAIL_PORT=1025

buggregator:
image: butschster/buggregator:latest
ports:
- 23517:8000
- 1025:1025
- 9912:9912
- 9913:9913
networks:
- my-docker-network-name

@robov
Copy link
Author

robov commented Jul 7, 2022

and for plain dumper:
VAR_DUMPER_SERVER=buggregator:9912

@robov
Copy link
Author

robov commented Jul 7, 2022

Still struggeling with getting info from ray()
I installed ray and publised the config for docker in my application
I added the env
RAY_HOST=buggregator
RAY_PORT=23517
but that also did not work

RAY_HOST=127.0.0.1 # Ray server host
RAY_PORT=23517 # Ray server port
also does not work

When I look in the docker logs it seems that ray is not runnign
buggregator_1 | 2022-07-07 14:08:04,219 INFO success: monolog entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
buggregator_1 | 2022-07-07 14:08:04,219 INFO success: octane entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
buggregator_1 | 2022-07-07 14:08:04,219 INFO success: smtp entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
buggregator_1 | 2022-07-07 14:08:04,219 INFO success: var-dumper entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Any ideas?

@butschster
Copy link
Member

Use internal buggregator port 8000

RAY_HOST=buggregator
RAY_PORT=8000

@robov
Copy link
Author

robov commented Jul 7, 2022

Awesome !!!

@robov
Copy link
Author

robov commented Jul 7, 2022

Any ideas for sentry:
SENTRY_LARAVEL_DSN=http:https://sentry@buggregator:23517/1
SENTRY_LARAVEL_DSN=http:https://[email protected]:23517/1
php artisan sentry:test
results in
Failed to connect to 127.0.0.1 port 23517: Connection refused for "http:https://127.0.0.1:23517/api/1/store/"."

@butschster
Copy link
Member

use 8000 port insted of 23517 inside docker!

@robov
Copy link
Author

robov commented Jul 7, 2022

Awesome, I did not realize the 8000 port was generic

@robov robov closed this as completed Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants