Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/mysql] can not started #27106

Open
charnet1019 opened this issue Jun 12, 2024 · 3 comments
Open

[bitnami/mysql] can not started #27106

charnet1019 opened this issue Jun 12, 2024 · 3 comments
Assignees
Labels
in-progress mysql tech-issues The user has a technical issue about an application

Comments

@charnet1019
Copy link

Name and Version

bitnami/mysql 9.23.0

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Just change some values of values.yaml.
  2. helm install
  3. Enter mysql contaienr then exec /opt/bitnami/scripts/mysql/entrypoint.sh /opt/bitnami/scripts/mysql/run.sh
  4. mysql can not started.

Are you using any custom parameters or values?

global:
  storageClass: local-path

diagnosticMode:
  enabled: true

image:
  debug: true

architecture: standalone

auth:
  rootPassword: xxxxxx
  createDatabase: false

primary:
  livenessProbe:
    enabled: true
    initialDelaySeconds: 15
    periodSeconds: 10
    timeoutSeconds: 1
    failureThreshold: 3
    successThreshold: 1

  readinessProbe:
    enabled: true
    initialDelaySeconds: 15
    periodSeconds: 10
    timeoutSeconds: 1
    failureThreshold: 3
    successThreshold: 1

  startupProbe:
    enabled: true
    initialDelaySeconds: 45
    periodSeconds: 10
    timeoutSeconds: 1
    failureThreshold: 10
    successThreshold: 1

What is the expected behavior?

mysql start success.

What do you see instead?

I have no name!@mysql-qxaymx-0:/$ /opt/bitnami/scripts/mysql/entrypoint.sh /opt/bitnami/scripts/mysql/run.sh
mysql 01:43:09.63 INFO  ==> 
mysql 01:43:09.64 INFO  ==> Welcome to the Bitnami mysql container
mysql 01:43:09.64 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mysql 01:43:09.65 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mysql 01:43:09.66 INFO  ==> 
mysql 01:43:09.67 DEBUG ==> Copying files from /opt/bitnami/mysql/conf.default to /opt/bitnami/mysql/conf
mysql 01:43:09.68 INFO  ==> ** Starting MySQL setup **
mysql 01:43:09.72 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql 01:43:09.73 INFO  ==> Initializing mysql database
mysql 01:43:09.74 DEBUG ==> Ensuring expected directories/files exist
mysql 01:43:09.76 WARN  ==> The mysql configuration file '/opt/bitnami/mysql/conf/my.cnf' is not writable. Configurations based on environment variables will not be applied for this file.
mysql 01:43:09.77 DEBUG ==> Cleaning data directory to ensure successfully initialization
mysql 01:43:09.77 INFO  ==> Installing database



mysql 01:44:16.10 INFO  ==> Starting mysql in background
mysql 01:44:20.13 DEBUG ==> Executing SQL command:
select 1
1
mysql 01:44:20.16 INFO  ==> Configuring authentication
mysql 01:44:20.16 DEBUG ==> Executing SQL command:
DELETE FROM mysql.user WHERE user not in ('mysql.sys','mariadb.sys');
mysql 01:44:20.24 DEBUG ==> Configuring root user credentials
mysql 01:44:20.25 DEBUG ==> Executing SQL command:
-- create admin user
create user 'root'@'%' identified by "xxxxxx";
grant all on *.* to 'root'@'%' with grant option;
flush privileges;
mysql 01:44:20.65 DEBUG ==> removing the unknown user
mysql 01:44:20.67 DEBUG ==> Executing SQL command:
select Host from user where User='';
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:44:20.80 INFO  ==> Running mysql_upgrade
mysql 01:44:20.81 INFO  ==> Stopping mysql
mysql 01:44:23.83 DEBUG ==> Waiting for mysql to unlock db files
Cannot find socket's device number.
Cannot stat /bitnami/mysql/data/ibdata1: Invalid argument
mysql 01:44:23.86 INFO  ==> Starting mysql in background


find: '/docker-entrypoint-startdb.d/': No such file or directory
mysql 01:46:04.28 INFO  ==> Stopping mysql
mysql 01:46:14.34 DEBUG ==> Waiting for mysql to unlock db files
Cannot find socket's device number.
Cannot stat /bitnami/mysql/data/ibdata1: Invalid argument
mysql 01:46:14.37 INFO  ==> Stopping mysql
mysql 01:46:24.43 DEBUG ==> Waiting for mysql to unlock db files
Cannot find socket's device number.
Cannot stat /bitnami/mysql/data/ibdata1: Invalid argument
mysql 01:46:24.46 INFO  ==> ** MySQL setup finished! **

mysql 01:46:24.54 INFO  ==> ** Starting MySQL **

Additional information

No response

@charnet1019 charnet1019 added the tech-issues The user has a technical issue about an application label Jun 12, 2024
@github-actions github-actions bot added the triage Triage is needed label Jun 12, 2024
@javsalgar
Copy link
Contributor

javsalgar commented Jun 12, 2024

Hi,

Could you provide more details on the persistence storage you are using? It seems there is some sort of incompatibility with the PVCs created with your storage provider.

@charnet1019
Copy link
Author

charnet1019 commented Jun 13, 2024

Use rancher local sc.

https://github.com/rancher/local-path-provisioner

$ kubectl get sc
NAME                  PROVISIONER                                   RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
local (default)       openebs.io/local                              Delete          WaitForFirstConsumer   false                  23d
local-path            rancher.io/local-path                         Delete          WaitForFirstConsumer   false                  22d
managed-nfs-storage   k8s-sigs.io/nfs-subdir-external-provisioner   Delete          Immediate              true                   9d

$ kubectl get pvc -n test
NAME                  STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
data-mysql-qxaymx-0   Bound    pvc-31e672da-ebbc-4a7b-be49-d368c41becd6   8Gi        RWO            local-path     23h

@github-actions github-actions bot removed the triage Triage is needed label Jun 17, 2024
@github-actions github-actions bot assigned rafariossaa and unassigned carrodher Jun 17, 2024
@rafariossaa
Copy link
Contributor

Could you try using other kind of storage-class for the PVC ?
I think the issue is due to this. Also, could you check rancher logs and check if there is some errors on this regards. Maybe there is some hint there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress mysql tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

4 participants