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

Opened 14 years ago

Closed 14 years ago

BUG: User Processor Ice-Connection refused

Reported by: wmoore Owned by: jamoore
Priority: blocker Milestone: OMERO-Beta4.2
Component: Scripting Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-05-13 (9)

Description (last modified by wmoore)

Restarted server, having deleted var (new logs)

Then - movie machine - started user processor as root....

mac-2:OMERO.server-Beta-4.2.0-DEV-r6922-b3202 movie$ bin/omero -s 10.12.1.238 -u root script serve user
Password:
Created session 6854294a-cbfb-4e16-a432-88e32ba623ab. Idle timeout: 10.0 min.
2010-05-10 16:56:15,328 INFO  [                    omero.util.Resources] (Thread-2  ) Starting
2010-05-10 16:56:15,328 INFO  [              omero.processor.ProcessorI] (MainThread) Registering processor 57A9143C-1F0B-4B15-B875-175C28F2AE98 -t:tcp -h 10.12.2.215 -p 65340:tcp -h 192.168.16.1 -p 65340:tcp -h 192.168.122.1 -p 65340
Press any key to exit...
2010-05-10 16:57:10,030 INFO  [                            omero.remote] (Dummy-3   )  Meth: ProcessorI.willAccept
2010-05-10 16:57:10,701 INFO  [                            omero.remote] (Dummy-3   )  Rslt: None
2010-05-10 16:57:11,866 INFO  [                            omero.remote] (Dummy-4   )  Meth: ProcessorI.processJob
2010-05-10 16:57:11,866 INFO  [              omero.processor.ProcessorI] (Dummy-4   ) processJob: Session = b70ff671-858b-41dd-9901-c826a351df98, JobId = 551
2010-05-10 16:57:11,871 INFO  [                            omero.remote] (Dummy-4   )  Excp: Ice.ConnectionRefusedException:
Connection refused
2010-05-10 16:57:11,871 WARNI [                            omero.remote] (Dummy-4   ) <function processJob at 0x1d770f0> raised a non-ServerError (<class 'Ice.ConnectionRefusedException'>): Ice.ConnectionRefusedException:
Connection refused

In another terminal, tried to run script

mac-2:OMERO.server-Beta-4.2.0-DEV-r6922-b3202 movie$ bin/omero -s 10.12.1.238 -u root script launch file=503 Dataset_ID=1
Reconnected to session 6854294a-cbfb-4e16-a432-88e32ba623ab. Idle timeout: 10.0 min.
exception ::omero::InternalException
{
    serverStackTrace = Traceback (most recent call last):
  File "/Users/movie/Desktop/OMERO.server-Beta-4.2.0-DEV-r6922-b3202/lib/python/omero/util/decorators.py", line 61, in exc_handler
    rv = func(*args, **kwargs)
  File "/Users/movie/Desktop/OMERO.server-Beta-4.2.0-DEV-r6922-b3202/lib/python/omero/processor.py", line 773, in processJob
    client.joinSession(session).detachOnDestroy()
  File "/Users/movie/Desktop/OMERO.server-Beta-4.2.0-DEV-r6922-b3202/lib/python/omero/clients.py", line 386, in joinSession
    return self.createSession(session, session)
  File "/Users/movie/Desktop/OMERO.server-Beta-4.2.0-DEV-r6922-b3202/lib/python/omero/clients.py", line 440, in createSession
    prx = self.getRouter(self.__ic).createSession(username, password, ctx)
  File "/Users/movie/Desktop/Ice-3.3.1/python/Glacier2_Router_ice.py", line 107, in createSession
    return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
ConnectionRefusedException: Ice.ConnectionRefusedException:
Connection refused

    serverExceptionClass = 
    message = Internal exception
}
mac-2:OMERO.server-Beta-4.2.0-DEV-r6922-b3202 movie$

The script itself is http://trac.openmicroscopy.org.uk/omero/browser/trunk/examples/ScriptingService/Edit_Descriptions.py

Change History (6)

comment:1 Changed 14 years ago by wmoore

  • Description modified (diff)

comment:2 Changed 14 years ago by wmoore

  • Component changed from General to Scripting
  • Owner set to jmoore
  • Priority changed from minor to blocker

Hi Josh. I just tried this again.

It works fine if I am using localhost and the /dist/ on my laptop to connect to the same server. But it doesn't work (get the bug) if I connect from another machine to the server on my laptop. I even tried copying my /dist/ from my laptop to the other machine, so it's using exactly the same code to connect.

comment:3 Changed 14 years ago by jmoore

comment:4 Changed 14 years ago by jmoore

  • Status changed from new to assigned

comment:5 Changed 14 years ago by jmoore

(In [6975]) see #2354 - Fixing demo script for testing

comment:6 Changed 14 years ago by jmoore

  • Remaining Time set to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6976]) fix #2354 - Adding router to processJob as well as parseJob

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

We're Hiring!