Giter VIP home page Giter VIP logo

Comments (6)

mikev1963 avatar mikev1963 commented on May 25, 2024 1

Please see my issue I opened up. It appears the Mariadb has the incorrect mountpath.

from turing-pi-cluster.

geerlingguy avatar geerlingguy commented on May 25, 2024

Can you try running kubectl logs -n wordpress wordpress-mariadb-7ddc464c54-jkppm? It's possible it could be hitting a memory issue or that dreaded exec format error...

from turing-pi-cluster.

mok0 avatar mok0 commented on May 25, 2024

I did a fresh start using kubectl apply -f wordpress.yaml but there seems to be no log entries for the CrashLoopBackOff error. It does end with an error stopping the "temporary server" (whatever that is) but that seems like a separate issue(?).

homunculus➜  wordpress  kubectl logs -n wordpress wordpress-mariadb-7ddc464c54-jdwq6
2020-06-10 08:52:25+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.3.* started.
2020-06-10 08:52:25+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2020-06-10 08:52:25+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.3.* started.
2020-06-10 08:52:26+00:00 [Note] [Entrypoint]: Initializing database files


PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h  password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2020-06-10 08:52:31+00:00 [Note] [Entrypoint]: Database files initialized
2020-06-10 08:52:31+00:00 [Note] [Entrypoint]: Starting temporary server
2020-06-10 08:52:31+00:00 [Note] [Entrypoint]: Waiting for server startup
2020-06-10  8:52:31 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 124 ...
2020-06-10  8:52:31 0 [Note] InnoDB: Using Linux native AIO
2020-06-10  8:52:31 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-06-10  8:52:31 0 [Note] InnoDB: Uses event mutexes
2020-06-10  8:52:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-06-10  8:52:31 0 [Note] InnoDB: Number of pools: 1
2020-06-10  8:52:31 0 [Note] InnoDB: Using generic crc32 instructions
2020-06-10  8:52:31 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-06-10  8:52:31 0 [Note] InnoDB: Completed initialization of buffer pool
2020-06-10  8:52:31 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-06-10  8:52:31 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-06-10  8:52:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-10  8:52:31 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-10  8:52:31 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-06-10  8:52:31 0 [Note] InnoDB: 10.3.22 started; log sequence number 1625448; transaction id 21
2020-06-10  8:52:31 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-06-10  8:52:31 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-10  8:52:31 0 [Note] InnoDB: Buffer pool(s) load completed at 200610  8:52:31
2020-06-10  8:52:31 0 [Warning] 'user' entry 'root@wordpress-mariadb-7ddc464c54-jdwq6' ignored in --skip-name-resolve mode.
2020-06-10  8:52:31 0 [Warning] 'user' entry '@wordpress-mariadb-7ddc464c54-jdwq6' ignored in --skip-name-resolve mode.
2020-06-10  8:52:31 0 [Warning] 'proxies_priv' entry '@% root@wordpress-mariadb-7ddc464c54-jdwq6' ignored in --skip-name-resolve mode.
2020-06-10  8:52:31 0 [Note] Reading of all Master_info entries succeeded
2020-06-10  8:52:31 0 [Note] Added new Master_info '' to hash table
2020-06-10  8:52:31 0 [Note] mysqld: ready for connections.
Version: '10.3.22-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 0  Debian 10
2020-06-10 08:52:32+00:00 [Note] [Entrypoint]: Temporary server started.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
2020-06-10  8:52:40 10 [Warning] 'proxies_priv' entry '@% root@wordpress-mariadb-7ddc464c54-jdwq6' ignored in --skip-name-resolve mode.

2020-06-10 08:52:40+00:00 [Note] [Entrypoint]: Stopping temporary server
mysqladmin: unknown option '--"'
2020-06-10 08:52:40+00:00 [ERROR] [Entrypoint]: Unable to shut down server.
homunculus➜  wordpress

from turing-pi-cluster.

mok0 avatar mok0 commented on May 25, 2024

I guess you are referring to #26. That change does solve the problem I was having, I no longer get the CrashLoopBackOff error. However, I now get a page from Wordpress saying "Error establishing a database connection".

Edit: Now I have investigated this for a while, I have to say I am completely clueless on how to proceed. I've been looking at mariadb.yaml and wordpress.yaml to see if I could find out why Wordpress can't talk to the database, but I can't crack it. I was hoping to learn how to deploy and use kubernetes, but the system is simply too damn complicated. I can't even get a worked example to function, so how am I ever going to be able to do stuff on my own. Very depressing.

from turing-pi-cluster.

geerlingguy avatar geerlingguy commented on May 25, 2024

Moving #26 into this issue—from mikev1963:

The mount path points to

mountpath: /var/lib/mariadb

should actually be

mountPath: /var/lib/mysql

from turing-pi-cluster.

geerlingguy avatar geerlingguy commented on May 25, 2024

@mok0 and @mikev1963 - Thanks for reporting this. Indeed, the Drupal example uses the correct path, and I even updated the separate Gist for this (https://gist.github.com/geerlingguy/e6a661e1cd2b53f6a39493ebb207425c) in response to some users having issues with the same thing. I will update this repo now.

from turing-pi-cluster.

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.