Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start deck failed #13502

Closed
Chendiguang opened this issue Jul 18, 2019 · 12 comments
Closed

start deck failed #13502

Chendiguang opened this issue Jul 18, 2019 · 12 comments
Assignees
Labels
area/prow Issues or PRs related to prow kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@Chendiguang
Copy link

{"component":"deck","file":"prow/kube/config.go:143","func":"k8s.io/test-infra/prow/kube.LoadClusterConfigs","level":"info","msg":"Loading cluster contexts...","time":"2019-07-18T15:26:42Z"}
{"component":"deck","error":"open /etc/cookie/secret: no such file or directory","file":"prow/cmd/deck/main.go:316","func":"main.main","level":"fatal","msg":"Could not read cookie secret file","time":"2019-07-18T15:26:42Z"}

when i run kubectl apply -f https://github.com/kubernetes/test-infra/blob/master/prow/cluster/starter.yaml?raw=, found deck pod status is CrashLoopBackOff

@Chendiguang Chendiguang added the kind/bug Categorizes issue or PR as related to a bug. label Jul 18, 2019
@yufan-bot
Copy link

yufan-bot commented Jul 19, 2019

I have the same problem when setting up Prow with tackle. Running bazel run //prow/cmd/tackle gives me some logs similar to #13492

...
Checking github credentials...
Store your GitHub token in a file e.g. echo $TOKEN > /path/to/github/token
Input /path/to/github/token to upload into cluster: go/src/github.com/test-infra/secret
INFO[0029] User()                                        client=github
Prow will act as yufan-bot on github
Applying github token into oauth-token secret...secret/oauth-token created
Ensuring hmac secret exists at hmac-token...INFO[0030] Creating new hmac-token secret with random data... 
exists
Looking for prow's hook ingress URL... FATA[0031] Could not get ingresses                       error="the server could not find the requested resource"

I thought I didn't give tackle enough time to wait for ingress's setup so I retried and wanna wait until ingress is created but found the following error log when inspecting the log with kubectl logs service/deck

time="2019-07-19T00:59:04Z" level=info msg="Spyglass registered viewer buildlog with title Build Log."
time="2019-07-19T00:59:04Z" level=info msg="Spyglass registered viewer coverage with title Coverage."
time="2019-07-19T00:59:04Z" level=info msg="Spyglass registered viewer junit with title JUnit."
time="2019-07-19T00:59:04Z" level=info msg="Spyglass registered viewer metadata with title Metadata."
{"component":"deck","file":"prow/kube/config.go:143","func":"k8s.io/test-infra/prow/kube.LoadClusterConfigs","level":"info","msg":"Loading cluster contexts...","time":"2019-07-19T00:59:04Z"}
{"component":"deck","error":"open /etc/cookie/secret: no such file or directory","file":"prow/cmd/deck/main.go:316","func":"main.main","level":"fatal","msg":"Could not read cookie secret file","time":"2019-07-19T00:59:04Z"}

@stevekuznetsov
Copy link
Contributor

/cc @Katharine

@Katharine
Copy link
Member

Katharine commented Jul 23, 2019

This should've been fixed by #13521, but tackle probably needs to be updated appropriately to avoid relying on deprecated configuration.

@spiffxp
Copy link
Member

spiffxp commented Aug 1, 2019

/area prow
(may want to consider a tackle label)

@k8s-ci-robot k8s-ci-robot added the area/prow Issues or PRs related to prow label Aug 1, 2019
@fejta
Copy link
Contributor

fejta commented Aug 8, 2019

/assign @Katharine @mirandachrist

Can we start setting this value explicitly so we stop having this error?

{
 insertId:  "45vvifg5o9py2k"  
 jsonPayload: {
  component:  "deck"   
  file:  "prow/cmd/deck/main.go:123"   
  func:  "main.(*options).Validate"   
  level:  "error"   
  msg:  "You haven't set --cookie-secret-file, but you're assuming it is set to '/etc/cookie/secret'. Add --cookie-secret-file=/etc/cookie/secret to your deck instance's arguments. Your configuration will stop working at the end of October 2019."   
 }
 labels: {…}  
 logName:  "projects/k8s-prow/logs/deck"  
 receiveTimestamp:  "2019-08-08T20:22:56.217449554Z"  
 resource: {…}  
 severity:  "ERROR"  
 timestamp:  "2019-08-08T20:22:16Z"  
}

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 6, 2019
@fejta
Copy link
Contributor

fejta commented Nov 7, 2019

This is fixed right Katharine?

@Katharine
Copy link
Member

It may actually still be broken in tackle, I haven't checked.

It's fixed in production everything.

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 7, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 5, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 6, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prow Issues or PRs related to prow kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

9 participants