somebox / jira-tracker-for-trello

A way to keep Trello boards updated with JIRA ticket information (comments, details, attachments)
56 stars 3 forks source link

After run ./bin/trello-jira-bot - nothing #6

Closed dimti closed 7 years ago

dimti commented 9 years ago

Hello

I set up all accounts and add comment to trello card

After run ./bin/trello-jira-bot - nothing

How to analyze that?

dimti commented 9 years ago
# Logfile created on 2015-08-30 21:22:44 +0300 by logger.rb/31641
D, [2015-08-30T21:22:44.684248 #3742] DEBUG -- : Configuration loaded.
I, [2015-08-30T21:22:44.684351 #3742]  INFO -- : Scanning Trello cards as @jirabot5
somebox commented 9 years ago

Is it possible that there were no cards to process? the @jirabot5 here must be members of some boards, and assigned to some cards. Then it will look for issues to track.

If that was done and still no luck, you might try using binding.pry to check the API responses and make sure nothing has gone wrong there.

dimti commented 9 years ago

I solve problem with number 1. After add jirabot5 as member to the trello card - trellobot connected to the trello, but

Problem: log:

D, [2015-09-21T15:28:26.899645 #22216] DEBUG -- : Configuration loaded.
I, [2015-09-21T15:28:26.899820 #22216]  INFO -- : Scanning Trello cards as @jirabot5
I, [2015-09-21T15:28:30.079007 #22216]  INFO -- :  * Scanning Trello #3 (MEBLOG)

Stack trace:

root@dimti:/opt/jira-tracker-for-trello# ./bin/trello-jira-bot /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/abstract_response.rb:48:in return!': 403 Forbidden (RestClient::Forbidden) from /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/request.rb:495:inprocess_result' from /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/request.rb:421:in block in transmit' from /usr/lib/ruby/1.9.1/net/http.rb:746:instart' from /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/request.rb:413:in transmit' from /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/request.rb:176:inexecute' from /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/request.rb:41:in execute' from /var/lib/gems/1.9.1/gems/rest-client-1.7.3/lib/restclient/resource.rb:51:inget' from /opt/jira-tracker-for-trello/lib/jira/client.rb:15:in get' from /opt/jira-tracker-for-trello/lib/jira/ticket.rb:72:inexists?' from /opt/jira-tracker-for-trello/lib/bot/tracked_card.rb:138:in jira_ticket_exists?' from /opt/jira-tracker-for-trello/lib/bot/tracked_card.rb:123:intrack_jira' from /opt/jira-tracker-for-trello/lib/bot/tracked_card.rb:146:in block in update_tracking_status' from /opt/jira-tracker-for-trello/lib/bot/tracked_card.rb:143:ineach' from /opt/jira-tracker-for-trello/lib/bot/tracked_card.rb:143:in update_tracking_status' from /opt/jira-tracker-for-trello/lib/bot/trello.rb:40:inblock in update' from /opt/jira-tracker-for-trello/lib/bot/trello.rb:37:in each' from /opt/jira-tracker-for-trello/lib/bot/trello.rb:37:inupdate' from ./bin/trello-jira-bot:29:in `

' root@dimti:/opt/jira-tracker-for-trello# cat log/bot.log |less root@dimti:/opt/jira-tracker-for-trello#

dimti commented 9 years ago

_2015-09-21_15-32-49

dimti commented 9 years ago

May be wrong auth data for jira rest api?

somebox commented 7 years ago

JIRA REST API permissions error is my guess. I'll close this since it's over a year old. But re-open if you wish.