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] startup issues when using root user #72807

Closed
recfloyd opened this issue Sep 28, 2024 · 3 comments
Closed

[bitnami/mysql] startup issues when using root user #72807

recfloyd opened this issue Sep 28, 2024 · 3 comments
Assignees
Labels
mysql solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@recfloyd
Copy link

recfloyd commented Sep 28, 2024

Name and Version

bitnami/mysql:8.4-debian-12 and bitnami/mysql:8.0-debian-12

What architecture are you using?

amd64

What steps will reproduce the bug?

i'm trying to start a bitnami/mysql container as root user, and below is my docker-compose.yml

services:
  mysql:
    image: bitnami/mysql:8.4-debian-12
    user: root
    ports:
      - 3306:3306
    environment:
      - MYSQL_ROOT_PASSWORD=1qaz2wsx

but i got this

mysql 13:33:30.06 INFO  ==> 
mysql 13:33:30.06 INFO  ==> Welcome to the Bitnami mysql container
mysql 13:33:30.07 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mysql 13:33:30.07 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mysql 13:33:30.07 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mysql 13:33:30.07 INFO  ==> 
mysql 13:33:30.07 INFO  ==> ** Starting MySQL setup **
mysql 13:33:30.08 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql 13:33:30.12 INFO  ==> Initializing mysql database
mysql 13:33:30.13 INFO  ==> Updating 'my.cnf' with custom configuration
mysql 13:33:30.13 INFO  ==> Setting slow_query_log option
mysql 13:33:30.14 INFO  ==> Setting long_query_time option
mysql 13:33:30.14 INFO  ==> Installing database

and it's stuck there, and the container's failed to start.

i've tried to change the image to version bitnami/mysql:8.0-debian-12, and everything's the same. it's still stuck there.

when i delete the line user: root, and everything's gonna be ok.

i've read this page Work With Non-Root Containers

my question is, is it realy possible to using this image to start a root container?

What is the expected behavior?

No response

What do you see instead?

mysql 13:33:30.06 INFO  ==> 
mysql 13:33:30.06 INFO  ==> Welcome to the Bitnami mysql container
mysql 13:33:30.07 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mysql 13:33:30.07 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mysql 13:33:30.07 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mysql 13:33:30.07 INFO  ==> 
mysql 13:33:30.07 INFO  ==> ** Starting MySQL setup **
mysql 13:33:30.08 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql 13:33:30.12 INFO  ==> Initializing mysql database
mysql 13:33:30.13 INFO  ==> Updating 'my.cnf' with custom configuration
mysql 13:33:30.13 INFO  ==> Setting slow_query_log option
mysql 13:33:30.14 INFO  ==> Setting long_query_time option
mysql 13:33:30.14 INFO  ==> Installing database

Additional information

No response

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

Hi!

Did you try running the container with BITNAMI_DEBUG=true?

Copy link

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.

@github-actions github-actions bot added the stale 15 days without activity label Oct 16, 2024
Copy link

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.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mysql solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants