Not working lighttpd and updates

Hi everyone,

I want to ask you if someone of you is able to help. It seems that my Omnia is not updated for some time (at least two month already I guess). Traffic data are not sent back to CZ.NIC for two month and now I realized that the lighttpd is not up and cannot be started.

I have checked similar threads here in forum and tested all hints I was able to found but without progress.
I can access via SSH but web GUI is dead.
And updated is failing and also the recommended opkg update solution is not working because of certificates. See details bellow:

root@gw:~# cat /etc/turris-version
3.2.1

root@gw:~# ls /etc/lighttpd/modules.d/
10-redirect.load 30-alias.load 30-cgi.load 30-fastcgi.load 30-setenv.load

root@gw:~# /etc/init.d/lighttpd start
2017-03-13 14:03:30: (plugin.c.475) plugin-version doesn’t match lighttpd-version for redirect
2017-03-13 14:03:30: (server.c.943) Initialization of plugins failed. Going down.

root@gw:~# opkg update
Collected errors:

root@gw:~# updater.sh
INFO:End of subprogram output
DIE:
[string “transaction”]:311: [string “transaction”]:144: Collisions:
• /usr/bin/scp: openssh-client (new), dropbear (existing)
• /usr/bin/ssh: openssh-client (new), dropbear (existing)

This a CA trust error, most likely caused by the fact that the https cert has changed recently. I suspect it wasn’t expected that someone would go so long without an update.

As usual once you ask you will find the solution yourself :slight_smile:

So solution is to make updates work, as expected.

root@gw:~# opkg update
Collected errors:

This way you will disable server certificate check for curl. Once everything is fixed the file must be deleted as it is security issue:
root@gw:~# echo insecure >> ~/.curlrc

root@gw:~# updater.sh
• /usr/bin/scp: openssh-client (new), dropbear (existing)
• /usr/bin/ssh: openssh-client (new), dropbear (existing)

The conflict must be force solved. Both files are just symlinks to dropbear directory. So in case of force install just the links are replaced by new binaries. No dropbear files are deleted / modified.
root@gw:~# opkg install openssh-client --force-overwrite