Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2881

Removing a PSE burst throws exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      VBC Sprint 11

      Description

      The actual removal of the Burst seems to work correctly when inspecting the files/DB on disk, but it throws this exception:

      2021-02-15 15:40:12,742 - INFO - tvb.core.services.backend_clients.standalone_client - Operation already stopped or not found at ID: 9
      2021-02-15 15:40:15,765 - WARNING - tvb.core.services.project_service - Attempt to delete DT[61861cbd2538427684daf11f070134ab] which no longer exists.
      2021-02-15 15:40:15,777 - INFO - tvb.core.entities.storage.root_dao - Entity from class <class 'tvb.core.entities.model.model_operation.Operation'> with id 9 has been already removed.
      2021-02-15 15:40:15,799 - INFO - tvb.core.entities.storage.root_dao - Entity from class <class 'tvb.core.entities.model.model_burst.BurstConfiguration'> with id 18 has been already removed.
      2021-02-15 15:40:15,814 - ERROR - tvb.interface.web.controllers.decorators - An unexpected exception appeared
      Traceback (most recent call last):
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 153, in deco
          return func(*a, **b)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 100, in deco
          result = func(*a, **b)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/decorators.py", line 200, in deco
          return func(*a, **b)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/simulator/simulator_controller.py", line 90, in cancel_or_remove_burst
          return self.cancel_or_remove_operation(op_id, is_group, remove_after_stop)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/interfaces/web/controllers/simulator/simulator_controller.py", line 99, in cancel_or_remove_operation
          result = OperationService.stop_operation(operation_id, is_group, remove_after_stop)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 548, in stop_operation
          result = OperationService.stop_operation(operation.id, False, remove_after_stop) or result
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/operation_service.py", line 550, in stop_operation
          result = BackendClientFactory.stop_operation(operation_id)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/services/backend_client_factory.py", line 75, in stop_operation
          operation = dao.get_operation_by_id(operation_id)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/entities/storage/session_maker.py", line 377, in dec
          result = func(*args, **kwargs)
        File "/WORK/TVB_GIT/tvb-root/framework_tvb/tvb/core/entities/storage/operation_dao.py", line 58, in get_operation_by_id
          operation = self.session.query(Operation).filter_by(id=operation_id).one()
        File "/anaconda/envs/tvb_framework_git_py3/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3307, in one
          raise orm_exc.NoResultFound("No row was found for one()")
      sqlalchemy.orm.exc.NoResultFound: No row was found for one()
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              robert.vincze Robert Francisc Vincze
              Reporter:
              paula.popa Paula Popa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours
                  1d 3h