#1 2022-10-12 16:31:39

Fuerstl
Member
Registered: 2018-12-03
Posts: 7

Calendar and contacts gone after Thunderbird update

I recently updated Thunderbird to V 102.3.2. Unfortunately, my contacts and my calendar are no longer being displayed now. I tried to disable and re-enable the GeneralSync Integration (V 2.2.0.1) which upon re-enabling displayed an error message saying that Thunderbird could not establish a connection to GeneralSync (which is up and running at V1.0.6.1). Some further details are provided:
Error: Permanent GeneralSync API error [missing-secret-file:C:\Users\...\AppData\Roaming\GeneralSync\local.token]: Secret missing. The application should read it from C:\Users\...\AppData\Roaming\GeneralSync\local.token
gsLinkError@moz-extension://a600bc09-07ca-4ea5-abcb-62b43ec11280/service/gsLink.js:18:7
readResponse@moz-extension://a600bc09-07ca-4ea5-abcb-62b43ec11280/service/gsLink.js:298:15

Any ideas how to solve this issue?

#2 2022-10-12 16:59:39

ds
Founder / Developer
From: Freiburg, Germany
Registered: 2016-06-15
Posts: 364

Re: Calendar and contacts gone after Thunderbird update

Fuerstl wrote:

Error: Permanent GeneralSync API error [missing-secret-file:C:\Users\...\AppData\Roaming\GeneralSync\local.token]: Secret missing. The application should read it from C:\Users\...\AppData\Roaming\GeneralSync\local.token

(I assume the three dots in the error message were originally your user name, and censored for this forum. If the message indeed contains dots, there might be a different problem.)

It seems that Thunderbird either cannot read the file stated in the error message, or that the file got somehow damaged and you did not restart GeneralSync since then.

If a restart of your PC does not help, the most likely option is that you enabled some security feature that prevents Thunderbird from reading GeneralSync's files. The most common Windows application for that would be Sandboxie, but in theory the issue could also be caused by a virus scanner or other security tool. If you use such tools, please disable them and start Thunderbird once. After successfully establishing a connection, you can re-enable the tool again: the file access is only necessary for the first start when enabling the Add-on.

If that does not help, please enable the creation of log files in GeneralSync's configuration (open dashboard, then use the gear icon on the very right of the GeneralSync logo bar at the top to bring up the configuration window, the option is then in the section "Troubleshooting"). Then restart your PC again, and dis- and enable the GeneralSync Add-on in Thunderbird. Then have a look at error messages in Thunderbird's error console and in the log files at C:\Users\...\AppData\Roaming\GeneralSync (re-insert your username, of course).

#3 2022-10-13 07:09:28

Fuerstl
Member
Registered: 2018-12-03
Posts: 7

Re: Calendar and contacts gone after Thunderbird update

Thanks for the quick reply! Turned off virus scanners, however the problem still persisted. To my knowledge, I didn't change security preferences recently. So I'm wondering why GeneralSync can't establish a connection. Here's an output of the logfile for one of the connection loops:
1665643784317: ServerService (TCP) (0)
Started handling a client connection: -Session-pc-java

1665643784318: ServerService (TCP) (70)
com.generalsync.lib.protocol.exception.ProtocolException: Invalid block size: not a token
    at com.generalsync.pc.session.SessionProtocolHandler.handle(SessionProtocolHandler.java:235)
    at com.generalsync.lib.protocol.ServerService$Handler.run(ServerService.java:96)
    at com.generalsync.lib.protocol.connection.ConnectionManager$1.run(ConnectionManager.java:162)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)


1665643786883: ServerService (TCP) (0)
Started handling a client connection: Local

1665643786888: (none) (0)
Incoming local request: pair

1665643786889: (none) (1)
NetworkProtectionEvent: busy

1665643786890: (none) (0)
Application pairing refused: Secret missing. The application should read it from C:\Users\...\AppData\Roaming\GeneralSync\local.token

1665643786890: (none) (1)
NetworkProtectionEvent: idle

#4 2022-10-13 07:21:17

Fuerstl
Member
Registered: 2018-12-03
Posts: 7

Re: Calendar and contacts gone after Thunderbird update

Problem solved: After re-installing Java Runtime Environment everything works fine again.

Last edited by Fuerstl (2022-10-13 07:21:31)

#5 2022-10-13 19:49:15

ds
Founder / Developer
From: Freiburg, Germany
Registered: 2016-06-15
Posts: 364

Re: Calendar and contacts gone after Thunderbird update

Glad to hear you could solve the issue on your own and thanks for sharing the solution!

For future readers: the current Windows installers of GeneralSync contain a Java Runtime Environment, so it is not necessary to install a Java Runtime Environment if you don't yet have one.

Board footer