ERR_CONNECTION_REFUSED after updating to Turris OS version 3.3

I’m unable to access the router’s web admin portal after updating to version 3.3. It appears the router is refusing my remote connection attempts.

Me too. What is this.

It might be that the upgrade partially failed and HTTP server doesn’t work due this. If you have enabled SSH you can try that to fix the issue. Otherwise you could try a rollback to the latest snapshot to remove the update:

https://www.turris.cz/doc/en/howto/omnia_factory_reset

if you are re-flashing the image, medkit, seems to have some problems:

It seems I do have access via SSH. Can you share some exact steps I should take to fix the HTTP server issue?

I run updater.sh and fix the problem. But now I get in the Home Page

Updater failed:
unreachable: https://api.turris.cz/updater-defs/3.3/omnia/stable-new/base.lua: curl: (22) The requested URL returned error: 404 Not Found

This is going worse and worse every update.

You can fix that by editing /etc/opkg/distfeeds.com and removing the stable-new parts, so, that for example, you have lines like

src/gz omnia_base https://api.turris.cz/openwrt-repo/omnia/packages//base

instead of

src/gz omnia_base https://api.turris.cz/openwrt-repo/omnia/packages/stable-new/base

Do this for every line where stable-new appears.

After running updater.sh, I’m now able to access the web portal. Thank you.

I did see the following errors returned which I’m assuming can be ignored.

WARN:Couldn’t read the status file: [string “backend”]:1333: [string “backend”]:1324: Failed to lock the lock file //var/lock/opkg.lock: Resource temporarily unavailable
WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
WARN:Lock on //var/lock/opkg.lock released by garbage collector
uci: Entry not found
uci: Entry not found

@einar The funny part come when you don’t see stable-new there :slight_smile:

src/gz omnia_base https://api.turris.cz/openwrt-repo/omnia/packages//base
src/gz omnia_lucics https://api.turris.cz/openwrt-repo/omnia/packages//lucics
src/gz omnia_management https://api.turris.cz/openwrt-repo/omnia/packages//management
src/gz omnia_packages https://api.turris.cz/openwrt-repo/omnia/packages//packages
src/gz omnia_routing https://api.turris.cz/openwrt-repo/omnia/packages//routing
src/gz omnia_telephony https://api.turris.cz/openwrt-repo/omnia/packages//telephony
src/gz omnia_turrispackages https://api.turris.cz/openwrt-repo/omnia/packages//turrispackages

the issue is the updater.override.branch=‘stable-new’ in the uci show updater.

“src/gz omnia_base https://api.turris.cz/openwrt-repo/omnia/packages/base

two // are typo?

They’re unnecessary, indeed. But they’re harmless.

1 Like

Well, I replace the “stable-new” with “stable” in the override section and now, while my router is running, I can’t get in:

$ ssh root@192.168.4.1
root@192.168.4.1's password: 
X11 forwarding request failed on channel 0
/bin/ash: No such file or directory
Connection to 192.168.4.1 closed.

I did save off the all the failed update logs. I can post those somewhere. But how do I get my router back. Which reset option do I take?

Well, where did you read it? Try to go back to the last working snapshot: https://www.turris.cz/doc/en/howto/omnia_factory_reset

I copied it off the terminal. I ran update.sh. Was that a mistake?

Oh, and the instructions should specify which image to use when it comes to reflashing the emmc. The link goes to the right directory, but the file names are a little different.

James

It shall answer the moderator. I just thought that I don’t see “stable” anywhere here!
Also that I would come back to the last snapshot is just my opinion.

Ah, sorry, I was following a different thread because the updater was choking on the note about this that I found in /etc/config/updater:

in this post:

After I changed
option branch 'stable-new'
to
option branch 'stable'
and ran update.sh. I could no longer get into my router (as in the beginning of this thread).

If I have to reflash the router that would be disappointing, but I’ll try the rollback and see where that gets me.

Yes, that was exactly my fast paced puzzle answer.

I’m happy to say the rollback worked flawlessly.

I’m holding off on updates though until I can see they’re ready for prime time.

1 Like