-
-
Save trang/f6d4be9c9fe83f51a836 to your computer and use it in GitHub Desktop.
imouto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant is upgrading some internal state for the latest version. | |
Please do not quit Vagrant at this time. While upgrading, Vagrant | |
will need to copy all your boxes, so it will use a considerable | |
amount of disk space. After it is done upgrading, the temporary disk | |
space will be freed. | |
Press ctrl-c now to exit if you want to remove some boxes or free | |
up some disk space. | |
Press the Enter or Return key to continue. | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Box 'http://bit.ly/debian-wheezy-32-box' could not be found. Attempting to find and install... | |
default: Box Provider: virtualbox | |
default: Box Version: >= 0 | |
==> default: Box file was not detected as metadata. Adding it directly... | |
==> default: Adding box 'http://bit.ly/debian-wheezy-32-box' (v0) for provider: virtualbox | |
default: Downloading: http://bit.ly/debian-wheezy-32-box | |
==> default: Successfully added box 'http://bit.ly/debian-wheezy-32-box' (v0) for 'virtualbox'! | |
==> default: Importing base box 'http://bit.ly/debian-wheezy-32-box'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: imouto_default_1455385257188_48263 | |
==> default: Clearing any previously set forwarded ports... | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... | |
default: 80 (guest) => 8080 (host) (adapter 1) | |
default: 22 (guest) => 2222 (host) (adapter 1) | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: | |
default: Vagrant insecure key detected. Vagrant will automatically replace | |
default: this with a newly generated keypair for better security. | |
default: | |
default: Inserting generated public key within guest... | |
default: Removing insecure key from the guest if it's present... | |
default: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
==> default: Running provisioner: ansible... | |
default: Running ansible-playbook... | |
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and | |
make sure become_method is 'sudo' (default). This feature will be removed in a | |
future release. Deprecation warnings can be disabled by setting | |
deprecation_warnings=False in ansible.cfg. | |
PLAY *************************************************************************** | |
TASK [setup] ******************************************************************* | |
ok: [default] | |
TASK [common : Copy sources list for apt] ************************************** | |
changed: [default] | |
TASK [common : Update apt cache] *********************************************** | |
ok: [default] | |
TASK [common : Clear up home directory] **************************************** | |
changed: [default] => (item=base.sh) | |
changed: [default] => (item=chef.sh) | |
changed: [default] => (item=cleanup.sh) | |
changed: [default] => (item=puppetlabs-release-wheezy.deb) | |
changed: [default] => (item=puppet.sh) | |
changed: [default] => (item=ruby.sh) | |
changed: [default] => (item=vagrant.sh) | |
changed: [default] => (item=virtualbox.sh) | |
changed: [default] => (item=zerodisk.sh) | |
TASK [common : Install .bash_aliases] ****************************************** | |
changed: [default] | |
TASK [common : Ensure git is installed] **************************************** | |
changed: [default] | |
TASK [common : Install pip on remote machine] ********************************** | |
changed: [default] | |
TASK [common : Ensure python MySQLdb module is present] ************************ | |
changed: [default] | |
TASK [common : Install some basic python modules] ****************************** | |
skipping: [default] => (item=python_modules) | |
TASK [common : Copy sources list for apt] ************************************** | |
ok: [default] | |
TASK [common : Update apt cache] *********************************************** | |
ok: [default] | |
TASK [common : Clear up home directory] **************************************** | |
ok: [default] => (item=base.sh) | |
ok: [default] => (item=chef.sh) | |
ok: [default] => (item=cleanup.sh) | |
ok: [default] => (item=puppetlabs-release-wheezy.deb) | |
ok: [default] => (item=puppet.sh) | |
ok: [default] => (item=ruby.sh) | |
ok: [default] => (item=vagrant.sh) | |
ok: [default] => (item=virtualbox.sh) | |
ok: [default] => (item=zerodisk.sh) | |
TASK [common : Install .bash_aliases] ****************************************** | |
ok: [default] | |
TASK [common : Ensure git is installed] **************************************** | |
ok: [default] | |
TASK [common : Install pip on remote machine] ********************************** | |
ok: [default] | |
TASK [common : Ensure python MySQLdb module is present] ************************ | |
ok: [default] | |
TASK [common : Install some basic python modules] ****************************** | |
skipping: [default] => (item=python_modules) | |
TASK [setup_nginx : Stop apache2 service if running] *************************** | |
fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "no service or tool found for: apache2"} | |
...ignoring | |
TASK [setup_nginx : Install nginx] ********************************************* | |
changed: [default] | |
TASK [setup_nginx : Remove default nginx configurations] *********************** | |
changed: [default] | |
[WARNING]: Consider using file module with state=absent rather than running rm | |
TASK [setup_nginx : Create configuration directories] ************************** | |
changed: [default] | |
[WARNING]: Consider using file module with state=directory rather than running | |
mkdir | |
TASK [setup_nginx : Copy nginx configuration files - sites-available] ********** | |
changed: [default] | |
TASK [setup_nginx : Copy nginx configuration files - sites-enabled] ************ | |
changed: [default] | |
TASK [setup_nginx : Restart nginx] ********************************************* | |
changed: [default] | |
TASK [setup_nginx : Remove apache2 from init list] ***************************** | |
changed: [default] | |
TASK [setup_nginx : Set defaults in init script for nginx] ********************* | |
changed: [default] | |
TASK [setup_php : Install php5] ************************************************ | |
changed: [default] => (item=[u'php5-fpm', u'php5-cli', u'php5-mysql', u'php5-intl', u'php5-curl', u'php5-memcache', u'php5-imagick', u'memcached']) | |
TASK [setup_php : Copy php configuration files] ******************************** | |
changed: [default] | |
TASK [setup_php : Restart nginx] *********************************************** | |
changed: [default] | |
TASK [setup_php : Restart php5-fpm] ******************************************** | |
changed: [default] | |
TASK [setup_mysql : Install mysql-server] ************************************** | |
changed: [default] | |
TASK [setup_mysql : Set password for root] ************************************* | |
changed: [default] | |
TASK [setup_mysql : Create the tatoeba database] ******************************* | |
changed: [default] | |
TASK [setup_mysql : Create and give privileges to mysql_user to the tatoeba database] *** | |
changed: [default] | |
TASK [setup_mysql : Give FILE privileges to the mysql_user] ******************** | |
changed: [default] | |
TASK [update_code : Fetch the code from github repository] ********************* | |
changed: [default] | |
TASK [update_code : Copy CakePHP config files from remote host] **************** | |
changed: [default] => (item=database.php) | |
changed: [default] => (item=core.php) | |
TASK [update_code : Template out CakePHP config files] ************************* | |
changed: [default] => (item=database.php) | |
changed: [default] => (item=core.php) | |
TASK [update_code : Set ownership of the repository] *************************** | |
changed: [default] | |
TASK [update_code : Give proper permissions to avatar, logs and cache directories] *** | |
changed: [default] => (item=app/webroot/img/profiles_128) | |
changed: [default] => (item=app/webroot/img/profiles_36) | |
changed: [default] => (item=app/tmp/logs) | |
changed: [default] => (item=app/tmp/cache) | |
TASK [update_code : Restart php5-fpm] ****************************************** | |
changed: [default] | |
TASK [setup_database : Check whether tatoeba's code is present or not] ********* | |
changed: [default] | |
TASK [setup_database : Database import/update fail message] ******************** | |
skipping: [default] | |
TASK [setup_database : include] ************************************************ | |
included: /home/trang/imouto/ansible/roles/setup_database/tasks/create_db.yml for default | |
TASK [setup_database : Delete old database with same name if it exists] ******** | |
changed: [default] | |
TASK [setup_database : Create a new mysql database] **************************** | |
changed: [default] | |
TASK [setup_database : Initialize database schema] ***************************** | |
changed: [default] | |
TASK [setup_database : Fill database with initial values] ********************** | |
changed: [default] => (item=import/users.sql) | |
changed: [default] => (item=import/groups.sql) | |
changed: [default] => (item=import/sinograms.sql) | |
changed: [default] => (item=import/sinogram_subglyphs.sql) | |
TASK [setup_database : Set up ACLs] ******************************************** | |
changed: [default] => (item=acos) | |
changed: [default] => (item=aros) | |
changed: [default] => (item=aros_acos) | |
TASK [setup_database : Install database triggers] ****************************** | |
changed: [default] | |
TASK [setup_database : include] ************************************************ | |
included: /home/trang/imouto/ansible/roles/setup_database/tasks/import_csv.yml for default | |
TASK [setup_database : Copy csv's to /tmp folder] ****************************** | |
skipping: [default] => (item=sentences.csv) | |
skipping: [default] => (item=links.csv) | |
skipping: [default] => (item=tag_metadata.csv) | |
skipping: [default] => (item=tags_detailed.csv) | |
TASK [setup_database : Download csv's from http://tatoeba.org/files/downloads/] | |
changed: [default] => (item=sentences.csv) | |
changed: [default] => (item=links.csv) | |
changed: [default] => (item=tag_metadata.csv) | |
changed: [default] => (item=tags_detailed.csv) | |
TASK [setup_database : Import sentences in the tatoeba database] *************** | |
fatal: [default]: FAILED! => {"changed": true, "cmd": "mysql -u root -ptatoeba tatoeba < /home/vagrant/Tatoeba/docs/database/import/restore_dumps.sql", "delta": "0:28:23.210217", "end": "2016-02-13 18:38:11.140133", "failed": true, "rc": 1, "start": "2016-02-13 18:09:47.929916", "stderr": "ERROR 1062 (23000) at line 70: Duplicate entry '255' for key 'PRIMARY'", "stdout": "", "stdout_lines": [], "warnings": []} | |
PLAY RECAP ********************************************************************* | |
default : ok=49 changed=37 unreachable=0 failed=1 | |
Ansible failed to complete successfully. Any error output should be | |
visible above. Please fix these errors and try again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is my log when I run
vagrant up
: