Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Fail to build #6

Open
hemna opened this issue Mar 15, 2020 · 0 comments
Open

Fail to build #6

hemna opened this issue Mar 15, 2020 · 0 comments

Comments

@hemna
Copy link

hemna commented Mar 15, 2020

My .env

# Set to your desired timezone. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=America/New_York

# Used by bluecherry to login to the MYSQL server
MYSQL_ADMIN_LOGIN=root

# Used by bluecherry as the password for the root account to create databases
MYSQL_ADMIN_PASSWORD=ass

# Name of the MYSQL host. This is usually the name of the service in docker-compose.yml
MYSQL_HOST=mysql

# Creates a user used by bluecherry and grants permission to the database.
BLUECHERRY_DB_USER=bluecherry

# Password for above user.
BLUECHERRY_DB_PASSWORD=ass

# Database name for the bluecherry database. Will delete if it exists.
BLUECHERRY_DB_NAME=bluecherry

# Grants access to the bluecherry user at this hostmask. This should be the IP of your bluecherry
# container. Examples:
#   192.168.0.% - allows access from any IP on the 192.168.0.xxx range
#   %.example.com - allows access to anyone from the example.com domain
#   192.168.1.0/255.255.255.0 - allows from any IP in 192.168.1.xxx range
BLUECHERRY_USERHOST=%

# UID/GID to run bluecherry user as. If you want to access recordings from the host, it is
# recommended to set them the same as a user/group that you want access to read it.
# run `id $(whoami)` to find the UID/GID of your user
BLUECHERRY_GROUP_ID=1000
BLUECHERRY_USER_ID=1000```



```waboring@hpvirt1:~/docker/bluecherry-docker:(git::master) $  docker-compose --version
docker-compose version 1.25.4, build 8d51620a
waboring@hpvirt1:~/docker/bluecherry-docker:(git::master) $  docker --version
Docker version 19.03.6, build 369ce74a3c```



```++ cat /etc/os-release
++ grep '^ID='
++ grep centos
+ [[ -n '' ]]
+ IN_DEB=1
+ MODE=new_db
+ case "$MODE" in
+ [[ 8 -lt 6 ]]
+ new_db root ass bluecherry bluecherry ass mysql %
+ echo new_db root ass bluecherry bluecherry ass mysql %
new_db root ass bluecherry bluecherry ass mysql %
+ MYSQL_ADMIN_LOGIN=root
+ MYSQL_ADMIN_PASSWORD=ass
+ dbname=bluecherry
+ user=bluecherry
+ password=ass
+ host=mysql
+ userhost=%
+ check_mysql_admin root ass
+ MYSQL_ADMIN_LOGIN=root
+ MYSQL_ADMIN_PASSWORD=ass
+ echo 'Testing MySQL admin credentials correctness...'
Testing MySQL admin credentials correctness...
+ echo 'show databases'
+ mysql_wrapper -hmysql -uroot
+ echo -e '\n\n\tProvided MySQL admin credentials are incorrect\n'


	Provided MySQL admin credentials are incorrect

++ whoami
+ echo -e 'Please create ~root/.my.cnf with right password like this\n'
Please create ~root/.my.cnf with right password like this

+ echo '[client]'
[client]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysql]'
[mysql]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysqldump]'
[mysqldump]
+ echo user=root
user=root
+ echo -e 'password="pass"\n'
password="pass"

+ echo '[mysqldiff]'
[mysqldiff]
+ echo user=root
user=root
+ echo 'password="pass"'
password="pass"
+ exit 1
++ exit 1
dpkg: error processing package bluecherry (--install):
 installed bluecherry package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for rsyslog (8.32.0-1ubuntu4) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of try-restart.
Errors were encountered while processing:
 bluecherry
ERROR: Service 'bluecherry' failed to build: The command '/bin/sh -c /usr/sbin/groupadd -r -f -g $BLUECHERRY_GROUP_ID bluecherry &&     useradd -c "Bluecherry DVR" -d /var/lib/bluecherry -g bluecherry -G audio,video -r -m bluecherry -u $BLUECHERRY_USER_ID &&     {         echo "[client]";                                echo "user=$MYSQL_ADMIN_LOGIN";                 echo "password=$MYSQL_ADMIN_PASSWORD";          echo "[mysql]";                                 echo "user=$MYSQL_ADMIN_LOGIN";                 echo "password=$MYSQL_ADMIN_PASSWORD";          echo "[mysqldump]";                             echo "user=$MYSQL_ADMIN_LOGIN";                 echo "password=$MYSQL_ADMIN_PASSWORD";          echo "[mysqldiff]";                             echo "user=$MYSQL_ADMIN_LOGIN";                 echo "password=$MYSQL_ADMIN_PASSWORD";      } > /root/.my.cnf                           &&     apt-get update                              &&     apt-get install -y supervisor wget gnupg rsyslog mysql-client-5.7                           ssl-cert curl sysstat mkvtoolnix php-mail php-mail-mime                                 php-net-smtp sqlite3 nmap apache2 v4l-utils vainfo php-sqlite3                          libapache2-mod-php php-gd php-curl php-mysql libmysqlclient20 libopencv-core3.2         libopencv-imgproc3.2                                                            &&     {         echo bluecherry bluecherry/mysql_admin_login password $MYSQL_ADMIN_LOGIN;               echo bluecherry bluecherry/mysql_admin_password password $MYSQL_ADMIN_PASSWORD;         echo bluecherry bluecherry/db_host string $host;                                        echo bluecherry bluecherry/db_userhost string $userhost;                                echo bluecherry bluecherry/db_name string $dbname;                                      echo bluecherry bluecherry/db_user string $user;                                        echo bluecherry bluecherry/db_password password $password;                          } | debconf-set-selections  &&     dpkg -i bluecherry_*.deb    &&     rm /root/bluecherry_*.deb   &&     rm -rf /var/lib/apt/lists/* &&     rm /etc/Dockerfile' returned a non-zero code: 1```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant