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

API execution query with non-existent project returns 500 error #6497

Closed
PeterGarlic opened this issue Jun 10, 2020 · 0 comments · Fixed by #6498
Closed

API execution query with non-existent project returns 500 error #6497

PeterGarlic opened this issue Jun 10, 2020 · 0 comments · Fixed by #6498
Milestone

Comments

@PeterGarlic
Copy link

this rd query :

time rd executions query --autopage --noninteractive --project MyProjectName

Create:

  • Mysqld high cpu usage on rundeck 2.11.5/3.2.8 with many old executions (~30K)

  • If project name is wrong generate a java exception on rundeck 3.2.8
    (on 2.11.5 return "Request failed: 500 Server Error")

 Exception in thread "main" java.lang.NullPointerException
	at org.rundeck.client.util.ServiceClient.hasAnyMediaType(ServiceClient.java:26)
	at org.rundeck.client.util.Client.readError(Client.java:436)
	at org.rundeck.client.util.Client.readError(Client.java:422)
	at org.rundeck.client.util.Client.checkErrorDowngradable(Client.java:278)
	at org.rundeck.client.util.Client.checkErrorDowngradable(Client.java:139)
	at org.rundeck.client.util.Client.apiCallDowngradable(Client.java:578)
	at org.rundeck.client.tool.commands.AppCommand.apiCallDowngradable(AppCommand.java:103)
	at org.rundeck.client.tool.commands.AppCommand.apiCall(AppCommand.java:74)
	at org.rundeck.client.tool.commands.Executions.query(Executions.java:331)
	at org.rundeck.client.tool.commands.Executions.query(Executions.java:307)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.rundeck.toolbelt.ToolBelt$MethodInvoker.run(ToolBelt.java:1030)
	at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:619)
	at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:471)
	at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:619)
	at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:471)
	at org.rundeck.toolbelt.ToolBelt$CommandSet.runMain(ToolBelt.java:428)
	at org.rundeck.client.tool.Main.main(Main.java:71)
@gschueler gschueler transferred this issue from rundeck/rundeck-cli Sep 26, 2020
@gschueler gschueler changed the title high mysql cpu usage on rd executions query API execution query with non-existent project returns 500 error Sep 26, 2020
@gschueler gschueler added this to the 3.3.5 milestone Sep 29, 2020
gschueler added a commit that referenced this issue Oct 8, 2020
Fix #6497 500 error on exec query api for missing project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants