Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
server {
server_name mydomain.com www.mydomain.com;
set $MAGE_ROOT /var/www/mydomain.com/htdocs;
access_log /var/log/nginx/mydomain.com.access.log rt_cache;
error_log /var/log/nginx/mydomain.com.error.log;
root /var/www/mydomain.com/htdocs;
index index.php index.html index.htm;
include common/php7.conf;
include common/locations-php7.conf;
include /var/www/mydomain.com/conf/nginx/*.conf;
}
# Sample configuration:
# upstream fastcgi_backend {
# # use tcp connection
# # server 127.0.0.1:9000;
# # or socket
# server unix:/var/run/php5-fpm.sock;
# }
## Optional override of deployment mode. We recommend you use the
## command 'bin/magento deploy:mode:set' to switch modes instead.
##
## set $MAGE_MODE default; # or production or developer
##
## If you set MAGE_MODE in server config, you must pass the variable into the
## PHP entry point blocks, which are indicated below. You can pass
## it in using:
##
## fastcgi_param MAGE_MODE $MAGE_MODE;
##
## In production mode, you should uncomment the 'expires' directive in the /static/ location block
fastcgi_param MAGE_MODE $MAGE_MODE;
root $MAGE_ROOT/pub;
Owner

abrcoelho commented Apr 28, 2017

2017/04/27 22:01:32 [error] 17335#17335: *712315 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Cannot instantiate interface Magento\Framework\App\Config\Scope\ReaderPoolInterface in /var/www/yourdomain.com/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73
Stack trace:
#0 /var/www/yourdomain.com/htdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#1 /var/www/yourdomain.com/htdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#2 /var/www/yourdomain.com/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'readerPool', 'Magento\\Framewo...')
#3 /var/www/yourdomain.com/htdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento" while reading response header from upstream, client: 172.68.27.98, server: yourdomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9070", host: "yourdomain.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment