magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

Installation fails #2130

Closed tvlooy closed 7 years ago

tvlooy commented 8 years ago

I run git clone and composer install, when I run ./bin/magento I get this error:

Fatal error: Cannot instantiate interface Magento\Framework\Config\CacheInterface in/www/projects/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php on line 73

Tested with branch merchant_beta and develop. Any pointers?

$ php -v
PHP 5.6.10 (cli) (built: Jul 12 2015 16:05:00) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend Extension Manager v8.5.0, Copyright (c) 2003-2015, by Zend Technologies
    - with Zend Data Cache v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Job Queue v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Utils v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Code Tracing v8.5.0, Copyright (c) 2009-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Server Z-Ray v8.5.0, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Monitor v8.5.0, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Debugger v6.0.0-i5, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Page Cache v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Monitor UI v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [enabled]
mazhalai commented 8 years ago

@tvlooy can you please give some information about environment and mode of magento? Did you have a previous installation?

tvlooy commented 8 years ago

I must admit that this is a bit an exotic setup. I didn't have previous installations. The environment is IBM i 7.2. I'm running Zend Server for IBM i 8.5.1 which installed the PHP version reported above. I'm not using the webserver yet (it does show the same error) and want to do a CLI installation first. What do you want to know?

I installed Magento 2 before on Linux (Debian 8) and have a test box at https://github.com/tvlooy/magento2-demo/blob/master/shell_provisioner/module/magento2.sh and that worked just fine.

I'm now debugging the error that I reported but I can use some help.

mazhalai commented 8 years ago

@tvlooy possibly check file permissions? Do you have a complete stack trace? Are you on the master branch? If you try from develop branch, if has been updated to show complete stack trace.

tvlooy commented 8 years ago

I tried everything as qsecofr (root) so I should have all permissions.

# id
uid=0(qsecofr) gid=0

I didn't get a full stacktrace because this is an error, not an exception. I handled the error and printed a stacktrace myself:

