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

CronJobs always show Unknown error (404) the server could not find the requested resource #7717

Closed
karl18 opened this issue Apr 26, 2023 · 23 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@karl18
Copy link

karl18 commented Apr 26, 2023

What happened?

Cron Jobs Tab in the Dashboard always shows this error:
Unknown error (404) the server could not find the requested resource
Screenshot 2023-04-26 at 10 55 01

Unfortunately, looks like it only happened after upgrading the k8s cluster to version v1.25.6
I’m using Kubernetes Dashboard chart version: v1.25.6

What did you expect to happen?

open the page normally as other tabs

How can we reproduce it (as minimally and precisely as possible)?

Just opening CronJobs anytime, it shows the error above

pod logs:

2023/04/26 09:04:27 Getting list of all cron jobs in the cluster
2023/04/26 09:04:27 [2023-04-26T09:04:27Z] Outcoming response to 172.16.6.167 with 404 status code
2023/04/26 09:04:27 [2023-04-26T09:04:27Z] Incoming HTTP/1.1 GET /api/v1/login/status request from 172.16.6.167:
2023/04/26 09:04:27 [2023-04-26T09:04:27Z] Outcoming response to 172.16.6.167 with 200 status code
2023/04/26 09:04:29 [2023-04-26T09:04:29Z] Incoming HTTP/1.1 GET /api/v1/namespace request from 172.16.6.167:

Anything else we need to know?

No response

What browsers are you seeing the problem on?

Chrome

Kubernetes Dashboard version

v6.0.7

Kubernetes version

v1.25.6

Dev environment

No response

@karl18 karl18 added the kind/bug Categorizes issue or PR as related to a bug. label Apr 26, 2023
@yinyangsx
Copy link

Same error in my cluster,

Kubernetes Dashboard version
v2.7.0
Kubernetes version
v1.25.4

@qmercier
Copy link

Same error in my cluster,

Kubernetes Dashboard version
v2.7.0
Kubernetes version
v1.25.6

@kaykhan
Copy link

kaykhan commented May 15, 2023

Tried rolling back dashboard version, but no luck.

Has anyone found a work around for this problem?

@jnoordsij
Copy link
Contributor

I think #7465 should have fixed this, but no new release has been made yet.

@Shivam0609
Copy link

Hello, can someone confirm when can we expect a new dashboard version with the fix ?

@dannmartens
Copy link

Hello, can someone confirm when can we expect a new dashboard version with the fix ?

Indeed, a patch update with this fix would be greatly appreciated!

@fontexD
Copy link

fontexD commented Jun 19, 2023

also waiting here on it :D

@davidroth
Copy link
Contributor

Yeah same. Last release is 9 months old🥲

@mendy-lp
Copy link

Same here :(

@DiogoMCampos
Copy link

DiogoMCampos commented Jul 4, 2023

Hello, is there something the community can help with here to get it released? 😃

@maciaszczykm
Copy link
Member

You can do some testing for #7969 if you want.

@maciaszczykm maciaszczykm added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jul 6, 2023
@fapinheiro
Copy link

Same error here.

Dashboard v2.7.0
Kubernetes 1.26.6

Any updates on this subject?

@fontexD
Copy link

fontexD commented Aug 28, 2023

there is a guy that got tired of waiting (1 year now i think) with no updates on this so he fixed it himself within 5 min and uploaded his branch of the dashboard, and it works flawlessly :)
here is a working version of k8s dashboard :) i dont know how many years it takes to fix this,, but this guy did it in no time alone xD

i wonder why a hotfix have not been released , the codechange is SO easy

master...beffe123:kubernetes-dashboard:v2.7.0-fixes

image : beffe/kubernetes-dashboard:v2.7.0-fix-cj-2

@furacas
Copy link

furacas commented Aug 28, 2023

I temporarily fell back to version 2.6.1 to avoid this problem

@kaykhan
Copy link

kaykhan commented Aug 28, 2023

Is there an existing PR with these changes, maybe we can up-vote that PR?

@steveannett
Copy link

steveannett commented Aug 28, 2023

The project has been restructured since these changes were originally made, and it seems they have now incorporated the necessary changes in, but not yet released. Both jobs.go and types.go have the modifications.

I assume we would have to wait for version 3.0.0 before the Cron Jobs tab works again

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/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 Jan 27, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/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 Feb 26, 2024
@marekhanus
Copy link

Hi @floreks, please could you release 2.7.1 with fix from #7465? I think that it will solve this issue.

The issue still persists and no 3.x release was made.

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Feb 26, 2024
@jooosh
Copy link

jooosh commented Mar 1, 2024

@marekhanus I was able to get an image built using the patch created by beffe123. The image is posted on docker hub. I make no guarantee that it won't blow up your k8s environment but it's running on ours without issue. 😉

@floreks
Copy link
Member

floreks commented Mar 1, 2024

A new release that will contain the fix should be available next week. There will be lots of other changes too. Ref: #8708

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/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 May 30, 2024
@floreks floreks closed this as completed Jun 5, 2024
@liuqi-sun
Copy link

I have found out the cause of this problem, please refer to #9622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests