@Ntari

Ошибки запуска vagrant?

Пытаюсь запустить Vagrant со стандартными конфигами yii2 (app-basic). Раньше не имел с ним дела. Подскажите что за ошибки и как их решить?

$ vagrant up --provision
Bringing machine 'yii2basic' up with 'virtualbox' provider...
==> yii2basic: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> yii2basic: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
==> yii2basic: Running provisioner: hostmanager...
==> yii2basic: Running provisioner: shell...
    yii2basic: Running: /tmp/vagrant-shell20190220-6956-pdzlb7.sh
    yii2basic:  
    yii2basic: --> Provision-script user: root
    yii2basic:  
    yii2basic:  
    yii2basic: --> Configure timezone
    yii2basic:  
    yii2basic:  
    yii2basic: --> Prepare root password for MySQL
    yii2basic:  
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Update OS software
    yii2basic:  
    yii2basic: Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
    yii2basic: Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
    yii2basic: Hit:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
    yii2basic: Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
    yii2basic: Reading package lists...
    yii2basic: Reading package lists...
    yii2basic: Building dependency tree...
    yii2basic: Reading state information...
    yii2basic: Calculating upgrade...
    yii2basic: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    yii2basic:  
    yii2basic: --> Install additional software
    yii2basic:  
    yii2basic: Reading package lists...
    yii2basic: Building dependency tree...
    yii2basic: Reading state information...
    yii2basic: unzip is already the newest version (6.0-20ubuntu1).
    yii2basic: php-xdebug is already the newest version (2.4.0-1).
    yii2basic: nginx is already the newest version (1.10.3-0ubuntu0.16.04.3).
    yii2basic: php7.0-cli is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: php7.0-curl is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: php7.0-gd is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: php7.0-mysql is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: php7.0-xml is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: mariadb-server-10.0 is already the newest version (10.0.38-0ubuntu0.16.04.1).
    yii2basic: php7.0-fpm is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: php7.0-intl is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: php7.0-mbstring is already the newest version (7.0.33-0ubuntu0.16.04.1).
    yii2basic: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    yii2basic:  
    yii2basic: --> Configure MySQL
    yii2basic:  
    yii2basic: ERROR
    yii2basic:  1396 (HY000)
    yii2basic:  at line 1
    yii2basic: : Operation CREATE USER failed for 'root'@'%'
    yii2basic: ERROR
    yii2basic:  1045 (28000)
    yii2basic:  at line 1
    yii2basic: : Access denied for user 'root'@'%' (using password: NO)
    yii2basic: ERROR
    yii2basic:  1396 (HY000)
    yii2basic:  at line 1
    yii2basic: : Operation DROP USER failed for 'root'@'localhost'
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Configure PHP-FPM
    yii2basic:  
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Configure NGINX
    yii2basic:  
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Enabling site configuration
    yii2basic:  
    yii2basic: ln: 
    yii2basic: failed to create symbolic link '/etc/nginx/sites-enabled/app.conf'
    yii2basic: : File exists
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Initailize databases for MySQL
    yii2basic:  
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Install composer
    yii2basic:  
    yii2basic: All settings correct for using Composer
    yii2basic: Downloading...
    yii2basic: 
    yii2basic: Composer (version 1.8.4) successfully installed to: /usr/local/bin/composer
    yii2basic: Use it: php /usr/local/bin/composer
==> yii2basic: Running provisioner: shell...
    yii2basic: Running: /tmp/vagrant-shell20190220-6956-1gvv24e.sh
    yii2basic:  
    yii2basic: --> Provision-script user: vagrant
    yii2basic:  
    yii2basic:  
    yii2basic: --> Configure composer
    yii2basic:  
    yii2basic: Done!
    yii2basic:  
    yii2basic: --> Install project dependencies
    yii2basic:  
    yii2basic: /tmp/vagrant-shell: line 24: cd: /app: No such file or directory
    yii2basic: Composer could not find a composer.json file in /home/vagrant
    yii2basic: To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
    yii2basic:  
    yii2basic: --> Create bash-alias 'app' for vagrant user
    yii2basic:  
    yii2basic: alias app="cd /app"
    yii2basic:  
    yii2basic: --> Enabling colorized prompt for guest console
    yii2basic:  
==> yii2basic: Running provisioner: shell...
    yii2basic: Running: /tmp/vagrant-shell20190220-6956-a87mbh.sh
    yii2basic:  
    yii2basic: --> Provision-script user: root
    yii2basic:  
    yii2basic:  
    yii2basic: --> Restart web-stack
    yii2basic:  

==> yii2basic: Machine 'yii2basic' has a post `vagrant up` message. This is a message
==> yii2basic: from the creator of the Vagrantfile, and not from Vagrant itself:
==> yii2basic: 
==> yii2basic: App URL: http://yii2basic.dev
  • Вопрос задан
  • 798 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы