# Thinlinc login failed. The SSH connection succeeded - VSMServer corrupt session DB

**URL:** <https://community.thinlinc.com/t/thinlinc-login-failed-the-ssh-connection-succeeded-vsmserver-corrupt-session-db/2098>\
**Category:** Community Support\
**Tags:** release, linux, tlserver, thinlinc\
**Created:** [16 October 2026 17:54 UTC](https://community.thinlinc.com/t/thinlinc-login-failed-the-ssh-connection-succeeded-vsmserver-corrupt-session-db/2098 "2026-10-16T17:54:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harj](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@Harj](https://community.thinlinc.com/u/Harj)\
**Post date:** [16 October 2026 17:54 UTC](https://community.thinlinc.com/t/thinlinc-login-failed-the-ssh-connection-succeeded-vsmserver-corrupt-session-db/2098/1 "2026-10-16T17:54:02Z")

</div>

![TL-login-error-02](https://europe1.discourse-cdn.com/flex005/uploads/thinlinc/original/2X/e/e6da9a4acca61b87f4817ff930a1247f4ef27406.png)

```plaintext
ERROR vsmserver: Error loading session database: End of file reading /var/lib/vsm/sessions
ERROR vsmserver: Session database needs manual recovery.
ERROR vsmserver: Exiting

```

The service was failing to start, and `/run/vsmserver.pid` was missing because the VSM server exited during startup.

### Recovery

1. **Fail over to the secondary broker (`dc02`).** Confirm that logons work through the cluster VIP before proceeding.

2. **Compare the session database on both brokers.** On `dc01`, `/var/lib/vsm/sessions` was 0 bytes. On `dc02`, the file was 3,777 bytes.

3. Stop `vsmserver` on the failed broker (`dc01`) and back up the session database on both brokers.

4. Copy the database from the working broker (`dc02`) to a temporary location on `dc01`, using `scp`.

5. Restore the database on `dc01`, ensuring the correct ownership and permissions:

6. Start `vsmserver` on `dc01` and check the service status and logs.

The log confirmed that the recovered database loaded successfully:

```plaintext
INFO vsmserver.session: Loaded 1 sessions for 1 users from file

```

The cluster remained healthy, with both nodes online and the VIP staying on `dc02`. Logons were working again.

### Cause

I don’t know what caused the session database to become corrupted. The brokers have been working for months, and the only change that evening was updating the VDA master VM and running a test.

Has anyone else encountered this, or have any suggestions on what might cause the session database to become empty or corrupted?

Hopefully this saves someone a bit of troubleshooting time if they run into the same issue.

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/aaron/32/13_2.png) [@aaron](https://community.thinlinc.com/u/aaron)\
**Post date:** [18 October 2026 21:03 UTC](https://community.thinlinc.com/t/thinlinc-login-failed-the-ssh-connection-succeeded-vsmserver-corrupt-session-db/2098/3 "2026-10-18T21:03:29Z")

</div>

It’s difficult to know for sure why this happened, but I have seen it on occasion due to things like `/var` filling up, or SELinux contexts not being applied properly. Anyway - you did the right thing! 🙂

---

<div class="post-metadata">

**Author:** ![Harj](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@Harj](https://community.thinlinc.com/u/Harj)\
**Post date:** [19 October 2026 07:45 UTC](https://community.thinlinc.com/t/thinlinc-login-failed-the-ssh-connection-succeeded-vsmserver-corrupt-session-db/2098/4 "2026-10-19T07:45:23Z")

</div>

Aaron, its weird why it corrupted like that. At first I thought the OS updates to the VDA earlier was the issue. I kind of think it may be the remote shutdown via the hypervisor console might have been the cause.
