Method 2: Remove cached license from Xray DB

XRAY: Xray DB Sync won't start

AuthorFullName__c
Rasul Imanov
articleNumber
000005338
ft:sourceType
Salesforce
FirstPublishedDate
2022-07-19T12:43:51Z
lastModifiedDate
2022-07-19
VersionNumber
4

Navigate to your Xray instance and perform the following commands:

  • sudo -u postgres psql -d xraydb
  • select encode("config"::bytea, 'escape') from configuration where config_id = 'xrayConfig';

This will produce a JSON and in this output, if you locate a trial license inside the "license_config" tag, then we can run 

  • DELETE FROM configuration WHERE config_id='xrayConfig';

Restart Xray and try the DB Sync again.