You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! We're using Laravel 8.x, and frequently we've run into this issue:
[Scout] Failed to write message size for Scoutapm\Events\Request\Request - error 32 (Broken pipe). Address was: tcp://127.0.0.1:6590
Do you know what would cause this? Our Laravel 8.x instance runs on 2 virtual machines, connected to a memory store on another service, as well as a managed sql database.
The text was updated successfully, but these errors were encountered:
With the PHP agent there are two components to it. One part is the PHP agent and the other is the core-agent. The core-agent is a binary that we ship with the PHP agent that daemonizes on startup and collects, aggregates, and ships the requests that the PHP agent passes off to it once the request completes
To do this, the PHP agent sends the request data via a TCP socket (127.0.0.1:6590) to the core-agent. What is happening is that the core-agent for some reason is closing the socket
When you say frequently, how often are you seeing this message? Every hour? Every few minutes? If the socket closes we should reopen on the next request/attempt
We will need logs from the core-agent to understand this a bit more
If you were to run ps aux | grep core-agent in a separate window, you should see two instances on on the 6590 and the second on 6591.
Then in your .env would it be possible to set the follow variable and deploy your application:
SCOUT_CORE_AGENT_SOCKET_PATH = "tcp://127.0.0.1:6591"
This should then start sending data to the newly created core-agent process and you should see logs in the ./core-agent.log file
Once enough time has elapsed, and you have seen a (Broken Pipe) in the Laravel logs, you can remove the environment variable and redeploy your app to use the original core-agent process, and kill the new one
Then would it be possible to send us the generated ./core-agent.log file?
asgrim
transferred this issue from scoutapp/scout-apm-laravel
Jan 19, 2022
Hello! We're using Laravel 8.x, and frequently we've run into this issue:
[Scout] Failed to write message size for Scoutapm\Events\Request\Request - error 32 (Broken pipe). Address was: tcp://127.0.0.1:6590
Do you know what would cause this? Our Laravel 8.x instance runs on 2 virtual machines, connected to a memory store on another service, as well as a managed sql database.
The text was updated successfully, but these errors were encountered: