You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/16 19:25:58 UTC

[jira] [Commented] (AIRAVATA-2230) getQueueView: Error while retrieving compute resource

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

ASF GitHub Bot commented on AIRAVATA-2230:
------------------------------------------

GitHub user machristie opened a pull request:

    https://github.com/apache/airavata-php-gateway/pull/42

    AIRAVATA-2230 Auto load queue view when only 1 compute resource

    When there are multiple compute resources available the first option
    has value of empty string. Loading the queue view for the compute
    resource id of empty string throws an error server side.  This code
    change prevents that error from happening.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/machristie/airavata-php-gateway AIRAVATA-2230-getQueueView-error

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/airavata-php-gateway/pull/42.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #42
    
----
commit bcbdb4b9229a735f883dec3bee7f47fdff5c59fc
Author: Marcus Christie <ma...@iu.edu>
Date:   2016-11-16T19:22:18Z

    AIRAVATA-2230 Auto load queue view when only 1 compute resource
    
    When there are multiple compute resources available the first option
    has value of empty string. Loading the queue view for the compute
    resource id of empty string throws an error server side.  This code
    change prevents that error from happening.

----


> getQueueView: Error while retrieving compute resource
> -----------------------------------------------------
>
>                 Key: AIRAVATA-2230
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2230
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>             Fix For: 0.17-SNAPSHOT
>
>
> Seeing a lot of these errors in the PGA log:
> {noformat}
> [2016-11-16 18:55:13] production.ERROR: exception 'Airavata\API\Error\AiravataSystemException' with message 'Error while retrieving compute resource. More info : Error while retrieving compute resource. More info : javax.persistence.NoResultException: Query "SELECT p FROM ComputeResource p WHERE p.resourceId =:param0" selected no result, but expected unique result.' in /var/www/portals/dev-seagrid/app/libraries/Airavata/API/Airavata.php:37955
> Stack trace:
> #0 /var/www/portals/dev-seagrid/app/libraries/Airavata/API/Airavata.php(8936): Airavata\API\Airavata_getComputeResource_result->read(Object(Thrift\Protocol\TBinaryProtocol))
> #1 /var/www/portals/dev-seagrid/app/libraries/Airavata/API/Airavata.php(8896): Airavata\API\AiravataClient->recv_getComputeResource()
> #2 /var/www/portals/dev-seagrid/bootstrap/compiled.php(1452): Airavata\API\AiravataClient->getComputeResource(Object(Airavata\Model\Security\AuthzToken), '')
> #3 /var/www/portals/dev-seagrid/app/libraries/ExperimentUtilities.php(1329): Illuminate\Support\Facades\Facade::__callStatic('getComputeResou...', Array)
> #4 /var/www/portals/dev-seagrid/app/libraries/ExperimentUtilities.php(1329): Airavata\Facades\Airavata::getComputeResource(Object(Airavata\Model\Security\AuthzToken), '')
> #5 /var/www/portals/dev-seagrid/app/controllers/ExperimentController.php(353): ExperimentUtilities::getQueueDatafromResourceId('')
> #6 [internal function]: ExperimentController->getQueueView()
> #7 /var/www/portals/dev-seagrid/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
> #8 /var/www/portals/dev-seagrid/bootstrap/compiled.php(3819): Illuminate\Routing\Controller->callAction('getQueueView', Array)
> #9 /var/www/portals/dev-seagrid/bootstrap/compiled.php(3807): Illuminate\Routing\ControllerDispatcher->call(Object(ExperimentController), Object(Illuminate\Routing\Route), 'getQueueView')
> #10 /var/www/portals/dev-seagrid/bootstrap/compiled.php(3012): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'ExperimentContr...', 'getQueueView')
> #11 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
> #12 /var/www/portals/dev-seagrid/bootstrap/compiled.php(3370): call_user_func_array(Object(Closure), Array)
> #13 /var/www/portals/dev-seagrid/bootstrap/compiled.php(3037): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
> #14 /var/www/portals/dev-seagrid/bootstrap/compiled.php(3025): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
> #15 /var/www/portals/dev-seagrid/bootstrap/compiled.php(702): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
> #16 /var/www/portals/dev-seagrid/bootstrap/compiled.php(678): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
> #17 /var/www/portals/dev-seagrid/bootstrap/compiled.php(5797): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
> #18 /var/www/portals/dev-seagrid/bootstrap/compiled.php(6404): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
> #19 /var/www/portals/dev-seagrid/bootstrap/compiled.php(6351): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
> #20 /var/www/portals/dev-seagrid/bootstrap/compiled.php(8363): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
> #21 /var/www/portals/dev-seagrid/bootstrap/compiled.php(639): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
> #22 /var/www/portals/dev-seagrid/public/index.php(51): Illuminate\Foundation\Application->run()
> #23 {main} [] []
> {noformat}
> But users are able to create and launch experiments.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)