Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

API 404 Error on New Installation

31 views
Skip to first unread message

Russ Robinson

unread,
Feb 19, 2025, 8:47:03 AMFeb 19
to rundeck-discuss
For a new installation of Rundeck 5.8.0 on OL9, the only part I have left to get working is communicating via api.  I have Rundeck client variables set:

RD_TOKEN=xyz123jsaddhji1234
RD_URL=http://localhost:4040
RD_BYPASS_URL=https://myrundeck.server.com/alternate
RD_DEBUG=3
RD_AUTH_PROMPT=false
RD_FORMAT=json

The output shows:

[rundeck@myserver rundeck]$ rd projects list
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: --> GET http://localhost:4040/api/29/projects http/1.1
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Accept: application/json
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: X-Rundeck-Auth-Token: xyz123jsaddhji1234
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: User-Agent: rd-cli-tool/2.0.8 (rundeck-cli/2.0.8)
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Host: localhost:4040
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Connection: Keep-Alive
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Accept-Encoding: gzip
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: --> END GET
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: <-- 404 Not Found http://localhost:4040/api/29/projects (4ms)
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Cache-Control: must-revalidate,no-cache,no-store
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Content-Type: application/json
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: Content-Length: 67
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO:
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: {
"message":"Not Found",
"url":"/api/29/projects",
"status":"404"
}
Feb 19, 2025 1:45:47 PM okhttp3.internal.platform.Platform log
INFO: <-- END HTTP (67-byte body)

Any suggestions on what I may be overlooking?

Russ Robinson

unread,
Feb 19, 2025, 8:49:58 AMFeb 19
to rundeck-discuss
Within rundeck-config.properties file, I do have the following set:

Russ Robinson

unread,
Feb 19, 2025, 11:21:37 AMFeb 19
to rundeck-discuss
I fixed the problem by changing:


to:

RD_URL=http://localhost:4040/alternate
Reply all
Reply to author
Forward
0 new messages