(solved!) Problem mit nginx.service nach dist-upgrade

Begonnen von graviton, 2020/05/09, 18:26:19

Vorheriges Thema - Nächstes Thema

graviton

Ich hoffe, mir kann jemand helfen: ich habe nach einem dist-upgrade ein Problem mit "nginx.service". Der Fehler führt auch dazu, dass ich keine Software mit apt installieren bzw. deinstallieren kann. Hat jemand eine Idee wie ich das Problem lösen kann? Dazu hier meine Ausgabe:

Paketlisten werden gelesen...Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
Paketaktualisierung (Upgrade) wird berechnet...
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
2 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] nginx-full (1.16.1-3) wird eingerichtet ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enab
led; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2020-05-09 18:04:48 CEST; 5ms ago
       Docs: man:nginx( 8)
    Process: 217545 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUC
CESS)
    Process: 217546 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAIL
URE)

Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mai 09 18:04:48 sidbox nginx[217546]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mai 09 18:04:48 sidbox nginx[217546]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mai 09 18:04:48 sidbox nginx[217546]: nginx: [emerg] still could not bind()
Mai 09 18:04:48 sidbox systemd[1]: nginx.service: Control process exited, code=exited, sta
tus=1/FAILURE
Mai 09 18:04:48 sidbox systemd[1]: nginx.service: Failed with result 'exit-cod
e'.
Mai 09 18:04:48 sidbox systemd[1]: Failed to start A high performance web server and a rev
erse proxy server.
dpkg: Fehler beim Bearbeiten des Paketes nginx-full (--configure):
»installiertes nginx-full-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von nginx:
nginx hängt ab von nginx-full (<< 1.16.1-3.1~) | nginx-light (<< 1.16.1-3.1~) | nginx-extras (<< 1.16.1-3.1~); ab
er:
  Paket nginx-full ist noch nicht konfiguriert.
  Paket nginx-light ist nicht installiert.
  Paket nginx-extras ist nicht installiert.
nginx hängt ab von nginx-full (>= 1.16.1-3) | nginx-light (>= 1.16.1-3) | nginx-extras (>= 1.16.1-3); aber:
  Paket nginx-full ist noch nicht konfiguriert.
  Paket nginx-light ist nicht installiert.
  Paket nginx-extras ist nicht installiert.

dpkg: Fehler beim Bearbeiten des Paketes nginx (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
nginx-full
nginx

Servus graviton

eriefisher

apt -f installmight get the dependencies it requires. Says your missing a couple.
I AM CANADIAN!

graviton

apt -f install

hatte ich schon probiert, aber funktioniert nicht, da die Probleme bei der Installation direkt auftreten.
graviton

eriefisher

Do you have the nginx-light and nginx-extras installed or can you install them?
I AM CANADIAN!

graviton

No, I had already tried, could not be installed because of the same error

eriefisher

#5
ZitatSee "systemctl status nginx.service" and "journalctl -xe" for details.
Maybe some hints
Zitat
Process: 217545 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUC
CESS)
    Process: 217546 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAIL
URE)
Started and succeded then started again with -g(again) and failed.
Zitat
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mai 09 18:04:47 sidbox nginx[217546]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Mai 09 18:04:48 sidbox nginx[217546]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Mai 09 18:04:48 sidbox nginx[217546]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Already in use?? Is it running?Sorry I'm not a server guy, just pointing out some messages that might be helpful. Things get missed in the frustration.
I AM CANADIAN!

piper

Do you have apache2 installed also, (killall apache2) if so change the port (usually 80/443) and try again
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

graviton


graviton

@ eriefisher:
ZitatSee "systemctl status nginx.service" and "journalctl -xe" for details.
ZitatMaybe some hints
both leads to the mentioned error message

piper

It seem maybe that another process has already binded port 80

What's the output of

netstat -ntpl|grep :80
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

graviton

Zitatnetstat -ntpl|grep :80

tcp6       0      0 :::80                   :::*                    LISTEN      1/init

The Problem is solved!

The reason was an application jitsi-meet that did not uninstall properly. After "install" and "remove --purge" of  jitsi-meet, is the problem of ngnix solved

Thanks a lot, piper and eriefisher!

piper

I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

eriefisher

I have not used any of these video meeting applications, jitsi, zoom etc. Is it normal for them to use port 80?
I AM CANADIAN!

piper

I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

eriefisher

I have seen several reports about zoom and it's security issues. How is it that these products become so popular yet be so poorly written or managed. Along with all the reports about zoom you keep hearing more and more people using it.
Thankfully I have no use for these products in general.
I AM CANADIAN!