Skip to content

Problem with filepath option when requesting file download #109

@icot

Description

@icot
[DEBUG 05/Oct/2018:13:51:37 +0000 connectionpool:205] Starting new HTTP connection (1): localhost:3000
[DEBUG 05/Oct/2018:13:51:37 +0000 connectionpool:393] http://localhost:3000 "GET /instance?name=eq.influxd2 HTTP/1.1" 200 None
[INFO 05/Oct/2018:13:51:37 +0000 web:2162] 200 GET /api/v1/instance/influxd2 (128.141.193.138) 10.78ms
[DEBUG 05/Oct/2018:13:51:40 +0000 rundeck:125] Found 'jobid' for serve-file = <job-id>
[DEBUG 05/Oct/2018:13:51:40 +0000 rundeck:130] async_request: False
[DEBUG 05/Oct/2018:13:51:40 +0000 rundeck:139] Default timeout: 30
[DEBUG 05/Oct/2018:13:51:40 +0000 rundeck:204] Sending request: https://rundeck.host.ch/api/14/job/<job-id>/
run?format=json with headers: {'Authorization': 'Basic XXXXXXXXXXXXXXXXXXX'} and data: {'filter': u'name: influxd2'}
[DEBUG 05/Oct/2018:13:51:40 +0000 connectionpool:823] Starting new HTTPS connection (1): rundeck.host.cern.ch:443
/home/icoteril/dbod-api/venv/lib/python2.7/site-packages/urllib3-1.23-py2.7.egg/urllib3/connectionpool.py:857: InsecureRequestWarning: Unveri
fied HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced
-usage.html#ssl-warnings
  InsecureRequestWarning)
[DEBUG 05/Oct/2018:13:51:41 +0000 connectionpool:393] https://dbod-rundeck.cern.ch:443 "POST /api/14/job/<job-id>
=json HTTP/1.1" 400 None
[ERROR 05/Oct/2018:13:51:41 +0000 rundeck:190] Error running the job: {"error":true,"apiversion":24,"errorCode":"api.error.job.options-invali
d","message":"Job options were not valid: Option 'filepath' is required."}
[WARNING 05/Oct/2018:13:51:41 +0000 web:2162] 400 POST /api/v1/rundeck/job/serve-file/influxd2 (128.141.193.138) 222.86ms
[DEBUG 05/Oct/2018:13:51:47 +0000 connectionpool:205] Starting new HTTP connection (1): localhost:3000
[DEBUG 05/Oct/2018:13:51:47 +0000 connectionpool:393] http://localhost:3000 "GET /instance?name=eq.influxd2 HTTP/1.1" 200 None
[INFO 05/Oct/2018:13:51:47 +0000 web:2162] 200 GET /api/v1/instance/influxd2 (128.141.193.138) 10.38ms
[DEBUG 05/Oct/2018:13:51:57 +0000 connectionpool:205] Starting new HTTP connection (1): localhost:3000
[DEBUG 05/Oct/2018:13:51:57 +0000 connectionpool:393] http://localhost:3000 "GET /instance?name=eq.influxd2 HTTP/1.1" 200 None
[INFO 05/Oct/2018:13:51:57 +0000 web:2162] 200 GET /api/v1/instance/influxd2 (128.141.193.138) 9.76ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions