We're Hiring!

Database-guest account

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: Database-guest account

Postby jmoore » Mon Dec 12, 2011 2:07 pm

Just
Code: Select all
update groupexperimentermap set child_index = 5 where id = 406;
update groupexperimentermap set child_index = 7 where id = 407;


should be enough. Hope that helps.
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Database-guest account

Postby Manz » Mon Dec 12, 2011 2:14 pm

Awesome!!! ok so I've stopped getting the error Server Error. (500) but I am still getting the "Error: Server is not responding, please contact administrator." when I attempt to log into webadmin. I can still get around this using

http://omero.rcs.griffith.edu.au/webadm ... rimenters/

So I'm assuming this means groupexperimentermap is all good but I need to fix experimentergroup? (from the trying to change guest password earlier)?

My experimentergroup looks like

0 "" -103 "system" 0
1 "" -35 "user" 0
2 "" -103 "guest" 0
3 "" -103 "Test group_private" 0
4 "Private" -103 "Adrians Projects_private" 0
5 "public" -7 "Adrians Projects_public" 0
53 "" -7 "Test group_public" 0
103 "" -7 "not used" 0
153 "" -103 "Amandas Test Group_private" 0
154 "" -7 "Amandas Test Group_public" 0
Manz
 
Posts: 72
Joined: Wed Jun 29, 2011 11:48 pm

Re: Database-guest account

Postby jmoore » Mon Dec 12, 2011 2:35 pm

That looks correct. Have you restarted the OMERO server as well as the web?
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Database-guest account

Postby Manz » Mon Dec 12, 2011 2:41 pm

Still getting the

Error: Server is not responding, please contact administrator.


Logs
--------
OMEROweb

Code: Select all
Mon, 12 Dec 2011 14:39:12 blitz_gateway INFO     BlitzGateway.connect().createSession(): Traceback (most recent call last):
  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 1520, in connect
    self._createSession()
  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 1423, in _createSession
    self._ic_props[omero.constants.PASSWORD])
  File "/opt/OmeroServer/lib/python/omero/clients.py", line 454, in createSession
    prx = self.getRouter(self.__ic).createSession(username, password, ctx)
  File "/usr/lib64/python2.4/site-packages/Ice/Glacier2_Router_ice.py", line 107, in createSession
    return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
    reason = Password check failed
}

Mon, 12 Dec 2011 14:39:15 views-admin  INFO     Have connection as Guest
Mon, 12 Dec 2011 14:39:15 views-admin  ERROR    Traceback (most recent call last):
  File "/opt/OmeroServer/lib/python/omeroweb/webadmin/views.py", line 121, in _isServerOn
    conn.getServerVersion()
  File "/opt/OmeroServer/lib/python/omeroweb/webclient/webclient_gateway.py", line 338, in getServerVersion
    conf = self.getConfigService()
  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 1874, in getConfigService
    return self._proxies['config']
  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 1088, in __getitem__
    raise Ice.ConnectionLostException
ConnectionLostException: Ice.ConnectionLostException:
recv() returned zero

Manz
 
Posts: 72
Joined: Wed Jun 29, 2011 11:48 pm

Re: Database-guest account

Postby Manz » Mon Dec 12, 2011 2:58 pm

http://lists.openmicroscopy.org.uk/pipe ... 02714.html

Fixed the second problem. I had tried this earlier but it seems to work now.


Thank you so much guys for all your help, I really appreciate it!
Manz
 
Posts: 72
Joined: Wed Jun 29, 2011 11:48 pm

Re: Database-guest account

Postby jmoore » Mon Dec 12, 2011 3:02 pm

Ah, right. Sorry, forgot you have delete the password. Glad it's working again. Take care! ~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Database-guest account

Postby Manz » Mon Dec 12, 2011 11:36 pm

.... Sorry I've just realised that when I log into the guest login I get the following error:
also found the following that shows the same:
http://trac.openmicroscopy.org/ome/ticket/2609

Code: Select all
Traceback (most recent call last):

  File "/opt/OmeroServer/lib/python/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/opt/OmeroServer/lib/python/omeroweb/webclient/views.py", line 165, in wrapped
    return f(request, *args, **kwargs)

  File "/opt/OmeroServer/lib/python/omeroweb/webclient/views.py", line 291, in index
    controller = BaseIndex(conn)

  File "/opt/OmeroServer/lib/python/omeroweb/webclient/controller/index.py", line 30, in __init__
    BaseController.__init__(self, conn)

  File "/opt/OmeroServer/lib/python/omeroweb/webclient/controller/__init__.py", line 37, in __init__
    gr = self.conn.getObject("ExperimenterGroup", self.conn.getEventContext().groupId)

  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 2260, in getObject
    result = list(self.getObjects(obj_type, oids, params=params, attributes=attributes))

  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 2319, in getObjects
    result = q.findAllByQuery(query, params)

  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 2943, in wrapped
    return inner(*args, **kwargs)

  File "/opt/OmeroServer/lib/python/omero/gateway/__init__.py", line 2885, in inner
    return f(*args, **kwargs)

  File "/opt/OmeroServer/lib/python/omero_api_IQuery_ice.py", line 138, in findAllByQuery
    return _M_omero.api.IQuery._op_findAllByQuery.invoke(self, ((query, params), _ctx))

SecurityViolation: exception ::omero::SecurityViolation
{
    serverStackTrace = ome.conditions.SecurityViolation: No matching roles found in [guest] for session dc0f1e48-e288-446b-88eb-2ec718c66c2a (allowed: [user])
   at ome.security.basic.BasicMethodSecurity.checkMethod(BasicMethodSecurity.java:137)
   at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:78)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy72.findAllByQuery(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179)
   at ome.services.throttling.Callback.run(Callback.java:56)
   at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
   at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:136)
   at ome.services.blitz.impl.QueryI.findAllByQuery_async(QueryI.java:66)
   at omero.api._IQueryTie.findAllByQuery_async(_IQueryTie.java:92)
   at omero.api._IQueryDisp.___findAllByQuery(_IQueryDisp.java:366)
   at omero.api._IQueryDisp.__dispatch(_IQueryDisp.java:496)
   at IceInternal.Incoming.invoke(Incoming.java:159)
   at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
   at Ice.ConnectionI.message(ConnectionI.java:972)
   at IceInternal.ThreadPool.run(ThreadPool.java:577)
   at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
   at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)

    serverExceptionClass = ome.conditions.SecurityViolation
    message = No matching roles found in [guest] for session dc0f1e48-e288-446b-88eb-2ec718c66c2a (allowed: [user])
}

Manz
 
Posts: 72
Joined: Wed Jun 29, 2011 11:48 pm

Re: Database-guest account

Postby jmoore » Tue Dec 13, 2011 10:25 am

The guest account only has limited and generally non-public uses. Sorry, this should be more prominent in the documentation ("don't delete or modify or use the guest account"). The exception is expected.

Again, sorry for the confusion,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Previous

Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest