Skip to content

Scalelite: Nginx - Connection refused #845

Closed
@Marco-Total

Description

@Marco-Total

Hello together,

we are facing the problem that since yesterday our scalelite server has stopped working.

We have not installed any updates. The Lets Encrypt certificate is still valid for one month.

When trying to call the API we get a Refused:

root@cmpvideolb:/etc/systemd/system# curl https://videolb.cmp.de/bigbluebutton/api
curl: (7) Failed to connect to videolb.cmp.de port 443: Connection refused

The three Docker containers (NGINX, API, POLLER) started fine:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f47bd4baad79 blindsidenetwks/scalelite:v1.3.5-nginx "/etc/nginx/start -g..." 30 minutes ago Up 30 minutes 111.11.111.111:80->80/tcp, 111.11.111.111:443->443/tcp scalelite- nginx
af8b627c4a80 blindsidenetwks/scalelite:v1.3.5-poller "bin/start-poller" 54 minutes ago Up 54 minutes scalelite-poller
d61577319eab blindsidenetwks/scalelite:v1.3.5-api "bin/start" 54 minutes ago Up 54 minutes 3000/tcp scalelite-api

In docker log I can see that a file "/etc/nginx/conf.d/scalelite.template" is missing:

root@cmpvideolb1:/etc/systemd/system# docker logs f47bd4baad79
Startup script was run as init, re-executing using tini.
Generating templated nginx configuration...
Using non-SSL configuration template.
**/etc/nginx/start: line 32: can't open /etc/nginx/conf.d/scalelite.template: no such file**
Starting nginx periodic reload process...
Starting nginx...
root@cmpvideolb1:/etc/systemd/system#

In the docker directoy i can't find a folder "conf.d"

root@cmpvideolb1:/etc/systemd/system# docker exec -it f47bd4baad79 ls /etc/nginx
dhparam.pem     http.d          nginx.conf      start
fastcgi.conf    mime.types      scgi_params     uwsgi_params
fastcgi_params  modules         ssl

The systemd on my server looks like this:

root@cmpvideolb1:/etc/systemd/system# cat /etc/systemd/system/scalelite-nginx.service
[Unit]
Description=Scalelite Nginx
After=network-online.target
Wants=network-online.target
Before=scalelite.target
PartOf=scalelite.target
After=scalelite-api.service
Requires=scalelite-api.service
After=remote-fs.target
[Service]
EnvironmentFile=/etc/default/scalelite
ExecStartPre=-/usr/bin/docker kill scalelite-nginx
ExecStartPre=-/usr/bin/docker rm scalelite-nginx
ExecStartPre=/usr/bin/docker pull blindsidenetwks/scalelite:${SCALELITE_TAG}-nginx
ExecStart=/usr/bin/docker run --log-opt max-size=10m --log-opt max-file=5 --name scalelite-nginx --env-file /etc/default/scalelite --network scalelite --publish 111.11.111.111:80:80 --publish 111.11.111.111:443:443 --mount type=bind,source=${SCALELITE_RECORDING_DIR}/published,target=/var/bigbluebutton/published,readonly $SCALELITE_NGINX_EXTRA_OPTS blindsidenetwks/scalelite:${SCALELITE_TAG}-nginx
ExecStartPost=/usr/bin/docker image prune -f
[Install]
WantedBy=scalelite.target
root@cmpvideolb1:/etc/systemd/system#

The configuration file for the Scalelite Docker looks like this:

root@cmpvideolb1:/etc/systemd/system# cat /etc/default/scalelite
URL_HOST=videolb.cmp.de
SECRET_KEY_BASE=xxx
LOADBALANCER_SECRET=xxx
DATABASE_URL=postgresql://scalelite:[email protected]/scalelite
REDIS_URL=redis://:[email protected]

SCALELITE_TAG=v1.3.5
SCALELITE_RECORDING_DIR=/var/local/bbb

NGINX_SSL=true
SCALELITE_NGINX_EXTRA_OPTS=--mount type=bind,source=/etc/letsencrypt,target=/etc/nginx/ssl,readonly

RECORDING_DISABLED=true
RECORDING_IMPORT_POLL=false
root@cmpvideolb1:/etc/systemd/system#

Can anyone help me, i have no idea, how i can solve the problem.

Thanks!
Marco

Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions