Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 16 08:58
    andig commented #464
  • Sep 16 08:47
    acasademont commented #464
  • Sep 16 08:32
    acasademont commented #461
  • Sep 16 07:30
    mrjoops commented #461
  • Aug 27 21:12
    dnna commented #464
  • Aug 27 07:45
    andig commented #464
  • Aug 27 07:09
    weberdever opened #464
  • Aug 25 18:46
    dnna commented #463
  • Aug 25 18:46
    dnna commented #463
  • Aug 25 18:45
    dnna commented #463
  • Aug 25 18:45
    dnna commented #463
  • Aug 25 18:44
    dnna commented #463
  • Aug 25 18:44
    dnna commented #463
  • Aug 25 18:44
    dnna commented #463
  • Aug 25 18:35
    andig commented #463
  • Aug 25 18:24
    mariusbalcytis opened #463
  • Aug 19 11:45
    stepanselyuk commented #461
  • Aug 19 11:45
    stepanselyuk commented #461
  • Aug 19 11:44
    stepanselyuk commented #461
  • Aug 08 14:35
    kdubuc opened #462
Marc J. Schmidt
@marcj
@Richard87 oh mh, we don't have tests for that, so I don't know. Maybe StreamedResponse prints something to stdout directly
do you see where the output started in the "headers already sent" error?
Richard Hagen
@Richard87
Hi @marcj , thanks for answering :)
Here is the full stacktrace:
string(4217) "Symfony\Component\Debug\Exception\ContextErrorException: Warning: Cannot modify header information - headers already sent by (output started at /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php:1276) in /ppm/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php:231
Stack trace:
#0 /ppm/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php(101): PHPPM\Bridges\HttpKernel->mapResponse(Object(Symfony\Component\HttpFoundation\StreamedResponse))
#1 /ppm/vendor/php-pm/php-pm/src/ProcessSlave.php(406): PHPPM\Bridges\HttpKernel->handle(Object(React\Http\Io\ServerRequest))
#2 /ppm/vendor/php-pm/php-pm/src/ProcessSlave.php(367): PHPPM\ProcessSlave->handleRequest(Object(React\Http\Io\ServerRequest))
#3 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): PHPPM\ProcessSlave->onRequest(Object(React\Http\Io\ServerRequest), Object(Closure))
#4 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(48): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 3)
#5 /ppm/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php(34): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#6 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): React\Http\Middleware\RequestBodyParserMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#7 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(48): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 2)
#8 /ppm/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php(44): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#9 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): React\Http\Middleware\RequestBodyBufferMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#10 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(48): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 1)
#11 /ppm/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php(91): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#12 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): React\Http\Middleware\LimitConcurrentRequestsMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#13 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(40): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 0)
#14 /ppm/vendor/react/http/src/StreamingServer.php(236): React\Http\Io\MiddlewareRunner->__invoke(Object(React\Http\Io\ServerRequest))
#15 /ppm/vendor/react/http/src/StreamingServer.php(178): React\Http\StreamingServer->handleRequest(Object(React\Socket\Connection), Object(React\Http\Io\ServerRequest))
#16 /ppm/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\StreamingServer->React\Http\{closure}(Object(React\Http\Io\ServerRequest), '')
#17 /ppm/vendor/react/http/src/Io/RequestHeaderParser.php(59): Evenement\EventEmitter->emit('headers', Array)
#18 /ppm/vendor/react/http/src/Io/RequestHeaderParser.php(47): React\Http\Io\RequestHeaderParser->parseAndEmitRequest(792)
#19 /ppm/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\Io\RequestHeaderParser->feed('GET /dashboard/...')
#20 /ppm/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit('data', Array)
#21 /ppm/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Stream\Util::React\Stream\{closure}('GET /dashboard/...')
#22 /ppm/vendor/react/stream/src/DuplexResourceStream.php(193): Evenement\EventEmitter->emit('data', Array)
#23 [internal function]: React\Stream\DuplexResourceStream->handleData(Resource id #2619, Object(React\EventLoop\StreamSelectLoop))
#24 /ppm/vendor/react/event-loop/src/StreamSelectLoop.php(236): call_user_func(Array, Resource id #2619, Object(React\EventLoop\StreamSelectLoop))
#25 /ppm/vendor/react/event-loop/src/StreamSelectLoop.php(205): React\EventLoop\StreamSelectLoop->waitForStreamActivity(96262)
#26 /ppm/vendor/php-pm/php-pm/src/ProcessSlave.php(326): React\EventLoop\StreamSelectLoop->run()
#27 /tmp/dbgoOgHAf(25): PHPPM\ProcessSlave->run()
#28 {main}"
[09/Jan/2018:16:46:06 +0000] 127.0.0.1 - - "GET /dashboard/17/download_certificate HTTP/1.0" 500 38 "http://localhost/dashboard/17/"
Marc J. Schmidt
@marcj
and what is in line /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php:1276 ?
Damien Grass
@DGrass
Anyone about? Can't seem to get this working with my Laravel install!
Don't worry. I'm stupid and I fixed my issue.
Ben Johnson
@cbj4074
@DGrass How so? :)
(And what was the issue?)
Sergey
@NBZ4live
Hi. Anybody knows out of the box about issues with php-pm/php-pm-httpkernel and Lumen 5.5?
I get the following error:
Error: Call to undefined method Laravel\Lumen\Application::getProvider() in /ppm/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php:128
Marcelo Gomes
@celogomes_twitter
Hi im trying to use ppm and laravel I get error 500, using this command line docker run -v pwd:/var/www -p 8080:80 phppm/nginx --bootstrap=laravel --static-directory=public/, If I run php artisan serve I dont get error
HDVinnie
@HDVinnie
is this stable for use in laravel 5.6 application?
Ben Johnson
@cbj4074
@HDVinnie :wave:
(and I have no idea, just saying hi! lol)
HDVinnie
@HDVinnie
lol
thinking it might be suitable for UNIT3D in a performent way
Ben Johnson
@cbj4074
For sure... I'm curious what you discover. I've had an eye on this project for a couple years now.
Just haven't dipped a toe in yet!
HDVinnie
@HDVinnie
quiet in here
Luiz Machado
@odahcam
Amazing work guys!
Michael
@gamelife1314
@NBZ4live lumen 5.6 is ok ?
lumen 5.6
Starting PHP-PM with 8 workers, using StreamSelectLoop ...
8 workers (starting at 5501) up and ready. Application is ready at http://127.0.0.1:8080/
--- Worker 5501 stderr ---
string(4263) "Error: Call to undefined method Laravel\Lumen\Application::getProvider() in /var/www/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php:128
Stack trace:
#0 /var/www/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php(119): PHPPM\Bootstraps\Laravel->resetProvider('\\Illuminate\\Coo...')
#1 /var/www/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php(113): PHPPM\Bootstraps\Laravel->postHandle(Object(Laravel\Lumen\Application))
#2 /var/www/vendor/php-pm/php-pm/src/ProcessSlave.php(431): PHPPM\Bridges\HttpKernel->handle(Object(React\Http\Io\ServerRequest))
#3 /var/www/vendor/php-pm/php-pm/src/ProcessSlave.php(392): PHPPM\ProcessSlave->handleRequest(Object(React\Http\Io\ServerRequest))
#4 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(49): PHPPM\ProcessSlave->onRequest(Object(React\Http\Io\ServerRequest))
#5 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 3)
#6 /var/www/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php(34): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#7 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\RequestBodyParserMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#8 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 2)
#9 /var/www/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php(44): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#10 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\RequestBodyBufferMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#11 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 1)
#12 /var/www/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php(91): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#13 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\LimitConcurrentRequestsMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#14 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(40): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 0)
#15 /var/www/vendor/react/http/src/StreamingServer.php(237): React\Http\Io\MiddlewareRunner->__invoke(Object(React\Http\Io\ServerRequest))
#16 /var/www/vendor/react/http/src/StreamingServer.php(176): React\Http\StreamingServer->handleRequest(Object(React\Socket\Connection), Object(React\Http\Io\ServerRequest))
#17 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\StreamingServer->React\Http\{closure}(Object(React\Http\Io\ServerRequest), '')
#18 /var/www/vendor/react/http/src/Io/RequestHeaderParser.php(59): Evenement\EventEmitter->emit('headers', Array)
#19 /var/www/vendor/react/http/src/Io/RequestHeaderParser.php(47): React\Http\Io\RequestHeaderParser->parseAndEmitRequest(134)
#20 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\Io\RequestHeaderParser->feed('GET / HTTP/1.1\r...')
#21 /var/www/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit('data', Array)
#22 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Stream\Util::React\Stream\{closure}('GET / HTTP/1.1\r...')
#23 /var/www/vendor/react/stream/src/DuplexResourceStream.php(193): Evenement\EventEmitter->emit('data', Array)
#24 [internal function]: React\Stream\DuplexResourceStream->handleData(Resource id #241, Object(React\EventLoop\StreamSelectLoop))
#25 /var/www/vendor/react/event-loop/src/StreamSelectLoop.php(236):
Sergey
@NBZ4live
@gamelife1314 I made it work by extending the Adapter and override the resetProvider method
But we don’t use it in production yet, so no guarantees=)
Marc Morera
@mmoreram
Hello people :D
I'm adding php-pm in an open source project called Apisearch
and I have two small questions
Has anyone any clue about why the PM is only using one Worker even if I define 4, 6 or 10
?
or any
Marc J. Schmidt
@marcj
because too few requests per second?
Marc Morera
@mmoreram
can be that?
LOL
maybe
Marc J. Schmidt
@marcj
how do you test? you need a benchmark/stress test tool to go beyond first worker
Marc Morera
@mmoreram
That was awesome
I put the server full of asyncronous calls
and that worked properly
thanks! ^^
and one small thing... Do you know why, in every request, there's an increment of N bytes of memory?
like 720B, depending on the length of the url
I mean, I can live with that, but I was previously working with an increment of 0 bytes in each request, and I was wondering if that's because of the PM or the PHP process itself
Marc J. Schmidt
@marcj
if you can create a git repo somewhere where we can reproduce that you could file an issue at our github repo
Marc Morera
@mmoreram
I will, thanks :)
Fionera
@fionera
Hi o/
So can someone explain me why I need debug mode enabled to have filewatchers running?
Marc J. Schmidt
@marcj
because its a dev/debug helper :P you probably dont want to have it in prod enabled
Fionera
@fionera
Hmpf i would like to have it... currently i just run prod with debug
iLyas Bakouch
@isbkch
So I went for the non-docker solution that I installed on an EC2 instance, configured Nginx to listen on port "http://127.0.0.1:8080" and just launched ppm on Lumen using tmux (and dettached the session), is there a better way to make sure ppm is always running ?
Marc J. Schmidt
@marcj
Yes, use docker.