#0  Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create(Magento\Framework\Config\CacheInterface) called at [/www/projects/magento2/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php:71]
#1  Magento\Framework\ObjectManager\ObjectManager->get(Magento\Framework\Config\CacheInterface) called at [/www/projects/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php:236]
#2  Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array ([instance] => Magento\Framework\Config\CacheInterface), Magento\Framework\Config\CacheInterface, , cache, Magento\Framework\App\ObjectManager\ConfigLoader) called at [/www/projects/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php:53]
#3  Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments(Magento\Framework\App\ObjectManager\ConfigLoader, Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )), Array ()) called at [/www/projects/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php:85]
#4  Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create(Magento\Framework\App\ObjectManager\ConfigLoader) called at [/www/projects/magento2/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php:71]
#5  Magento\Framework\ObjectManager\ObjectManager->get(Magento\Framework\App\ObjectManager\ConfigLoader) called at [/www/projects/magento2/lib/internal/Magento/Framework/App/ObjectManager/Environment/Developer.php:67]
#6  Magento\Framework\App\ObjectManager\Environment\Developer->configureObjectManager(Magento\Framework\Interception\ObjectManager\Config\Developer Object ([] => ,[] => ,[] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[] => ,[] => Array (),[] => Array (),[] => Array (),[] => Array (),[] => Magento\Framework\ObjectManager\Relations\Runtime Object ([] => Magento\Framework\Code\Reader\ClassReader Object (),[] => Array ()),[] => Array ([Magento\Framework\ObjectManager\ConfigLoaderInterface] => Array (),[Magento\Framework\App\ObjectManager\ConfigLoader] => Array ())), Array ([Magento\Framework\App\DeploymentConfig] => Magento\Framework\App\DeploymentConfig Object ([] => Magento\Framework\App\DeploymentConfig\Reader Object ([] => Magento\Framework\App\Filesystem\DirectoryList Object ([] => /www/projects/magento2,[] => Array ([sys_tmp] => Array ([path] => /tmp),[base] => Array ([path] => /www/projects/magento2),[app] => Array ([path] => /www/projects/magento2/app),[code] => Array ([path] => /www/projects/magento2/app/code),[etc] => Array ([path] => /www/projects/magento2/app/etc),[lib_internal] => Array ([path] => /www/projects/magento2/lib/internal),[var] => Array ([path] => /www/projects/magento2/var),[cache] => Array ([path] => /www/projects/magento2/var/cache),[log] => Array ([path] => /www/projects/magento2/var/log),[di] => Array ([path] => /www/projects/magento2/var/di),[generation] => Array ([path] => /www/projects/magento2/var/generation),[i18n] => Array ([path] => /www/projects/magento2/app/i18n),[session] => Array ([path] => /www/projects/magento2/var/session),[media] => Array ([path] => /www/projects/magento2/pub/media,[uri] => pub/media),[static] => Array ([path] => /www/projects/magento2/pub/static,[uri] => pub/static),[pub] => Array ([path] => /www/projects/magento2/pub,[uri] => pub),[lib_web] => Array ([path] => /www/projects/magento2/lib/web),[tmp] => Array ([path] => /www/projects/magento2/var/tmp),[design] => Array ([path] => /www/projects/magento2/app/design),[upload] => Array ([path] => /www/projects/magento2/pub/media/upload,[uri] => pub/media/upload),[view_preprocessed] => Array ([path] => /www/projects/magento2/var/view_preprocessed),[html] => Array ([path] => /www/projects/magento2/var/view_preprocessed/html),[setup] => Array ([path] => /www/projects/magento2/setup/src),[composer_home] => Array ([path] => /www/projects/magento2/var/composer_home))),[] => Magento\Framework\Config\File\ConfigFilePool Object ([] => Array ([app_config] => config.php,[app_env] => env.php)),[] => Array ([app_config] => config.php,[app_env] => env.php)),[] => Array (),[] => Array (),[] => Array (),[] => ),[Magento\Framework\App\Filesystem\DirectoryList] => Magento\Framework\App\Filesystem\DirectoryList Object ([] => /www/projects/magento2,[] => Array ([sys_tmp] => Array ([path] => /tmp),[base] => Array ([path] => /www/projects/magento2),[app] => Array ([path] => /www/projects/magento2/app),[code] => Array ([path] => /www/projects/magento2/app/code),[etc] => Array ([path] => /www/projects/magento2/app/etc),[lib_internal] => Array ([path] => /www/projects/magento2/lib/internal),[var] => Array ([path] => /www/projects/magento2/var),[cache] => Array ([path] => /www/projects/magento2/var/cache),[log] => Array ([path] => /www/projects/magento2/var/log),[di] => Array ([path] => /www/projects/magento2/var/di),[generation] => Array ([path] => /www/projects/magento2/var/generation),[i18n] => Array ([path] => /www/projects/magento2/app/i18n),[session] => Array ([path] => /www/projects/magento2/var/session),[media] => Array ([path] => /www/projects/magento2/pub/media,[uri] => pub/media),[static] => Array ([path] => /www/projects/magento2/pub/static,[uri] => pub/static),[pub] => Array ([path] => /www/projects/magento2/pub,[uri] => pub),[lib_web] => Array ([path] => /www/projects/magento2/lib/web),[tmp] => Array ([path] => /www/projects/magento2/var/tmp),[design] => Array ([path] => /www/projects/magento2/app/design),[upload] => Array ([path] => /www/projects/magento2/pub/media/upload,[uri] => pub/media/upload),[view_preprocessed] => Array ([path] => /www/projects/magento2/var/view_preprocessed),[html] => Array ([path] => /www/projects/magento2/var/view_preprocessed/html),[setup] => Array ([path] => /www/projects/magento2/setup/src),[composer_home] => Array ([path] => /www/projects/magento2/var/composer_home))),[Magento\Framework\Filesystem\DirectoryList] => Magento\Framework\App\Filesystem\DirectoryList Object ([] => /www/projects/magento2,[] => Array ([sys_tmp] => Array ([path] => /tmp),[base] => Array ([path] => /www/projects/magento2),[app] => Array ([path] => /www/projects/magento2/app),[code] => Array ([path] => /www/projects/magento2/app/code),[etc] => Array ([path] => /www/projects/magento2/app/etc),[lib_internal] => Array ([path] => /www/projects/magento2/lib/internal),[var] => Array ([path] => /www/projects/magento2/var),[cache] => Array ([path] => /www/projects/magento2/var/cache),[log] => Array ([path] => /www/projects/magento2/var/log),[di] => Array ([path] => /www/projects/magento2/var/di),[generation] => Array ([path] => /www/projects/magento2/var/generation),[i18n] => Array ([path] => /www/projects/magento2/app/i18n),[session] => Array ([path] => /www/projects/magento2/var/session),[media] => Array ([path] => /www/projects/magento2/pub/media,[uri] => pub/media),[static] => Array ([path] => /www/projects/magento2/pub/static,[uri] => pub/static),[pub] => Array ([path] => /www/projects/magento2/pub,[uri] => pub),[lib_web] => Array ([path] => /www/projects/magento2/lib/web),[tmp] => Array ([path] => /www/projects/magento2/var/tmp),[design] => Array ([path] => /www/projects/magento2/app/design),[upload] => Array ([path] => /www/projects/magento2/pub/media/upload,[uri] => pub/media/upload),[view_preprocessed] => Array ([path] => /www/projects/magento2/var/view_preprocessed),[html] => Array ([path] => /www/projects/magento2/var/view_preprocessed/html),[setup] => Array ([path] => /www/projects/magento2/setup/src),[composer_home] => Array ([path] => /www/projects/magento2/var/composer_home))),[Magento\Framework\Filesystem\DriverPool] => Magento\Framework\Filesystem\DriverPool Object ([] => Array ([file] => Magento\Framework\Filesystem\Driver\File,[http] => Magento\Framework\Filesystem\Driver\Http,[https] => Magento\Framework\Filesystem\Driver\Https,[compress.zlib] => Magento\Framework\Filesystem\Driver\Zlib),[] => Array ([file] => Magento\Framework\Filesystem\Driver\File Object ([] => ))),[Magento\Framework\ObjectManager\RelationsInterface] => Magento\Framework\ObjectManager\Relations\Runtime Object ([] => Magento\Framework\Code\Reader\ClassReader Object (),[] => Array ()),[Magento\Framework\Interception\DefinitionInterface] => Magento\Framework\Interception\Definition\Runtime Object ([] => Array ([befor] => 1,[aroun] => 2,[after] => 4),[] => Array ([1] => 6,[2] => 6,[4] => 5)),[Magento\Framework\ObjectManager\ConfigInterface] => Magento\Framework\Interception\ObjectManager\Config\Developer Object ([] => ,[] => ,[] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[] => ,[] => Array (),[] => Array (),[] => Array (),[] => Array (),[] => Magento\Framework\ObjectManager\Relations\Runtime Object ([] => Magento\Framework\Code\Reader\ClassReader Object (),[] => Array ()),[] => Array ([Magento\Framework\ObjectManager\ConfigLoaderInterface] => Array (),[Magento\Framework\App\ObjectManager\ConfigLoader] => Array ())),[Magento\Framework\Interception\ObjectManager\ConfigInterface] => Magento\Framework\Interception\ObjectManager\Config\Developer Object ([] => ,[] => ,[] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[] => ,[] => Array (),[] => Array (),[] => Array (),[] => Array (),[] => Magento\Framework\ObjectManager\Relations\Runtime Object ([] => Magento\Framework\Code\Reader\ClassReader Object (),[] => Array ()),[] => Array ([Magento\Framework\ObjectManager\ConfigLoaderInterface] => Array (),[Magento\Framework\App\ObjectManager\ConfigLoader] => Array ())),[Magento\Framework\ObjectManager\DefinitionInterface] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[Magento\Framework\Stdlib\BooleanUtils] => Magento\Framework\Stdlib\BooleanUtils Object ([] => Array ([0] => 1,[1] => 1,[2] => true,[3] => 1),[] => Array ([0] => ,[1] => 0,[2] => false,[3] => 0)),[Magento\Framework\ObjectManager\Config\Mapper\Dom] => Magento\Framework\ObjectManager\Config\Mapper\Dom Object ([] => Magento\Framework\Stdlib\BooleanUtils Object ([] => Array ([0] => 1,[1] => 1,[2] => true,[3] => 1),[] => Array ([0] => ,[1] => 0,[2] => false,[3] => 0)),[] => Magento\Framework\ObjectManager\Config\Mapper\ArgumentParser Object ([] => ),[] => Magento\Framework\Data\Argument\Interpreter\Composite Object ([] => Array ([boolean] => Magento\Framework\Data\Argument\Interpreter\Boolean Object ([] => Magento\Framework\Stdlib\BooleanUtils Object ([] => Array ([0] => 1,[1] => 1,[2] => true,[3] => 1),[] => Array ([0] => ,[1] => 0,[2] => false,[3] => 0))),[string] => Magento\Framework\Data\Argument\Interpreter\String Object ([] => Magento\Framework\Stdlib\BooleanUtils Object ([] => Array ([0] => 1,[1] => 1,[2] => true,[3] => 1),[] => Array ([0] => ,[1] => 0,[2] => false,[3] => 0))),[number] => Magento\Framework\Data\Argument\Interpreter\Number Object (),[null] => Magento\Framework\Data\Argument\Interpreter\NullType Object (),[object] => Magento\Framework\Data\Argument\Interpreter\Object Object ([] => Magento\Framework\Stdlib\BooleanUtils Object ([] => Array ([0] => 1,[1] => 1,[2] => true,[3] => 1),[] => Array ([0] => ,[1] => 0,[2] => false,[3] => 0))),[const] => Magento\Framework\Data\Argument\Interpreter\Constant Object (),[init_parameter] => Magento\Framework\App\Arguments\ArgumentInterpreter Object ([] => Magento\Framework\Data\Argument\Interpreter\Constant Object ()),[array] => Magento\Framework\Data\Argument\Interpreter\ArrayType Object ([] => Magento\Framework\Data\Argument\Interpreter\Composite Object ( *RECURSION*)),[] => xsi:type)),[Magento\Framework\ObjectManager\ConfigLoaderInterface] => ,[Magento\Framework\ObjectManagerInterface] => Magento\Framework\ObjectManager\ObjectManager Object ([] => Magento\Framework\ObjectManager\Factory\Dynamic\Developer Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Magento\Framework\App\ObjectManager\ConfigLoader),[] => Magento\Framework\ObjectManager\ObjectManager Object ( *RECURSION*,[] => Magento\Framework\Interception\ObjectManager\Config\Developer Object ([] => ,[] => ,[] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[] => ,[] => Array (),[] => Array (),[] => Array (),[] => Array (),[] => Magento\Framework\ObjectManager\Relations\Runtime Object ([] => Magento\Framework\Code\Reader\ClassReader Object (),[] => Array ()),[] => Array ([Magento\Framework\ObjectManager\ConfigLoaderInterface] => Array (),[Magento\Framework\App\ObjectManager\ConfigLoader] => Array ())),[] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[] => Array ([_] => /usr/local/zendsvr6/bin/php.bin,[LOGIN] => qsecofr,[SSH_TTY] => /dev/pts/0,[PATH] => /QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin:/usr/local/mariadb/bin:/usr/local/zendsvr6/bin,[OLDPWD] => /home/QSECOFR,[ZEND_TMPDIR] => /usr/local/zendsvr6/tmp,[LOGNAME] => qsecofr,[MAIL] => /var/spool/mail/qsecofr,[USER] => qsecofr,[SHLVL] => 1,[SHELL] => /QOpenSys/usr/bin/bsh,[HOME] => /HOME/QSECOFR,[SSH_CONNECTION] => 172.29.97.135 36101 172.29.149.210 22,[SSH_CLIENT] => 172.29.97.135 36101 22,[TERM] => xterm,[PWD] => /www/projects/magento2,[TZ] => <EST>5<EDT>,M4.1.0,M10.5.0,[PASE_USRGRP_LIMITED] => N,[INSTALLATION_UID] => 100313092601,[LIBPATH] => /usr/local/zendsvr6/lib,[DB2NOEXITLIST] => TRUE,[PHP_SELF] => ./bin/magento,[SCRIPT_NAME] => ./bin/magento,[SCRIPT_FILENAME] => ./bin/magento,[PATH_TRANSLATED] => ./bin/magento,[DOCUMENT_ROOT] => ,[REQUEST_TIME_FLOAT] => 1445078908.1658,[REQUEST_TIME] => 1445078908,[argv] => Array ([0] => ./bin/magento),[argc] => 1,[MAGE_REQUIRE_MAINTENANCE] => ,[shared_instances] => Array ( *RECURSION*)),[] => Array ( *RECURSION*,[] => Magento\Framework\Interception\ObjectManager\Config\Developer Object ([] => ,[] => ,[] => Magento\Framework\ObjectManager\Definition\Runtime Object ([] => Array ([Magento\Framework\App\ObjectManager\ConfigLoader] => Array ([0] => Array ([0] => cache,[1] => Magento\Framework\Config\CacheInterface,[2] => 1,[3] => ),[1] => Array ([0] => readerFactory,[1] => Magento\Framework\ObjectManager\Config\Reader\DomFactory,[2] => 1,[3] => )),[Magento\Framework\Config\CacheInterface] => ),[_reader] => Magento\Framework\Code\Reader\ClassReader Object ()),[] => ,[] => Array (),[] => Array (),[] => Array (),[] => Array (),[] => Magento\Framework\ObjectManager\Relations\Runtime Object ([] => Magento\Framework\Code\Reader\ClassReader Object (),[] => Array ()),[] => Array ([Magento\Framework\ObjectManager\ConfigLoaderInterface] => Array (),[Magento\Framework\App\ObjectManager\ConfigLoader] => Array ()))))) called at [/www/projects/magento2/lib/internal/Magento/Framework/App/ObjectManagerFactory.php:181]
#7  Magento\Framework\App\ObjectManagerFactory->create(Array ([_] => /usr/local/zendsvr6/bin/php.bin,[LOGIN] => qsecofr,[SSH_TTY] => /dev/pts/0,[PATH] => /QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin:/usr/local/mariadb/bin:/usr/local/zendsvr6/bin,[OLDPWD] => /home/QSECOFR,[ZEND_TMPDIR] => /usr/local/zendsvr6/tmp,[LOGNAME] => qsecofr,[MAIL] => /var/spool/mail/qsecofr,[USER] => qsecofr,[SHLVL] => 1,[SHELL] => /QOpenSys/usr/bin/bsh,[HOME] => /HOME/QSECOFR,[SSH_CONNECTION] => 172.29.97.135 36101 172.29.149.210 22,[SSH_CLIENT] => 172.29.97.135 36101 22,[TERM] => xterm,[PWD] => /www/projects/magento2,[TZ] => <EST>5<EDT>,M4.1.0,M10.5.0,[PASE_USRGRP_LIMITED] => N,[INSTALLATION_UID] => 100313092601,[LIBPATH] => /usr/local/zendsvr6/lib,[DB2NOEXITLIST] => TRUE,[PHP_SELF] => ./bin/magento,[SCRIPT_NAME] => ./bin/magento,[SCRIPT_FILENAME] => ./bin/magento,[PATH_TRANSLATED] => ./bin/magento,[DOCUMENT_ROOT] => ,[REQUEST_TIME_FLOAT] => 1445078908.1658,[REQUEST_TIME] => 1445078908,[argv] => Array ([0] => ./bin/magento),[argc] => 1,[MAGE_REQUIRE_MAINTENANCE] => )) called at [/www/projects/magento2/lib/internal/Magento/Framework/App/Bootstrap.php:384]
#8  Magento\Framework\App\Bootstrap->initObjectManager() called at [/www/projects/magento2/lib/internal/Magento/Framework/App/Bootstrap.php:361]
#9  Magento\Framework\App\Bootstrap->getObjectManager() called at [/www/projects/magento2/lib/internal/Magento/Framework/Console/Cli.php:53]
#10 Magento\Framework\Console\Cli->getApplicationCommands() called at [/www/projects/magento2/lib/internal/Magento/Framework/Console/Cli.php:31]
#11 Magento\Framework\Console\Cli->getDefaultCommands() called at [/www/projects/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php:91]
#12 Symfony\Component\Console\Application->__construct(Magento CLI, 1.0.0-beta) called at [/www/projects/magento2/bin/magento:17]
mazhalai commented 8 years ago

