Project

General

Profile

Actions

Bug #8121

open

[CRUNCH] Fail gracefully when arvados repo doesn't exists

Added by Nico César almost 9 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
01/06/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

today we get

==> /etc/service/crunch-dispatch-jobs-0/log/main/current <==
2016-01-06_11:24:44.36262 /var/www/arvados-api/current/lib/crunch_dispatch.rb:34:in `initialize': undefined method `server_path' for nil:NilClass (NoMethodError)
2016-01-06_11:24:44.36266       from ./script/crunch-dispatch.rb:13:in `new'
2016-01-06_11:24:44.36267       from ./script/crunch-dispatch.rb:13:in `<main>'

the relevant part of the code is:

    @arvados_repo_path = Repository.where(name: "arvados").first.server_path

This message is hard to debug.

we should be detecting that there is no arvados repository and include a link in the debug message to read further how to solve this like http://doc.arvados.org/install/create-standard-objects.html

this should also be the common practice for future versions of crunch

Actions #1

Updated by Brett Smith almost 9 years ago

  • Target version set to Arvados Future Sprints
Actions #2

Updated by Ward Vandewege over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions

Also available in: Atom PDF