question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nginx broken after fresh installation (existing services present)

See original GitHub issue

Description

Having an existing Ubuntu 18.04 server install with some other services (Nextcloud, Matrix, Hauk) serving and working fine, after installing Jitsi i’m not able to restart nginx anymore and all my other services are unreachable with errors. Even after deleting the files from /etc/nginx/sites-available/ and /etc/nginx/sites-enabled/ nginx won’t restart anymore. So it seems like the installation is completely messing with my existing nginx config.

I found this https://github.com/jitsi/jitsi-meet/issues/5487 issue and it seems related, if not the same. I’m not quite willing to replicate again because that would mean to make my services again unaccessible. What i can retrieve from my previous searches, this error was present nginx[7683]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)

I tried various installation-tutorials, some suggesting installing openjdk-8-jre-headless for example: https://community.jitsi.org/t/installation-on-ubuntu-18-04-4-not-working/22773/3 The first one was https://github.com/jitsi/jitsi-meet/blob/master/doc/quick-install.md but there was the same problem present. Tried some other tutorials as well.

I tried to just use sudo letsencrypt --nginx as well so it creates a letsencrypt-cert for me without changing anything else, but thats not working as well because of the nginx error.

Current behavior

nginx cannot be restartet, errors, other services unreachable, even after deleting sites-available and sites-enabled

Expected Behavior

working nginx. Just jitsi not working if there is a problem.

Steps to reproduce

Have services present, install Jitsi.

Environment details

Ubuntu Server 18.04 Nextcloud Collabora Matrix - Synapse Hauk

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
damenchocommented, Apr 7, 2020

Yes, it is using the primary domain. But in the latest packages turn is not configured when 443 listening site is available to stop breaking people deployments. This will work for people that want to do a manual install and not break rest of the website. Maybe this just needs to be documented.

1reaction
sellthcommented, Apr 7, 2020

Actually it’s not that simple. The NGINX module installed by the jitsi-turnserver package listens for ALPN protocols declared by the accessing party, then directs HTTP traffic to port 4444 and all other traffic to port 4445. This means that clients which don’t support ALPN or don’t use it are always directed to port 4445 i. e. the turn server.

I found this a problem with the Nextcloud Desktop client and the SSL Labs ssltest website. I’m not an expert here, but can we not specifically listen for TURN traffic and default all other traffic towards 4444?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avoiding the Top 10 NGINX Configuration Mistakes
We help you avoid the 10 most common NGINX configuration errors, explaining the problems caused by each and how to fix them.
Read more >
how to install nginx after removed it manually - Ask Ubuntu
Follow these steps to remove it completely and install it again. Open terminal and execute these commands: sudo apt-get autoremove nginx sudo ...
Read more >
How to Fix Common Nginx Web Server Errors - RoseHosting
This issue is occurring after a fresh installation of Nginx, after starting the nginx.service. The full error is given below:
Read more >
nginx.service failed because the control process exited
If that worked, your hosting provider might be installing Apache on your server by default during a fresh install, so keep reading for...
Read more >
Existing Nginx post gitlab installation failing with bind issue.
Hi Team, Have a nuc with ubuntu 22.0 Version and have installed Nginx and Docker. I installed gitlab server following the instruction and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found