https://cerbos.dev logo
#help
Title
# help
j

Jesum Yip

03/22/2022, 2:40 AM
What does it mean when I see this error in my pod?
Copy code
{
  "log.level": "error",
  "@timestamp": "2022-03-22T02:36:56.777Z",
  "log.logger": "cerbos.blob",
  "message": "Failed to build index",
  "bucket": "<gs://abac-policies>",
  "workDir": "/root/tmp/cerbos/work",
  "error": "failed to build index: missing imports=1, duplicate definitions=0, load failures=0"
}
I am on cerbos v0.11
d

Dennis (Cerbos)

03/22/2022, 2:48 AM
Probably Cerbos failed to locate an imported derived policy
j

Jesum Yip

03/22/2022, 2:49 AM
ok let me wipe out all the policies..
oh wow....after emptying the bucket, cerbos pod starts up. lol thank you again, good sir!
i'll go review my policies
d

Dennis (Cerbos)

03/22/2022, 2:50 AM
If you have those policies locally you can run:
./cerbos compile /path/to/policies/dir --skip-tests
j

Jesum Yip

03/22/2022, 2:51 AM
what does that do?
d

Dennis (Cerbos)

03/22/2022, 2:51 AM
to quickly check if the policies are correct
j

Jesum Yip

03/22/2022, 2:51 AM
it checks the integrity?
d

Dennis (Cerbos)

03/22/2022, 2:51 AM
yes
j

Jesum Yip

03/22/2022, 2:51 AM
👍
d

Dennis (Cerbos)

03/22/2022, 2:52 AM
This page may be handy
💯 1
7 Views