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

db container fails to up on Windows 10 (Cannot change permissions of the file 'ca.pem') #149

Open
ricfio opened this issue May 9, 2021 · 0 comments

Comments

@ricfio
Copy link
Contributor

ricfio commented May 9, 2021

Hi @eko @automatix ,
the db container up fails on Windows 10, after the adding of volumes in docker-compose.yml for db container.

It works if you remove volumes from docker-compose.yml in db service

Here the problem:
2021-05-09T18:26:14.032799Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it

Here all logs:

2021-05-09 18:26:05+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.22-1debian10 started.

2021-05-09 18:26:05+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

2021-05-09 18:26:06+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.22-1debian10 started.

2021-05-09 18:26:06+00:00 [Note] [Entrypoint]: Initializing database files

2021-05-09T18:26:06.279302Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.22) initializing of server in progress as process 44

2021-05-09T18:26:06.325180Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive

2021-05-09T18:26:06.332646Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

2021-05-09T18:26:10.198859Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

mysqld: Cannot change permissions of the file 'ca.pem' (OS errno 1 - Operation not permitted)

2021-05-09T18:26:14.031148Z 0 [ERROR] [MY-010295] [Server] Could not set file permission for ca.pem

2021-05-09T18:26:14.032799Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.

2021-05-09T18:26:14.034428Z 0 [ERROR] [MY-010119] [Server] Aborting

2021-05-09T18:26:16.424416Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant