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

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

BUG: OMERO Windows server, admin script serve fails

Reported by: sylittlewood Owned by: jamoore
Priority: minor Milestone: OMERO-4.4
Component: Scripting Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.


When attempting to enable a script processor on a Windows Omero Server the following error is reported on the command line:

C:\omero_dist> bin/omero script serve
Using session 4db878c6-2d2e-403d-b99a-b7f3fe262481 (root@localhost:4064). Idle timeout: 10.0 min. Current group: system
2012-04-13 11:08:58,101 INFO  [                    omero.util.Resources] (Thread-3  ) Starting
2012-04-13 11:08:58,101 INFO  [              omero.processor.ProcessorI] (MainThread) Registering processor cc613155-7b7
b-4462-8f72-bde17353f381 -t:tcp -h -p 49452
Traceback (most recent call last):
  File "C:\omero_dist\bin\\omero", line 123, in <module>
    rv = omero.cli.argv()
  File "c:\omero_dist\lib\python\omero\", line 1172, in argv
  File "c:\omero_dist\lib\python\omero\", line 722, in invoke
    stop = self.onecmd(line, previous_args)
  File "c:\omero_dist\lib\python\omero\", line 791, in onecmd
    self.execute(line, previous_args)
  File "c:\omero_dist\lib\python\omero\", line 871, in execute
  File "C:\omero_dist\lib\python\omero\plugins\", line 506, in serve
    signal.signal(signal.SIGTERM, old)
UnboundLocalError: local variable 'old' referenced before assignment

This seems to start the processor now and 'some' scripts will now load but some wont

Change History (4)

comment:1 Changed 8 years ago by jmoore

  • Milestone changed from Unscheduled to OMERO-Beta4.4.1
  • Remaining Time set to 0.25

comment:2 Changed 8 years ago by jmoore

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

comment:3 Changed 8 years ago by jmoore

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

Fixed and pushed to my sprint12-server branch.

comment:4 Changed 8 years ago by jmoore <josh@…>

(In [1804cabf5d98c6ac4a9b454cbafc62a6cdb3a5cd/ome.git] on branch develop) Separate win and nix handling of script serve (Fix #8554)

signal.SIGALRM is not available under Windows. Since there's
no standard way to timeout the invocation of raw_input under Win32,
I've simply disabled it. Using msvcrt or similar, we may be able
to add this functionality later (though this clearly never worked
except on posix systems)

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

We're Hiring!