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 #12233 (closed)

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

Bug: Dangling import process on the CLI

Reported by: bpindelski Owned by:
Priority: critical Milestone: 5.0.2
Component: Services Version: 5.0.1
Keywords: n.a. Cc: jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.

Description

See http://trac.openmicroscopy.org.uk/ome/ticket/12146 for the fixture setup (user, groups etc.). After logging in as export_tester I execute bin/omero import /Users/bpindelski/Desktop/testing/import/png/Matrix.png. Then I try to switch groups with bin/omero sessions group ExportB and receive

Using session e969c6d3-3de8-46f2-902e-95c69727490e (export_tester@localhost:4064). Idle timeout: 10.0 min. Current group: ExportA
Traceback (most recent call last):
  File "bin/omero", line 125, in <module>
    rv = omero.cli.argv()
  File "/usr/local/dev/openmicroscopy/dist/lib/python/omero/cli.py", line 1201, in argv
    cli.invoke(args[1:])
  File "/usr/local/dev/openmicroscopy/dist/lib/python/omero/cli.py", line 749, in invoke
    stop = self.onecmd(line, previous_args)
  File "/usr/local/dev/openmicroscopy/dist/lib/python/omero/cli.py", line 818, in onecmd
    self.execute(line, previous_args)
  File "/usr/local/dev/openmicroscopy/dist/lib/python/omero/cli.py", line 898, in execute
    args.func(args)
  File "/usr/local/dev/openmicroscopy/dist/lib/python/omero/plugins/sessions.py", line 491, in group
    False))
  File "/usr/local/dev/openmicroscopy/dist/lib/python/omero_API_ice.py", line 513, in setSecurityContext
    return _M_omero.api.ServiceFactory._op_setSecurityContext.invoke(self, ((obj, ), _ctx))
omero.SecurityViolation: exception ::omero::SecurityViolation
{
    serverStackTrace = ome.conditions.SecurityViolation: SecurityContext change cancelled:
e969c6d3-3de8-46f2-902e-95c69727490e has active stateful services:

04795c1f-fe1b-47a7-ad56-6608d14a8136-ManagedImportProcessI

	at ome.services.sessions.events.ChangeSecurityContextEvent.throwIfCancelled(ChangeSecurityContextEvent.java:61)
	at ome.services.sessions.SessionManagerImpl.setSecurityContext(SessionManagerImpl.java:1116)
	at ome.services.blitz.impl.ServiceFactoryI.setSecurityContext(ServiceFactoryI.java:245)
	at omero.api._ServiceFactoryTie.setSecurityContext(_ServiceFactoryTie.java:335)
	at omero.api._ServiceFactoryDisp.___setSecurityContext(_ServiceFactoryDisp.java:548)
	at omero.api._ServiceFactoryDisp.__dispatch(_ServiceFactoryDisp.java:1536)
	at IceInternal.Incoming.invoke(Incoming.java:159)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2357)
	at Ice.ConnectionI.dispatch(ConnectionI.java:1208)
	at Ice.ConnectionI.message(ConnectionI.java:1163)
	at IceInternal.ThreadPool.run(ThreadPool.java:302)
	at IceInternal.ThreadPool.access$300(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643)
	at java.lang.Thread.run(Thread.java:745)

    serverExceptionClass = ome.conditions.SecurityViolation
    message = SecurityContext change cancelled:
e969c6d3-3de8-46f2-902e-95c69727490e has active stateful services:

04795c1f-fe1b-47a7-ad56-6608d14a8136-ManagedImportProcessI

}

Change History (4)

comment:1 Changed 10 years ago by jamoore

  • Priority changed from major to critical

Also moving to critical to at least evaluate.

comment:2 Changed 10 years ago by jamoore

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 10 years ago by jmoore <josh@…>

  • Remaining Time set to 0

(In [6459824d4e375c8947b21e8e8fa6ca0c541b305f/ome.git] on branch develop) Close ImportProcessPrx? instances (Fix #12233)

Once upload is completed, the import process instance should
be closed. The HandlePrx which is returned will continue
functioning.

comment:4 Changed 10 years ago by Josh Moore <josh@…>

(In [9cc818cdf0f671950c24a7f24ddf52390dc93107/ome.git] on branch develop) Merge pull request #2413 from joshmoore/rebased/develop/12233-close-importproc

Close ImportProcessPrx? instances (Fix #12233) (rebased onto develop)

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

We're Hiring!