Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker install using install script won't start the bc-server container #29

Open
brooks-bridges opened this issue Nov 2, 2023 · 12 comments

Comments

@brooks-bridges
Copy link

Logs are attached. It appears that there's an issue with rsyslog for some reason.
bc-server_logs.txt

@curtishall
Copy link
Member

curtishall commented Nov 2, 2023

Can you run this inside the bluecherry-docker directory:

sed -i 's/bluecherry:latest/bluecherry:unstable/g' docker-compose.yml 
docker compose pull
docker compose down
docker compose up -d

@curtishall
Copy link
Member

(If you have a license key already installed please deactivate it first)

@brooks-bridges
Copy link
Author

Appears to be doing the same thing
bc-server_logs (1).txt

@curtishall
Copy link
Member

I see the problem, a new build should be pushed in the next few minutes. Try the above commands again shortly.

@brooks-bridges
Copy link
Author

well, the rsyslog error is gone, but now it appears to be stuck in a loop and stopping at this:

2023-11-04T01:09:23.064816497Z nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

Log is attached.
bc-server_logs (2).txt

@curtishall
Copy link
Member

curtishall commented Nov 4, 2023

Did you disable IPv6 on your host for some reason? Are you using Linux as the host?

https://forums.docker.com/t/ipv6-disabled-on-my-computer-but-docker-network-seems-looking-for-it/107299

@brooks-bridges
Copy link
Author

Yes, ubuntu 22, and it is disabled. Is there any way to change that with nginx? I really don't want ipv6 enabled on this system as it screws with my openvpn tunnels.

@curtishall
Copy link
Member

Okay. You can comment out the server line that has [::]... in /etc/nginx/sites-enabled/default

To get into the container run:

docker compose exec -it bc-server /bin/bash

nano should be installed so once you are in run:

nano /etc/nginx/sites-enabled/default

If that won't work because docker is respawning I'll come up with another solution when I'm back to a computer

@brooks-bridges
Copy link
Author

Yeah, I can't get into it because as soon as I try to spawn a shell it blows up and dies. I'm looking through the dockerfile to see if there's a way I can just remove that line from the default file, or just remove the default file entirely.

@curtishall
Copy link
Member

Can you try to pull the latest and see if that works?

@brooks-bridges
Copy link
Author

brooks-bridges commented Nov 5, 2023

well, after some git repo tomfoolery, I finally got the modified docker-compose.yml and the right build-source repo on my local system, however now it's blowing up with another error and restarting continuously:

Update MySQL's my.cnf from environment variables passed in from docker
Writing /root/.my.cnf
Update bluecherry server's bluecherry.conf from environment variables passed in from docker
Writing /etc/bluecherry.conf
chown bluecherry:bluecherry /var/lib/bluecherry/recordings
chown: cannot access '/var/lib/bluecherry/.local/share/data/': No such file or directory

just FYI, after changing to the build-source branch in order to check out your changes, the docker-compose.yml in that branch uses the "citesting" docker image, so I changed that back to unstable.

@brooks-bridges
Copy link
Author

Ok, so clearing everything out and starting again, by resetting to the master branch and then making manual changes to docker-compose.xml and server/Dockerfile , it appears to be started and running. I will do some further testing to see what happens with it and ensure it stays running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants