Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
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 #10361 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

Bug: Please add a timeout to omero admin operations

Reported by: rleigh Owned by:
Priority: major Milestone: OMERO-4.4.7
Component: Services Version: n.a.
Keywords: n.a. Cc: bpindelski, jamoore, mtbcarroll, sbesson
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: Bugs Fixing

Description

"bin/omero admin start|stop|restart" take much longer than 5 minutes to complete on some systems. This results in the annoying situation where the startup will be cancelled part way through starting up, making it impossible to start/restart the server.

It would be nice if the timeout could be configurable.

It would also be good to know what on earth omero is doing that takes such huge amounts of time to bring up to readiness. Could much of this be deferred or started lazily after initial start?

Change History (5)

comment:1 Changed 11 years ago by jmoore

  • Cc bpindelski jmoore mtbcarroll sbesson added
  • Milestone changed from Unscheduled to OMERO-5
  • Priority changed from minor to major

NB: Roger, try not to create tickets without owners or CC if possible.

  • Why is it impossible to start/restart the server? Have you tried "startasync"? Have you Ctrl-C'd before the shutdown progresses?
  • Can you attach a Blitz-0.log of such a long startup so we can see what's taking so long?

comment:2 Changed 11 years ago by rleigh

startasync certainly does work partially. However, the diagnostics shows Blitz-0/Indexer-0/PixelData-0/Processor-0/Tables-0 as "activation timed out (pid=nnnn, enabled). Appears to work, though I am seeing some exceptions in the logs.

Does the upgrade check get run at start or only for diagnostics? The VM does not have internet access; not something we should be relying on if that's a potential cause of delays. I'll investigate this and extract the logs tomorrow.

comment:3 Changed 11 years ago by jmoore

upgradechecked definitely gets run during startup. The upgradecheck does have a timeout set (10 seconds: https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/common/src/ome/system/UpgradeCheck.java#L38) but it may be misbehaving.

comment:4 Changed 11 years ago by jmoore

  • Milestone changed from OMERO-5 to OMERO-4.5
  • Resolution set to fixed
  • Sprint set to Bugs Fixing
  • Status changed from new to closed

comment:5 Changed 11 years ago by jmoore <josh@…>

  • Remaining Time set to 0

(In [9e79baa120774090e40bbdd26e2b3dac474f5cea/ome.git] on branch develop) Add timeout to waiting bin/omero admin commands (Fix #10361)

All commands which use waitup and waitdown internally now
take a --wait parameter (in seconds).

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.81191 sec.)

We're Hiring!