Anki freezes on one computer, none of the others

I sync to the same account on three computers, an Android tablet, and an iPhone. All of them have worked fine until recently. My desktop computer - the one I use by far the most - started running slow and freezing - regardless of what I’m doing - and giving the error message at the end of this post.

So far I have tried reinstalling, deleting my default profile, upgrading to the latest version. No luck so far.

Most recently I uninstalled everything and then I searched c:\ for anything with “anki” in the name and deleted it. Now I see this when I select File > Switch Profile

Anki 2.1.43 (0fbae6bc) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Platform: Windows 10

Flags: frz=True ao=False sv=2

Add-ons, last update check: 2021-04-09 13:31:56

Exception while serving /_anki/css/webview.css

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception while serving /_anki/js/webview.js

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception when servicing <waitress.channel.HTTPChannel connected 127.0.0.1:49796 at 0x185998e4490>

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “waitress\task.py”, line 84, in handler_thread

File “waitress\channel.py”, line 424, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 358, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception while serving /_anki/js/vendor/jquery.min.js

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception when servicing <waitress.channel.HTTPChannel connected 127.0.0.1:49798 at 0x1859363d580>

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “waitress\task.py”, line 84, in handler_thread

File “waitress\channel.py”, line 424, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 358, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception when servicing <waitress.channel.HTTPChannel connected 127.0.0.1:49795 at 0x185998e4100>

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “waitress\task.py”, line 84, in handler_thread

File “waitress\channel.py”, line 424, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 358, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception while serving /_anki/css/editor.css

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Exception when servicing <waitress.channel.HTTPChannel connected 127.0.0.1:49799 at 0x185990c1e80>

Traceback (most recent call last):

File “waitress\channel.py”, line 397, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 446, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “waitress\task.py”, line 84, in handler_thread

File “waitress\channel.py”, line 424, in service

File “waitress\task.py”, line 168, in service

File “waitress\task.py”, line 358, in execute

File “waitress\task.py”, line 307, in write

File “waitress\channel.py”, line 366, in write_soon

File “waitress\server.py”, line 331, in pull_trigger

File “waitress\trigger.py”, line 96, in pull_trigger

File “waitress\trigger.py”, line 203, in _physical_pull

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Such error messages are frequently caused by antivirus/firewall/proxy/vpn software running on your machine.

Okay last night I spent an hour searching and reading. I found Windows Firewall advanced settings and deleted the rules with anki in the name, then made a new one - incoming, accept all.

It seems a little better but it still has the same problem. After working for a few minutes it freezes and then gives the same error.

BTW in a moment of desperation, I uninstalled Anki and installed the “Anki Universal” app from the Microsoft Store. When I tried to connect to AnkiWeb through that, it just said “Server Error” with apparently no more detail available. IMO that seems to confirm that the problem is the connection from my computer to AnkiWeb.

I can’t figure out where to go from here. Has anyone written up a guide to this common problem? Like “Try this, then this, look here to see X…” I’ve found lots of threads but nothing that seems relevant beyond the firewall thing.

BTW my Anki sync works on two other windows computers, iPhone, and Android tablet.

I think Anki Universal is a totally different app that knows nothing about Anki.web sync. So you should continue using the latest Anki.app versions and debug why your firewall blocks outgoing and/or incoming connections.

I can’t figure out where to go from here. Has anyone written up a guide to this common problem? Like “Try this, then this, look here to see X…” I’ve found lots of threads but nothing that seems relevant beyond the firewall thing.

You’ll need to start trying to disable/uninstall such software to see if you can find the culprit. Error establishing a secure connection when syncing - Frequently Asked Questions