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

Owncast gives "Bad Gateway" error #156

Open
barrythrew opened this issue Feb 26, 2024 · 7 comments
Open

Owncast gives "Bad Gateway" error #156

barrythrew opened this issue Feb 26, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@barrythrew
Copy link

After updating Owncast now give a bad gateway error.

@moan0s
Copy link
Member

moan0s commented Mar 4, 2024

Can you check systemctl status mash-owncast journalctl -fu mash-owncast if anything there indicates the problem?

@moan0s moan0s added the bug Something isn't working label Mar 4, 2024
@barrythrew
Copy link
Author

root@video:~# journalctl -fu mash-owncast
-- Journal begins at Tue 2024-03-05 01:29:39 PST. --
Mar 11 11:53:30 video systemd[1]: mash-owncast.service: Main process exited, code=exited, status=137/n/a
Mar 11 11:53:30 video systemd[1]: mash-owncast.service: Failed with result 'exit-code'.
Mar 11 11:53:30 video systemd[1]: Stopped Owncast Server (mash-owncast).
Mar 11 11:53:30 video systemd[1]: mash-owncast.service: Consumed 23.929s CPU time.
Mar 11 11:53:32 video systemd[1]: Starting Owncast Server (mash-owncast)...
Mar 11 11:53:32 video mash-owncast[3991279]: f8e2dba6c6f3bbdbc2e543445483a78f4f02e153008b2b99e55c673b350e64af
Mar 11 11:53:32 video systemd[1]: Started Owncast Server (mash-owncast).
Mar 11 11:53:35 video mash-owncast[3991292]: time="2024-03-11T18:53:35Z" level=info msg="Owncast v0.1.2-linux-64bit (b2c0ab46621ed7832b3cead594fb24cf21c395c5)"
Mar 11 11:53:35 video mash-owncast[3991292]: time="2024-03-11T18:53:35Z" level=info msg="Web server is listening on port 443."
Mar 11 11:53:35 video mash-owncast[3991292]: time="2024-03-11T18:53:35Z" level=info msg="Configure this server by visiting /admin."

@barrythrew
Copy link
Author

Any help?

@moan0s
Copy link
Member

moan0s commented Apr 17, 2024

Sorry, for the late reply. This generally looks good and as if everything should work. Have you tried visiting /admin?

@barrythrew
Copy link
Author

Same error on /admin

@moan0s
Copy link
Member

moan0s commented Apr 18, 2024

That is really strange as there should be at least something in the owncast logs. Can you share the relevant part of your vars.yml (feel free to censor sensitive information). This seems to be a configuration issue or a upstream bug as I just set up my own server again successfully via MASH.

@barrythrew
Copy link
Author

Also just to add, I run a Jitsi server on this instance and it works fine. The only gateway error is Owncast, and I haven't changed the configuration in the interim.

I'll try removing and reinstalling.

Nothing very weird about my configuration.

Below is an example which installs a few services on the host, in different configuration.

You should tweak this example as you see fit and enable the services that you need.

########################################################################

Playbook

########################################################################

Put a strong secret below, generated with pwgen -s 64 1 or in another way

Various other secrets will be derived from this secret automatically.

mash_playbook_generic_secret_key: '****'

########################################################################

/Playbook

########################################################################

########################################################################

Docker

########################################################################

To disable Docker installation (in case you'd be installing Docker in another way),

remove the line below.

mash_playbook_docker_installation_enabled: true

To disable Docker SDK for Python installation (in case you'd be installing the SDK in another way),

remove the line below.

devture_docker_sdk_for_python_installation_enabled: true

########################################################################

/Docker

########################################################################

########################################################################

com.devture.ansible.role.timesync

########################################################################

To ensure the server's clock is synchronized (using systemd-timesyncd/ntpd),

we enable the timesync service.

devture_timesync_installation_enabled: true

########################################################################

/com.devture.ansible.role.timesync

########################################################################

########################################################################

devture-traefik

########################################################################

Most services require a reverse-proxy, so we enable Traefik here.

Learn more about the Traefik service in docs/services/traefik.md

mash_playbook_reverse_proxy_type: playbook-managed-traefik

The email address that Traefik will pass to Let's Encrypt when obtaining SSL certificates

devture_traefik_config_certificatesResolvers_acme_email: ****

########################################################################

/devture-traefik

########################################################################

########################################################################

devture-postgres

########################################################################

Most services require a Postgres database, so we enable Postgres here.

Learn more about the Postgres service in docs/services/postgres.md

devture_postgres_enabled: true

Put a strong password below, generated with pwgen -s 64 1 or in another way

devture_postgres_connection_password: '****'

########################################################################

/devture-postgres

########################################################################

########################################################################

jitsi

########################################################################

jitsi_enabled: true

jitsi_hostname: ****
jitsi_path_prefix: /
jitsi_web_custom_config_extension: |
config.enableLayerSuspension = true;

config.disableAudioLevels = true;

########################################################################

/jitsi

########################################################################

########################################################################

owncast

########################################################################

owncast_enabled: true

owncast_hostname: ****

########################################################################

/owncast

########################################################################

You can add additional services here, as you see fit.

To discover new services and configuration, see docs/supported-services.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants