Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao instalar o Mysql-5.6

Boa tarde Pessoal,

Eu estou tendo um erro na hora de instalar o mysql server 5.6

TASK [Instala pacotes de dependencia do sistema operacional] ***********************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`,
please use `name: ['php5', 'apache2', 'libapache2-mod-php5', 'php5-gd', 'libssh2-php', 'php5-mcrypt', 'mysql-server-5.6']` and remove the loop. This feature will be removed in version 2.11.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
failed: [192.168.1.32] (item=[u'php5', u'apache2', u'libapache2-mod-php5', u'php5-gd', u'libssh2-php', u'php5-mcrypt', u'mysql-server-5.6']) => {"ansible_loop_var": "item", "cache_update_time": 1596637206, "cache_updated": false, "changed": false, "item": ["php5", "apache2", "libapache2-mod-php5", "php5-gd", "libssh2-php", "php5-mcrypt", "mysql-server-5.6"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"      install 'mysql-server-5.6'' failed: start: Job failed to start\ninvoke-rc.d: initscript mysql, action \"start\" failed.\ndpkg: error processing package mysql-server-5.6 (--configure):\n subprocess installed post-installation script returned error exit status 1\nErrors were encountered while processing:\n mysql-server-5.6\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stderr": "start: Job failed to start\ninvoke-rc.d: initscript mysql, action \"start\" failed.\ndpkg: error processing package mysql-server-5.6 (--configure):\n subprocess installed post-installation script returned error exit status 1\nErrors were encountered while processing:\n mysql-server-5.6\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr_lines": ["start: Job failed to start", "invoke-rc.d: initscript mysql, action \"start\" failed.", "dpkg: error processing package mysql-server-5.6 (--configure):", " subprocess installed post-installation script returned error exit status 1", "Errors were encountered while processing:", " mysql-server-5.6", "E: Sub-process /usr/bin/dpkg returned an error code (1)"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nmysql-server-5.6 is already the newest version.\n0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.\n1 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nSetting up mysql-server-5.6 (5.6.33-0ubuntu0.14.04.1) ...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "mysql-server-5.6 is already the newest version.", "0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.", "1 not fully installed or removed.", "After this operation, 0 B of additional disk space will be used.", "Setting up mysql-server-5.6 (5.6.33-0ubuntu0.14.04.1) ..."]}

PLAY RECAP *************************************************************************************************************************************************************************************
192.168.1.32               : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Porem, se eu tento instalar de dentro da VM, ele funciona.

root@ansible:/shared_folders/configs/ansible# apt-get install mysql-server-5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
  libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
  mysql-common-5.6 mysql-server-core-5.6
Suggested packages:
  libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl
  libsql-statement-perl libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
  libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common
  mysql-common-5.6 mysql-server-5.6 mysql-server-core-5.6
0 upgraded, 12 newly installed, 0 to remove and 1 not upgraded.
Need to get 21.6 MB of archives.
After this operation, 167 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Obrigado Antecipadamente, Fernando

1 resposta
solução!

Boa tarde Pessoal,

Consegui resolver o problema.

Precisa aumentar a memoria da VM.

A minha estava com 512mb e agora tem 1024mb.

Obrigado