Closed mike-r-mclaughlin closed 9 months ago
@pjlast with the changes to licensing in 5.3, I wonder if this is fixed?
@eseliger yep should be fixed! No repo removal should happen any more
From 5.3 onwards Sourcegraph should continue to function as normal when a license expires with only admins being able to sign in. This means Sourcegraph will no longer revert to the free license state that caused the repos to be deleted in the first place.
Overview
When a license expires, any configured Perforce depots are hidden from users. The converted (p4-fusion) Git repos still exist on disk. However, once the server is updated with a new license key, the git repos are deleted from disk and the admin UI continues shows an error
The private repositories feature is not activated for this license. Please upgrade your license to use this feature.
until you manually save the code host configuration and manually trigger a code host sync.Steps to reproduce:
gitserver
/data/repos
path to verify the repositories are still on diskgitserver
/data/repos
path; the repositories have been removed from diskExpected behavior:
After the new license key is set in the UI, the Perforce depots are visible in the UI to the users and they begin syncing again.
Actual behavior:
After updating the license key, the perforce depots are no longer visible in the UI, admins see an error on the code host configuration, and the git repos have been deleted from disk.
If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).
/cc @sourcegraph/source