trackit / trackit2-home

TrackIt helps you to optimize your AWS cloud
https://trackit.io/
Apache License 2.0
48 stars 8 forks source link

Unable to add new AWS account #58

Closed MukeshSingh28 closed 6 years ago

MukeshSingh28 commented 6 years ago

Hi, Just did a fresh installation reached on account configuration page. after step 3 of adding S3 bucket path as soon as I enter done, without any notification popup bar disappears and account does not get added . Even though the s3 bucket format is validated in input box, it does not add the bucket info. Does the AWS billing file should be unzip ? Any help will be much appreciated.

zanchi-r commented 6 years ago

Hi @MukeshSingh28, Do you see the account in the list if you reload the page? Can you do a "docker-compose logs api" and post the output here?

Thanks

MukeshSingh28 commented 6 years ago

Hi @zanchi-r ,

Thank you getting back quickly. below is the log output

{"level":"info","time":"2018-01-22T22:12:35.725673603Z","message":"Produced response to request.","data":{"status":200,"nanoseconds":80103},"context":{"requestId":"59ba825d-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:35.757031299Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"POST","url":"/aws","address":"xx.xx.xx.xx:53837","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:12:35.757027672Z"},"context":{"requestId":"59bf4e59-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.59934947Z","message":"Produced response to request.","data":{"status":400,"nanoseconds":842319056},"context":{"requestId":"59bf4e59-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.655650466Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"OPTIONS","url":"/aws/next","address":"xx.xx.xx.xx:53837","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:12:36.655648513Z"},"context":{"requestId":"5a486ce7-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.655698461Z","message":"Produced response to request.","data":{"status":200,"nanoseconds":48363},"context":{"requestId":"5a486ce7-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.657671952Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"GET","url":"/aws","address":"xx.xx.xx.xx:25361","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:12:36.657670336Z"},"context":{"requestId":"5a48bbf5-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.658781704Z","message":"Produced response to request.","data":{"status":200,"nanoseconds":1109484},"context":{"requestId":"5a48bbf5-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.703791894Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"GET","url":"/aws/next","address":"xx.xx.xx.xx:25361","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:12:36.70379013Z"},"context":{"requestId":"5a4fc57f-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:12:36.704458853Z","message":"Produced response to request.","data":{"status":200,"nanoseconds":666188},"context":{"requestId":"5a4fc57f-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:14:11.828960188Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"OPTIONS","url":"/aws/billrepository?aa=undefined","address":"xx.xx.xx.xx:25361","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:14:11.828958269Z"},"context":{"requestId":"9302b83b-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:14:11.8290108Z","message":"Produced response to request.","data":{"status":200,"nanoseconds":51142},"context":{"requestId":"9302b83b-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:14:11.86430308Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"POST","url":"/aws/billrepository?aa=undefined","address":"xx.xx.xx.xx:25361","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:14:11.864299253Z"},"context":{"requestId":"93081ca4-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:14:11.864997332Z","message":"Produced response to request.","data":{"status":400,"nanoseconds":695674},"context":{"requestId":"93081ca4-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:14:11.900879203Z","message":"Received request.","data":{"protocol":"HTTP/1.1","method":"GET","url":"/aws/billrepository?aa=undefined","address":"xx.xx.xx.xx:25361","host":"trackit.awsbilling:8080","userAgent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"],"time":"2018-01-22T22:14:11.900877726Z"},"context":{"requestId":"930db116-ffc1-11e7-a062-02420a135405"}}
{"level":"info","time":"2018-01-22T22:14:11.901320175Z","message":"Produced response to request.","data":{"status":400,"nanoseconds":440985},"context":{"requestId":"930db116-ffc1-11e7-a062-02420a135405"}}

Also what format will trackit accept billing file , in csv or zip ?

zanchi-r commented 6 years ago

Thanks @MukeshSingh28 ! It seems both the aws account creation and bill repository creation failed. Since the requests are returning a 400 it is probably an issue related to the values you entered during the configuration, however I am not able to know which one using these logs.

Could you post the values you enter in the "Add AWS account" and "Add bill repository" forms so that I can try to identify a formatting issue? You can replace all the characters by 'x' to avoid posting sensible informations.

Concerning the billing file, we use the hourly cost and usage report in the CSV gzipped format, which is the latest billing system released by AWS

lfrancois commented 6 years ago

@zanchi-r & @MukeshSingh28: maybe we should do a quick webex to better understand the issue. @MukeshSingh28, do you have 30 minutes in the next few days for that? You can share your information at ludo@trackit.io

mjgorman commented 6 years ago

I have run into the same issue.

lfrancois commented 6 years ago

Thanks @mjgorman for the feedback! We are running more test on our side and adding more debug code to make this troubleshooting a bit easier.

lfrancois commented 6 years ago

This issue has now been fixed.