@tvlooy looks like object manager is not finding the preferences for interface which are set in di.xml

Flyingmana commented 8 years ago

Did you have own modules or themes without an registration.php as needed for modules now? I had the same error for such a problem.

tvlooy commented 8 years ago

@Flyingmana I didn't have own modules or themes. It's a git clone from this repo

mazhalai commented 8 years ago

@tvlooy does the Zend server logs show anything? Also, Zend server can be configured to run on Nginx or Apache. What is your configuration?

tvlooy commented 8 years ago

@mazhalai I installed using the CLI so no webserver was involved yet. I also tried with php -S and got the same error. Didn't even tried it under Zend server, at this point, it just adds complexity imo. CLI install should just work

mazhalai commented 8 years ago

@tvlooy any update on this issue?

tvlooy commented 8 years ago

I'll re-test next week.

tvlooy commented 8 years ago
# date
Sat Dec 19 16:36:16 EST 2015

I did this (so it's a recent clone):

# git clone https://github.com/magento/magento2.git magento2.0.0
# cd magento2.0.0
# composer.phar install
# ./bin/magento

And got this:

Fatal error: Cannot instantiate interface Magento\Framework\Config\CacheInterface in /www/projects/magento2.0.0/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php on line 73

Still the same php version. I don't think webservers of mysql versions are relevant at this point.

# php -v
PHP 5.6.10 (cli) (built: Jul 12 2015 16:05:00) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend Extension Manager v8.5.0, Copyright (c) 2003-2015, by Zend Technologies
    - with Zend Data Cache v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Job Queue v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [not licensed] [disabled]
    - with Zend Utils v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Code Tracing v8.5.0, Copyright (c) 2009-2015, by Zend Technologies [loaded] [not licensed] [disabled]
    - with Zend Server Z-Ray v8.5.0, Copyright (c) 1999-2015, by Zend Technologies [loaded] [not licensed] [disabled]
    - with Zend Monitor v8.5.0, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Debugger v6.0.0-i5, Copyright (c) 1999-2015, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Page Cache v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Monitor UI v8.5.0, Copyright (c) 2004-2015, by Zend Technologies [loaded] [licensed] [enabled]
tvlooy commented 8 years ago

composer was self-updated and composer install generated autoload files and exited with status code 0

tvlooy commented 8 years ago

This could be helpful:

# php -m
[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
ibm_db2
iconv
imagick
imap
intl
json
ldap
libxml
mbstring
mcrypt
mssql
mysql
mysqli
mysqlnd
oci8
openssl
pcre
PDO
pdo_ibm
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend Code Tracing
Zend Data Cache
Zend Debugger
Zend Job Queue
Zend Monitor
Zend Monitor UI
Zend OPcache
Zend Page Cache
Zend Server Z-Ray
Zend Utils
zip
zlib
Zmail

[Zend Modules]
Zend Code Tracing
Zend Data Cache
Zend Debugger
Zend Extension Manager
Zend Job Queue
Zend Monitor
Zend Monitor UI
Zend OPcache
Zend Page Cache
Zend Server Z-Ray
Zend Utils
alanseiden commented 8 years ago

@tvlooy What did you think of @mazhalai's suggestion about di.xml not being found (if I understood that idea correctly)?

tvlooy commented 8 years ago

@mazhalai @alanseiden I digged into the di.xml, and indeed found the error (I should have taken this hint more serious in the first place).

Magento2 makes use of GLOB_BRACE with glob() to find the di.xml location but GLOB_BRACE is not available on IBM i, AIX, Solaris. It is available on other systems like Linux, Mac, FreeBSD, OpenBSD, NetBSD.

I just hacked around the issue and now see the magento console. (Installing still fails because of a problem with my MySQL installation, but that is kinda expected. :-))

alanseiden commented 8 years ago

@tvlooy Good to hear. What's "modern" is sometimes in the eye of the beholder, meaning "it has the feature I want" :) but I will ask IBM about GLOB_BRACE to perhaps spare this problem in the future.

tvlooy commented 8 years ago

Haha, that is certainly true Alan. And thank you :) ps: reworded it to "other"

mazhalai commented 8 years ago

@tvlooy is you have no other issues with installation, can we close this issue?

tvlooy commented 8 years ago

@mazhalai it depends. If Magento wants to run on those platforms you can either wait until they add support for GLOB_BRACE or make sure Magento doesn't rely on GLOB_BRACE. I guess these platforms are not the most common to run Magento, so ...

alanseiden commented 8 years ago

Looks like GLOB_* functions may be in AIX 7.2 (recent version, I think) which means it will eventually get to IBM i when it updates its AIX-equivalent to that level, but meanwhile, could @tvlooy post what his workaround was?

tvlooy commented 8 years ago

@alanseiden I don't have a decent workaround. I hacked the core files to load what I want, so I could do further testing

choukalos commented 8 years ago

Hi @tvlooy we officially support linux platforms ( http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements.html ) so this would fall into a known compatibility issue with AIX 7.2 for Magento 2. If there's no negative impact in removing our use of GLOB_* we'd welcome a PR.

andrewhowdencom commented 8 years ago

This also appears to be a problem with PHP built in an Alpine Linux container (or at least, I am getting the same error, and the following indicates that GLOB_BRACE is unsupported):

/tmp # php -r "echo GLOB_BRACE;"
PHP Notice:  Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in Command line code on line 1
/tmp # php -r "echo GLOB_MARK;"
2/tmp # 

Will confirm, but posting this here in case I forget / get lazy.

Edit: I forgot / got lazy / ran out of time. Thanks @tvlooy for the confirmation! I hadn't thought about checking the PHP build.

tvlooy commented 8 years ago

@andrewhowdencom just checked on a latest Alpine Linux and this is true. PHP complains that GLOB_BRACE does not exist. Kernel is Linux 4.1.15-grsec (ping @choukalos).

The thing is that Alpine Linux uses musl-libc instead of the Linux standard GNU libc. It seems that musl does not implement GLOB_BRACE because this is not a POSIX defined option.

cchamplin commented 8 years ago

Submitted a pull request to resolve this issue.

tvlooy commented 8 years ago

Tested on the i and the PR fixes this issue.

corbinu commented 8 years ago

I tried the PR on alpine linux and it fixed the original fail however setup still displays the error: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE'>

The setup doesn't fail however the static content is not generated leaving magneno installed without it.

cusspvz commented 8 years ago

Same happens when generating static content on alpine, probably needs to be changed on zend-stdlib?

/magento $ bin/magento setup:static-content:deploy
Requested languages: en_US

  [Exception]
  Notice: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in /magento/vendor/zendframework/zend-stdlib/src/Glob.php on line 64

setup:static-content:deploy [-d|--dry-run] [languages1] ... [languagesN]
cusspvz commented 8 years ago

