Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection issues in Desktop client #6641

Open
4 tasks done
shobeira opened this issue Mar 1, 2024 · 57 comments · Fixed by #6826
Open
4 tasks done

Connection issues in Desktop client #6641

shobeira opened this issue Mar 1, 2024 · 57 comments · Fixed by #6826
Labels
bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues state:tested We tested it and are about to release it
Milestone

Comments

@shobeira
Copy link

shobeira commented Mar 1, 2024

Bug description
The app pop-up notification notified about the new version of the app and it is installed successfully. After auto relaunch, the app is not getting connected Linux app is not connecting to Tuta anymore and only shows the last connected time. No email received or send.

Desktop (please complete the following information):

  • Desktop Environment: Linux)
  • Distribution: Ubuntu 22.04

Test notes

  • Client still works on all platforms
  • Try with IPv4 address only
  • Try with IPv6 address only
  • Try with both available
@shobeira shobeira added bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues labels Mar 1, 2024
@Sheldoorr
Copy link

Sheldoorr commented Mar 1, 2024

I'm also having the same problem but with Windows version after the latest update.
I tried contacting Tuta but they denied their was a problem.

@tspoon765
Copy link

tspoon765 commented Mar 1, 2024

I have the same problem. client v218.240227.0 on Xubuntu 20.04

@rezbyte
Copy link
Contributor

rezbyte commented Mar 1, 2024

Hi @shobeira, @Sheldoorr and @tspoon765 ,
Sorry to hear you are having issues with getting the Tuta Mail client connected.

Does any error message appear when you open the client? If so, please click 'send report' then copy and paste any logs as a comment into this issue.

Thank you in advance.

@shobeira
Copy link
Author

shobeira commented Mar 1, 2024

No error at all

@tspoon765
Copy link

I copied this log file, not sure if it's useful:

v218.240227.0 - linux

Client: linux
Type: UNKNOWN
Tutanota version: 218.240227.0
Timestamp (UTC): Fri, 01 Mar 2024 06:47:43 GMT
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop/218.240227.0 Chrome/122.0.6261.57 Electron/29.0.1 Safari/537.36

== MAIN LOG ==
2024-03-01T06:47:07.437Z I "\n\n''''''''''''''''''''''''''''''''''''''''\n''''''''''''''''''''''''''''''''''''''''\n''''''''''''''''''''''''''''''''''''''''\n''''''''''''''''''''''''''''''''''''''''\n''''''''''''''''''''''''''''''''''''''''\n''''''''''''''''''''''''''''''''''''''''\n''''''''''''''''''''''''',:,''''''''''''\n''''''''''''';:llllcccccccc,'''''''''''' Do you care about privacy?\n'''''''''''':kXWXkoc::;,,'''''''''''''''\n'''''''''''',cdk0KKK00kxdolc;,'''''''''' Work at Tuta! Fight for our rights!\n'''''''''''''''';coxOKNMMWWNK0kdl:,'''''\n'''''''''''''''''''',;oKMMMMMMMMWX0dc,'' https://tuta.com/jobs\n'''''''''''''''''''''';kWMMMMMMMMMMWXk:'\n'''''''''''''''''''',:xXMMMMMMMMMMMMMWKl\n''''''''''''''''';lk0KWMMMMMMMMMMMMMMMWK\n''''''''''''';cdOKWMMMMMMMMMMMMMMMMMMMMM\n'''''''',:ldOKNWMMMMMMMMMMMMMMMMMMMMMMMM\n''',:ldk0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nldk0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\nWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n\n"
2024-03-01T06:47:07.441Z I "worker init time (ms):",178
2024-03-01T06:47:09.432Z I "removed topmost modal component"
2024-03-01T06:47:15.525Z I "removed topmost modal component"

== WORKER LOG ==
2024-03-01T06:47:09.428Z I "[RestClient]","failed request","GET","https://app.tuta.com/rest/sys/session/NJsWcOR--N-9/g5v4P0vBjzZ8UT6VSetQ4gTl0RgJmr3OQ1kcf2B8HFE",0,"",["accessToken","v","cv","Accept"],"no body"
2024-03-01T06:47:09.430Z I "ws close closeOption: ","terminate","state:","terminated"
2024-03-01T06:47:09.431Z I "[RestClient]","failed request","GET","https://app.tuta.com/rest/sys/session/NJsWcOR--N-9/g5v4P0vBjzZ8UT6VSetQ4gTl0RgJmr3OQ1kcf2B8HFE",0,"",["accessToken","v","cv","Accept"],"no body"
2024-03-01T06:47:15.030Z I "[RestClient]","failed request","GET","https://app.tuta.com/rest/sys/session/NJsWcOR--N-9/g5v4P0vBjzZ8UT6VSetQ4gTl0RgJmr3OQ1kcf2B8HFE",0,"",["accessToken","v","cv","Accept"],"no body"
2024-03-01T06:47:15.030Z I "ws close closeOption: ","terminate","state:","terminated"
2024-03-01T06:47:15.030Z I "[RestClient]","failed request","GET","https://app.tuta.com/rest/sys/session/NJsWcOR--N-9/g5v4P0vBjzZ8UT6VSetQ4gTl0RgJmr3OQ1kcf2B8HFE",0,"",["accessToken","v","cv","Accept"],"no body"

== NATIVE LOG ==
2024-03-01T06:47:01.072Z I "the monkey has been patched pid:",3721
2024-03-01T06:47:02.261Z I "version: ","218.240227.0"
2024-03-01T06:47:02.651Z I "resolving key...","tutanota-vault"
2024-03-01T06:47:02.670Z I "config up to date"
2024-03-01T06:47:02.983Z I "[2024-03-01T06:47:02.980Z]","using safeStorage with backend","gnome_libsecret"
2024-03-01T06:47:03.600Z I "[2024-03-01T06:47:03.599Z]","Create tray:true"
2024-03-01T06:47:03.604Z I "[ApplicationWindow]","webAssetsPath: ","/tmp/.mount_tutanoTGy0Kz/resources/app.asar"
2024-03-01T06:47:03.983Z I "[ApplicationWindow]","getting dictionaries from:","https://app.tuta.com/desktop/dictionaries/"
2024-03-01T06:47:03.999Z I "default mailto handler:",false
2024-03-01T06:47:04.000Z I "Webapp ready"
2024-03-01T06:47:04.018Z I "[2024-03-01T06:47:04.018Z]","[ElectronUpdater]","INFO:","Checking for update"
2024-03-01T06:47:04.018Z I "[2024-03-01T06:47:04.018Z]","[ElectronUpdater]","INFO:","checking-for-update"
2024-03-01T06:47:04.385Z I "[ApplicationWindow]","spellcheck-dictionary-initialized","en-GB"
2024-03-01T06:47:04.400Z I "desktop file exists, checking version..."
2024-03-01T06:47:04.855Z I "[DesktopSseClient]","scheduling to check sse in",1,"seconds"
2024-03-01T06:47:05.861Z I "[DesktopSseClient]","last missed notification check:",{"lastMissedNotificationCheckTime":1709209007508}
2024-03-01T06:47:05.862Z I "[DesktopSseClient]","scheduling to check sse in",91,"seconds"
2024-03-01T06:47:05.863Z I "[DesktopSseClient]","starting sse connection"
2024-03-01T06:47:06.043Z I "lookup sse request"
2024-03-01T06:47:06.043Z I "lookup sse request"
2024-03-01T06:47:06.299Z E "[2024-03-01T06:47:06.299Z]","sse error:",""
2024-03-01T06:47:06.787Z I "[2024-03-01T06:47:06.787Z]","[ElectronUpdater]","INFO:","Update for version 218.240227.0 is not available (latest version: 218.240227.0, downgrade is disallowed)."
2024-03-01T06:47:06.788Z I "[2024-03-01T06:47:06.787Z]","[ElectronUpdater]","INFO:","update not available:",{"version":"218.240227.0","files":[{"url":"tutanota-desktop-linux.AppImage","sha512":"8QbpZj+FfjfoY/Ycpm+N6wedwhO0HqdN6BhTQy8N3AJOLCSFQvQ9EsI/7+4R5mZX3c9EbTcdF07uSHNWiiDNDA==","size":123432738,"blockMapSize":130870}],"path":"tutanota-desktop-linux.AppImage","sha512":"8QbpZj+FfjfoY/Ycpm+N6wedwhO0HqdN6BhTQy8N3AJOLCSFQvQ9EsI/7+4R5mZX3c9EbTcdF07uSHNWiiDNDA==","releaseDate":"2024-02-27T17:00:50.141Z","signature":"ZnHO8B2MFEM17QH20lC21l+UJhxi1BfW9ZMK9daZf4oNs6y1O994MbjVkDMQi95wjjrhQuSC+reLO0S4i3YKOCQSdwM7Mk9Q4csAYKqvPGcEscM+PRkqkWM/a+71HGS1HoNq4CBkXRsVecqv1kS0J1YnVVQupJ3TK42z+8Y23ZCtI8zzKl/xJgh8Op4wHSKE7tC3/Q0BtIUIYZ7erakJcIiPSkBXqfcuCM6D27kM3n7Ke06VCatnKkHH1EQN+3GYW7WslGtHBZx1bxmBb9Ego/MxKm+Hl7//elIdqh0SFA6Oa6hbkEDW9B5lrtOvymZ93aKKHvoJsKWdM980deosVw=="}
2024-03-01T06:47:07.424Z I "resolving key...","tutanota-credentials"
2024-03-01T06:47:07.473Z I "[PerWindowSqlCipherFacade]","open db for","NJsWcO9--3-9"
2024-03-01T06:47:07.476Z I "[2024-03-01T06:47:07.476Z]","[WorkerSqlCipher]","started sqlcipher-worker-1"
2024-03-01T06:47:07.672Z I "[2024-03-01T06:47:07.672Z]","[sqlcipher-worker-1]","set up sql cipher done"
2024-03-01T06:47:09.422Z I "[ProtocolProxy]","error for GET https://app.tuta.com/rest/sys/session/NJsWcOR--N-9/g5v4P0vBjzZ8UT6VSetQ4gTl0RgJmr3OQ1kcf2B8HFE:"
2024-03-01T06:47:09.427Z I "[ProtocolProxy]",?
2024-03-01T06:47:09.427Z I "[ProtocolProxy]","{"name":"TypeError","message":"fetch failed","stack":"TypeError: fetch failed\n at /tmp/.mount_tutanoTGy0Kz/resources/app.asar/desktop/DesktopMain.js:10:29051\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /tmp/.mount_tutanoTGy0Kz/resources/app.asar/desktop/DesktopMain.js:10:29559\n at async AsyncFunction. (node:electron/js2c/browser_init:2:47442)"}"
2024-03-01T06:47:09.427Z I "[ProtocolProxy]","failed after 327ms"
2024-03-01T06:47:09.432Z I "[PerWindowSqlCipherFacade]","close db for","NJsWcO9--3-9"
2024-03-01T06:47:09.436Z I "[2024-03-01T06:47:09.436Z]","[OfflineDbRefCounter]","closed db for","NJsWcO9--3-9"
2024-03-01T06:47:14.526Z I "resolving key...","tutanota-credentials"
2024-03-01T06:47:14.544Z I "[PerWindowSqlCipherFacade]","open db for","NJsWcO9--3-9"
2024-03-01T06:47:14.545Z I "[2024-03-01T06:47:14.545Z]","[WorkerSqlCipher]","started sqlcipher-worker-2"
2024-03-01T06:47:14.730Z I "[2024-03-01T06:47:14.730Z]","[sqlcipher-worker-2]","set up sql cipher done"
2024-03-01T06:47:15.028Z I "[ProtocolProxy]","error for GET https://app.tuta.com/rest/sys/session/NJsWcOR--N-9/g5v4P0vBjzZ8UT6VSetQ4gTl0RgJmr3OQ1kcf2B8HFE:"
2024-03-01T06:47:15.029Z I "[ProtocolProxy]",?
2024-03-01T06:47:15.029Z I "[ProtocolProxy]","{"name":"TypeError","message":"fetch failed","stack":"TypeError: fetch failed\n at /tmp/.mount_tutanoTGy0Kz/resources/app.asar/desktop/DesktopMain.js:10:29051\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /tmp/.mount_tutanoTGy0Kz/resources/app.asar/desktop/DesktopMain.js:10:29559\n at async AsyncFunction. (node:electron/js2c/browser_init:2:47442)"}"
2024-03-01T06:47:15.029Z I "[ProtocolProxy]","failed after 256ms"
2024-03-01T06:47:15.031Z I "[PerWindowSqlCipherFacade]","close db for","NJsWcO9--3-9"
2024-03-01T06:47:15.033Z I "[2024-03-01T06:47:15.033Z]","[OfflineDbRefCounter]","closed db for","NJsWcO9--3-9"

@tspoon765
Copy link

tspoon765 commented Mar 1, 2024

When you click on your account name to get it to connect the 'logging in' graphic appears for 1-2 seconds then goes away again, nothing else occurs. Tried it quite a few times, but no connection.

@charlag
Copy link
Contributor

charlag commented Mar 1, 2024

We can't reproduce it on either Ubuntu 22.04 nor on Windows.
If you have ipv6 could you try disabling it and then restarting the app and seeing if it changes anything?
I assume browser version works fine

@Sheldoorr
Copy link

Sheldoorr commented Mar 1, 2024

ipv6 is disabled, tried restarting the app, uninstalled and reinstalled on windows. Restarted Pc....
Still offline.

@charlag
Copy link
Contributor

charlag commented Mar 1, 2024

thank you. could you confirm that it works in browser please?

@charlag
Copy link
Contributor

charlag commented Mar 1, 2024

If you are affected could you please send email to hello@tutao.de with subject "v218.240227 desktop connection issue"? We can ask more specific questions then.
Thank you

@Sheldoorr
Copy link

thank you. could you confirm that it works in browser please?

Working in browser

@igorpupkinable
Copy link

igorpupkinable commented Mar 4, 2024

Works fine for me on Ubuntu 22 LTS with the latest version after updating via pop-up.

@Sheldoorr
Copy link

Any updates? the app is still offline and haven't received any responses after emailing.

@Opening-Button-8988
Copy link

Opening-Button-8988 commented Mar 8, 2024

Issue still persists on 218.240305.0 (Desktop).

This could only be an issue for people with accounts that have yubikeys registered?

@shobeira
Copy link
Author

shobeira commented Mar 8, 2024

Issue still persists on 218.240305.0 (Desktop).

This could only be an issue for people with accounts that have yubikeys registered?

I am not with Yubikey and the problem exists still..

@tinyvoice
Copy link

@shobeira I had this same problem for days until I enabled IPv6. If IPv6 is disabled on your device, router, or VPN, try enabling it. After I did that, it was able to start syncing.

@charlag can you reproduce the problem by disabling IPv6? It might be related to the device having IPv6 enabled but a router or VPN having it disabled, not sure. The Tuta desktop app had a problem a long time ago with only working with or without (I can't remember) IPv6, and it seems like a similar problem is back. It should not required IPv6 or IPv4. It should be able to failover to whichever works.

@samsaraswheel
Copy link

samsaraswheel commented Mar 10, 2024

Getting same problem, "No connection to server" error after latest update appimage 218.240305.0 (Desktop).

Linux Mint 21.3 cinnnamon, latest patches
Linux Mint 20.3 xfce
...but also happens on any linux mint vm image I create.

I found rolling back to Tutanota appimage version 218.240219.0 works for me for now. Any later images have the connection problems.

Of interest on my Linux Mint Xfce, I was running an old Tutanota version 3.122.5 (Desktop) and it was fine. When downloading and running the latest appimage 218.240305.0 (Desktop) version the client gave a message along the lines of "keychain corrupted, credentials being removed" then stopped working from there on either old or new client as I think it corrupted the config profile somehow.

I had to recreate the config folder
/home/user/.config/tutanota-desktop
by renaming it to
/home/user/.config/tutanota-desktop.old
then relog in to the older client to get it working again.

Will be using older Tutanota appimage desktop client version 218.240219.0 until a fix can be found.

NB: also if I use a VPN connection on the client it appears to work although not an acceptable solution as i need it to run on my normal internet also. I also have an Android Tutanota client and it works with no problems. Webmail is ok also. I don't use yubikey.

poss also related to issue #6669

@Sheldoorr
Copy link

Sheldoorr commented Mar 11, 2024

The app is now working on windows10.

Well it did for a day, now it's offline again.

@shobeira
Copy link
Author

The version 218.240307.1 seems working on Ubuntu 22.04

@ivocavalcante
Copy link

Nope, still not working here.

@samsaraswheel
Copy link

samsaraswheel commented Mar 18, 2024

Problem still happening with Appimage version 218.240307.1 . After some testing, here are my findings. May shed light on problem.

Tested Tutanota appimage on new VM installs of Linux mint, MX Linux, Fedora SilverBlue all get same "No connection to server" problem.

So Tutanota being run on typical Electron, I can f12 console to get the following:

console error

Note the [RestClient] failed request get errors and the Deprecated Feature used erros above.
Looking further into issues tab below.

console_sources_issue
Note also that last link for Feature: Deprecate unload event refers to https://chromestatus.com/feature/5579556305502208

Just to reiterate Appimage version 218.240219.0. is the last working version for me and doesn't have these issues.

Any other Appimage version above from there up to 218.240307.1 inherits this "No connection to server" error.

PS: also as a side note, may or may not be related., Tutanota flatpak just on Linux Mint doesn't appear to connect either. Haven't really looked further into it.

My 2c troubleshooting, hope that helps.

@charlag
Copy link
Contributor

charlag commented Mar 18, 2024

Hi, thank you for your info. We are pretty sure it's not related to unload event but to IPv4/IPv6. It seems like everyone who has the issue has some kind of IPv6 address but it's not fully working and the app chooses to use IPv6 in those cases.

@ivocavalcante
Copy link

ivocavalcante commented Mar 18, 2024

Hi, thank you for your info. We are pretty sure it's not related to unload event but to IPv4/IPv6. It seems like everyone who has the issue has some kind of IPv6 address but it's not fully working and the app chooses to use IPv6 in those cases.

I tried disabling IPv6 at all, on the host OS (checked to make sure no IPv6 address had been assigned to he interface), and still no luck. I can confirm that IPv6 on my network isn't working though (never bothered to look at it previously).

Interestingly (sadly?), I realized that Android app also doesn't work on the same network. If I use mobile data, works perfectly. Seems something else, not necessarily linked to platform (desktop, mobile), is to blame.

Every other process/app/whatever works on this network, except Tuta.

@charlag
Copy link
Contributor

charlag commented Mar 18, 2024

It looks like IP block rather than IPv6 issue in your case

@ivocavalcante
Copy link

It might be, it might not, but today, nothing else having changed, Android app started working.

It's important to note that I too had success in using the Linux app when downgrading.

@shobeira
Copy link
Author

The version 218.240307.1 seems working on Ubuntu 22.04

Even this version is not working and i beleive it is related to IP versions as others mentioned and based on my own tests.

@samsaraswheel
Copy link

Tested disabling IPV6 in network settings and can confirm this works on the latest appimage version v220.240321.0 as a workaround, currently only running network on IPV4.

Idealy would be good if Tuta is workable on IPV6 for futureproofing and due to fact that some users like me use IPV6 for various reasons.

@charlag
Copy link
Contributor

charlag commented Mar 25, 2024

@samsaraswheel Tuta does work on IPv6. Could you please check if other connections work over IPv6 like ping -6 wikipedia.org (when IPv6 is enabled of course)

@ivocavalcante
Copy link

wild guess but is everyone who is experiencing this issue under VPN?

Nope, no VPN at all. Curiously, it's working just fine right now.

charlag added a commit that referenced this issue Apr 4, 2024
@charlag
Copy link
Contributor

charlag commented Apr 4, 2024

There is a possible workaround if anyone wants to build the client from that branch:
#6826

@charlag charlag added this to the 220.240405.0 milestone Apr 5, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 5, 2024
* [desktop] Update electron to 29.2.0

* [desktop] Fix IPv6 connectivity issues

fix #6641
@Sheldoorr
Copy link

Sheldoorr commented Apr 5, 2024

Why is this closed? the issue has not been resolved. The app is still offline.

@d8f6
Copy link

d8f6 commented Apr 5, 2024

@Sheldoorr The issue is fixed in 220.240405.0 as mentioned above. You just have to update the app when it is finished being compiled and uploaded to the releases page here (or through your package manager or app store or whatever you use). Assuming the naming convention is any indicator of a release date ( 220.240405.0) it should be released within the next 24 hours or so. There is nothing more to do than wait for the update to get built or alternatively compile the new build from git yourself (if you want the fix immediately).

@Sheldoorr
Copy link

Sheldoorr commented Apr 6, 2024

There was an update, a day later it's offline again.

Obviously not fixed.

PS: closing this doesn't make the problem go away.

@d8f6
Copy link

d8f6 commented Apr 7, 2024

@Sheldoorr "The issue is fixed in 220.240405.0". The current release is "220.240403.0" as shown on the release page (you can find this information on the same page you are reading this post by clicking the button that says "Code" up at the top left and looking at the right hand side of that same page that says "Releases"), which was released 3 days ago (you just got the update 2 days later as you have to wait for whatever package manager you are using). Of course enabling ipv6 would have solved the issue immediately while awaiting the update as stated already above. I hope this helps you understand what is happening. Going to unsubscribe now as this issue has already been solved upstream.

@Sheldoorr
Copy link

Sheldoorr commented Apr 7, 2024

Choosing to ignore the problem is your choice but it will come back to bite you one way or another.

ipv6 is enabled......

@charlag
Copy link
Contributor

charlag commented Apr 8, 2024

The issue is closed because we merged the fix but didn't release it yet. Sorry for the confusion, the fix is coming soon

@wrdhub wrdhub self-assigned this Apr 8, 2024
@wrdhub wrdhub added the state:tested We tested it and are about to release it label Apr 8, 2024
@wrdhub wrdhub removed their assignment Apr 8, 2024
@exxelxior
Copy link

The issue is closed because we merged the fix but didn't release it yet. Sorry for the confusion, the fix is coming soon

Linux Debian 12
I have the same problem.
Not fixed yet in v.220.240408.0 (released 2 days ago, your comment too; did you mean NEXT release, didn't you?).

the monkey has been patched pid: 7823
version: 220.240408.0
resolving key... tutanota-vault
config up to date
[2024-04-10T00:30:18.746Z] Create tray:true
resolving key... tutanota-vault
[ApplicationWindow] webAssetsPath: /tmp/.mount_tutanoN7KG2c/resources/app.asar
[ApplicationWindow] getting dictionaries from: https://app.tuta.com/desktop/dictionaries/
default mailto handler: false
Webapp ready
[2024-04-10T00:30:18.856Z] [ElectronUpdater] INFO: Checking for update
[2024-04-10T00:30:18.856Z] [ElectronUpdater] INFO: checking-for-update
desktop file exists, checking version...
[2024-04-10T00:30:20.439Z] [ElectronUpdater] INFO: Update for version 220.240408.0 is not available (latest version: 220.240408.0, downgrade is disallowed).
[2024-04-10T00:30:20.439Z] [ElectronUpdater] INFO: update not available: {
version: '220.240408.0',
files: [
{
url: 'tutanota-desktop-linux.AppImage',
sha512: 'd+9O53jaMIYgJ3DVytU9BOCpDtptSTcU99E1cgGDh6VzZOoPhS3cUXH5txOQ4ShqnRSyZZ/N3yEZI53RdM5ntQ==',
size: 123969157,
blockMapSize: 130713
}
],
path: 'tutanota-desktop-linux.AppImage',
sha512: 'd+9O53jaMIYgJ3DVytU9BOCpDtptSTcU99E1cgGDh6VzZOoPhS3cUXH5txOQ4ShqnRSyZZ/N3yEZI53RdM5ntQ==',
releaseDate: '2024-04-08T09:30:51.164Z',
signature: 'CTLeoTLDfCdHWlpmG2ioz8gNnX6+/WREfBm6p78YARss3/wB1202dgBNKzJNoLcWBGiSKHOHEnSlWSqqGGQcGc+aopQwhPiQ7+UlopSsVOaktTC9YU97/vwTwPxAwdnqQ7iPXlAFg9ToJSJf9AQ08wrY38gTQp+z7hQ7CSkx16gefQ0+vhKdAjvUzXf8WhQCJjbdTDJNKXQMRJ3tkyDY8BMi07fibwRViLFULwrQ7t2gWeYPBQCfMci0URcAaLkRg/vQh3dYBEUfLl0qSO2dVpJgVeUVJ/TyEUTYIUO1FOUoAua7KNlurJKmplzo/aMmyqj0/wrEcCRAKSXH1SYadQ=='
}
[ProtocolProxy] error for GET https://app.tuta.com/rest/sys/saltservice:
[ProtocolProxy] TypeError: fetch failed
at /tmp/.mount_tutanoN7KG2c/resources/app.asar/desktop/DesktopMain.js:10:29070
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /tmp/.mount_tutanoN7KG2c/resources/app.asar/desktop/DesktopMain.js:10:29578
at async AsyncFunction. (node:electron/js2c/browser_init:2:47442) {
[cause]: AggregateError
at internalConnectMultiple (node:net:1114:18)
at internalConnectMultiple (node:net:1177:5)
at Timeout.internalConnectMultipleTimeout (node:net:1687:3)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7) {
code: 'ETIMEDOUT',
[errors]: [ [Error], [Error] ]
}
}
[ProtocolProxy] {"name":"TypeError","message":"fetch failed","stack":"TypeError: fetch failed\n at /tmp/.mount_tutanoN7KG2c/resources/app.asar/desktop/DesktopMain.js:10:29070\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /tmp/.mount_tutanoN7KG2c/resources/app.asar/desktop/DesktopMain.js:10:29578\n at async AsyncFunction. (node:electron/js2c/browser_init:2:47442)"}
[ProtocolProxy] failed after 345ms

Screenshot_20240409_212037

@WimDeWinter01
Copy link

WimDeWinter01 commented Apr 10, 2024

As of today, after upgrading to latest version via pop-up, I also am experiencing this bug. Using Debian 12 and the latest appimage. Can connect to account using Android app (both using 4G or local WiFi, makes no difference) or webapp over same network as desktop app. IPv6 enabled and working. Using VPN.

FYI: https://github.com/tutao/tutanota/releases/tag/tutanota-desktop-release-218.240219.0 isn't working either.

@ivocavalcante
Copy link

Tested new version today - v220.240408.0 - on Ubuntu 22.04, working fine. Hope others have success too. Thanks for your efforts, people.

@cumber
Copy link

cumber commented Apr 13, 2024

Still an issue for me on v220.240411.0, unfortunately. (On NixOS, installed via AppImage)

@exxelxior
Copy link

exxelxior commented Apr 16, 2024

On Debian 12 v220.240411.0 AppImage still not working.

@charlag
Copy link
Contributor

charlag commented Apr 18, 2024

@exxelxior @cumber do you have IPv6 enabled? Does it work? Do you have VPN enabled? Does webapp work for you?

@cumber
Copy link

cumber commented Apr 19, 2024

@charlag

do you have IPv6 enabled? Does it work? Do you have VPN enabled? Does webapp work for you?

No VPN. I'm not completely confident in my knowledge of ipv6 stuff, but I believe the ipv6 stack on my computer is working (I can ping -6 localhost), but it's not supported somewhere in my router & ISP settings (for example ping -6 www.google.com reports ping: connect: Network is unreachable).

Tuta works perfectly fine through a browser (about info shows v220.240411.0). Downgrading the desktop client to v218.240219.0 also works fine. No desktop client newer than that (up to v220.240411.0) has worked for me, on NixOS.

So the issue is that it's preferring ipv6 connections and under some circumstances isn't failing over to ipv4?

@charlag
Copy link
Contributor

charlag commented Apr 19, 2024

@cumber thank you for the update.
We did update the network library (undici) after v218.240219.0.
After that in v220.240405.0 we enabled autoSelectFamily which should have solved the IPv6 but not working issue.
We should try to update undici again with the next release, I am not sure what else we can do, we can try to intercept and log request stages but I don't think it will give us enough details to get anything useful out of it to be honest.

@AlbeyAmakiir
Copy link

I was redirected here from the issue I made, so I'll copy the logs from mine here.
OS: ArcoLinux (ArchLinux) 6.8.7-arch1-1
Tuta Desktop Version: v220.240411.0 (from AUR, not AppImage)
Logs:

2024-04-19T04:54:18.850Z I "the monkey has been patched pid:",19696
2024-04-19T04:54:18.973Z I "version:  ","220.240411.0"
2024-04-19T04:54:18.991Z I "resolving key...","tutanota-vault"
2024-04-19T04:54:18.992Z I "config up to date"
2024-04-19T04:54:19.132Z I "[2024-04-19T04:54:19.132Z]","using safeStorage with backend","gnome_libsecret"
2024-04-19T04:54:19.137Z I "[2024-04-19T04:54:19.137Z]","Create tray:true"
2024-04-19T04:54:19.140Z I "[ApplicationWindow]","webAssetsPath: ","/opt/tutanota-desktop/resources/app.asar"
2024-04-19T04:54:19.188Z I "[ApplicationWindow]","getting dictionaries from:","https://app.tuta.com/desktop/dictionaries/"
2024-04-19T04:54:19.193Z I "[DesktopSseClient]","scheduling to check sse in",1,"seconds"
2024-04-19T04:54:19.256Z I "default mailto handler:",true
2024-04-19T04:54:19.256Z I "Webapp ready"
2024-04-19T04:54:19.260Z I "[DesktopWindowManager]","invalidating alarms for window",1
2024-04-19T04:54:19.260Z W "[2024-04-19T04:54:19.260Z]","[ElectronUpdater]","WARN:","APPIMAGE env is not defined, current application is not an AppImage"
2024-04-19T04:54:19.263Z I "/home/albey/.local/share/applications/tutanota-desktop.desktop does not exist, checking for permission to ask for permission..."
2024-04-19T04:54:19.266Z I "[ApplicationWindow]","spellcheck-dictionary-initialized","en-AU"
2024-04-19T04:54:19.462Z I "resolving key...","tutanota-credentials"
2024-04-19T04:54:19.483Z I "[PerWindowSqlCipherFacade]","open db for","NOTm9FY----9"
2024-04-19T04:54:19.485Z I "[2024-04-19T04:54:19.485Z]","[WorkerSqlCipher]","started sqlcipher-worker-1"
2024-04-19T04:54:19.545Z I "[2024-04-19T04:54:19.545Z]","[sqlcipher-worker-1]","set up sql cipher done"
2024-04-19T04:54:19.987Z I "[ProtocolProxy]","error for GET https://app.tuta.com/rest/sys/session/NOTm9Fo--N-9/TffVzUSuKmdpggbDY_yJWsOULJ94mGLUXoaX-UU-tUY:"
2024-04-19T04:54:19.990Z I "[ProtocolProxy]",?
2024-04-19T04:54:19.990Z I "[ProtocolProxy]","{\"name\":\"TypeError\",\"message\":\"fetch failed\",\"stack\":\"TypeError: fetch failed\\n    at /opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:10:29070\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\\n    at async /opt/tutanota-desktop/resources/app.asar/desktop/DesktopMain.js:10:29578\\n    at async AsyncFunction.<anonymous> (node:electron/js2c/browser_init:2:47442)\"}"
2024-04-19T04:54:19.990Z I "[ProtocolProxy]","failed after 434ms"
2024-04-19T04:54:19.991Z I "[PerWindowSqlCipherFacade]","close db for","NOTm9FY----9"
2024-04-19T04:54:19.992Z I "[2024-04-19T04:54:19.992Z]","[OfflineDbRefCounter]","closed db for","NOTm9FY----9"
2024-04-19T04:54:20.196Z I "[DesktopSseClient]","last missed notification check:",{"lastMissedNotificationCheckTime":null}
2024-04-19T04:54:20.196Z I "[DesktopSseClient]","scheduling to check sse in",119,"seconds"
2024-04-19T04:54:20.197Z I "[DesktopSseClient]","No user IDs, skip reconnect"

@cumber
Copy link

cumber commented Apr 22, 2024

@charlag Hmm, if autoSelectFamily isn't selecting the right address, is that an upstream problem in undici? Or even nodejs itself? (since a brief search suggests undici's autoSelectFamily is ultimately using a nodejs feature). Is there an upstream issue for the problem?

@charlag
Copy link
Contributor

charlag commented Apr 22, 2024

I have noticed that undici will even helpfully report which address it did try, we should add more logging:
https://github.com/nodejs/undici/blob/79c76c51df9f3ef33af0a37b387c10b41f361b7f/lib/core/connect.js#L185-L191

@exxelxior
Copy link

exxelxior commented Apr 22, 2024

@exxelxior @cumber do you have IPv6 enabled? Does it work? Do you have VPN enabled? Does webapp work for you?

I have IPv6 enabled and its status is like @cumber results.
I haven´t VPN.
The webapp works fine, except the popup message showing a new version: when I accept the update the page doesn't refresh and no update, the message only close itself (using mail.tutanota.com/login (about info shows v220.240408.0) as well as app.tuta.com/login (about info shows v218.240307.1)). My browser is Firefox 115.10.0esr (64-bit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues state:tested We tested it and are about to release it
Projects
None yet
Development

Successfully merging a pull request may close this issue.