web server misconfiguration

255 views
Skip to first unread message

kowa...@gmail.com

unread,
Jan 16, 2017, 8:11:11 PM1/16/17
to PartKeepr Users
Hello,

I'm using debian jessie/php7.0/nginx (in Virtualbox VM if that matters)

I just upgraded to partkeepr 1.1.0, tried latest git master with same results
and it throws error about 'Web server misconfiguration'
I checked JS console, and failing test is webserverTest  (throws 500)

/var/log/nginx/error.log contains this:

2017/01/17 02:02:57 [error] 17392#0: *7 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Symfony\Component\HttpKernel\EventListener\RouterListener::__construct() must be an instance of Symfony\Component\Routing\RequestContext, instance of Symfony\Component\HttpFoundation\RequestStack given, called in /var/www/partkeepr/app/cache/setup/appSetupDebugProjectContainer.php on line 762 in /var/www/partkeepr/app/cache/setup/classes.php:2257
Stack trace:
#0 /var/www/partkeepr/app/cache/setup/appSetupDebugProjectContainer.php(762): Symfony\Component\HttpKernel\EventListener\RouterListener->__construct(Object(Symfony\Bundle\FrameworkBundle\Routing\Router), Object(Symfony\Component\HttpFoundation\RequestStack), Object(Symfony\Component\Routing\RequestContext), Object(Symfony\Bridge\Monolog\Logger))
#1 /var/www/partkeepr/app/bootstrap.php.cache(2187): appSetupDebugProjectContainer->getRouterListenerService()
#2 /var/www/partkeepr/app/cache/setup/classes.php(2181): Symfony\Compon" while reading response header from upstream, client: 127.0.0.1, server: partkeepr.example.com, request: "POST /setup.php/setup/webserverTest HTTP/1.1", upstream: "fastcgi://unix://var/run/php/php7.0-fpm.sock:", host: "localhost:8080", referrer: "http://localhost:8080/setup/"


what might be wrong with this?

Daniel

kowa...@gmail.com

unread,
Jan 17, 2017, 8:59:17 AM1/17/17
to PartKeepr Users, kowa...@gmail.com
OK, I managed to fix it.

It seems that something went wrong during composer install (I had to rerun it few times after installing some php extensions, once it was killed by OOM killer because I gave only 1G of RAM to the VM).
After clean git pull setup worked fine.

Daniel

Reply all
Reply to author
Forward
0 new messages