kaltura / platform-install-packages

Official deployment packages to install the Kaltura platform on a server or cluster environments using native OS package managers
GNU Affero General Public License v3.0
520 stars 241 forks source link

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) #547

Closed mennant closed 8 years ago

mennant commented 8 years ago

Hi, I want to install kaltura via docker unfortunately unable to succeed.

I followed the instructions on https://github.com/kaltura/platform-install-packages/blob/master/doc/install-docker.md

My config.ans is

TIME_ZONE="UTC"
KALTURA_FULL_VIRTUAL_HOST_NAME="192.168.99.100:80"
KALTURA_VIRTUAL_HOST_NAME="192.168.99.100"
DB1_HOST="127.0.0.1"
DB1_PORT="3306"
DB1_PASS=""
DB1_NAME="kaltura"
DB1_USER="kaltura"
SERVICE_URL="http://192.168.99.100:80"
SPHINX_SERVER1="127.0.0.1"
SPHINX_SERVER2=" "
DWH_HOST="127.0.0.1"
DWH_PORT="3306"
SPHINX_DB_HOST="127.0.0.1"
SPHINX_DB_PORT="3306"
ADMIN_CONSOLE_ADMIN_MAIL="mennan@gmail.com"
ADMIN_CONSOLE_PASSWORD="kaltura"
CDN_HOST="192.168.99.100"
KALTURA_VIRTUAL_HOST_PORT="80"
SUPER_USER="root"
SUPER_USER_PASSWD="root"
ENVIRONMENT_NAME="Kaltura Local"
DWH_PASS="root"
PROTOCOL="http"
RED5_HOST="192.168.99.100"
USER_CONSENT="0"
CONFIG_CHOICE="0"
CONTACT_MAIL="mennan@gmail.com"

IS_SSL="N"
IS_NGINX_SSL="N"
VOD_PACKAGER_HOST="192.168.99.100"
VOD_PACKAGER_PORT="88"
WWW_HOST="192.168.99.100"
IP_RANGE="0.0.0.0-255.255.255.255"

When I run, I am getting following error

Mennans-MacBook-Pro:~ mennan$ docker cp config.ans kaltura:/root/install/
Mennans-MacBook-Pro:~ mennan$ docker exec -i -t kaltura /root/install/install.sh
setenforce: SELinux is disabled
Starting mysqld:                                           [  OK  ]
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mysql-server-5.1.73-5.el6_7.1.x86_64
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
Running base config...

kaltura-base-11.14.0-8.noarch
Welcome to Kaltura Server 11.14.0 post install setup.
Checking MySQL version..
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

kaltura-base-config.sh FAILED with: 1960 on line 307

Archving logs to /opt/kaltura/log/log_19_06_16_16_53.tar.gz...
cp: cannot stat `/opt/kaltura/log/*log': No such file or directory
tar: *log: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
ERROR: /opt/kaltura/bin/kaltura-base-config.sh failed:( You can re-run it when the issue is fixed.
Mennans-MacBook-Pro:~ mennan$ 

There is something wrong with mysql authentication. There are too many topics on the intenet regarding to "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"

Do you have any idea, it seems like a bug on installation process

DBezemer commented 8 years ago

@mennant your DB1_PASS="" cannot be empty, also your config does not look like the docker template config, please use this as template: https://github.com/kaltura/platform-install-packages/blob/master/doc/kaltura.template.ans

jessp01 commented 8 years ago

@mennant, closing due to lack of feedback. Also, for additional questions, please post at forum.kaltura.org. We'd like to keep the issues section on Github for specific bug reports rather than troubleshooting help.

Thanks,