[ome-users] Bad session key
Sebastien Besson (Staff)
s.besson at dundee.ac.uk
Tue Apr 21 21:51:25 BST 2015
Hi Frans,
thanks for the precision. I did some testing of the script/CLI interaction using a minimal
script (https://github.com/sbesson/omero-user-scripts/blob/master/cli_scripts/test.py)
against the latest version of the server on the 5.1.x development line.
Below are the output of the `script run` command:
- with -g GROUP included as part of the command arguments
$ bin/omero script run /opt/ome/omero-user-scripts/cli_scripts/test.py
Using session 6391bba5-6efd-481a-8035-ce8ef3bf371d (root at localhost:4064). Idle timeout: 10.0 min. Current group: system
Ignoring group since session key set
Joined session 6391bba5-6efd-481a-8035-ce8ef3bf371d (root at localhost:4064). Idle timeout: 10.0 min. Current group: system
- without -g GROUP included in the command arguments
$ bin/omero script run /opt/ome/omero-user-scripts/cli_scripts/test.py
Using session 6391bba5-6efd-481a-8035-ce8ef3bf371d (root at localhost:4064). Idle timeout: 10.0 min. Current group: system
Joined session 6391bba5-6efd-481a-8035-ce8ef3bf371d (root at localhost:4064). Idle timeout: 10.0 min. Current group: system
As discussed on this thread, I would expect the upcoming 5.1.1 OMERO.server will
drop the unnecessary requirement to specify a group argument while using the CLI with
a session key.
When you update the version of the OMERO.py client, this should be indicated by the
warning message pasted above (“Ignoring group since session key set”)
As always, let us know if you encounter new issues when the new release is out.
Best regards,
Sebastien
On 18 Apr 2015, at 20:35, Frans Boogaard <fransboogaard at gmail.com<mailto:fransboogaard at gmail.com>> wrote:
Hi Sebastien,
I am replying to this thread because I am taking over Pauls work on our OMERO system.
We are running our scripts using something like 'OMERO.server/bin/omero script run lib/scripts/script.py ScriptParameters', in this case from the command line.
The python script is not available online, but the following code is used to import the data:
# Import directories to Omero
if os.listdir(tmpDirSuccess):
common.importDirectory(Conn, os.path.join(tmpDirSuccess), os.path.join(tmpDirSuccess), datasetIdSuccess)
Where common.py contains the code mentioned by Paul before, which we now changed to explicitly .
Kind regards,
Frans
_______________________________________________
ome-users mailing list
ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20150421/8eb568b4/attachment.html>
More information about the ome-users
mailing list