chris@bluecherry:~$ sudo bash -c "$(wget -O - https://dl.bluecherrydvr.com/scripts/install-unstable)" --2021-05-20 21:57:15-- https://dl.bluecherrydvr.com/scripts/install-unstable Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 104.21.26.163, 172.67.137.51 Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|104.21.26.163|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6279 (6.1K) [application/octet-stream] Saving to: ‘STDOUT’ - 100%[======================================================================================================================>] 6.13K --.-KB/s in 0s 2021-05-20 21:57:16 (24.6 MB/s) - written to stdout [6279/6279] [sudo] password for chris: Reading package lists... Done Building dependency tree Reading state information... Done gpg is already the newest version (2.2.19-3ubuntu2.1). The following packages were automatically installed and are no longer required: apache2 apache2-bin apache2-data apache2-utils fontconfig-config fonts-dejavu-core gdal-data i965-va-driver intel-media-va-driver libaec0 libapache2-mod-php libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarmadillo9 libarpack2 libblas3 libboost-filesystem1.71.0 libcfitsio8 libcgi-fast-perl libcgi-pm-perl libcharls2 libdap25 libdapclient6v5 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libebml4v5 libencode-locale-perl libepsilon1 libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libflac8 libfontconfig1 libfreexl1 libfyba0 libgd3 libgdal26 libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5 libgif7 libhdf4-0-alt libhdf5-103 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libigdgmm11 libilmbase24 libio-html-perl libjansson4 libjbig0 libjpeg-turbo8 libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 liblinear4 libllvm11 liblua5.2-0 liblua5.3-0 liblwp-mediatypes-perl libmatroska6v5 libmecab2 libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1 libogdi4.1 libonig5 libopencv-core4.2 libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopenexr24 libopenjp2-7 libpciaccess0 libpoppler97 libpq5 libproj15 libpugixml1v5 libqhull7 libquadmath0 libsensors-config libsensors5 libsocket++1 libsodium23 libspatialite7 libsuperlu5 libsz2 libtbb2 libtiff5 libtimedate-perl liburi-perl liburiparser1 libv4l-0 libv4l2rds0 libv4lconvert0 libva-drm2 libva-wayland2 libva-x11-2 libva2 libwayland-client0 libwebp6 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxerces-c3.2 libxfixes3 libxpm4 libxshmfence1 linux-image-4.4.0-210-generic linux-modules-4.4.0-210-generic linux-modules-extra-4.4.0-210-generic lua-lpeg mecab-ipadic mecab-ipadic-utf8 mecab-utils mesa-va-drivers mkvtoolnix mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server mysql-server-8.0 mysql-server-core-8.0 nmap nmap-common odbcinst odbcinst1debian2 php-auth-sasl php-cli php-common php-curl php-gd php-mail php-mail-mime php-mbstring php-mysql php-net-smtp php-net-socket php-pear php-sqlite3 php-xml php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-sqlite3 php7.4-xml poppler-data proj-bin proj-data sqlite3 ssl-cert sysstat v4l-utils va-driver-all vainfo Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. OK --2021-05-20 21:57:23-- https://dl.bluecherrydvr.com/sources.list.d/bluecherry-focal-unstable.list Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 104.21.26.163, 172.67.137.51 Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|104.21.26.163|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 180 [application/octet-stream] Saving to: ‘/etc/apt/sources.list.d/bluecherry-focal.list’ /etc/apt/sources.list.d/bluecherry-focal.list 100%[======================================================================================================================>] 180 --.-KB/s in 0s 2021-05-20 21:57:23 (15.9 MB/s) - ‘/etc/apt/sources.list.d/bluecherry-focal.list’ saved [180/180] Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://unstable.bluecherrydvr.com focal InRelease Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:6 https://esm.ubuntu.com/infra/ubuntu focal-infra-security InRelease Hit:7 https://esm.ubuntu.com/infra/ubuntu focal-infra-updates InRelease Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-image-4.4.0-210-generic linux-modules-4.4.0-210-generic linux-modules-extra-4.4.0-210-generic Use 'sudo apt autoremove' to remove them. Suggested packages: monit mail-transport-agent The following NEW packages will be installed: bluecherry 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,814 kB of archives. After this operation, 31.1 MB of additional disk space will be used. Preconfiguring packages ... (Reading database ... 88010 files and directories currently installed.) Preparing to unpack .../bluecherry_3%3a3.0.6_amd64.deb ... groupadd: group 'bluecherry' already exists Unpacking bluecherry (3:3.0.6) ... Setting up bluecherry (3:3.0.6) ... ++ for x in /etc/*-release ++ [[ ! -d /etc/lsb-release ]] ++ source /etc/lsb-release +++ DISTRIB_ID=Ubuntu +++ DISTRIB_RELEASE=20.04 +++ DISTRIB_CODENAME=focal +++ DISTRIB_DESCRIPTION='Ubuntu 20.04.2 LTS' ++ for x in /etc/*-release ++ [[ ! -d /etc/os-release ]] ++ source /etc/os-release +++ NAME=Ubuntu +++ VERSION='20.04.2 LTS (Focal Fossa)' +++ ID=ubuntu +++ ID_LIKE=debian +++ PRETTY_NAME='Ubuntu 20.04.2 LTS' +++ VERSION_ID=20.04 +++ HOME_URL=https://www.ubuntu.com/ +++ SUPPORT_URL=https://help.ubuntu.com/ +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy +++ VERSION_CODENAME=focal +++ UBUNTU_CODENAME=focal +++ cat /etc/os-release +++ grep '^ID=' +++ grep centos ++ [[ -n '' ]] ++ IN_DEB=1 ++ [[ -n 1 ]] ++ . /usr/share/debconf/confmodule +++ '[' '!' '' ']' +++ PERL_DL_NONLAZY=1 +++ export PERL_DL_NONLAZY +++ '[' '' ']' +++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/bluecherry.postinst configure '' ++ for x in /etc/*-release ++ [[ ! -d /etc/lsb-release ]] ++ source /etc/lsb-release +++ DISTRIB_ID=Ubuntu +++ DISTRIB_RELEASE=20.04 +++ DISTRIB_CODENAME=focal +++ DISTRIB_DESCRIPTION='Ubuntu 20.04.2 LTS' ++ for x in /etc/*-release ++ [[ ! -d /etc/os-release ]] ++ source /etc/os-release +++ NAME=Ubuntu +++ VERSION='20.04.2 LTS (Focal Fossa)' +++ ID=ubuntu +++ ID_LIKE=debian +++ PRETTY_NAME='Ubuntu 20.04.2 LTS' +++ VERSION_ID=20.04 +++ HOME_URL=https://www.ubuntu.com/ +++ SUPPORT_URL=https://help.ubuntu.com/ +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy +++ VERSION_CODENAME=focal +++ UBUNTU_CODENAME=focal +++ cat /etc/os-release +++ grep '^ID=' +++ grep centos ++ [[ -n '' ]] ++ IN_DEB=1 ++ [[ -n 1 ]] ++ . /usr/share/debconf/confmodule +++ '[' '!' 1 ']' +++ '[' -z '' ']' +++ exec +++ '[' '' ']' +++ exec +++ DEBCONF_REDIR=1 +++ export DEBCONF_REDIR ++ case "$1" in ++ [[ -n 1 ]] ++ ucfr bluecherry /etc/bluecherry.conf ++ echo -e '\n\n\tVerifying permissions of existing files, please wait\n\n' Verifying permissions of existing files, please wait ++ [[ -d /var/lib/bluecherry ]] ++ chown -R bluecherry:bluecherry /var/lib/bluecherry ++ chmod -R 770 /var/lib/bluecherry ++ [[ -n 1 ]] ++ chown -R bluecherry:bluecherry /var/run/bluecherry ++ chmod -R 750 /var/run/bluecherry ++ touch /var/log/bluecherry.log ++ id syslog ++ chown syslog:bluecherry /var/log/bluecherry.log ++ chmod 640 /var/log/bluecherry.log +++ cat /etc/os-release +++ grep '^ID=' +++ grep debian ++ [[ -n '' ]] ++ [[ -n 1 ]] ++ a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled ++ a2enmod rewrite Module rewrite already enabled ++ [[ focal == \x\e\n\i\a\l ]] ++ [[ 20.04.2 LTS (Focal Fossa) == \9\ \(\s\t\r\e\t\c\h\) ]] ++ [[ focal == \b\i\o\n\i\c ]] ++ [[ focal == \f\o\c\a\l ]] ++ a2enmod php7.4 Considering dependency mpm_prefork for php7.4: Considering conflict mpm_event for mpm_prefork: Considering conflict mpm_worker for mpm_prefork: Module mpm_prefork already enabled Considering conflict php5 for php7.4: Module php7.4 already enabled ++ [[ -n 1 ]] ++ rm /etc/apache2/sites-enabled/bluecherry /etc/apache2/sites-available/bluecherry rm: cannot remove '/etc/apache2/sites-enabled/bluecherry': No such file or directory rm: cannot remove '/etc/apache2/sites-available/bluecherry': No such file or directory ++ true ++ a2ensite bluecherry.conf Enabling site bluecherry. To activate the new configuration, you need to run: systemctl reload apache2 ++ [[ -n 1 ]] ++ rm /etc/php5/conf.d/bluecherry.ini rm: cannot remove '/etc/php5/conf.d/bluecherry.ini': No such file or directory ++ true +++ which service ++ '[' '!' -z /usr/sbin/service ']' ++ service rsyslog restart ++ stop_apache ++ [[ -n 1 ]] +++ which service ++ '[' '!' -z /usr/sbin/service ']' ++ service apache2 stop ++ '[' '!' -e /var/lib/.bcins ']' ++ '[' -x /sbin/apparmor_parser ']' ++ : ++ [[ -s /etc/bluecherry.conf ]] ++ . /usr/share/bluecherry/load_db_creds.sh ++++ sed '/\(userhost\|host\|dbname\|user\|password\)/!d;s/ *= */=/;s/"/'\''/g' /etc/bluecherry.conf +++ eval 'dbname='\''_DBC_DBNAME_'\'';' 'user='\''_DBC_DBUSER_'\'';' 'password='\''_DBC_DBPASS_'\'';' 'host='\''_DBC_HOST_'\'';' 'userhost='\''_DBC_USERHOST_'\'';' ++++ dbname=_DBC_DBNAME_ ++++ user=_DBC_DBUSER_ ++++ password=_DBC_DBPASS_ ++++ host=_DBC_HOST_ ++++ userhost=_DBC_USERHOST_ +++ host=_DBC_HOST_ ++ echo exit ++ mysql -h _DBC_HOST_ -D_DBC_DBNAME_ -u_DBC_DBUSER_ -p_DBC_DBPASS_ mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 2005 (HY000): Unknown MySQL server host '_DBC_HOST_' (11) ++ echo 'Can'\''t connect mysql with credentials in /etc/bluecherry.conf' Can't connect mysql with credentials in /etc/bluecherry.conf ++ echo 'Please remove config or fix config' Please remove config or fix config ++ exit 1 dpkg: error processing package bluecherry (--configure): installed bluecherry package post-installation script subprocess returned error exit status 1 Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ... Processing triggers for systemd (245.4-4ubuntu3.6) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Errors were encountered while processing: bluecherry E: Sub-process /usr/bin/dpkg returned an error code (1) chris@bluecherry:~$ sudo bash -c "$(wget -O - https://dl.bluecherrydvr.com/scripts/install-unstable)" --2021-05-20 21:59:15-- https://dl.bluecherrydvr.com/scripts/install-unstable Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 104.21.26.163, 172.67.137.51 Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|104.21.26.163|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6279 (6.1K) [application/octet-stream] Saving to: ‘STDOUT’ - 100%[======================================================================================================================>] 6.13K --.-KB/s in 0s 2021-05-20 21:59:15 (32.3 MB/s) - written to stdout [6279/6279] Reading package lists... Done Building dependency tree Reading state information... Done gpg is already the newest version (2.2.19-3ubuntu2.1). The following packages were automatically installed and are no longer required: apache2 apache2-bin apache2-data apache2-utils fontconfig-config fonts-dejavu-core gdal-data i965-va-driver intel-media-va-driver libaec0 libapache2-mod-php libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarmadillo9 libarpack2 libblas3 libboost-filesystem1.71.0 libcfitsio8 libcgi-fast-perl libcgi-pm-perl libcharls2 libdap25 libdapclient6v5 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libebml4v5 libencode-locale-perl libepsilon1 libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libflac8 libfontconfig1 libfreexl1 libfyba0 libgd3 libgdal26 libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5 libgif7 libhdf4-0-alt libhdf5-103 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libigdgmm11 libilmbase24 libio-html-perl libjansson4 libjbig0 libjpeg-turbo8 libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 liblinear4 libllvm11 liblua5.2-0 liblua5.3-0 liblwp-mediatypes-perl libmatroska6v5 libmecab2 libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1 libogdi4.1 libonig5 libopencv-core4.2 libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopenexr24 libopenjp2-7 libpciaccess0 libpoppler97 libpq5 libproj15 libpugixml1v5 libqhull7 libquadmath0 libsensors-config libsensors5 libsocket++1 libsodium23 libspatialite7 libsuperlu5 libsz2 libtbb2 libtiff5 libtimedate-perl liburi-perl liburiparser1 libv4l-0 libv4l2rds0 libv4lconvert0 libva-drm2 libva-wayland2 libva-x11-2 libva2 libwayland-client0 libwebp6 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxerces-c3.2 libxfixes3 libxpm4 libxshmfence1 linux-image-4.4.0-210-generic linux-modules-4.4.0-210-generic linux-modules-extra-4.4.0-210-generic lua-lpeg mecab-ipadic mecab-ipadic-utf8 mecab-utils mesa-va-drivers mkvtoolnix mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server mysql-server-8.0 mysql-server-core-8.0 nmap nmap-common odbcinst odbcinst1debian2 php-auth-sasl php-cli php-common php-curl php-gd php-mail php-mail-mime php-mbstring php-mysql php-net-smtp php-net-socket php-pear php-sqlite3 php-xml php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-sqlite3 php7.4-xml poppler-data proj-bin proj-data sqlite3 ssl-cert sysstat v4l-utils va-driver-all vainfo Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. OK --2021-05-20 21:59:16-- https://dl.bluecherrydvr.com/sources.list.d/bluecherry-focal-unstable.list Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 104.21.26.163, 172.67.137.51 Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|104.21.26.163|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 180 [application/octet-stream] Saving to: ‘/etc/apt/sources.list.d/bluecherry-focal.list’ /etc/apt/sources.list.d/bluecherry-focal.list 100%[======================================================================================================================>] 180 --.-KB/s in 0s 2021-05-20 21:59:16 (8.46 MB/s) - ‘/etc/apt/sources.list.d/bluecherry-focal.list’ saved [180/180] Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:5 http://unstable.bluecherrydvr.com focal InRelease Hit:6 https://esm.ubuntu.com/infra/ubuntu focal-infra-security InRelease Hit:7 https://esm.ubuntu.com/infra/ubuntu focal-infra-updates InRelease Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-image-4.4.0-210-generic linux-modules-4.4.0-210-generic linux-modules-extra-4.4.0-210-generic Use 'sudo apt autoremove' to remove them. Suggested packages: monit mail-transport-agent The following NEW packages will be installed: bluecherry 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,814 kB of archives. After this operation, 31.1 MB of additional disk space will be used. Preconfiguring packages ... (Reading database ... 88010 files and directories currently installed.) Preparing to unpack .../bluecherry_3%3a3.0.6_amd64.deb ... sed: can't read /etc/bluecherry.conf: No such file or directory groupadd: group 'bluecherry' already exists Unpacking bluecherry (3:3.0.6) ... Setting up bluecherry (3:3.0.6) ... ++ for x in /etc/*-release ++ [[ ! -d /etc/lsb-release ]] ++ source /etc/lsb-release +++ DISTRIB_ID=Ubuntu +++ DISTRIB_RELEASE=20.04 +++ DISTRIB_CODENAME=focal +++ DISTRIB_DESCRIPTION='Ubuntu 20.04.2 LTS' ++ for x in /etc/*-release ++ [[ ! -d /etc/os-release ]] ++ source /etc/os-release +++ NAME=Ubuntu +++ VERSION='20.04.2 LTS (Focal Fossa)' +++ ID=ubuntu +++ ID_LIKE=debian +++ PRETTY_NAME='Ubuntu 20.04.2 LTS' +++ VERSION_ID=20.04 +++ HOME_URL=https://www.ubuntu.com/ +++ SUPPORT_URL=https://help.ubuntu.com/ +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy +++ VERSION_CODENAME=focal +++ UBUNTU_CODENAME=focal +++ cat /etc/os-release +++ grep '^ID=' +++ grep centos ++ [[ -n '' ]] ++ IN_DEB=1 ++ [[ -n 1 ]] ++ . /usr/share/debconf/confmodule +++ '[' '!' '' ']' +++ PERL_DL_NONLAZY=1 +++ export PERL_DL_NONLAZY +++ '[' '' ']' +++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/bluecherry.postinst configure '' ++ for x in /etc/*-release ++ [[ ! -d /etc/lsb-release ]] ++ source /etc/lsb-release +++ DISTRIB_ID=Ubuntu +++ DISTRIB_RELEASE=20.04 +++ DISTRIB_CODENAME=focal +++ DISTRIB_DESCRIPTION='Ubuntu 20.04.2 LTS' ++ for x in /etc/*-release ++ [[ ! -d /etc/os-release ]] ++ source /etc/os-release +++ NAME=Ubuntu +++ VERSION='20.04.2 LTS (Focal Fossa)' +++ ID=ubuntu +++ ID_LIKE=debian +++ PRETTY_NAME='Ubuntu 20.04.2 LTS' +++ VERSION_ID=20.04 +++ HOME_URL=https://www.ubuntu.com/ +++ SUPPORT_URL=https://help.ubuntu.com/ +++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ +++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy +++ VERSION_CODENAME=focal +++ UBUNTU_CODENAME=focal +++ cat /etc/os-release +++ grep '^ID=' +++ grep centos ++ [[ -n '' ]] ++ IN_DEB=1 ++ [[ -n 1 ]] ++ . /usr/share/debconf/confmodule +++ '[' '!' 1 ']' +++ '[' -z '' ']' +++ exec +++ '[' '' ']' +++ exec +++ DEBCONF_REDIR=1 +++ export DEBCONF_REDIR ++ case "$1" in ++ [[ -n 1 ]] ++ ucfr bluecherry /etc/bluecherry.conf ++ echo -e '\n\n\tVerifying permissions of existing files, please wait\n\n' Verifying permissions of existing files, please wait ++ [[ -d /var/lib/bluecherry ]] ++ chown -R bluecherry:bluecherry /var/lib/bluecherry ++ chmod -R 770 /var/lib/bluecherry ++ [[ -n 1 ]] ++ chown -R bluecherry:bluecherry /var/run/bluecherry ++ chmod -R 750 /var/run/bluecherry ++ touch /var/log/bluecherry.log ++ id syslog ++ chown syslog:bluecherry /var/log/bluecherry.log ++ chmod 640 /var/log/bluecherry.log +++ cat /etc/os-release +++ grep '^ID=' +++ grep debian ++ [[ -n '' ]] ++ [[ -n 1 ]] ++ a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled ++ a2enmod rewrite Module rewrite already enabled ++ [[ focal == \x\e\n\i\a\l ]] ++ [[ 20.04.2 LTS (Focal Fossa) == \9\ \(\s\t\r\e\t\c\h\) ]] ++ [[ focal == \b\i\o\n\i\c ]] ++ [[ focal == \f\o\c\a\l ]] ++ a2enmod php7.4 Considering dependency mpm_prefork for php7.4: Considering conflict mpm_event for mpm_prefork: Considering conflict mpm_worker for mpm_prefork: Module mpm_prefork already enabled Considering conflict php5 for php7.4: Module php7.4 already enabled ++ [[ -n 1 ]] ++ rm /etc/apache2/sites-enabled/bluecherry /etc/apache2/sites-available/bluecherry rm: cannot remove '/etc/apache2/sites-enabled/bluecherry': No such file or directory rm: cannot remove '/etc/apache2/sites-available/bluecherry': No such file or directory ++ true ++ a2ensite bluecherry.conf Enabling site bluecherry. To activate the new configuration, you need to run: systemctl reload apache2 ++ [[ -n 1 ]] ++ rm /etc/php5/conf.d/bluecherry.ini rm: cannot remove '/etc/php5/conf.d/bluecherry.ini': No such file or directory ++ true +++ which service ++ '[' '!' -z /usr/sbin/service ']' ++ service rsyslog restart ++ stop_apache ++ [[ -n 1 ]] +++ which service ++ '[' '!' -z /usr/sbin/service ']' ++ service apache2 stop ++ '[' '!' -e /var/lib/.bcins ']' ++ '[' -x /sbin/apparmor_parser ']' ++ : ++ [[ -s /etc/bluecherry.conf ]] ++ [[ -n 1 ]] ++ db_fset bluecherry/mysql_admin_login seen false ++ _db_cmd 'FSET bluecherry/mysql_admin_login' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/mysql_admin_login seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_fset bluecherry/mysql_admin_password seen false ++ _db_cmd 'FSET bluecherry/mysql_admin_password' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/mysql_admin_password seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_fset bluecherry/db_name seen false ++ _db_cmd 'FSET bluecherry/db_name' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/db_name seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_fset bluecherry/db_user seen false ++ _db_cmd 'FSET bluecherry/db_user' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/db_user seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_fset bluecherry/db_password seen false ++ _db_cmd 'FSET bluecherry/db_password' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/db_password seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_fset bluecherry/db_host seen false ++ _db_cmd 'FSET bluecherry/db_host' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/db_host seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_fset bluecherry/db_userhost seen false ++ _db_cmd 'FSET bluecherry/db_userhost' seen false ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'FSET bluecherry/db_userhost seen false' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=false ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_input high bluecherry/mysql_admin_login ++ _db_cmd 'INPUT high' bluecherry/mysql_admin_login ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'INPUT high bluecherry/mysql_admin_login' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET='question will be asked' Package configuration ┌───────────────────────────┤ Configuring bluecherry ├───────────────────────────┐ │ This is needed for assistance in creation of database for Bluecherry service. │ │ │ │ Please enter MySQL administrative user's password. │ │ │ │ ______________________________________________________________________________ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────────────┘ ++ IFS=' ' ++ RET=ok ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_get bluecherry/mysql_admin_login ++ _db_cmd 'GET bluecherry/mysql_admin_login' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/mysql_admin_login' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=root ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export MYSQL_ADMIN_LOGIN=root ++ MYSQL_ADMIN_LOGIN=root ++ db_get bluecherry/mysql_admin_password ++ _db_cmd 'GET bluecherry/mysql_admin_password' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/mysql_admin_password' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=**PASSWORD** ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export MYSQL_ADMIN_PASSWORD=**PASSWORD** ++ MYSQL_ADMIN_PASSWORD=**PASSWORD** ++ db_input high bluecherry/db_host ++ _db_cmd 'INPUT high' bluecherry/db_host ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'INPUT high bluecherry/db_host' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET='question will be asked' Package configuration ┌────────────────────────┤ Configuring bluecherry ├────────────────────────┐ │ │ │ │ │ Please enter the name for newly created database for Bluecherry service │ │ │ │ bluecherryhome__________________________________________________________ │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────┘ ++ IFS=' ' ++ RET=ok ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_get bluecherry/db_host ++ _db_cmd 'GET bluecherry/db_host' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/db_host' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=localhost ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export host=localhost ++ host=localhost ++ db_get bluecherry/db_name ++ _db_cmd 'GET bluecherry/db_name' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/db_name' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=bluecherryhome ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export dbname=bluecherryhome ++ dbname=bluecherryhome ++ db_input high bluecherry/db_user ++ _db_cmd 'INPUT high' bluecherry/db_user ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'INPUT high bluecherry/db_user' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET='question will be asked' ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_input high bluecherry/db_password ++ _db_cmd 'INPUT high' bluecherry/db_password ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'INPUT high bluecherry/db_password' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET='question will be asked' Package configuration ┌───────────────────────────────────────────────────────────────────┤ Configuring bluecherry ├───────────────────────────────────────────────────────────────────┐ │ │ │ │ │ Used for remote mysql server, network mask to allow login from bluecherry user. Example '%' allows from any machine; '192.168.0.%' allows local network only. │ │ │ │ 192.168.101.%_________________________________________________________________________________________________________________________________________________ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ++ IFS=' ' ++ RET=ok ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ db_get bluecherry/db_user ++ _db_cmd 'GET bluecherry/db_user' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/db_user' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=bluecherryhome ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export user=bluecherryhome ++ user=bluecherryhome ++ db_get bluecherry/db_password ++ _db_cmd 'GET bluecherry/db_password' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/db_password' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=**PASSWORD** ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export password=**PASSWORD** ++ password=**PASSWORD** ++ db_get bluecherry/db_userhost ++ _db_cmd 'GET bluecherry/db_userhost' ++ _db_internal_IFS=' ' ++ IFS=' ' ++ printf '%s\n' 'GET bluecherry/db_userhost' ++ IFS=' ' ++ read -r _db_internal_line ++ IFS=' ' ++ RET=192.168.101.% ++ case ${_db_internal_line%%[ ]*} in ++ return 0 ++ export userhost=192.168.101.% ++ userhost=192.168.101.% ++ /usr/share/bluecherry/bc_db_tool.sh new_db root **PASSWORD** bluecherryhome bluecherryhome **PASSWORD** localhost 192.168.101.% ++ cat /etc/os-release ++ grep '^ID=' ++ grep centos + [[ -n '' ]] + IN_DEB=1 + MODE=new_db + case "$MODE" in + [[ 8 -lt 6 ]] + new_db root **PASSWORD** bluecherryhome bluecherryhome **PASSWORD** localhost 192.168.101.% + echo new_db root **PASSWORD** bluecherryhome bluecherryhome **PASSWORD** localhost 192.168.101.% new_db root **PASSWORD** bluecherryhome bluecherryhome **PASSWORD** localhost 192.168.101.% + MYSQL_ADMIN_LOGIN=root + MYSQL_ADMIN_PASSWORD=**PASSWORD** + dbname=bluecherryhome + user=bluecherryhome + password=**PASSWORD** + host=localhost + userhost=192.168.101.% + check_mysql_admin root **PASSWORD** + MYSQL_ADMIN_LOGIN=root + MYSQL_ADMIN_PASSWORD=**PASSWORD** + echo 'Testing MySQL admin credentials correctness...' Testing MySQL admin credentials correctness... + echo 'show databases' + mysql_wrapper -hlocalhost -uroot + check_db_exists root **PASSWORD** localhost bluecherryhome + MYSQL_ADMIN_LOGIN=root + MYSQL_ADMIN_PASSWORD=**PASSWORD** + dbhost=localhost + dbname=bluecherryhome + echo 'Testing whether database already exists...' Testing whether database already exists... + echo 'show databases' + mysql_wrapper -hlocalhost -uroot -Dbluecherryhome + echo -e '\n\n\tDatabase '\''bluecherryhome'\'' already exists, but /etc/bluecherry.conf is not found.' Database 'bluecherryhome' already exists, but /etc/bluecherry.conf is not found. + echo -e '\tAborting installation. In order to proceed installation, please do one of following things:\n' '\t * Restore /etc/bluecherry.conf config file if it was removed, template is in /usr/share/bluecherry/bluecherry.conf.in;\n' Aborting installation. In order to proceed installation, please do one of following things: * Restore /etc/bluecherry.conf config file if it was removed, template is in /usr/share/bluecherry/bluecherry.conf.in; + [[ -n IN_DEB ]] + echo -e '\t * Accomplish removal of previous setup by '\''apt-get remove --purge bluecherry'\'';\n' * Accomplish removal of previous setup by 'apt-get remove --purge bluecherry'; + echo -e '\t * Remove the database '\''bluecherryhome'\'' manually.\n\n' * Remove the database 'bluecherryhome' manually. + exit 1 ++ exit 1 dpkg: error processing package bluecherry (--configure): installed bluecherry package post-installation script subprocess returned error exit status 1 Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ... Processing triggers for systemd (245.4-4ubuntu3.6) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Errors were encountered while processing: bluecherry E: Sub-process /usr/bin/dpkg returned an error code (1) chris@bluecherry:~$