Nextcloud Update & my current Webserver (Lighttpd)

Having issues with your DietPi installation or found a bug? Post it here.
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Hi,
currently I am running a Pi 3 with Lighttpd as a Webserver. The most important Software on this System is Nextcloud. Some time agon I tried zu Update Nextcloud to a newer Version (NC 21 or 22) than 20.13, which is the highest Version as of 20.xx.

Generally the Update worked, but I got some Errors in the Security Tab, but I was not able to solve the Problems.
I did some Research and it seems, that the Webserver could be the Cause. So my Question is, is it possible to switch over to another Webserver, just by unticking LLSP/LLMP to LASP/LAMP without any harm?
Attachments
2021-11-02_17-33.png
2021-11-02_17-33.png (26.52 KiB) Viewed 149 times
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

what are the Errors in the Security Tab you have? Maybe we could try fixing it. I don't think there is a need to switch web server stack.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Hi & thank you for your Answer.

I will quote, what I see in the Security Tab.

Code: Select all

"Sicherheits- & Einrichtungswarnungen

Für die Sicherheit und Performance Deiner Instanz ist es wichtig, dass alles richtig konfiguriert ist. Um Dir dabei zu helfen, führen wir einige automatische Prüfungen durch. Weitere Informationen kannst Du der verlinkten Dokumentation entnehmen.
Es gibt einige Warnungen bei Deiner Systemkonfiguration.

Eine Hintergrundaufgabe, die nach vom Benutzer importierten SSL-Zertifikaten sucht, läuft noch. Bitte später erneut versuchen.

Dein Webserver ist nicht richtig konfiguriert, um "/.well-known/webfinger" aufzulösen. Weitere Informationen hierzu findest Du in unserer Dokumentation ↗.
    Dein Webserver ist nicht richtig konfiguriert, um "/.well-known/nodeinfo" aufzulösen. Weitere Informationen hierzu findest Du in unserer Dokumentation ↗.
    Für Deine Installation ist keine Standard-Telefonregion festgelegt. Dies ist erforderlich, um Telefonnummern in den Profileinstellungen ohne Ländercode überprüfen zu können. Um Nummern ohne Ländercode zuzulassen, füge bitte "default_phone_region" mit dem entsprechenden ISO 3166-1-Code ↗ der gewünschten Region hinzu.

In der Datenbank fehlen einige Indizes. Auf Grund der Tatsache, dass das Hinzufügen von Indizes in großen Tabellen einige Zeit in Anspruch nehmen kann, wurden diese nicht automatisch erzeugt. Durch das Ausführen von "occ db:add-missing-indices" können die fehlenden Indizes manuell hinzugefügt werden, während die Instanz weiter läuft. Nachdem die Indizes hinzugefügt wurden, sind Anfragen auf die Tabellen normalerweise schneller.
        Fehlender Index "fs_size" in der Tabelle "oc_filecache".
    Dem Modul php-imagick fehlt die SVG-Unterstützung. Für eine bessere Kompatibilität wird empfohlen, es zu installieren."
If you do not speak German I can translate those Passages, that you need to be translated.
So in short you can see these "webfinger" and "nodeinfo" Messages, as well as the missing phone Number?
Also it is said that an Index "fs_size" is missing in the "oc_filechache".
What has to be done here?
At the end they claim a missing module called "php-imagick.

It would be great, if you can help me solving those things above. Thanks in Advance.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

Don't worry, I speak German very well ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Das ist ja großartig .. :)
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

But I will stick to English language as this is an international board 8)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by MichaIng »

To mute the well-known warnings, vergleich mal deine /etc/lighttpd/conf-available/99-dietpi-nextcloud.conf mit dieser: https://raw.githubusercontent.com/Micha ... cloud.conf

EDIT: Whoops, mitten im Satz auf Deutsch gewechselt :lol:.

Der url.redirect Block fehlt bei dir vermutlich. Die Warnungen sind bei einer neueren Nextcloud version dazu gekommen und sind somit bei älteren Systemen/Installationen noch nicht vorhanden.

Um die Indizes zu erstellen:

Code: Select all

ncc db:add-missing-indices
php-imagick würde ich ignorieren, da wird nach wie vor drüber diskutiert ob es aus Sicherheitsgründen überhaupt benutzt werden sollte.
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Inserting those Redirect-Rules unfortunately results in a non-reachable Webinterface. Also the Clients are not syncing then.
I commented it then temporarily, as you can see in the Screenshot.

ncc db:add-missing-indices worked perfectly. Thanks for this.
Attachments
2021-11-04_20-58.png
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by Joulinar »

did you restart the web server after changing the config file? was that working?

Code: Select all

systemctl restart lighttpd.service
systemctl status lighttpd.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
rubinski
Posts: 24
Joined: Fri Jul 30, 2021 10:15 am

Re: Nextcloud Update & my current Webserver (Lighttpd)

Post by rubinski »

Code: Select all

dietpi@DietPi:~$ sudo systemctl restart lighttpd.service
Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.
dietpi@DietPi:~$ sudo systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2021-11-04 22:36:37 CET; 32s ago
  Process: 9788 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)

Nov 04 22:36:37 DietPi systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 04 22:36:37 DietPi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Nov 04 22:36:37 DietPi systemd[1]: Stopped Lighttpd Daemon.
Nov 04 22:36:37 DietPi systemd[1]: lighttpd.service: Start request repeated too quickly.
Nov 04 22:36:37 DietPi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Nov 04 22:36:37 DietPi systemd[1]: Failed to start Lighttpd Daemon.
dietpi@DietPi:~$ sudo nano /etc/lighttpd/conf-available/99-dietpi-nextcloud.conf
dietpi@DietPi:~$ sudo systemctl restart lighttpd.service
dietpi@DietPi:~$ sudo systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-11-04 22:37:46 CET; 3s ago
  Process: 9808 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 9813 (lighttpd)
    Tasks: 1 (limit: 2088)
   CGroup: /system.slice/lighttpd.service
           └─9813 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Nov 04 22:37:45 DietPi systemd[1]: Starting Lighttpd Daemon...
Nov 04 22:37:46 DietPi systemd[1]: Started Lighttpd Daemon.
dietpi@DietPi:~$ 
The Errors above happen, when I uncomment those two Redirect Lines.
Post Reply