@okorshenko @mazhalai Already fixed it on zend-stdlib, could you please bump the version on composer ?

cusspvz commented 8 years ago

@tvlooy do you mind to reopen since it is related to installation as well?

tvlooy commented 8 years ago

Requested by @cusspvz

tanya-soroka commented 8 years ago

MAGETWO-52142 - has been created to merge the fix.

corbinu commented 8 years ago

Any update I was really hoping this would make it into 2.1

cusspvz commented 8 years ago

The GLOB_BRACE is fixed on the zend-stdlib, now folks at magento just have to change the version of zend-stdlib they are using to the latest.

choukalos commented 7 years ago

FYI - @piotrekkaminski

KevinGimbel commented 7 years ago

I just installed Magento CE 2.1.6 with Docker using an Alpine based Image and now I ran into this issue when running bin/magento setup:static-content:deploy.

Is the version bump going to be released anytime soon? As far as I can see I cannot update zend-stdlib on my own when installing Magento with composer create-project because I do not have the "main" composer.json - or I do not see it.

For now - and since it's only local development - I manually updated the file vendor/zendframework/zend-stdlib/src/Glob.php to reflect the GLOB_BRACE changes from this commit to zend-stdlib - which is of course not a good idea nor a "solution" of sorts, but enables me to continue working for now.

romainruaud commented 7 years ago

Same issue here on Alpine.

@choukalos any update on this one ?

bachlee89 commented 7 years ago

I had same issue. I missed di.xml in the folder app/etc. Just copy it from git and then re-run php bin/magento s:up . Works fine for me now.

davidwindell commented 7 years ago

I think this issue can be closed now that zend-stdlib ^2.7.7 is required by Magento 2.2

okorshenko commented 7 years ago

@davidwindell thank you for update. Closing the issue