buggregator / laravel-app

The old version of Buggregator, which uses Laravel framework, is no longer being actively developed. The new beta version, built with Spiral framework, is now available at https://github.com/buggregator/spiral-app and offers significant improvements in performance and stability, as well as a lighter docker image size of around 300mb.
https://buggregator.dev
MIT License
329 stars 24 forks source link

No events receiving #78

Closed robov closed 2 years ago

robov commented 2 years ago

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://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 commented 2 years ago

Hi @robov Did you configure env variables?

robov commented 2 years ago

Yes. I did the following i used buggregator: image: butschster/buggregator:latest ports:

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://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 commented 2 years ago

Do you run your application in another docker container?

robov commented 2 years ago

yes, my host contains a application docker and buggretator

robov commented 2 years ago

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:

robov commented 2 years ago

and for plain dumper: VAR_DUMPER_SERVER=buggregator:9912

robov commented 2 years ago

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 commented 2 years ago

Use internal buggregator port 8000

 RAY_HOST=buggregator
RAY_PORT=8000
robov commented 2 years ago

Awesome !!!

robov commented 2 years ago

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

butschster commented 2 years ago

use 8000 port insted of 23517 inside docker!

robov commented 2 years ago

Awesome, I did not realize the 8000 port was generic