Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #6980 (new)

Opened 8 years ago

Last modified 4 years ago

Bug: Check for existance of icegridnode etc on startup

Reported by: jamoore Owned by:
Priority: major Milestone: Unscheduled
Component: Deployment Version: n.a.
Keywords: n.a. Cc: bpindelski
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.25d
Sprint: n.a.

Description

Traceback (most recent call last):
  File "bin/omero", line 123, in <module>
    rv = omero.cli.argv()
  File "/Users/altomelto/Desktop/omero/lib/python/omero/cli.py", line 1172, in argv
    cli.invoke(args[1:])
  File "/Users/altomelto/Desktop/omero/lib/python/omero/cli.py", line 722, in invoke
    stop = self.onecmd(line, previous_args)
  File "/Users/altomelto/Desktop/omero/lib/python/omero/cli.py", line 791, in onecmd
    self.execute(line, previous_args)
  File "/Users/altomelto/Desktop/omero/lib/python/omero/cli.py", line 871, in execute
    args.func(args)
  File "/Users/altomelto/Desktop/omero/lib/python/omero/plugins/prefs.py", line 67, in open_and_close_config
    return func(*args, **kwargs)
  File "/Users/altomelto/Desktop/omero/lib/python/omero/plugins/admin.py", line 416, in start
    self.startasync(args, config)
  File "/Users/altomelto/Desktop/omero/lib/python/omero/plugins/prefs.py", line 67, in open_and_close_config
    return func(*args, **kwargs)
  File "/Users/altomelto/Desktop/omero/lib/python/omero/plugins/admin.py", line 359, in startasync
    self.check_ice()
  File "/Users/altomelto/Desktop/omero/lib/python/omero/plugins/admin.py", line 860, in check_ice
    popen = self.ctx.popen(["icegridnode", "--version"])
  File "/Users/altomelto/Desktop/omero/lib/python/omero/cli.py", line 958, in popen
    return subprocess.Popen(args, env = env, cwd = self._cwd(cwd), stdout = stdout, stderr = stderr)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

See #6700

Change History (6)

comment:1 Changed 7 years ago by jmoore

  • Priority changed from minor to major
  • Summary changed from Check for existance of icegridnode etc on startup to Bug: Check for existance of icegridnode etc on startup

Should be straight-forward. If any other changes go into bin/omero admin in 4.4.- this should be considered.

comment:2 Changed 7 years ago by jmoore

  • Milestone changed from OMERO-Beta4.4 to OMERO-Beta4.4.x

comment:3 Changed 7 years ago by jmoore

  • Cc bpindelski added
  • Owner jmoore deleted

Blazej: if you are still modifying admin.py, would you be willing to look at this along with other error handling strategies?

comment:4 Changed 7 years ago by bpindelski

Josh: I will have a look. What would be the expected bin\omero admin ... behavior in the case of a missing icegridadmin? Should it go along the lines of stopping execution and reporting to the user? Similar to a situation when the command prompt is not started as Administrator?

comment:5 Changed 7 years ago by jmoore

bin/omero admin ice should be the only command that requires icegridadmin if it's not present then execution must self.ctx.die(). Similarly, all the start* and deploy command require icegridnode. Perhaps we need a single helper for looking up executables, and if they're not present, then fail with an error message?

comment:6 Changed 4 years ago by jamoore

  • Milestone changed from 5.x to Unscheduled
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.104225 sec.)

We're Hiring!