Hey there trying upgrade and running into this iss...
# fleet
p
Hey there trying upgrade and running into this issue while doing the prepare db command
Copy code
2023/10/03 19:08:11 FAIL 20220915165116_HostDisplayName.go (upHostDisplayName: delete index: Error 1091 (42000): Can't DROP 'hosts_search'; check that column/key exists), quitting migration.
g
Hey there Pickmansec! Want to take existing servers offline before running the `fleet prepare db`; This could probably be better stated in docs somehow. Servers need to be offline as tables being constantly adjusted and if being currently inserted, will fail the prepare. https://fleetdm.com/docs/deploy/upgrading-fleet
p
@Grant Bilstad when service is down we get this error
Copy code
ERROR 1062 (23000): Duplicate entry '' for key 'hosts.hosts_search'
g
interesting, is your db something other than SQLite? Believe ran into this before and there was a work-around from another... trying to dig up
p
mysql
g
Here is thread for someone with similar issue, but they were running K8 https://osquery.slack.com/archives/C01DXJL16D8/p1694629245611819
k
Hey @pickmansec! Can you give me your full database version?
p
Actually we followed that threads advice and everything worked out
k
That's great! I'd still love the database information so we can work on recreating the issue.
p
How do I get you that information?