Reconnect clients after server restart #1177
Replies: 2 comments
-
|
When you restart the server, the in-memory correlation cache is wiped - this is expected behavior. Here's how to handle it: Solution 1: Use persistent storage on server Start your server with disk-based caching: interactsh-server -d yourdomain.com -diskThe Solution 2: Client-side session recovery Even with # Create a wrapper script
#!/bin/bash
while true; do
interactsh-client -s your-server.com -sf session.txt
echo "Reconnecting in 5s..."
sleep 5
doneSolution 3: Use interactsh-server -d yourdomain.com -persistWhy session files alone don't help: Best setup for HA: interactsh-server -d yourdomain.com -disk -eviction 168hThis persists data and keeps it for 7 days. What version are you running? The |
Beta Was this translation helpful? Give feedback.
-
|
When you restart the server, the in-memory correlation cache is wiped - this is expected behavior. Here's how to handle it: Solution 1: Use persistent storage on server Start your server with disk-based caching: interactsh-server -d yourdomain.com -diskThe Solution 2: Client-side session recovery Even with # Create a wrapper script
#!/bin/bash
while true; do
interactsh-client -s your-server.com -sf session.txt
echo "Reconnecting in 5s..."
sleep 5
doneSolution 3: Use interactsh-server -d yourdomain.com -persistWhy session files alone don't help: Best setup for HA: interactsh-server -d yourdomain.com -disk -eviction 168hThis persists data and keeps it for 7 days. What version are you running? The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to automatically reconnect the Interactsh CLI Client after restarting the Interactsh Server?
I'm self-hosting the server.
When I restart the server, simulating a problem/crash, the clients start throwing this error:
[ERR] The correlation id was not found (probably evicted due to inactivity): could not get correlation-id from cache
The server works properly, just not the clients.
A guy suggested using a session file, but that didn't help.
Beta Was this translation helpful? Give feedback.
All reactions