[ome-users] Bad session key
Paul van Schayck
paul at vanschayck.nl
Wed Apr 8 09:15:46 BST 2015
Dear developers,
We are running local scripts in an OMERO.py environment on an OMERO
server running on localhost using `OMERO.py/bin/omero script run
path/to/script.py`. From this script we are starting the importer
using `cli.invoke()`. For this to work we have copied jars
`OMERO.server/lib/client` to the `OMERO.py/lib/client`. To prevent
users from double login we are passing the session key to
`cli.invoke()` using the `-k` argument.
So far so good, and this has worked for OMERO 5.0. With OMERO 5.1 we
have run into an issue. We suspect this has to do with the new logic
regarding checking whether an import to a specific group/dataset is
allowed. But the exact cause we have not pin pointed.
The error we get during the script is "Bad session key". We can
replicate this by running the import command separately. See below.
What especially got our attention is the "conflicts:
omero.group:dev!=None;" notice.
By explicitly specifying the group "-g dev" during import this is
fixed. But we don't think this is intended. Nor do we think that the
"Bad session key" error is intended.
Thanks,
Paul van Schayck
$ rm -r ~/omero/
$ OMERO.py/bin/omero login -g dev
Server: [localhost:4064]
Username: [PVC]paul
Password:
Created session c5164797-2ae3-4367-8d73-0c51440e2a71
(paul at localhost:4064). Idle timeout: 600.0 min. Current group: dev
$ OMERO.py/bin/omero --debug=DEBUG import -k
c5164797-2ae3-4367-8d73-0c51440e2a71 -d3611 /path/to/import
Server: [localhost:4064]
Skipping c5164797-2ae3-4367-8d73-0c51440e2a71 due to conflicts:
omero.group:dev!=None;
Bad session key
$ OMERO.py/bin/omero sessions file
/home/PVC/omero/sessions/localhost/paul/c5164797-2ae3-4367-8d73-0c51440e2a71
$ cat /home/PVC/omero/sessions/localhost/paul/c5164797-2ae3-4367-8d73-0c51440e2a71
omero.sess=c5164797-2ae3-4367-8d73-0c51440e2a71
omero.group=dev
omero.user=paul
omero.host=localhost
omero.port=4064
$ OMERO.py/bin/omero sessions list
Server | User | Group | Session
| Active | Started
----------------+------+-------+--------------------------------------+-----------+--------------------------
localhost:4064 | paul | dev | c5164797-2ae3-4367-8d73-0c51440e2a71
| Logged in | Wed Apr 8 10:07:32 2015
(1 row)
More information about the ome-users
mailing list