Unable to reset tokens of WebHook, ProjectHook models.

Problem to solve

When trying to open web Ide or when trying to save admin settings, it gives http 500.
My searches led me to this documentation and discovered a problem with tokens

root@GitLab:~# sudo gitlab-rake gitlab:doctor:secrets VERBOSE=1
I, [2025-05-09T08:21:46.380948 #1605746]  INFO -- : Checking encrypted values in the database
I, [2025-05-09T08:21:54.889214 #1605746]  INFO -- : - Gitlab::BackgroundMigration::BackfillIntegrationsEnableSslVerification::Integration failures: 0
I, [2025-05-09T08:21:54.897844 #1605746]  INFO -- : - VirtualRegistries::Packages::Maven::Upstream failures: 0
I, [2025-05-09T08:21:54.907265 #1605746]  INFO -- : - Packages::Debian::ProjectDistributionKey failures: 0
I, [2025-05-09T08:21:54.915359 #1605746]  INFO -- : - Packages::Debian::GroupDistributionKey failures: 0
I, [2025-05-09T08:21:54.929968 #1605746]  INFO -- : - Clusters::Providers::Gcp failures: 0
I, [2025-05-09T08:21:54.939401 #1605746]  INFO -- : - Clusters::Providers::Aws failures: 0
I, [2025-05-09T08:21:54.942964 #1605746]  INFO -- : - Clusters::Integrations::Prometheus failures: 0
I, [2025-05-09T08:21:54.950785 #1605746]  INFO -- : - ServiceDesk::CustomEmailVerification failures: 0
I, [2025-05-09T08:21:54.958811 #1605746]  INFO -- : - ServiceDesk::CustomEmailCredential failures: 0
I, [2025-05-09T08:21:54.967087 #1605746]  INFO -- : - Integrations::ZentaoTrackerData failures: 0
I, [2025-05-09T08:21:54.976132 #1605746]  INFO -- : - Integrations::JiraTrackerData failures: 0
I, [2025-05-09T08:21:54.992046 #1605746]  INFO -- : - Integrations::IssueTrackerData failures: 0
I, [2025-05-09T08:21:55.004416 #1605746]  INFO -- : - IncidentManagement::ProjectIncidentManagementSetting failures: 0
I, [2025-05-09T08:21:55.012502 #1605746]  INFO -- : - ErrorTracking::ProjectErrorTrackingSetting failures: 0
I, [2025-05-09T08:21:55.036406 #1605746]  INFO -- : - Clusters::KubernetesNamespace failures: 0
I, [2025-05-09T08:21:55.045156 #1605746]  INFO -- : - CloudConnector::ServiceAccessToken failures: 0
I, [2025-05-09T08:21:55.055504 #1605746]  INFO -- : - BulkImports::Configuration failures: 0
I, [2025-05-09T08:21:55.065842 #1605746]  INFO -- : - Atlassian::Identity failures: 0
I, [2025-05-09T08:21:55.073633 #1605746]  INFO -- : - Alerting::ProjectAlertingSetting failures: 0
I, [2025-05-09T08:21:55.082333 #1605746]  INFO -- : - SlackIntegration failures: 0
I, [2025-05-09T08:21:55.091355 #1605746]  INFO -- : - RemoteMirror failures: 0
I, [2025-05-09T08:21:55.119350 #1605746]  INFO -- : - ProjectSetting failures: 0
I, [2025-05-09T08:21:55.129304 #1605746]  INFO -- : - PagesDomainAcmeOrder failures: 0
I, [2025-05-09T08:21:55.154424 #1605746]  INFO -- : - PagesDomain failures: 0
I, [2025-05-09T08:21:55.163036 #1605746]  INFO -- : - JiraConnectInstallation failures: 0
I, [2025-05-09T08:21:55.172978 #1605746]  INFO -- : - GrafanaIntegration failures: 0
I, [2025-05-09T08:21:55.182391 #1605746]  INFO -- : - ChatName failures: 0
I, [2025-05-09T08:21:55.194478 #1605746]  INFO -- : - AlertManagement::HttpIntegration failures: 0
I, [2025-05-09T08:21:55.264051 #1605746]  INFO -- : - WebHook failures: 40
D, [2025-05-09T08:21:55.264159 #1605746] DEBUG -- :   - WebHook[1]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264182 #1605746] DEBUG -- :   - WebHook[2]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264223 #1605746] DEBUG -- :   - WebHook[3]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264246 #1605746] DEBUG -- :   - WebHook[4]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264265 #1605746] DEBUG -- :   - WebHook[5]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264285 #1605746] DEBUG -- :   - WebHook[6]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264305 #1605746] DEBUG -- :   - WebHook[7]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264327 #1605746] DEBUG -- :   - WebHook[8]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264346 #1605746] DEBUG -- :   - WebHook[9]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264365 #1605746] DEBUG -- :   - WebHook[10]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264388 #1605746] DEBUG -- :   - WebHook[11]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264404 #1605746] DEBUG -- :   - WebHook[12]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264424 #1605746] DEBUG -- :   - WebHook[13]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264443 #1605746] DEBUG -- :   - WebHook[14]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264464 #1605746] DEBUG -- :   - WebHook[15]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264484 #1605746] DEBUG -- :   - WebHook[16]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264504 #1605746] DEBUG -- :   - WebHook[17]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264524 #1605746] DEBUG -- :   - WebHook[18]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264542 #1605746] DEBUG -- :   - WebHook[19]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264562 #1605746] DEBUG -- :   - WebHook[20]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264583 #1605746] DEBUG -- :   - WebHook[21]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264603 #1605746] DEBUG -- :   - WebHook[22]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264625 #1605746] DEBUG -- :   - WebHook[23]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264646 #1605746] DEBUG -- :   - WebHook[24]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264668 #1605746] DEBUG -- :   - WebHook[25]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264689 #1605746] DEBUG -- :   - WebHook[26]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264851 #1605746] DEBUG -- :   - WebHook[27]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264881 #1605746] DEBUG -- :   - WebHook[28]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264897 #1605746] DEBUG -- :   - WebHook[29]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264919 #1605746] DEBUG -- :   - WebHook[30]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264940 #1605746] DEBUG -- :   - WebHook[31]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264959 #1605746] DEBUG -- :   - WebHook[32]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264979 #1605746] DEBUG -- :   - WebHook[33]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.264996 #1605746] DEBUG -- :   - WebHook[34]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.265015 #1605746] DEBUG -- :   - WebHook[35]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.265032 #1605746] DEBUG -- :   - WebHook[36]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.265048 #1605746] DEBUG -- :   - WebHook[37]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.265067 #1605746] DEBUG -- :   - WebHook[38]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.265088 #1605746] DEBUG -- :   - WebHook[39]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.265108 #1605746] DEBUG -- :   - WebHook[40]: token, url, url_variables, custom_headers
I, [2025-05-09T08:21:55.297644 #1605746]  INFO -- : - Integration failures: 0
I, [2025-05-09T08:21:55.307964 #1605746]  INFO -- : - ProjectImportData failures: 0
I, [2025-05-09T08:21:55.318082 #1605746]  INFO -- : - Clusters::Platforms::Kubernetes failures: 0
I, [2025-05-09T08:21:55.346687 #1605746]  INFO -- : - Snippet failures: 0
I, [2025-05-09T08:21:55.431460 #1605746]  INFO -- : - User failures: 0
I, [2025-05-09T08:21:55.453324 #1605746]  INFO -- : - ApplicationSetting failures: 1
D, [2025-05-09T08:21:55.453413 #1605746] DEBUG -- :   - ApplicationSetting[1]: ci_jwt_signing_key, runners_registration_token, error_tracking_access_token
I, [2025-05-09T08:21:55.457392 #1605746]  INFO -- : - SystemHook failures: 0
I, [2025-05-09T08:21:55.460583 #1605746]  INFO -- : - ServiceHook failures: 0
I, [2025-05-09T08:21:55.478249 #1605746]  INFO -- : - ProjectHook failures: 40
D, [2025-05-09T08:21:55.478380 #1605746] DEBUG -- :   - ProjectHook[1]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478410 #1605746] DEBUG -- :   - ProjectHook[2]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478444 #1605746] DEBUG -- :   - ProjectHook[3]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478485 #1605746] DEBUG -- :   - ProjectHook[4]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478510 #1605746] DEBUG -- :   - ProjectHook[5]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478531 #1605746] DEBUG -- :   - ProjectHook[6]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478569 #1605746] DEBUG -- :   - ProjectHook[7]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478585 #1605746] DEBUG -- :   - ProjectHook[8]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478660 #1605746] DEBUG -- :   - ProjectHook[9]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478685 #1605746] DEBUG -- :   - ProjectHook[10]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478715 #1605746] DEBUG -- :   - ProjectHook[11]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478748 #1605746] DEBUG -- :   - ProjectHook[12]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478765 #1605746] DEBUG -- :   - ProjectHook[13]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478809 #1605746] DEBUG -- :   - ProjectHook[14]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478835 #1605746] DEBUG -- :   - ProjectHook[15]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478863 #1605746] DEBUG -- :   - ProjectHook[16]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478900 #1605746] DEBUG -- :   - ProjectHook[17]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478929 #1605746] DEBUG -- :   - ProjectHook[18]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478954 #1605746] DEBUG -- :   - ProjectHook[19]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.478990 #1605746] DEBUG -- :   - ProjectHook[20]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479028 #1605746] DEBUG -- :   - ProjectHook[21]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479051 #1605746] DEBUG -- :   - ProjectHook[22]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479078 #1605746] DEBUG -- :   - ProjectHook[23]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479108 #1605746] DEBUG -- :   - ProjectHook[24]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479145 #1605746] DEBUG -- :   - ProjectHook[25]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479180 #1605746] DEBUG -- :   - ProjectHook[26]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479248 #1605746] DEBUG -- :   - ProjectHook[27]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479276 #1605746] DEBUG -- :   - ProjectHook[28]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479316 #1605746] DEBUG -- :   - ProjectHook[29]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479341 #1605746] DEBUG -- :   - ProjectHook[30]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479361 #1605746] DEBUG -- :   - ProjectHook[31]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479377 #1605746] DEBUG -- :   - ProjectHook[32]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479419 #1605746] DEBUG -- :   - ProjectHook[33]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479447 #1605746] DEBUG -- :   - ProjectHook[34]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479465 #1605746] DEBUG -- :   - ProjectHook[35]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479506 #1605746] DEBUG -- :   - ProjectHook[36]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479547 #1605746] DEBUG -- :   - ProjectHook[37]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479581 #1605746] DEBUG -- :   - ProjectHook[38]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479598 #1605746] DEBUG -- :   - ProjectHook[39]: token, url, url_variables, custom_headers
D, [2025-05-09T08:21:55.479618 #1605746] DEBUG -- :   - ProjectHook[40]: token, url, url_variables, custom_headers
I, [2025-05-09T08:21:55.487156 #1605746]  INFO -- : - Integrations::InstanceIntegration failures: 0
I, [2025-05-09T08:21:55.490688 #1605746]  INFO -- : - Integrations::BeyondIdentity failures: 0
I, [2025-05-09T08:21:55.493849 #1605746]  INFO -- : - Integrations::Pushover failures: 0
I, [2025-05-09T08:21:55.497242 #1605746]  INFO -- : - Integrations::BaseMonitoring failures: 0
I, [2025-05-09T08:21:55.500409 #1605746]  INFO -- : - Integrations::Pivotaltracker failures: 0
I, [2025-05-09T08:21:55.503503 #1605746]  INFO -- : - Integrations::PipelinesEmail failures: 0
I, [2025-05-09T08:21:55.506362 #1605746]  INFO -- : - Integrations::Packagist failures: 0
I, [2025-05-09T08:21:55.509298 #1605746]  INFO -- : - Integrations::Irker failures: 0
I, [2025-05-09T08:21:55.512260 #1605746]  INFO -- : - Integrations::EmailsOnPush failures: 0
I, [2025-05-09T08:21:55.515066 #1605746]  INFO -- : - Integrations::Datadog failures: 0
I, [2025-05-09T08:21:55.517874 #1605746]  INFO -- : - Integrations::SquashTm failures: 0
I, [2025-05-09T08:21:55.520742 #1605746]  INFO -- : - Integrations::BaseSlashCommands failures: 0
I, [2025-05-09T08:21:55.523455 #1605746]  INFO -- : - Integrations::JiraCloudApp failures: 0
I, [2025-05-09T08:21:55.526179 #1605746]  INFO -- : - Integrations::Harbor failures: 0
I, [2025-05-09T08:21:55.528862 #1605746]  INFO -- : - Integrations::GooglePlay failures: 0
I, [2025-05-09T08:21:55.531693 #1605746]  INFO -- : - Integrations::ExternalWiki failures: 0
I, [2025-05-09T08:21:55.534880 #1605746]  INFO -- : - Integrations::BaseChatNotification failures: 0
I, [2025-05-09T08:21:55.537630 #1605746]  INFO -- : - Integrations::DiffblueCover failures: 0
I, [2025-05-09T08:21:55.540721 #1605746]  INFO -- : - Integrations::BaseThirdPartyWiki failures: 0
I, [2025-05-09T08:21:55.543931 #1605746]  INFO -- : - Integrations::Campfire failures: 0
I, [2025-05-09T08:21:55.547445 #1605746]  INFO -- : - Integrations::BaseIssueTracker failures: 0
I, [2025-05-09T08:21:55.550779 #1605746]  INFO -- : - Integrations::BaseCi failures: 0
I, [2025-05-09T08:21:55.553905 #1605746]  INFO -- : - Integrations::Assembla failures: 0
I, [2025-05-09T08:21:55.556978 #1605746]  INFO -- : - Integrations::Asana failures: 0
I, [2025-05-09T08:21:55.560167 #1605746]  INFO -- : - Integrations::AppleAppStore failures: 0
I, [2025-05-09T08:21:55.563446 #1605746]  INFO -- : - Integrations::MockMonitoring failures: 0
I, [2025-05-09T08:21:55.566480 #1605746]  INFO -- : - Integrations::Prometheus failures: 0
I, [2025-05-09T08:21:55.569787 #1605746]  INFO -- : - Integrations::SlackSlashCommands failures: 0
I, [2025-05-09T08:21:55.572767 #1605746]  INFO -- : - Integrations::MattermostSlashCommands failures: 0
I, [2025-05-09T08:21:55.575831 #1605746]  INFO -- : - Integrations::UnifyCircuit failures: 0
I, [2025-05-09T08:21:55.578814 #1605746]  INFO -- : - Integrations::Pumble failures: 0
I, [2025-05-09T08:21:55.581736 #1605746]  INFO -- : - Integrations::MicrosoftTeams failures: 0
I, [2025-05-09T08:21:55.584571 #1605746]  INFO -- : - Integrations::HangoutsChat failures: 0
I, [2025-05-09T08:21:55.587569 #1605746]  INFO -- : - Integrations::WebexTeams failures: 0
I, [2025-05-09T08:21:55.590438 #1605746]  INFO -- : - Integrations::Telegram failures: 0
I, [2025-05-09T08:21:55.593405 #1605746]  INFO -- : - Integrations::Mattermost failures: 0
I, [2025-05-09T08:21:55.596353 #1605746]  INFO -- : - Integrations::Matrix failures: 0
I, [2025-05-09T08:21:55.599536 #1605746]  INFO -- : - Integrations::BaseSlackNotification failures: 0
I, [2025-05-09T08:21:55.602587 #1605746]  INFO -- : - Integrations::Discord failures: 0
I, [2025-05-09T08:21:55.605335 #1605746]  INFO -- : - Integrations::Slack failures: 0
I, [2025-05-09T08:21:55.608026 #1605746]  INFO -- : - Integrations::GitlabSlackApplication failures: 0
I, [2025-05-09T08:21:55.610807 #1605746]  INFO -- : - Integrations::Confluence failures: 0
I, [2025-05-09T08:21:55.613489 #1605746]  INFO -- : - Integrations::Zentao failures: 0
I, [2025-05-09T08:21:55.616304 #1605746]  INFO -- : - Integrations::Jira failures: 0
I, [2025-05-09T08:21:55.618534 #1605746]  INFO -- : - Integrations::Clickup failures: 0
I, [2025-05-09T08:21:55.621406 #1605746]  INFO -- : - Integrations::Youtrack failures: 0
I, [2025-05-09T08:21:55.624149 #1605746]  INFO -- : - Integrations::Ewm failures: 0
I, [2025-05-09T08:21:55.626885 #1605746]  INFO -- : - Integrations::Redmine failures: 0
I, [2025-05-09T08:21:55.629759 #1605746]  INFO -- : - Integrations::Phorge failures: 0
I, [2025-05-09T08:21:55.632352 #1605746]  INFO -- : - Integrations::CustomIssueTracker failures: 0
I, [2025-05-09T08:21:55.634875 #1605746]  INFO -- : - Integrations::Bugzilla failures: 0
I, [2025-05-09T08:21:55.637359 #1605746]  INFO -- : - Integrations::MockCi failures: 0
I, [2025-05-09T08:21:55.639898 #1605746]  INFO -- : - Integrations::Teamcity failures: 0
I, [2025-05-09T08:21:55.642683 #1605746]  INFO -- : - Integrations::Jenkins failures: 0
I, [2025-05-09T08:21:55.645353 #1605746]  INFO -- : - Integrations::DroneCi failures: 0
I, [2025-05-09T08:21:55.648837 #1605746]  INFO -- : - Integrations::Buildkite failures: 0
I, [2025-05-09T08:21:55.651860 #1605746]  INFO -- : - Integrations::Bamboo failures: 0
I, [2025-05-09T08:21:55.653976 #1605746]  INFO -- : - ProjectSnippet failures: 0
I, [2025-05-09T08:21:55.656284 #1605746]  INFO -- : - PersonalSnippet failures: 0
I, [2025-05-09T08:21:55.680693 #1605746]  INFO -- : - Gitlab::BackgroundMigration::EncryptCiTriggerToken::CiTrigger failures: 0
I, [2025-05-09T08:21:55.707790 #1605746]  INFO -- : - Ci::JobVariable failures: 0
I, [2025-05-09T08:21:55.711447 #1605746]  INFO -- : - Ci::Trigger failures: 0
I, [2025-05-09T08:21:55.725765 #1605746]  INFO -- : - Ci::GroupVariable failures: 0
I, [2025-05-09T08:21:55.737026 #1605746]  INFO -- : - Ci::Variable failures: 0
I, [2025-05-09T08:21:55.747301 #1605746]  INFO -- : - Ci::PipelineScheduleVariable failures: 0
I, [2025-05-09T08:21:55.757592 #1605746]  INFO -- : - Ci::InstanceVariable failures: 0
I, [2025-05-09T08:21:55.763626 #1605746]  INFO -- : - Ci::PipelineVariable failures: 0
I, [2025-05-09T08:21:55.775690 #1605746]  INFO -- : - Operations::FeatureFlagsClient failures: 0
I, [2025-05-09T08:21:55.801457 #1605746]  INFO -- : - Clusters::AgentToken failures: 0
I, [2025-05-09T08:21:56.775871 #1605746]  INFO -- : - Project failures: 0
I, [2025-05-09T08:21:56.803804 #1605746]  INFO -- : - DeployToken failures: 0
I, [2025-05-09T08:21:56.830954 #1605746]  INFO -- : - Group failures: 0
I, [2025-05-09T08:21:56.860084 #1605746]  INFO -- : - Ci::Runner failures: 0
I, [2025-05-09T08:21:56.994954 #1605746]  INFO -- : - Ci::Build failures: 0
I, [2025-05-09T08:21:56.995050 #1605746]  INFO -- : Total: 81 row(s) affected
I, [2025-05-09T08:21:56.995072 #1605746]  INFO -- : Done!

When I try to reset tokens with this command
DRY_RUN=false VERBOSE=true MODEL_NAMES=WebHook,ProjectHook TOKEN_NAMES=token,url,url_variables,custom_headers gitlab-rake gitlab:doctor:reset_encrypted_tokens

It runs without errors, but after running it, the gitlab:doctor:secrets command gives exactly the same problems with tokens, i.e. nothing changes.

How could I fix my token problem?
Our gitlab was previously migrated and the old secrets file was lost.

Versions

  • [ x] Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

System information
System:         Ubuntu 22.04
Current User:   git
Using RVM:      no
Ruby Version:   3.1.5p253
Gem Version:    3.5.17
Bundler Version:2.5.11
Rake Version:   13.0.6
Redis Version:  7.0.15
Sidekiq Version:7.2.4
Go Version:     unknown

GitLab information
Version:        17.4.2
Revision:       2c7e66ebdb6
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     PostgreSQL
DB Version:     14.11
URL:            https://gitlab.dot-agency.net
HTTP Clone URL: https://gitlab.dot-agency.net/some-group/some-project.git
SSH Clone URL:  git@gitlab.dot-agency.net:some-group/some-project.git
Using LDAP:     no
Using Omniauth: yes
Omniauth Providers:

GitLab Shell
Version:        14.39.0
Repository storages:
- default:      unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell

Gitaly
- default Address:      unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version:      17.4.2
- default Git Version:  2.46.0

You may wish to take a look at this section in the Gitlab docs related to what to do when the secrets file is lost: Troubleshooting GitLab backups | GitLab Docs

There’s a number of commands there for resetting various things.