Hello Curtis
I did an upgrade to my Ubuntu release and also ran the v3 script. Now after it completes and I reboot I cannot get to UI from any browser. Also it never asked me for Mysql setup, only to backup v2 database which I answer Y and ok.
Can you assist me on this please? I already purchased the upgrade license.
thanks
David
after purging the system I re-ran the v3 install script. Now something broken.
root@bluecherrydvr:~# sudo bash -c “$(curl -s https://dl.bluecherrydvr.com/scripts/install-unstable)”
Reading package lists… Done
Building dependency tree
Reading state information… Done
gpg is already the newest version (2.2.4-1ubuntu1.4).
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 libaec0 libaio1 libapache2-mod-php libapache2-mod-php7.2 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libarmadillo8 libarpack2 libblas3 libboost-filesystem1.65.1 libboost-regex1.65.1 libboost-system1.65.1 libcgi-fast-perl libcgi-pm-perl libcharls1
libcurses-perl libcurses-ui-perl libdap25 libdapclient6v5 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libebml4v5 libencode-locale-perl libepsilon1 libevent-core-2.1-6 libexpat1-dev
libfcgi-perl libflac8 libfontconfig1 libfreexl1 libfyba0 libgd3 libgdal20 libgdcm2.8 libgeos-3.6.2 libgeos-c1v5 libgeotiff2 libgfortran4 libgif7 libgl1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
libglvnd0 libglx-mesa0 libglx0 libhdf4-0-alt libhdf5-100 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libilmbase12 libio-html-perl libjbig0
libjpeg-turbo8 libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 liblinear3 libllvm10 libltdl7 liblua5.2-0 liblua5.3-0 liblwp-mediatypes-perl libmatroska6v5 libminizip1
libmysqlclient20 libnetcdf13 libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnspr4 libnss3 libodbc1 libogdi3.2 libogg0
libopencv-core2.4v5 libopencv-core3.2 libopencv-imgcodecs3.2 libopencv-imgproc2.4v5 libopencv-imgproc3.2 libopenexr22 libopenjp2-7 libpciaccess0 libpoppler73 libpq5 libproj12 libpugixml1v5
libpython3-dev libpython3.6-dev libqhull7 libsensors4 libsocket++1 libsodium23 libspatialite7 libsuperlu5 libsz2 libtbb2 libterm-readkey-perl libtiff5 libtimedate-perl liburi-perl liburiparser1
libv4l-0 libv4l2rds0 libv4lconvert0 libva-drm2 libva-wayland2 libva-x11-2 libva1 libva2 libvorbis0a libwayland-client0 libwebp6 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
libxcb-sync1 libxcb-xfixes0 libxdamage1 libxerces-c3.2 libxfixes3 libxpm4 libxshmfence1 libxxf86vm1 mesa-va-drivers mkvtoolnix mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7 nginx nginx-common nginx-core nmap odbcinst odbcinst1debian2 php-auth-sasl php-cli php-common php-curl php-fpm php-gd php-mail php-mail-mime php-mbstring
php-mysql php-net-smtp php-net-socket php-pear php-sqlite3 php-xml php7.2-cli php7.2-common php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline
php7.2-sqlite3 php7.2-xml poppler-data proj-bin proj-data python-pip-whl python3-crypto python3-dev python3-keyring python3-keyrings.alt python3-pip python3-secretstorage python3-wheel python3-xdg
python3.6-dev 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-10-16 18:39:19-- https://dl.bluecherrydvr.com/sources.list.d/bluecherry-bionic-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: 181 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/bluecherry-bionic.list’
/etc/apt/sources.list.d/bluecherry-bionic.list 100%[=============================================================================================================>] 181 --.-KB/s in 0s
2021-10-16 18:39:19 (11.2 MB/s) - ‘/etc/apt/sources.list.d/bluecherry-bionic.list’ saved [181/181]
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security InRelease [7,458 B]
Get:7 https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates InRelease [7,457 B]
Hit:8 http://download.webmin.com/download/repository sarge Release
Hit:9 http://unstable.bluecherrydvr.com bionic InRelease
Fetched 267 kB in 1s (357 kB/s)
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:
apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php libapache2-mod-php7.2 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libcurses-perl libcurses-ui-perl libgl1
libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglvnd0 libglx-mesa0 libglx0 liblua5.2-0 libopencv-core2.4v5 libopencv-imgproc2.4v5 libterm-readkey-perl libva1 libxcb-glx0 libxdamage1 libxxf86vm1
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 6,503 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
Get:1 http://unstable.bluecherrydvr.com bionic/main amd64 bluecherry amd64 3:3.1.0-rc4 [6,503 kB]
Fetched 6,503 kB in 0s (13.7 MB/s)
Preconfiguring packages …
(Reading database … 143810 files and directories currently installed.)
Preparing to unpack …/bluecherry_3%3a3.1.0-rc4_amd64.deb …
groupadd: group ‘bluecherry’ already exists
Unpacking bluecherry (3:3.1.0-rc4) …
Setting up bluecherry (3:3.1.0-rc4) …
++ for x in /etc/-release
++ [[ ! -d /etc/lsb-release ]]
++ source /etc/lsb-release
+++ DISTRIB_ID=Ubuntu
+++ DISTRIB_RELEASE=18.04
+++ DISTRIB_CODENAME=bionic
+++ DISTRIB_DESCRIPTION=‘Ubuntu 18.04.6 LTS’
++ for x in /etc/-release
++ [[ ! -d /etc/os-release ]]
++ source /etc/os-release
+++ NAME=Ubuntu
+++ VERSION=‘18.04.6 LTS (Bionic Beaver)’
+++ ID=ubuntu
+++ ID_LIKE=debian
+++ PRETTY_NAME=‘Ubuntu 18.04.6 LTS’
+++ VERSION_ID=18.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=bionic
+++ UBUNTU_CODENAME=bionic
+++ 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=18.04
+++ DISTRIB_CODENAME=bionic
+++ DISTRIB_DESCRIPTION=‘Ubuntu 18.04.6 LTS’
++ for x in /etc/-release
++ [[ ! -d /etc/os-release ]]
++ source /etc/os-release
+++ NAME=Ubuntu
+++ VERSION=‘18.04.6 LTS (Bionic Beaver)’
+++ ID=ubuntu
+++ ID_LIKE=debian
+++ PRETTY_NAME=‘Ubuntu 18.04.6 LTS’
+++ VERSION_ID=18.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=bionic
+++ UBUNTU_CODENAME=bionic
+++ 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
++ su bluecherry -c ‘chmod -R 770 /var/lib/bluecherry’
++ [[ -n 1 ]]
++ chown -R bluecherry:bluecherry /var/run/bluecherry
++ su bluecherry -c ‘chmod -R 750 /var/run/bluecherry’
++ chown root:www-data /usr/share/bluecherry/scripts/update_subdomain_certs.sh
++ chmod 550 /usr/share/bluecherry/scripts/update_subdomain_certs.sh
++ echo ‘www-data ALL=(ALL) NOPASSWD: /usr/share/bluecherry/scripts/update_subdomain_certs.sh’
++ chmod 0440 /etc/sudoers.d/www-data
++ mkdir -p /usr/share/bluecherry/ssl
++ cp /etc/ssl/certs/ssl-cert-snakeoil.pem /usr/share/bluecherry/ssl/bluecherry-snakeoil.pem
++ cp /etc/ssl/private/ssl-cert-snakeoil.key /usr/share/bluecherry/ssl/bluecherry-snakeoil.key
++ chown bluecherry:bluecherry /usr/share/bluecherry/ssl/bluecherry-snakeoil.pem
++ chown bluecherry:bluecherry /usr/share/bluecherry/ssl/bluecherry-snakeoil.key
++ 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 ]]
++ test -f /etc/apache2/sites-enabled/bluecherry.conf
++ mkdir -p /usr/share/bluecherry/backups/nginx/
+++ date +%F_%H-%M-%S
++ tar -czvf /usr/share/bluecherry/backups/nginx/nginx_2021-10-16_18-39-31.tar.gz /etc/nginx/
tar: Removing leading `/’ from member names
/etc/nginx/
/etc/nginx/sites-available/
/etc/nginx/sites-available/default
/etc/nginx/fastcgi.conf
/etc/nginx/conf.d/
/etc/nginx/nginx.conf
/etc/nginx/win-utf
/etc/nginx/fastcgi_params
/etc/nginx/snippets/
/etc/nginx/snippets/fastcgi-php.conf
/etc/nginx/snippets/snakeoil.conf
/etc/nginx/koi-win
/etc/nginx/uwsgi_params
/etc/nginx/scgi_params
/etc/nginx/sites-enabled/
/etc/nginx/sites-enabled/bluecherry.conf
/etc/nginx/sites-enabled/default
/etc/nginx/proxy_params
/etc/nginx/modules-enabled/
/etc/nginx/modules-enabled/50-mod-stream.conf
/etc/nginx/modules-enabled/50-mod-mail.conf
/etc/nginx/modules-enabled/50-mod-http-image-filter.conf
/etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf
/etc/nginx/modules-enabled/50-mod-http-geoip.conf
/etc/nginx/koi-utf
/etc/nginx/mime.types
/etc/nginx/modules-available/
++ [[ -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
++ stop_nginx
++ [[ -n 1 ]]
+++ which service
++ ‘[’ ‘!’ -z /usr/sbin/service ‘]’
++ service nginx stop
++ ‘[’ -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=’’‘bluecherry’’’;’ ‘user=’’‘bluecherry’’’;’ ‘password=’’‘bluecherry’’’;’ ‘host=’’‘localhost’’’;’
++++ dbname=bluecherry
++++ user=bluecherry
++++ password=bluecherry
++++ host=localhost
+++ host=localhost
++ echo exit
++ mysql -h localhost -Dbluecherry -ubluecherry -pbluecherry
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1049 (42000): Unknown database ‘bluecherry’
++ 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 libc-bin (2.27-3ubuntu1.4) …
Processing triggers for systemd (237-3ubuntu10.52) …
Processing triggers for rsyslog (8.32.0-1ubuntu4) …
Processing triggers for ureadahead (0.100.0-21) …
Errors were encountered while processing:
bluecherry
E: Sub-process /usr/bin/dpkg returned an error code (1)
Not sure where to go from here but will keep poking around until I can get some assistant in a reply.
thanks
I think we have conflict with v2 database. I will try to delete this database and re-install again.
Do we have any command line notes on how to configure all cameras without using the web browser? Please send to me.
thanks
David
@dramdayal and I resolved this on chat. It was a failed upgrade from 18.04 → 20.04 involving udev and grub. @dramdayal ended up installing 20.04 from scratch.