Summary
Description
After migrating Lansweeper, the old server cannot unlink from Lansweeper Sites. This issue persists despite service restarts.
Cause
The Lansweeper installation has two scanning servers (Configuration > Your Lansweeper License), which may be an unintended configuration. The unlinking process fails because the system does not recognize the new server name due to the old server's lingering presence. Additionally, the LsAgent Relay service may interfere with the renaming script, causing server name conflicts in the database.
Solution
Additional information
- The SQL statement may return a foreign key error between tblLsAgentRelayConfig and tsysASServers.
Msg 547, Level 16, State 0, Line 1
The DELETE statement conflicted with the REFERENCE constraint "FK_tblLsAgentRelayConfig_tsysASServers". The conflict occurred in database "lansweeperdb", table "dbo.tblLsAgentRelayConfig", column 'Servername'.
- You can resolve this by navigating to Scanning > Relay Configuration in the Lansweeper web console and temporarily setting the old scanning server as the Relay Synchronization server.
- Then, attempt to rerun the SQL statement.