New install HTTP ERROR 500

Hi,

I have a Ubuntu 22.04 server. Installed LAMP and Bluecherry. No issues during install, but cannot access the Bluecherry config site (https.//:7001), i get only HTTP ERROR 500.

I have this in my error log:
Jul 24 08:23:28 beckagab bc-server[21455]: E(): Could not open database after 30 tries, aborting
Jul 24 08:23:28 beckagab bc-server[21521]: I(): Status reports are served at /tmp/bluecherry_status
Jul 24 08:23:28 beckagab bc-server[21521]: I(): Status reports are served at /tmp/bluecherry_trigger
Jul 24 08:23:28 beckagab bc-server[21521]: I(): Started bc-server 3.1.0 (toolchain 11.3.0) v2.7.6-733-g6e6e1d92 heads/master
Jul 24 08:23:28 beckagab bc-server[21521]: I(): API server started listen to port: 7005
Jul 24 08:23:28 beckagab bc-server[21521]: I(): HLS server started listen to port: 7003 (SSL=0)
Jul 24 08:23:28 beckagab bc-server[21521]: F(): Configuration Error: file I/O error at line 0
Jul 24 08:23:57 beckagab bc-server[21521]: E(): Last message repeated 29 times!
Jul 24 08:23:57 beckagab bc-server[21521]: E(): Could not open database after 30 tries, aborting
Jul 24 08:23:58 beckagab bc-server[21586]: I(): Status reports are served at /tmp/bluecherry_status

Can someone help me to solve this problem?
Thanks

Here is the problem:

Jul 24 08:23:28 beckagab bc-server[21455]: E(): Could not open database after 30 tries, aborting

Either /etc/bluecherry.conf is missing or the database connection details are incorrect.

At this point since this is a new install you could uninstall bluecherry and mysql-server and install using docker…this setup should be easier.

  sudo bash -c "$(curl -s https://raw.githubusercontent.com/bluecherrydvr/bluecherry-docker/master/scripts/install.sh)"

Thanks. I removed previous Bluecherry install completely and started this docker version you mentioned, but it also failed.

Here the complete output:
bc-install-docker-log.txt (11.3 KB)

Then i removed it again, the docker, and also mariadb mysql, but its worser. see the log:
bc-install-docker-log2.txt (5.3 KB)

So i dont know what the problem is. :frowning:

The docker failed because Bluecherry was already running. Remove bluecherry and restart the server.

Then:

cd bluecherry-docker && docker compose up

Ok, i don’t know how or why, but now the bluecherry server is working fine. I removed again and again the previous settings, and voilá, at the nth attempt its online. :slight_smile:

well…good to hear it is working. Are you still using the docker version?

Yes its the docker version.