app icon indicating copy to clipboard operation
app copied to clipboard

mac: app can sometimes fail to startup due to failed database migration; clear-all-date works around it

Open chwarwick opened this issue 2 years ago • 3 comments

The application failed to start because of failed migrations, log information below:

Sourcegraph App version: 2023.7.4+1332.fc76a9c675 darwin arm64

FATAL sourcegraph svcmain/svcmain.go:263 github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1 failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.4+1332.fc76a9c675", "service.instance.id": "MacBook.local"}, "Attributes": {"service": "frontend", "error": "failed to connect to frontend database: dirty database: schema \"frontend\" marked the following migrations as failed: 1648051770\nThe target schema is marked as dirty and no other migration operation is seen running on this schema. The last migration operation over this schema has failed (or, at least, the migrator instance issuing that migration has died). Please contact [email protected] for further assistance."}}

chwarwick avatar Jul 06 '23 17:07 chwarwick

I saw this once before but I'm not sure why. Using System tray -> Cody -> Troubleshooting -> Clear all data fixed it of course

emidoots avatar Jul 07 '23 00:07 emidoots

Same issue

vaibhavkumar-sf avatar Jul 20 '23 08:07 vaibhavkumar-sf

Solved .. it was because I installed extension in VSCODE first .. I removed VSCODE, then installed APP again, and it is working now. image

vaibhavkumar-sf avatar Jul 20 '23 10:07 vaibhavkumar-sf