https://rancher.com/ logo
Title
p

purple-action-15801

08/25/2022, 12:57 AM
Hey everyone. I was trying to install bitnami MySQL helm chart today and for some reason I got this error on MacOS. I think it's due to permissions with rancher desktop. Thanks in advance for any replies. https://stackoverflow.com/questions/73480380/pod-error-bitnami-mysql-helm-chart-on-macos
% kubectl logs my-release-mysql-0
/usr/lib: './var/cache/ldconfig': Permission denied
/usr/lib: './proc/tty/driver': Permission denied
/usr/lib: './root': Permission denied
/usr/lib: './etc/ssl/private': Permission denied
% kubectl get pods                     
NAME                 READY   STATUS             RESTARTS        AGE
my-release-mysql-0   0/1     CrashLoopBackOff   6 (3m12s ago)   8m57s

% kubectl logs my-release-mysql-0
/usr/lib: './var/cache/ldconfig': Permission denied
/usr/lib: './proc/tty/driver': Permission denied
/usr/lib: './root': Permission denied
/usr/lib: './etc/ssl/private': Permission denied
mysql Wed Aug 24 23:07:43 UTC 2022INFO  ==> ** Starting MySQL **
2022-08-24T23:07:43.299737Z 0 [Warning] [MY-010939] [Server] Failed to get absolute path of program executable --defaults-file=/opt/bitnami/mysql/conf/my.cnf
2022-08-24T23:07:43.933997Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2022-08-24T23:07:43.934191Z 0 [System] [MY-010116] [Server] --defaults-file=/opt/bitnami/mysql/conf/my.cnf (mysqld 8.0.30) starting as process 1
2022-08-24T23:07:43.953718Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2022-08-24T23:07:43.954132Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
2022-08-24T23:07:43.956530Z 0 [Warning] [MY-010091] [Server] Can't create test file /bitnami/mysql/data/mysqld_tmp_file_case_insensitive_test.lower-test
2022-08-24T23:07:43.956655Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /bitnami/mysql/data/ is case insensitive
2022-08-24T23:07:43.957378Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to '/bitnami/mysql/data/' (OS errno: 2 - No such file or directory)
2022-08-24T23:07:43.958983Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-08-24T23:07:43.962276Z 0 [System] [MY-010910] [Server] --defaults-file=/opt/bitnami/mysql/conf/my.cnf: Shutdown complete (mysqld 8.0.30)  Source distribution.
b

billions-florist-50836

08/25/2022, 3:01 AM
MacOS Intel or MacOS M1 (arm64)?
p

purple-action-15801

08/25/2022, 11:37 AM
Hey Edward. M1 but I don't believe that's the issue because this particular helm char worked a week ago for me on this machine.
b

billions-florist-50836

08/25/2022, 6:49 PM
@purple-action-15801 I ask because historically the Helm charts provided by Bitnami have been primarily x86-only, per https://github.com/bitnami/charts/issues/7305
p

purple-action-15801

08/25/2022, 7:27 PM
Yeah, I have run into that a lot recently. I actually got it working 30 minutes ago. It was a permission issue. RD couldn't access the file system for the volume it seems.