arrikto / oidc-authservice

This is a fork/refactoring of the ajmyyra/ambassador-auth-oidc project
MIT License
87 stars 66 forks source link

Error opening bolt store: open /var/lib/authservice/data.db: permission denied #60

Open youxingtian opened 3 years ago

youxingtian commented 3 years ago

Is this a bug report or feature request?

How to Reproduce Steps to reproduce the behavior:

  1. Deploy AuthService ...
  2. Perform this action ...
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Config Files Please provide all the relevant configuration that you can publicly share. This includes:

If relevant, upload your configuration files here using GitHub, there is no need to upload them to any 3rd party services

Logs Please provide all relevant logs (e.g., AuthService logs , OIDC Provider logs, etc.)

Environment:

Additional context Add any other context about the problem here.

66li commented 3 years ago

can you run kubectl describe statefulset authservice -n istio-system

youxingtian commented 3 years ago

can you run kubectl describe statefulset authservice -n istio-system image image

66li commented 3 years ago

can you describe pv and pvc of authservice

youxingtian commented 3 years ago

can you describe pv and pvc of authservice image image image image

66li commented 3 years ago

Create a brand new pv and pvc, instead of using the one that has been mounted, may be able to solve this problem

youxingtian commented 3 years ago

new

Create a brand new pv and pvc, instead of using the one that has been mounted, may be able to solve this problem

That works for me,Thank you!

hx3333 commented 3 years ago

new

Create a brand new pv and pvc, instead of using the one that has been mounted, may be able to solve this problem

That works for me,Thank you!

It doesn't work, I tried many many times, can you explain in detail ? thx

pythonton commented 3 years ago

new

Create a brand new pv and pvc, instead of using the one that has been mounted, may be able to solve this problem

That works for me,Thank you!

It doesn't work, I tried many many times, can you explain in detail ? thx

I fix it. I have two k8s cluster, one normal(already deploy kubeflow 1.3), one bad. I copy data.db to authservice-pvc from normal cluster deployed kubeflow 1.3. , it is ok.

if you need, i could send data.db you.

bartgras commented 3 years ago

I had the same problem. Pod authservice-0 logs were saying "permission denied". What helped: chmoding the PV to less restrictive and deleting Pod authservice-0.

hx3333 commented 3 years ago

I had the same problem. Pod authservice-0 logs were saying "permission denied". What helped: chmoding the PV to less restrictive and deleting Pod authservice-0.

Actually it's authority problem, I've already fixed it. thx anyway

sav116 commented 3 years ago

Help) Pod "authservice-0" is CrashLoopBackOff. I have the same problem. Logs report: Error opening bolt store: open /var/lib/authservice/data.db: stale NFS file handle My pv and pvc: Снимок экрана 2021-10-21 в 03 47 52

sachingupta771 commented 8 months ago

@youxingtian , I am facing same issue with Kubeflow 1.8, error messgae: ClientID:kubeflow-oidc-authservice ClientSecret:pUBnBOY80SnXgjibTYM9ZWNzY2xreNGQok OIDCAuthURL:/dex/auth RedirectURL:/authservice/oidc/callback OIDCScopes:[openid profile email groups] StrictSessionValidation:false OIDCStateStorePath:/var/lib/authservice/data.db AuthserviceURLPrefix:/authservice/ SkipAuthURLs:[/authservice/ /dex] AuthHeader:Authorization Audiences:[istio-ingressgateway.istio-system.svc.cluster.local] HomepageURL:/authservice/site/homepage AfterLoginURL: AfterLogoutURL:/ UserIDHeader:kubeflow-userid GroupsHeader:kubeflow-groups UserIDPrefix: UserIDTransformer:{rules:[]} UserIDClaim:email UserIDTokenHeader: GroupsClaim:groups IDTokenHeader:Authorization Hostname: Port:8080 WebServerPort:8082 ReadinessProbePort:8081 CABundlePath: SessionStorePath:/var/lib/authservice/data.db SessionMaxAge:86400 SessionSameSite:Lax ClientName:AuthService ThemesURL:themes Theme:kubeflow TemplatePath:[web/templates/default] UserTemplateContext:map[] GroupsAllowlist:[*]}" time="2024-03-05T11:27:03Z" level=info msg="Starting readiness probe at 8081" time="2024-03-05T11:27:03Z" level=info msg="Starting server at :8080" time="2024-03-05T11:27:03Z" level=info msg="Starting web server at :8082" time="2024-03-05T11:27:03Z" level=fatal msg="Error creating session store: open /var/lib/authservice/data.db: permission denied"

Please help