GithubHelp home page GithubHelp logo

Comments (17)

juan131 avatar juan131 commented on August 26, 2024 1

You're welcome @HebeHH

Please share with us your progress and let us know if you need anything else.

from charts.

yacut avatar yacut commented on August 26, 2024

I have the same issue on k8s 1.10

from charts.

juan131 avatar juan131 commented on August 26, 2024

Hi @yacut @rmorrise

Thanks for raising this up! I was able to reproduce the error. It seems that it's not setting the right permissions on the directory /opt/bitnami/mysql/logs/ when it starts MySQL container with persisted data (the one stored on the Persistent Volume claimed by the MySQL statefulset).

@javsalgar does it make sense to you?

from charts.

javsalgar avatar javsalgar commented on August 26, 2024

It looks to me that it could be due to the minikube start up process that may change the permissions in the folders where the persistent volumes are stored. I would report this issue in minikube as they may have more information.

from charts.

rmorrise avatar rmorrise commented on August 26, 2024

@javsalgar @juan131 I don't see any volume mount defined for the path that you specified. The statefulset has the following in describe. There are no PVCs, since persistence is disabled.

   Mounts:
     /bitnami/mysql from data (rw)
     /docker-entrypoint-initdb.d from custom-init-scripts (rw)
     /opt/bitnami/mysql/conf/my.cnf from config (rw)
 Volumes:
  config:
   Type:      ConfigMap (a volume populated by a ConfigMap)
   Name:      kbvaluedb-local-mysql-master
   Optional:  false
  custom-init-scripts:
   Type:      ConfigMap (a volume populated by a ConfigMap)
   Name:      kbvaluedb-local-mysql-master-init-scripts
   Optional:  false
  data:
   Type:       EmptyDir (a temporary directory that shares a pod's lifetime)

from charts.

rmorrise avatar rmorrise commented on August 26, 2024

What information should I provide to the minikube team?

from charts.

juan131 avatar juan131 commented on August 26, 2024

Hi @rmorrise as you mentioned it also happens when persistence is disabled....

I could workaround the issue by deleting manually the pods so the statefulset automatically creates new pods that seem to be working fine...

$ kubectl get pods
NAME                            READY     STATUS             RESTARTS   AGE
binging-monkey-mysql-master-0   0/1       CrashLoopBackOff   4          6m
binging-monkey-mysql-slave-0    0/1       CrashLoopBackOff   4          6m
$ kubectl delete pod binging-monkey-mysql-master-0
$ kubectl delete pod binging-monkey-mysql-slave-0
$ kubectl get pods
NAME                            READY     STATUS    RESTARTS   AGE
binging-monkey-mysql-master-0   1/1       Running   0          4m
binging-monkey-mysql-slave-0    1/1       Running   0          2m

That's pretty weird and I guess it must be related with some weird behaviour on Statefulsets. Do you have any clue @javsalgar ?

from charts.

stale avatar stale commented on August 26, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

from charts.

hoangleanhtu avatar hoangleanhtu commented on August 26, 2024

Unfortunately I still have this issue on Google Kubernetes v1.10.7-gke.11. Somehow master pod was restarted then it gets CrashLoopBackOff forever.
I try to delete master pod many times but it doesn't work.

Here is the log:

2018-11-26T13:59:55.966663Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 6494052097
2018-11-26T13:59:55.967103Z 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mysql/data/ib_buffer_pool
2018-11-26T13:59:55.967272Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-11-26T13:59:55.970225Z 0 [Note] InnoDB: Buffer pool(s) load completed at 181126 13:59:55
2018-11-26T13:59:55.985048Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2018-11-26T13:59:55.985080Z 0 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
2018-11-26T13:59:55.985110Z 0 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
2018-11-26T13:59:55.985182Z 0 [Note] Server socket created on IP: '0.0.0.0'.
2018-11-26T13:59:55.989771Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.989954Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.989991Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.990003Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.990018Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.991096Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.991120Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-11-26T13:59:55.992566Z 0 [Note] Failed to start slave threads for channel ''
2018-11-26T13:59:55.997521Z 0 [Note] Event Scheduler: Loaded 0 events
2018-11-26T13:59:55.997808Z 0 [Note] /opt/bitnami/mysql/bin/mysqld: ready for connections.
Version: '5.7.24-log'  socket: '/opt/bitnami/mysql/tmp/mysql.sock'  port: 3306  MySQL Community Server (GPL)
2018-11-26T14:00:27.503043Z 2 [Note] Access denied for user 'root'@'localhost' (using password: YES)

from charts.

juan131 avatar juan131 commented on August 26, 2024

Hi @hoangleanhtu

It could be related with some incomplete initialisation of MySQL..

Are you using persistence or did you disable it? Could you share the exact command you used to deploy the chart in order to reproduce it?

Could you share the initialisation logs too?

from charts.

hoangleanhtu avatar hoangleanhtu commented on August 26, 2024

Hi @juan131 ,

I just used Helm to install chart

helm install bitnami/mysql

I tried to delete master pod, Kubernetes nodes...but I can't reproduce this issue anymore.

Could you share the initialisation logs too?

I fixed CrashLoopBack issue by deleting PVC and install new one, so I can not access logs.

from charts.

juan131 avatar juan131 commented on August 26, 2024

Hi @hoangleanhtu

It looks like a problem during the initialisation. Something went wrong and the data in the PVC was inconsistent.

I'm glad you could solved the issue by deleting the PVC! Please let me know if you need further help with it.

from charts.

stale avatar stale commented on August 26, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

from charts.

stale avatar stale commented on August 26, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

from charts.

HebeHH avatar HebeHH commented on August 26, 2024

I'm also running into this issue; using mysql as a subchart with values.yaml:

mysql:
  inside: true
  fullnameOverride: my-mysql
  auth:
    database: mine
    username: me
    password: pwd
    rootPassword: root
  image:
    tag: 8.0.11
    registry: docker.io
    repository: bitnami/mysql

After I uninstall/reinstall a couple of times, I end up with the mysql stateful set pod in CrashLoopBackoff, with this error:

nami    INFO  Initializing mysql
mysql   INFO
mysql   INFO  ########################################################################
mysql   INFO   Installation parameters for mysql:
mysql   INFO     Persisted data and properties have been restored.
mysql   INFO     Any input specified will not take effect.
mysql   INFO   This installation requires no credentials.
mysql   INFO  ########################################################################
mysql   INFO
nami    INFO  mysql successfully initialized
INFO  ==> Starting mysql...
INFO  ==> Starting mysqld_safe...
2021-03-05T09:54:28.999663Z mysqld_safe error: log-error set to '/opt/bitnami/mysql/logs/mysqld.log', however file don't exists. Create writable for user 'mysql'.

from charts.

juan131 avatar juan131 commented on August 26, 2024

Hi @HebeHH

Why did you overwrite the default image.tag? Is there any limitation that forces you to use 8.0.11?

As you can see in the "Notable Changes" section below:

The Bitnami MySQL image introduced structural changes in the 8.0.12-r34. The current chart is meant to work with the new images' structure, and it's likely that you find issues if you use older images.

from charts.

HebeHH avatar HebeHH commented on August 26, 2024

Hi @juan131 ,

Thanks for the pointers! I was using 8.0.11 at direction from the dev team, but they should be able to deal with the upgrade. I'll change the image tag and hope that solves the problem. That'll teach me to skim that section of the docs.

I appreciate the help, it was severely puzzling me.

from charts.

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.