boostmyshoporganization / vagrant-magento2

Magento2
1 stars 1 forks source link

Installation breaks on Magento configuration step #1

Open fedir opened 9 years ago

fedir commented 9 years ago

Installation breaks on Magento configuration step

...
==> default: zendframework/zend-view suggests installing zendframework/zend-feed (Zend\Feed component)
==> default: zendframework/zend-view suggests installing zendframework/zend-navigation (Zend\Navigation component)
==> default: zendframework/zend-view suggests installing zendframework/zend-paginator (Zend\Paginator component)
==> default: zendframework/zend-view suggests installing zendframework/zend-permissions-acl (Zend\Permissions\Acl component)
==> default: symfony/event-dispatcher suggests installing symfony/http-kernel ()
==> default: lusitanian/oauth suggests installing predis/predis (Allows using the Redis storage backend.)
==> default: lusitanian/oauth suggests installing symfony/http-foundation (Allows using the Symfony Session storage backend.)
==> default: symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
==> default: phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
==> default: phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
==> default: sjparkinson/static-review suggests installing sensiolabs/security-checker (Required for ComposerSecurityReview.)
==> default: Generating autoload files
==> default: Restarting nginx: nginx
==> default: .
==> default: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
==> default: User Name is a required field.
==> default: First Name is a required field.
==> default: Last Name is a required field.
==> default: Please enter a valid email.
==> default: Password is required field.
==> default: Your password must be at least 7 characters.
==> default: Your password must include both numeric and alphabetic characters.
==> default: 
==> default: 
==> default:                                
==> default:   [InvalidArgumentException]   
==> default:   Parameter validation failed  
==> default:                                
==> default: setup:install [--backend-frontname BACKEND-FRONTNAME] [--key KEY] [--session-save SESSION-SAVE] [--definition-format DEFINITION-FORMAT] [--db-host DB-HOST] [--db-name DB-NAME] [--db-user DB-USER] [--db-engine DB-ENGINE] [--db-password DB-PASSWORD] [--db-prefix DB-PREFIX] [--db-model DB-MODEL] [--db-init-statements DB-INIT-STATEMENTS] [-s|--skip-db-validation] [--base-url BASE-URL] [--language LANGUAGE] [--timezone TIMEZONE] [--currency CURRENCY] [--use-rewrites USE-REWRITES] [--use-secure USE-SECURE] [--base-url-secure BASE-URL-SECURE] [--use-secure-admin USE-SECURE-ADMIN] [--admin-use-security-key ADMIN-USE-SECURITY-KEY] [--admin-user ADMIN-USER] [--admin-password ADMIN-PASSWORD] [--admin-email ADMIN-EMAIL] [--admin-firstname ADMIN-FIRSTNAME] [--admin-lastname ADMIN-LASTNAME] [--cleanup-database] [--sales-order-increment-prefix SALES-ORDER-INCREMENT-PREFIX] [--use-sample-data] [--magento-init-params MAGENTO-INIT-PARAMS]
==> default: /tmp/vagrant-shell: line 126: --base-url=http://mage.dev: No such file or directory
==> default: /tmp/vagrant-shell: line 128: --backend-frontname=admin: command not found
==> default: /tmp/vagrant-shell: line 130: --db-host=localhost: command not found
==> default: /tmp/vagrant-shell: line 132: --db-name=magento2: command not found
==> default: /tmp/vagrant-shell: line 134: --db-user=root: command not found
==> default: /tmp/vagrant-shell: line 136: --db-password=magento2: command not found
==> default: /tmp/vagrant-shell: line 138: --admin-firstname=Magento: command not found
==> default: /tmp/vagrant-shell: line 140: --admin-lastname=User: command not found
==> default: /tmp/vagrant-shell: line 142: --admin-email=user@example.com: command not found
==> default: /tmp/vagrant-shell: line 144: --admin-user=admin: command not found
==> default: /tmp/vagrant-shell: line 146: --admin-password=admin123: command not found
==> default: /tmp/vagrant-shell: line 148: --language=en_US: command not found
==> default: /tmp/vagrant-shell: line 150: --currency=USD: command not found
==> default: /tmp/vagrant-shell: line 152: --timezone=America/Chicago: No such file or directory
==> default: /tmp/vagrant-shell: line 154: --cleanup-database: command not found
==> default: /tmp/vagrant-shell: line 156: --sales-order-increment-prefix=ORD$: command not found
==> default: /tmp/vagrant-shell: line 158: --session-save=db: command not found
==> default: /tmp/vagrant-shell: line 159: --use-rewrites=1: command not found
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

http://mage.dev gives following error

Error: Application is not installed yet. 
NOTE: web setup wizard is not accessible.
In order to install, use Magento Setup CLI or configure web access to the following directory: /opt/hosting/magento2/setup
#0 /opt/hosting/magento2/lib/internal/Magento/Framework/App/Http.php(156): Magento\Framework\App\Http->redirectToSetup(Object(Magento\Framework\App\Bootstrap), Object(Exception))
#1 /opt/hosting/magento2/lib/internal/Magento/Framework/App/Http.php(136): Magento\Framework\App\Http->handleDeveloperMode(Object(Magento\Framework\App\Bootstrap), Object(Exception))
#2 /opt/hosting/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(262): Magento\Framework\App\Http->catchException(Object(Magento\Framework\App\Bootstrap), Object(Exception))
#3 /opt/hosting/magento2/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#4 {main}
GuillaumeDievart commented 9 years ago

@fedir Thanks for your issue, I'm unable to reproduce this error, but I think that the problem come from the multiline command.

Fix in this commit: https://github.com/boostmyshoporganization/vagrant-magento2/commit/526119804cc175317771de4492c6974e3f4925a5

fedir commented 9 years ago

Cool ! It works. Apparently, we are using different OS. I'm on Linux, and in Vagrantfile I could see lot's of "\M" characters.

GuillaumeDievart commented 9 years ago

Grr, ok I see .. Thanks @fedir ! (I had disabled the autocrlf directive)