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

Missing Session Data #692

Open
N1N74 opened this issue Aug 21, 2022 · 28 comments
Open

Missing Session Data #692

N1N74 opened this issue Aug 21, 2022 · 28 comments
Labels

Comments

@N1N74
Copy link

N1N74 commented Aug 21, 2022

Steps to reproduce

  1. Where are you starting? What can you see?

image

  1. What do you click?
    May have happened after an unexpected shutdown but unsure.

  2. More steps…
    No signout initiated.

Outcome

What did you expect?

Account to be logged in and working as before. No signout was initiated.

What happened instead?

Missing session data. Forcing log out.

Operating system

Windows 11

Application version

1.11.3.0

How did you install the app?

https://element.io/get-started#download

Homeserver

matrix.org

Will you send logs?

Yes

@konomikitten
Copy link

I got this problem today when using Element Desktop and it's happened twice I've now switched to using my web browser instead. It'd be nice if someone could look into this because until recently I'd never seen the problem before.

Operating System: Debian bookworm
Element version: 1.11.25

@konomikitten
Copy link

I'm confident after thinking a little that this is caused by the Message Search option. Toggling said option seems to crash element with:

traps: element-desktop[15506] trap int3 ip:556ee01e3d3f sp:7ffe67fb6f10 error:0 in element-desktop[556edc95e000+785e000]

If anyone sees this bug report make sure to turn off Message Search in Settings -> Security & Privacy -> Message Search.

@JokerGermany
Copy link

JokerGermany commented Mar 18, 2023

Same problem with Ubuntu MAte 22.04, send Error protocol data.

What i have done?
Shutdown the Computer and started it later...

@jahway603
Copy link

I also got this problem today when using Element Desktop. I've been using Element since it was Riot and have never seen this problem until recently.

Operating System: Arch Linux
Element version: 1.11.26

@t3chguy
Copy link
Member

t3chguy commented Mar 30, 2023

@jahway603 please report issues with community maintained packages to their maintainer.

@jahway603
Copy link

@t3chguy I'm reporting the same issue that the OP @N1N74 experienced on Windows 11 on Aug 21, 2022; that @konomikitten experienced 2 weeks ago on Debian bookworm; and that @JokerGermany experienced 2 weeks ago on Ubuntu Mate 22.04. The issue I'm having is no different since all four of us are using your same Github releases, as you can see here. This is a YOU issue and not a packaging issue.

@t3chguy
Copy link
Member

t3chguy commented Mar 30, 2023

@jahway603 that PKGBUILD literally applies patches and does the build itself. It uses a Github release, yes, that is just a signed tag.

@jahway603
Copy link

@t3chguy Element has been working perfectly fine until this latest release. This issue is proof that other people are having the same issue I'm experiencing, yet all using a different operating system. I find it disturbing that your approach is to default that it's magically not a you issue because I'm not running Windows 11, Debian, or Ubuntu. You can see from this commit that the only change between Element working perfectly fine and me having this issue is the source code coming here from Github, which is why I'm reporting this issue here.

If the Windows 11, Debian, & Ubuntu users here were all not having this same issue, and I was the original poster, then you would have closed my initial issue report with the same incorrect reasoning. Again, this is not a packaging issue or other people using other operating systems would not be having the same exact issue.

@t3chguy
Copy link
Member

t3chguy commented Mar 30, 2023

@jahway603 make up your mind then, is it affecting all versions or just this release? The original report is from over 6 months ago. The underlying data handling is delegated to chromium/electron, the modal shown in the OP is based on a signal from the underlying browser that your storage has been evicted.

@jahway603
Copy link

jahway603 commented Mar 30, 2023

@t3chguy There are also 5 separate Issues you've closed as you claim they are duplicates of this Issue

@jahway603
Copy link

@jahway603 make up your mind then, is it affecting all versions or just this release? The original report is from over 6 months ago. The underlying data handling is delegated to chromium/electron, the modal shown in the OP is based on a signal from the underlying browser that your storage has been evicted.

I want to know the root cause and how we help everyone having this issue regardless of their OS. Isn't that why Issues exist - to solve them?

