login session was replaced by a new one
ERRO[12:00:00] Received tunnel terminate request from server reason=session_ended
INFO[12:00:00] Signed in again on this device, restarting the tunnel with the new session
WARN[12:00:00] Connection lost, reconnecting: https://myapp.a.2na.am
This isn't an error but a tuna CLI message about a session change. The login session was replaced by a new one text appears only in the debug log (--log-level=debug). The tunnel doesn't exit: it reconnects with the new session within a few seconds.
Cause
While the tunnel was running, someone ran tuna login again on the same device. On a new login, the CLI terminates the device's previous session so it doesn't linger in the profile. The server stops the tunnels of the terminated session, and the tunnel picks up the new session from storage and connects with it.
What to do
Nothing: the tunnel keeps running at the same address.
If instead of Signed in again on this device the tunnel exited with Login session was ended, run `tuna login` to sign in again, the session was terminated and there's no new one on the device. See session expired or revoked for what to do.
Background services run on their own keys, so logging in again doesn't affect them. See Sessions and API keys.