Coder Social home page Coder Social logo

Comments (7)

geerlingguy avatar geerlingguy commented on May 12, 2024

I haven't had this issue on CentOS 6.6 or 7.1; what OS are you running, and can you look at the detailed mysql logs in /var/log and see if there are any other clues as to what's going wrong?

from ansible-role-mysql.

kakawait avatar kakawait commented on May 12, 2024

I'm using Centos 6.7, but build failed when using Packer. I will try again without Packer because too long to compute again! And I will post more information

from ansible-role-mysql.

geerlingguy avatar geerlingguy commented on May 12, 2024

Sounds good! And yeah, using Packer can make debugging issues a little tough, especially since the generated VM goes poof!

from ansible-role-mysql.

kakawait avatar kakawait commented on May 12, 2024

My bad it works. I have to check if is not a Packer issue or other ansible role incompatibility

from ansible-role-mysql.

kakawait avatar kakawait commented on May 12, 2024

Just FYI I just debug on Packer

Even if error is displayed, log is clean (no error)

150817 08:45:47 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150817 08:45:54 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150817  8:45:54 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
150817  8:45:54 [Note] /usr/libexec/mysqld (mysqld 5.5.45) starting as process 7651 ...
150817  8:45:54 [Note] Plugin 'FEDERATED' is disabled.
150817  8:45:54 InnoDB: The InnoDB memory heap is disabled
150817  8:45:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150817  8:45:54 InnoDB: Compressed tables use zlib 1.2.3
150817  8:45:54 InnoDB: Using Linux native AIO
150817  8:45:54 InnoDB: Initializing buffer pool, size = 256.0M
150817  8:45:54 InnoDB: Completed initialization of buffer pool
150817  8:45:54 InnoDB: highest supported file format is Barracuda.
150817  8:45:55  InnoDB: Waiting for the background threads to start
150817  8:45:56 InnoDB: 5.5.45 started; log sequence number 1961490
150817  8:45:56 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
150817  8:45:56 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
150817  8:45:56 [Note] Server socket created on IP: '0.0.0.0'.
150817  8:45:56 [Note] Event Scheduler: Loaded 0 events
150817  8:45:56 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.45'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi

And service is effectively running mysql -u<user> -p<password> works fine.

It seems to be an issue on Packer (because exporting provisioning from Packer and run manually on VM works). I will continue to debug.

PS: I tried without THREAD_CONCURRENCY configuration (deprecated), problem persists

from ansible-role-mysql.

geerlingguy avatar geerlingguy commented on May 12, 2024

Interesting... I wonder if it could also be something strange about the networking configuration (IPv4 vs. IPv6, listen on TCP vs Unix socket?) that is causing this problem. I know that has bitten me in the past.

from ansible-role-mysql.

kakawait avatar kakawait commented on May 12, 2024

My packer manifest is using centos 6.8 with 480mo memory. It seems to be not enough (because I'm running tomcat in VM too). By incrementing memory to 1go memory, your role works perfectly using MySQL >= 5.5 (even 5.6 tested by using MySQL community official repository).

MySQL >= 5.5 seems to use more memory than <= 5.1

from ansible-role-mysql.

Related Issues (20)

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.