You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (JIRA)" <ji...@apache.org> on 2019/04/03 15:35:04 UTC

[jira] [Comment Edited] (AIRAVATA-3002) Exception thrown when user clicks on Experiments in workspace while not been in any of the user groups

    [ https://issues.apache.org/jira/browse/AIRAVATA-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808823#comment-16808823 ] 

Marcus Christie edited comment on AIRAVATA-3002 at 4/3/19 3:34 PM:
-------------------------------------------------------------------

Seeing also this error logged by RabbitMQ DefaultExceptionHandler on startup:
{noformat}
DefaultExceptionHandler: Consumer org.apache.airavata.messaging.core.impl.MessageConsumer@7a9fc188 (default) method handleDelivery for channel AMQChannel(amqp://airavata@149.165.156.195:5672develop,1) threw an exception for channel AMQChannel(amqp://airavata@149.165.156.195:5672develop,1):
org.apache.airavata.common.utils.ThriftClientPool$ThriftClientException: Could not get a resource from the pool
        at org.apache.airavata.common.utils.ThriftClientPool.getResource(ThriftClientPool.java:134)
        at org.apache.airavata.registry.api.service.messaging.RegistryServiceDBEventHandler.onMessage(RegistryServiceDBEventHandler.java:93)
        at org.apache.airavata.messaging.core.impl.MessageConsumer.handleDelivery(MessageConsumer.java:70)
        at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)
        at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:99)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.airavata.common.utils.ThriftClientPool$ThriftClientException: Can not make a new object for pool
        at org.apache.airavata.common.utils.ThriftClientPool$ThriftClientFactory.makeObject(ThriftClientPool.java:71)
        at org.apache.airavata.common.utils.ThriftClientPool$ThriftClientFactory.makeObject(ThriftClientPool.java:53)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
        at org.apache.airavata.common.utils.ThriftClientPool.getResource(ThriftClientPool.java:132)
        ... 7 more
Caused by: org.apache.airavata.common.utils.ThriftClientPool$ThriftClientException: Can not make protocol
        at org.apache.airavata.common.utils.ThriftClientPool$BinaryOverSocketProtocolFactory.make(ThriftClientPool.java:113)
        at org.apache.airavata.common.utils.ThriftClientPool$ThriftClientFactory.makeObject(ThriftClientPool.java:67)
        ... 10 more
Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:226)
        at org.apache.airavata.common.utils.ThriftClientPool$BinaryOverSocketProtocolFactory.make(ThriftClientPool.java:110)
        ... 11 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:221)
        ... 12 more
{noformat}

And the DefaultExceptionHandler closes the channel when an exception occurs.


was (Author: marcuschristie):
Seeing also this error logged by RabbitMQ DefaultExceptionHandler on startup:
{noformat}
DefaultExceptionHandler: Consumer org.apache.airavata.messaging.core.impl.MessageConsumer@7a9fc188 (default) method handleDelivery for channel AMQChannel(amqp://airavata@149.165.156.195:5672develop,1) threw an exception for channel AMQChannel(amqp://airavata@149.165.156.195:5672develop,1):
org.apache.airavata.common.utils.ThriftClientPool$ThriftClientException: Could not get a resource from the pool
        at org.apache.airavata.common.utils.ThriftClientPool.getResource(ThriftClientPool.java:134)
        at org.apache.airavata.registry.api.service.messaging.RegistryServiceDBEventHandler.onMessage(RegistryServiceDBEventHandler.java:93)
        at org.apache.airavata.messaging.core.impl.MessageConsumer.handleDelivery(MessageConsumer.java:70)
        at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)
        at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:99)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.airavata.common.utils.ThriftClientPool$ThriftClientException: Can not make a new object for pool
        at org.apache.airavata.common.utils.ThriftClientPool$ThriftClientFactory.makeObject(ThriftClientPool.java:71)
        at org.apache.airavata.common.utils.ThriftClientPool$ThriftClientFactory.makeObject(ThriftClientPool.java:53)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
        at org.apache.airavata.common.utils.ThriftClientPool.getResource(ThriftClientPool.java:132)
        ... 7 more
Caused by: org.apache.airavata.common.utils.ThriftClientPool$ThriftClientException: Can not make protocol
        at org.apache.airavata.common.utils.ThriftClientPool$BinaryOverSocketProtocolFactory.make(ThriftClientPool.java:113)
        at org.apache.airavata.common.utils.ThriftClientPool$ThriftClientFactory.makeObject(ThriftClientPool.java:67)
        ... 10 more
Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:226)
        at org.apache.airavata.common.utils.ThriftClientPool$BinaryOverSocketProtocolFactory.make(ThriftClientPool.java:110)
        ... 11 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:221)
        ... 12 more
{noformat}

> Exception thrown when user clicks on Experiments in workspace while not been in any of the user groups
> ------------------------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-3002
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3002
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>    Affects Versions: 0.18
>         Environment: https://beta.simccs.org
>            Reporter: Eroma
>            Assignee: Marcus Christie
>            Priority: Major
>         Attachments: Screen Shot 2019-04-02 at 10.20.18 AM.png, Screen Shot 2019-04-02 at 10.28.11 AM.png, Screen Shot 2019-04-02 at 10.28.19 AM.png
>
>
> # User used CILogon and in gateway workspace but not a member of any of the existing groups yet. Currently gateway has gateway_user, admin-read-only and admin user groups but this user is new and not in any of those.
>  # Exception attached is thrown, when clicked on experiments.
>  # The page link is [https://beta.simccs.org/workspace/experiments] TypeError at /workspace/experiments
>  unhashable type: ‘AiravataSystemException’
>  Request Method: GET...........
>  # Please see the attachment
>  
>  # This user can also click 'Create new Parser" which should not be available for this user. that also throws the 'Page Not found' error.
>  # In Admin space, the user can create credentials and also create group resource profiles.
>  # All this can be done without being in any active group.
>  # Shouldn't these be restricted for this user?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)