@foresto
Copy link

foresto commented Apr 12, 2023

This happened to me today, after upgrading from v1.11.26 to v1.11.29 of the flatpak, which packages the binary from here:

https://packages.element.io/debian/pool/main/e/element-desktop/element-desktop_1.11.29_amd64.deb

(Yes, I am aware that the flatpak is unofficial, but given that it uses the official binary from element.io, combined with the fact that people using a variety of build and packaging systems are experiencing the same problem, it sure looks like an upstream bug. I am therefore reporting it here as a data point for troubleshooting.)

@JokerGermany
Copy link

Should be the Same Computer and Account like at the 18th March. Send protocoll data again

@Xiretza
Copy link

Xiretza commented Jun 18, 2023

Just happened to me with 1.11.33 on Arch. I sent logs (using this issue URL), can I do anything else to help this get fixed?

@bessw
Copy link

bessw commented Jun 19, 2023

Happened to me today on windows 10.
I've send the error logs.

@Biep
Copy link

Biep commented Aug 1, 2023

Please thumb up this issue, to get more attention for it. I reported my instance as #1129.

@DemiMarie
Copy link

@t3chguy I suspect the actual problem is that the storage is being evicted. Due to end-to-end encryption, Element’s client-side storage is not a cache and cannot be regenerated from server-side state. This means that Element needs reliable storage that is guaranteed to not be evicted, ever. Obtaining this requires calling navigator.storage.persist().

@DemiMarie
Copy link

@t3chguy Should matrix-react-sdk warn if storage cannot be persisted?

@Zocker1999NET
Copy link

Should matrix-react-sdk warn if storage cannot be persisted?

In case of the desktop version which is always executed in a predefined Electron environment, I think it should raise an error and quit if storage cannot be persisted as users will expect it to persist all data. This may ensure that the storage does not become suddenly unpersisted if something changes in Electron itself. In the browser variant, a warning may be better instead as IMO users may be aware that browser sessions might be suddenly destroyed.

@Taranchul
Copy link

Taranchul commented Jan 14, 2024

Same thing happens on Kubuntu 22.04, but only on one of my machines, and so far only with its Element installation via apt. The other installations on the same machine via Flatpak and Snap didn't show this behaviour yet. It's very unnerving having to re-login and re-verify this one instance approx. once every week.

edit: What's notable is that when it happens, Element seems to also have forgotten all of its settings, e.g. the server and username and the sorting settings for the room lists (I always set them to "A-Z", and it reverts to "Activity" when the session data gets lost.

Does anyone know where the session data is stored in Elements apt installation on *buntu 22.04 so I could cron a daily backup?

@JokerGermany
Copy link

I have this for one user, too.

Does anyone know where the session data is stored in Elements apt installation on *buntu 22.04 so I could cron a daily backup?

https://github.com/JokerGermany/Matrix-Tipps#how-to-activate-labs-on-element

@InklingGirl
Copy link

my computer crashed & i got this, i don't want to sign out because i forget my passphrase

@JokerGermany
Copy link

Happened to me for the fist time today, too..

@JokerGermany
Copy link

JokerGermany commented Aug 13, 2024

Can't send an report:
grafik

@eugenr
Copy link

eugenr commented Sep 30, 2024

In which files are those encrypted message keys stored and can I copy&paste them from a system backup I have? I want to try to manually restore that missing session data, at least the keys..

I'm on Debian bookworm using Element Desktop from it's repo. Under XFCE4 desktop. I can see the files under ~/.config/Element but I can't tell which are the keys..

@leanneeliatra
Copy link

leanneeliatra commented Oct 18, 2024

This issue is also occurring for me. I reported it here #1926 2 days ago.

@konomikitten
Copy link

I'm retesting Element Desktop on GNOME, one thing that can cause this is if you remove one of the many xdg-desktop-portal-* packages. On my desktop running XFCE I accidentally removed xdg-desktop-portal-xapp which was what was allowing Element Desktop to encrypt and decrypt session data.

I don't believe this was the case for my issue when using Element Desktop on GNOME but it's something more technical users that are having this issue can check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests