Closed ResuBaka closed 2 years ago
I indeed get the same thing when using the latest versions.
@rustatian do you might have any ideas here?
Hey, @driesvints 👋🏻. We changed some output messages starting from the v2.9.4
, especially rr reset
message. You may use --silent
with rr reset
like ./rr reset --silent
to avoid any output.
Also, --silent
flag might be used with a serve
, like ./rr serve [options] --silent
to hide a startup message [INFO] RoadRunner ...
Okay but won't that also hide actual errors?
I mean, isn't the issue here that roadrunner cannot reload?
./rr reset
might show only dial errors. If some error occurs, it'll be in the ./rr serve
logs, but not in the ./rr reset
output.
I mean, isn't the issue here that roadrunner cannot reload?
It's hard to say because there are no errors/logs from the RR. I double-checked that without octane
and everything works ok. I can also guess, that if an error occurred only on versions >= 2.9.4, the only thing that was changed in these versions is ./rr reset
output message.
Also, remember that RR writes all informational messages to the stderr
.
I'm not sure, what does this mean:
if ($type === Process::ERR) {
I can only guess (since I'm not a PHP dev), that this is some stderr
check for the data in it.
The issue is that the Symfony Process handles in pipes stderr output as an error and calls the callback. Which then has the $type as error.
So --silent option would fix it, as I would thing rr reset
would return an error code to the console when it fails?
I would thing rr reset would return an error code to the console when it fails?
Yeah, sure. --silent
hide an output but not the process error code. So, this is entirely safe to use that flag for the CLI commands because actual RR errors will be in the logs.
Okay cool. Can anyone send in a PR for that. Thanks for your help!
Should we check the version to add the --silent
option or just add it always for the reset
?
As I would then create a PR for it.
Or, I don't know if that's ok, you may filter these messages from the stderr. I mean, resetting plugin: [http]
and plugin reset: [http]
. Those messages are stable and won't be changed in the v2
. If you still wanted to check the stderr.
Should we check the version to add the --silent option or just add it always for the reset?
You may add it as the default. Previous versions will ignore this flag w/o any additional output.
Filtering for the messages in octane does not work as we only get the first message ever as a callback and never the second.
So I will implement the --silent
option.
Description:
When using file watch the artisan octane:start process crashes. As the RoadRunner cli writes infos to the stderr.
Steps To Reproduce:
Possible solution to fix:
What could be done to fix the issue is to execute the commands with the
-s, --silent
flag so the messages are not written.