Hello all, in 4.3.1 when I try to open the Policie...
# fleet
s
Hello all, in 4.3.1 when I try to open the Policies page I get below error, how can I fix this?
t
hello, could you check the devtools on the network tab to see what API is failing? also logs from fleet serve would be useful. The usual suspect in these cases is migrations that haven't run
g
4.3.1 still had the update every checkin bug which was fixed in 4.3.2 resulting in the DB growing and then a timeout which I had.
s
I will upgrade to 4.3.2 and check if issue is solved, will also take a look in the devtools @Tomas Touceda @Gavin Thanks
r
4.3.2 resolved this for me too
s
Thanks for the info @ryan will upgrade asap 😉
After upgrading to 4.4.0 I still see same issue and cannot create a policy. Also noticed
prepare db
takes quite some minutes to complete, not sure if it is succesfull. Any way to troubleshoot this?
t
yes, please share logs for fleet serve and also the API call in the network tab in dev tools from your browser to see what the error is
s
Checking the dev tools seems to make it quite clear 😮
Copy code
{
  "message": "Validation Failed",
  "errors": [
    {
      "name": "base",
      "reason": "Error 1146: Table 'db.policies' doesn't exist"
    }
  ]
}
Status 422 No Reason Phrase
t
so the migrations haven't finished correctly, are you running any fleet instances while you are doing the prepare?
s
Will need to check, maybe forgot one online before updating, will test it now see if that helps the issue.
prepare db
solved it for me, probably the last time didn't go well
t
great!