Why can't I install bitnami-redmine-4.2.1-3-linux-x64-installer.run on CentOS_7.9?

Keywords: Redmine - Installers - Technical issue - Application configuration

bnsupport ID: 33062803-3e8e-e4c4-4d86-7315f491a34d

Description:
CentOS_7.9 にbitnami-redmine-4.2.1-3-linux-x64-installer.runをインストールしようとすると、以下のようなエラーが表示されてインストールできません。
ーーー
0% ______________ 50% ______________ 100%
########################################
エラー: 実行中にエラーが起きました /opt/redmine-4.2.1-3/mysql/scripts/myscript.sh
/opt/redmine-4.2.1-3/mysql "" : 2021-09-28T04:17:53.291919Z 0 [System]
[MY-013169] [Server] /opt/redmine-4.2.1-3/mysql/bin/mysqld.bin (mysqld 8.0.25)
initializing of server in progress as process 1771
2021-09-28T04:17:53.304496Z 1 [System] [MY-013576] [InnoDB] InnoDB
initialization has started.
2021-09-28T04:17:58.082584Z 1 [System] [MY-013577] [InnoDB] InnoDB
initialization has ended.
2021-09-28T04:18:00.817054Z 0 [Warning] [MY-010161] [Server] You need to use
–log-bin to make --binlog-expire-logs-seconds work.
2021-09-28T04:18:01.620432Z 6 [Warning] [MY-010453] [Server] root@localhost is
created with an empty password ! Please consider switching off the
–initialize-insecure option.
chown: ユーザ指定が不正: `mysql’
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
‘/opt/redmine-4.2.1-3/mysql/tmp/mysql.sock’ (2)
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
‘/opt/redmine-4.2.1-3/mysql/tmp/mysql.sock’ (2)
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
‘/opt/redmine-4.2.1-3/mysql/tmp/mysql.sock’ (2)
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
‘/opt/redmine-4.2.1-3/mysql/tmp/mysql.sock’ (2)
続けるには [Enter] キーを押してください :
警告: インストール後の処理を実行中に問題が発生しました。インストールが正しく完了していない可能性があります
実行中にエラーが起きました /opt/redmine-4.2.1-3/mysql/bin/mysql -h localhost -u root -p

-S …/tmp/mysql.sock -e “CREATE DATABASE IF NOT EXISTS bitnami_redmine;CREATE
USER IF NOT EXISTS ‘bitnami’@‘localhost’ identified by '***’;GRANT ALL
PRIVILEGES on bitnami_redmine.
to ‘bitnami’@‘localhost’;flush privileges;” :
mysql.bin: [Warning] Using a password on the command line interface can be
insecure.
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
‘…/tmp/mysql.sock’ (2)
続けるには [Enter] キーを押してください :

It would be very helpful if you could tell me how to deal with this.

Hi @kiyoshi.nomiyama,

Thanks for using Bitnami. I see the next message in the logs. I used Google traductor, so maybe the translation is not 100% accurate, sorry.

chown: Illegal user specification: `mysql'

The MySQL server runs using its own system user for security reasons. Can you check the user exists on your server? I can’t see any error creating that user in the logs though.

As an alternative, you can use our virtual machine for Redmine, which includes the application already installed and configured.

https://bitnami.com/stack/redmine/virtual-machine

Thank you for your reply.
Since I’m installing using the installer, I think it might be that the chown command to the user mysql specified in the installer is invalid.
I’m going to check the registered user of mysql in the bitnami-redmine installation.
Also I have an old server running redmine 2.6.0, so I’ll try to find out what the registered user is in mysql there.

Hi @kiyoshi.nomiyama,

Thanks for your message. Yes, please, check if the mysql user is present on your system. Unfortunately, I couldn’t reproduce your issue. I installed that same stack version in a CentOS 7.9 virtual machine just fine (using sudo as you did).

Screen Shot 2021-10-06 at 10.08.58

Thank you for your reply.
I checked and found that there was no mysql user, but there was a mysql group.
Just to be sure, I reinstalled CentOS7.9, and when I did, the installation completed successfully.

Thank you very much for your help. I appreciate it very much.

Hi @kiyoshi.nomiyama,

Thanks for the info. I’m glad you fixed your issue! We will close this thread as solved. Please do not hesitate to open a new one with any other questions you may have.