Giter VIP home page Giter VIP logo

dotplant2-vagrant's Introduction

Vagrant box for DotPlant2 CMS

WARNING This box currently uses master branch of dotplant2. You can change it in puphpet/files/exec-once-unprivileged/01-www.sh.

How to use:

git clone https://github.com/DevGroup-ru/dotplant2-vagrant.git && cd dotplant2-vagrant
vagrant up
vagrant ssh

Go to: http://192.168.56.111/

Backend: http://192.168.56.111/backend

Admin user is admin with password password.

Demo data

WARNING Demo data is in Russian for now :(

WARNING-2 Demo migration also downloads big(~90Mb) archive with sample images.

vagrant ssh
cd /var/www/dotplant2/application/
./demo.sh
./yii cache/flush cache --interactive=0

Go to http://192.168.56.111/catalog

Vagrant info

Virtual machine type: VirtualBox

IP: 192.168.56.111

MySQL root password: 123mysql321

Made with puphpet.com and custom scripts.

dotplant2-vagrant's People

Contributors

bethrezen avatar fps01 avatar nks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zerojuls

dotplant2-vagrant's Issues

mysql server problem during provision

Hi I am getting the following problem when I am using your vagrant configuration. It seems to be a problem with mysql but I cannot figure out how to overcome this.
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mysql-server-5.6' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: mysql-server-5.6 is already the newest version.
==> default: 0 upgraded, 0 newly installed, 0 to remove and 193 not upgraded.
==> default: 1 not fully installed or removed.
==> default: After this operation, 0 B of additional disk space will be used.
==> default: Setting up mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
==> default: start: Job failed to start
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mysql-server-5.6 (--configure):
==> default: subprocess installed post-installation script returned error exit status 1
==> default: Errors were encountered while processing:
==> default: mysql-server-5.6
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default:
==> default: Error: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: change from absent to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mysql-server-5.6' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: mysql-server-5.6 is already the newest version.
==> default: 0 upgraded, 0 newly installed, 0 to remove and 193 not upgraded.
==> default: 1 not fully installed or removed.
==> default: After this operation, 0 B of additional disk space will be used.
==> default: Setting up mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
==> default: start: Job failed to start
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mysql-server-5.6 (--configure):
==> default: subprocess installed post-installation script returned error exit status 1
==> default: Errors were encountered while processing:
==> default: mysql-server-5.6
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default:
==> default: Notice: /Stage[main]/Mysql::Server::Install/Exec[mysql_install_db]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql::Server::Install/Exec[mysql_install_db]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql::Server::Config/File[mysql-config-file]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql::Server::Config/File[mysql-config-file]: Skipping because of failed dependencies
==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysqlnd' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following packages will be REMOVED:
==> default: php5-mysql
==> default: The following NEW packages will be installed:
==> default: php5-mysqlnd
==> default: 0 upgraded, 1 newly installed, 1 to remove and 193 not upgraded.
==> default: 1 not fully installed or removed.
==> default: Need to get 0 B/138 kB of archives.
==> default: After this operation, 264 kB of additional disk space will be used.
==> default: (Reading database ... 67341 files and directories currently installed.)
==> default: Removing php5-mysql (5.6.14+dfsg-1+deb.sury.orgtrusty+1) ...
==> default: php5_invoke prerm: Disable module mysql for fpm SAPI
==> default: php5_invoke prerm: Disable module mysql for cli SAPI
==> default: php5_invoke prerm: Disable module mysqli for fpm SAPI
==> default: php5_invoke prerm: Disable module mysqli for cli SAPI
==> default: php5_invoke prerm: Disable module pdo_mysql for fpm SAPI
==> default: php5_invoke prerm: Disable module pdo_mysql for cli SAPI
==> default: Processing triggers for php5-fpm (5.6.14+dfsg-1+deb.sury.org
trusty+1) ...
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 7886
==> default: Selecting previously unselected package php5-mysqlnd.
==> default: (Reading database ... 67330 files and directories currently installed.)
==> default: Preparing to unpack .../php5-mysqlnd_5.6.14+dfsg-1+deb.sury.orgtrusty+1_amd64.deb ...
==> default: Unpacking php5-mysqlnd (5.6.14+dfsg-1+deb.sury.org
trusty+1) ...
==> default: Processing triggers for php5-fpm (5.6.14+dfsg-1+deb.sury.orgtrusty+1) ...
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 7985
==> default: Setting up mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
==> default: start: Job failed to start
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mysql-server-5.6 (--configure):
==> default: subprocess installed post-installation script returned error exit status 1
==> default: Setting up php5-mysqlnd (5.6.14+dfsg-1+deb.sury.org
trusty+1) ...
==> default: php5_invoke: Enable module mysqlnd for fpm SAPI
==> default: php5_invoke: Enable module mysqlnd for cli SAPI
==> default: php5_invoke: Enable module mysql for fpm SAPI
==> default: php5_invoke: Enable module mysql for cli SAPI
==> default: php5_invoke: Enable module mysqli for fpm SAPI
==> default: php5_invoke: Enable module mysqli for cli SAPI
==> default: php5_invoke: Enable module pdo_mysql for fpm SAPI
==> default: php5_invoke: Enable module pdo_mysql for cli SAPI
==> default: Processing triggers for php5-fpm (5.6.14+dfsg-1+deb.sury.orgtrusty+1) ...
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 9055
==> default: Errors were encountered while processing:
==> default: mysql-server-5.6
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default:
==> default: Error: /Stage[main]/Puphpet_mysql/Puphpet::Php::Module[mysqlnd]/Php::Module[mysqlnd]/Package[PhpModule_mysqlnd]/ensure: change from absent to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysqlnd' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following packages will be REMOVED:
==> default: php5-mysql
==> default: The following NEW packages will be installed:
==> default: php5-mysqlnd
==> default: 0 upgraded, 1 newly installed, 1 to remove and 193 not upgraded.
==> default: 1 not fully installed or removed.
==> default: Need to get 0 B/138 kB of archives.
==> default: After this operation, 264 kB of additional disk space will be used.
==> default: (Reading database ... 67341 files and directories currently installed.)
==> default: Removing php5-mysql (5.6.14+dfsg-1+deb.sury.org
trusty+1) ...
==> default: php5_invoke prerm: Disable module mysql for fpm SAPI
==> default: php5_invoke prerm: Disable module mysql for cli SAPI
==> default: php5_invoke prerm: Disable module mysqli for fpm SAPI
==> default: php5_invoke prerm: Disable module mysqli for cli SAPI
==> default: php5_invoke prerm: Disable module pdo_mysql for fpm SAPI
==> default: php5_invoke prerm: Disable module pdo_mysql for cli SAPI
==> default: Processing triggers for php5-fpm (5.6.14+dfsg-1+deb.sury.orgtrusty+1) ...
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 7886
==> default: Selecting previously unselected package php5-mysqlnd.
==> default: (Reading database ... 67330 files and directories currently installed.)
==> default: Preparing to unpack .../php5-mysqlnd_5.6.14+dfsg-1+deb.sury.org
trusty+1_amd64.deb ...
==> default: Unpacking php5-mysqlnd (5.6.14+dfsg-1+deb.sury.orgtrusty+1) ...
==> default: Processing triggers for php5-fpm (5.6.14+dfsg-1+deb.sury.org
trusty+1) ...
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 7985
==> default: Setting up mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
==> default: start: Job failed to start
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mysql-server-5.6 (--configure):
==> default: subprocess installed post-installation script returned error exit status 1
==> default: Setting up php5-mysqlnd (5.6.14+dfsg-1+deb.sury.orgtrusty+1) ...
==> default: php5_invoke: Enable module mysqlnd for fpm SAPI
==> default: php5_invoke: Enable module mysqlnd for cli SAPI
==> default: php5_invoke: Enable module mysql for fpm SAPI
==> default: php5_invoke: Enable module mysql for cli SAPI
==> default: php5_invoke: Enable module mysqli for fpm SAPI
==> default: php5_invoke: Enable module mysqli for cli SAPI
==> default: php5_invoke: Enable module pdo_mysql for fpm SAPI
==> default: php5_invoke: Enable module pdo_mysql for cli SAPI
==> default: Processing triggers for php5-fpm (5.6.14+dfsg-1+deb.sury.org
trusty+1) ...
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 9055
==> default: Errors were encountered while processing:
==> default: mysql-server-5.6
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default:
==> default: Notice: /Stage[main]/Mysql::Server::Config/File[/etc/mysql/conf.d]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql::Server::Config/File[/etc/mysql/conf.d]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql::Server::Service/Service[mysqld]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql::Server::Service/Service[mysqld]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql::Server::Service/File[/var/log/mysql/error.log]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql::Server::Service/File[/var/log/mysql/error.log]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql::Server::Root_password/Mysql_user[root@localhost]: Dependency Package[mysql-server] has failures: true
==> default: Notice: /Stage[main]/Mysql::Server::Root_password/File[/root/.my.cnf]: Dependency Package[mysql-server] has failures: true
==> default: Error: Could not prefetch mysql_user provider 'mysql': Execution of '/usr/bin/mysql -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
==> default:
==> default: Warning: /Stage[main]/Mysql::Server::Root_password/Mysql_user[root@localhost]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/Mysql::Server::Root_password/File[/root/.my.cnf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql::Server/Anchor[mysql::server::end]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql::Server/Anchor[mysql::server::end]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Puphpet_mysql/Mysql_user[dotplant2test@localhost]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Puphpet_mysql/Mysql_user[dotplant2test@localhost]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Puphpet_mysql/Mysql_database[dotplant2]: Dependency Package[mysql-server] has failures: true
==> default: Error: Could not prefetch mysql_database provider 'mysql': Execution of '/usr/bin/mysql -NBe show databases' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
==> default:
==> default: Warning: /Stage[main]/Puphpet_mysql/Mysql_database[dotplant2]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Swap_file/Exec[Attach swap file]/returns: executed successfully
==> default: Notice: /Stage[main]/Puphpet_server/Exec[dotfiles]/returns: executed successfully
==> default: Notice: /Stage[main]/Pyenv/Vcsrepo[/usr/local/pyenv]/revision: revision changed '3cde540ca00208fbfd0a5e7708c3053bc8cca9f5' to 'v0.4.0-20140404'
==> default: Notice: /Stage[main]/Composer/Exec[download_composer]/returns: executed successfully
==> default: Notice: /Stage[main]/Puphpet_php/Puphpet::Php::Pecl[pecl_http]/Php::Pecl::Module[pecl_http]/Exec[pecl-pecl_http]/returns: executed successfully
==> default: Info: Puphpet::Php::Pecl[pecl_http]: Scheduling refresh of Service[php5-fpm]
==> default: Notice: /Stage[main]/Puphpet_php/Service[php5-fpm]: Dependency Package[PhpModule_mysqlnd] has failures: true
==> default: Warning: /Stage[main]/Puphpet_php/Service[php5-fpm]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Puphpet_php/Service[php5-fpm]: Triggered 'refresh' from 1 events
==> default: Notice: Finished catalog run in 101.43 seconds

Troubles after vagrant up command

After insert vagrant up command, receive this message:

default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

Review your config.yaml

hello @bethrezen.

I've found wrong absolute path on your config.yaml line 71.
command: 'cd /var/www/dotplant2/applicaiton/ && ./yii background/tasks'

I think it must be:
command: 'cd /var/www/dotplant2/application/ && ./yii background/tasks'

Vagrant Authentication failure

I've got an error during vagrant up process : Warning: Authentication failure.. Something wrong with auth keys I think. I'm not very familiar with vagrant and especially with puppet, so can't fix this by myself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.