Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Inspect API upload to Heimdall #154

Open
JoshuaSeidel opened this issue Oct 8, 2020 · 0 comments
Open

Inspect API upload to Heimdall #154

JoshuaSeidel opened this issue Oct 8, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JoshuaSeidel
Copy link

I have an issue when trying to send a json export from inspec to Heimdall via the api. This is all I can see from the logs.

I, [2020-10-08T15:59:32.682947 #1] INFO -- : [b8d86c7d-d612-44cb-a00f-69374371a798] Started POST "/evaluation_upload_api" for 10.242.0.71 at 2020-10-08 15:59:32 +0000
I, [2020-10-08T15:59:32.683506 #1] INFO -- : [b8d86c7d-d612-44cb-a00f-69374371a798] Processing by EvaluationsController#upload_api as /
I, [2020-10-08T15:59:32.683558 #1] INFO -- : [b8d86c7d-d612-44cb-a00f-69374371a798] Parameters: {"file"=>"/home/rundeck/server/data/Compliance-Toolset/Inspec-Dev/262/output.json", "email"=>"[email protected]", "api_key"=>"qkyozhhGi0wRDcbkNBHpsA"}
D, [2020-10-08T15:59:32.687903 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] Circle Load (1.6ms) SELECT "circles".* FROM "circles" WHERE "circles"."name" = $1 ORDER BY "circles"."id" ASC LIMIT $2 [["name", "Public"], ["LIMIT", 1]]
D, [2020-10-08T15:59:32.690645 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] User Load (1.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 AND "users"."api_key" = $2 ORDER BY "users"."id" ASC LIMIT $3 [["email", "[email protected]"], ["api_key", "qkyozhhGi0wRDcbkNBHpsA"], ["LIMIT", 1]]
D, [2020-10-08T15:59:32.692675 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] (1.5ms) BEGIN
D, [2020-10-08T15:59:32.695245 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] DbUser Update (1.7ms) UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "last_sign_in_ip" = $3, "sign_in_count" = $4, "updated_at" = $5 WHERE "users"."id" = $6 [["current_sign_in_at", "2020-10-08 15:59:32.691047"], ["last_sign_in_at", "2020-10-08 15:55:32.371651"], ["last_sign_in_ip", "10.242.0.71/32"], ["sign_in_count", 4], ["updated_at", "2020-10-08 15:59:32.692971"], ["id", 1]]
D, [2020-10-08T15:59:32.712033 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] (3.1ms) COMMIT
D, [2020-10-08T15:59:32.713888 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] User Load (1.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
D, [2020-10-08T15:59:32.716625 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] Role Load (1.8ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 1]]
D, [2020-10-08T15:59:32.717149 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] CACHE Role Load (0.0ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 1]]
D, [2020-10-08T15:59:32.717511 #1] DEBUG -- : [b8d86c7d-d612-44cb-a00f-69374371a798] CACHE Role Load (0.0ms) SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 1]]
I, [2020-10-08T15:59:32.717770 #1] INFO -- : [b8d86c7d-d612-44cb-a00f-69374371a798] Completed 500 Internal Server Error in 34ms (ActiveRecord: 13.1ms)
F, [2020-10-08T15:59:32.718086 #1] FATAL -- : [b8d86c7d-d612-44cb-a00f-69374371a798]
F, [2020-10-08T15:59:32.718115 #1] FATAL -- : [b8d86c7d-d612-44cb-a00f-69374371a798] NoMethodError (undefined method read' for #<String:0x000055d084e84a68>): F, [2020-10-08T15:59:32.718133 #1] FATAL -- : [b8d86c7d-d612-44cb-a00f-69374371a798] F, [2020-10-08T15:59:32.718150 #1] FATAL -- : [b8d86c7d-d612-44cb-a00f-69374371a798] app/controllers/evaluations_controller.rb:194:in upload_api'
I, [2020-10-08T15:59:33.640548 #1] INFO -- : [df007e00-1c42-4aab-af7b-bf75150643bb] Started GET "/" for 10.242.0.71 at 2020-10-08 15:59:33 +0000

@aaronlippold aaronlippold added the bug Something isn't working label Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants