"python dashboard/manage.py jenkins start" is broken

Bug #1049537 reported by Paul Sokolovsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linaro-ci-dashboard
Fix Released
Critical
Paul Sokolovsky

Bug Description

Trying to re-initialize development, I get:

$ python dashboard/manage.py jenkins start
Error processing the command

There're 2 problems with this:

1. Cryptic error message.
2. Broken underlying assumptions which lead to error.

Because of this error, it's not possible to continue development, so it's critical.

Related branches

Changed in linaro-ci-dashboard:
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → Paul Sokolovsky (pfalcon)
milestone: none → 2012.09
Revision history for this message
Deepti B. Kalakeri (deeptik) wrote :

The error is seen because

1) the code does not download the jenkins stuff if it exists, and next would fail when the mismatch in the length occurs. You can add checks for an existing jenkins.war to make sure we have something new available and remove if it true and download the latest, like that the command wont fail

2) OR if the jenkins URL used to download the war file is not reachable.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

This second or third time I see this error, I had a look at it ~2-3 weeks ago, and that time it was faulty check in the code - it downloads always the latest version of jenkins.war, but checks against size of currently installed version, so after some time, you're bound to get this error.

I'm not sure it's the same right now (well, error doesn't give enough details), there obviously can be other errors (network access for example), so both issues (error reporting and short-sighted checks) should be fixed.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

My plan to fix this is: 1) get error messages right; 2) whenever possible, switch to use fixed version of jenkins.war (probably, as defined in config). The latter will require manual updates, but we will be sure that we're protected from other similar issues, like latest war broken/has incompatible changes, and will let all us to be sure we're on the same line with Jenkins version.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Fix committed, essentially only error reporting (and aspects of file downloading) was changed, I left latest .war usage as is, changing that requires more consideration and somebody else explicitly agree it's the way to go ;-).

Changed in linaro-ci-dashboard:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.