Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit jobs from diracx (diracx-cli): error 500 #354

Open
aldbr opened this issue Dec 19, 2024 · 0 comments
Open

Submit jobs from diracx (diracx-cli): error 500 #354

aldbr opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aldbr
Copy link
Contributor

aldbr commented Dec 19, 2024

dirac login dteam
dirac jobs submit test.jdl
[
  "Arguments = \"jobDescription.xml -o LogLevel=INFO\";\nExecutable = \"dirac-jobexec\";\nJobGroup = jobGroup;\nJobName = jobName;\nJobType = User;\nLogLevel = INFO;\nOutputSandbox =\n    {\n        Script1_CodeOutput.log,\n        std.err,\n        std.out\n    };\nPriority = 1;\nSite = ANY;\nStdError = std.err;\nStdOutput = std.out;"
]
024-12-19 12:30:22,004 - INFO:     2001:1458:d00:24::100:409:0 - "POST /api/jobs/jdl HTTP/1.1" 500 Internal Server Error
2024-12-19 12:30:22,004 - ERROR:    Exception in ASGI application
  + Exception Group Traceback (most recent call last):
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 187, in __call__
  |     response = await self.dispatch_func(request, call_next)
  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/opt/conda/lib/python3.11/site-packages/diracx/routers/__init__.py", line 491, in dispatch
  |     response = await call_next(request)
  |                ^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 163, in call_next
  |     raise app_exc
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 149, in coro
  |     await self.app(scope, receive_or_disconnect, send_no_error)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  |     raise exc
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  |     await app(scope, receive, sender)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
  |     await self.middleware_stack(scope, receive, send)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
  |     await route.handle(scope, receive, send)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
  |     await self.app(scope, receive, send)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  |     raise exc
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  |     await app(scope, receive, sender)
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
  |     response = await f(request)
  |                ^^^^^^^^^^^^^^^^
  |   File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
  |     raw_response = await run_endpoint_function(
  |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
  |     return await dependant.call(**values)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/opt/conda/lib/python3.11/site-packages/diracx/routers/jobs/submission.py", line 151, in submit_bulk_jdl_jobs
  |     submitted_job_ids = await submit_jobs_jdl(
  |                         ^^^^^^^^^^^^^^^^^^^^^^
  |   File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 49, in submit_jobs_jdl
  |     async with asyncio.TaskGroup() as tg:
  |   File "/opt/conda/lib/python3.11/asyncio/taskgroups.py", line 145, in __aexit__
  |     raise me from None
  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/opt/conda/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
    |     result = await app(  # type: ignore[func-returns-value]
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    |     return await self.app(scope, receive, send)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    |     await super().__call__(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/applications.py", line 113, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
    |     raise exc
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
    |     await self.app(scope, receive, _send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
    |     await self.app(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 185, in __call__
    |     with collapse_excgroups():
    |   File "/opt/conda/lib/python3.11/contextlib.py", line 158, in __exit__
    |     self.gen.throw(typ, value, traceback)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
    |     raise exc
    |   File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 52, in submit_jobs_jdl
    |     jobManifest = returnValueOrRaise(
    |                   ^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/ReturnValues.py", line 220, in returnValueOrRaise
    |     raise SErrorException(result, errorCode)
    | DIRAC.Core.Utilities.ReturnValues.SErrorException: ({'OK': False, 'Errno': 0, 'Message': 'No value for key "', 'CallStack': ['  File "/opt/conda/bin/uvicorn", line 10, in <module>\n    sys.exit(main())\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1157, in __call__\n    return self.main(*args, **kwargs)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1078, in main\n    rv = self.invoke(ctx)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1434, in invoke\n    return ctx.invoke(self.callback, **ctx.params)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 783, in invoke\n    return __callback(*args, **kwargs)\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main\n    run(\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run\n    server.run()\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run\n    return asyncio.run(self.serve(sockets=sockets))\n', '  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 190, in run\n    return runner.run(main)\n', '  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 118, in run\n    return self._loop.run_until_complete(task)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 149, in coro\n    await self.app(scope, receive_or_disconnect, send_no_error)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__\n    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app\n    await app(scope, receive, sender)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__\n    await self.middleware_stack(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 735, in app\n    await route.handle(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle\n    await self.app(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 76, in app\n    await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app\n    await app(scope, receive, sender)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 73, in app\n    response = await f(request)\n', '  File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app\n    raw_response = await run_endpoint_function(\n', '  File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function\n    return await dependant.call(**values)\n', '  File "/opt/conda/lib/python3.11/site-packages/diracx/routers/jobs/submission.py", line 151, in submit_bulk_jdl_jobs\n    submitted_job_ids = await submit_jobs_jdl(\n', '  File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 53, in submit_jobs_jdl\n    checkAndAddOwner(original_jdl, job.owner, job.owner_group)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py", line 38, in checkAndAddOwner\n    res = jobManifest.load(jdl)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py", line 34, in load\n    return self.loadJDL(dataString)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py", line 42, in loadJDL\n    result = loadJDLAsCFG(jdlString.strip())\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/JDL.py", line 153, in loadJDLAsCFG\n    result = assignValue(key, value, cfg)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/JDL.py", line 85, in assignValue\n    return S_ERROR(f"No value for key {key}")\n']}, 0)
    +------------------------------------

During handling of the above exception, another exception occurred:

  + Exception Group Traceback (most recent call last):
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/_utils.py", line 76, in collapse_excgroups
  |     yield
  |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 186, in __call__
  |     async with anyio.create_task_group() as task_group:
  |   File "/opt/conda/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 815, in __aexit__
  |     raise BaseExceptionGroup(
  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Exception Group Traceback (most recent call last):
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 187, in __call__
    |     response = await self.dispatch_func(request, call_next)
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/diracx/routers/__init__.py", line 491, in dispatch
    |     response = await call_next(request)
    |                ^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 163, in call_next
    |     raise app_exc
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 149, in coro
    |     await self.app(scope, receive_or_disconnect, send_no_error)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
    |     await route.handle(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
    |     await self.app(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
    |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
    |     response = await f(request)
    |                ^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
    |     raw_response = await run_endpoint_function(
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
    |     return await dependant.call(**values)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/diracx/routers/jobs/submission.py", line 151, in submit_bulk_jdl_jobs
    |     submitted_job_ids = await submit_jobs_jdl(
    |                         ^^^^^^^^^^^^^^^^^^^^^^
    |   File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 49, in submit_jobs_jdl
    |     async with asyncio.TaskGroup() as tg:
    |   File "/opt/conda/lib/python3.11/asyncio/taskgroups.py", line 145, in __aexit__
    |     raise me from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
      | Traceback (most recent call last):
      |   File "/opt/conda/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
      |     result = await app(  # type: ignore[func-returns-value]
      |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/opt/conda/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
      |     return await self.app(scope, receive, send)
      |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |   File "/opt/conda/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
      |     await super().__call__(scope, receive, send)
      |   File "/opt/conda/lib/python3.11/site-packages/starlette/applications.py", line 113, in __call__
      |     await self.middleware_stack(scope, receive, send)
      |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
      |     raise exc
      |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
      |     await self.app(scope, receive, _send)
      |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
      |     await self.app(scope, receive, send)
      |   File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 185, in __call__
      |     with collapse_excgroups():
      |   File "/opt/conda/lib/python3.11/contextlib.py", line 158, in __exit__
      |     self.gen.throw(typ, value, traceback)
      |   File "/opt/conda/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
      |     raise exc
      |   File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 52, in submit_jobs_jdl
      |     jobManifest = returnValueOrRaise(
      |                   ^^^^^^^^^^^^^^^^^^^
      |   File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/ReturnValues.py", line 220, in returnValueOrRaise
      |     raise SErrorException(result, errorCode)
      | DIRAC.Core.Utilities.ReturnValues.SErrorException: ({'OK': False, 'Errno': 0, 'Message': 'No value for key "', 'CallStack': ['  File "/opt/conda/bin/uvicorn", line 10, in <module>\n    sys.exit(main())\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1157, in __call__\n    return self.main(*args, **kwargs)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1078, in main\n    rv = self.invoke(ctx)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1434, in invoke\n    return ctx.invoke(self.callback, **ctx.params)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 783, in invoke\n    return __callback(*args, **kwargs)\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main\n    run(\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run\n    server.run()\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run\n    return asyncio.run(self.serve(sockets=sockets))\n', '  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 190, in run\n    return runner.run(main)\n', '  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 118, in run\n    return self._loop.run_until_complete(task)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 149, in coro\n    await self.app(scope, receive_or_disconnect, send_no_error)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__\n    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app\n    await app(scope, receive, sender)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__\n    await self.middleware_stack(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 735, in app\n    await route.handle(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle\n    await self.app(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 76, in app\n    await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app\n    await app(scope, receive, sender)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 73, in app\n    response = await f(request)\n', '  File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app\n    raw_response = await run_endpoint_function(\n', '  File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function\n    return await dependant.call(**values)\n', '  File "/opt/conda/lib/python3.11/site-packages/diracx/routers/jobs/submission.py", line 151, in submit_bulk_jdl_jobs\n    submitted_job_ids = await submit_jobs_jdl(\n', '  File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 53, in submit_jobs_jdl\n    checkAndAddOwner(original_jdl, job.owner, job.owner_group)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py", line 38, in checkAndAddOwner\n    res = jobManifest.load(jdl)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py", line 34, in load\n    return self.loadJDL(dataString)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py", line 42, in loadJDL\n    result = loadJDLAsCFG(jdlString.strip())\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/JDL.py", line 153, in loadJDLAsCFG\n    result = assignValue(key, value, cfg)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/JDL.py", line 85, in assignValue\n    return S_ERROR(f"No value for key {key}")\n']}, 0)
      +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/opt/conda/lib/python3.11/site-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 185, in __call__
    with collapse_excgroups():
  File "/opt/conda/lib/python3.11/contextlib.py", line 158, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/opt/conda/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
    raise exc
  File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 52, in submit_jobs_jdl
    jobManifest = returnValueOrRaise(
                  ^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/ReturnValues.py", line 220, in returnValueOrRaise
    raise SErrorException(result, errorCode)
DIRAC.Core.Utilities.ReturnValues.SErrorException: ({'OK': False, 'Errno': 0, 'Message': 'No value for key "', 'CallStack': ['  File "/opt/conda/bin/uvicorn", line 10, in <module>\n    sys.exit(main())\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1157, in __call__\n    return self.main(*args, **kwargs)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1078, in main\n    rv = self.invoke(ctx)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1434, in invoke\n    return ctx.invoke(self.callback, **ctx.params)\n', '  File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 783, in invoke\n    return __callback(*args, **kwargs)\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main\n    run(\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run\n    server.run()\n', '  File "/opt/conda/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run\n    return asyncio.run(self.serve(sockets=sockets))\n', '  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 190, in run\n    return runner.run(main)\n', '  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 118, in run\n    return self._loop.run_until_complete(task)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/base.py", line 149, in coro\n    await self.app(scope, receive_or_disconnect, send_no_error)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__\n    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app\n    await app(scope, receive, sender)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__\n    await self.middleware_stack(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 735, in app\n    await route.handle(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle\n    await self.app(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 76, in app\n    await wrap_app_handling_exceptions(app, request)(scope, receive, send)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app\n    await app(scope, receive, sender)\n', '  File "/opt/conda/lib/python3.11/site-packages/starlette/routing.py", line 73, in app\n    response = await f(request)\n', '  File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app\n    raw_response = await run_endpoint_function(\n', '  File "/opt/conda/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function\n    return await dependant.call(**values)\n', '  File "/opt/conda/lib/python3.11/site-packages/diracx/routers/jobs/submission.py", line 151, in submit_bulk_jdl_jobs\n    submitted_job_ids = await submit_jobs_jdl(\n', '  File "/opt/conda/lib/python3.11/site-packages/diracx/db/sql/utils/job.py", line 53, in submit_jobs_jdl\n    checkAndAddOwner(original_jdl, job.owner, job.owner_group)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py", line 38, in checkAndAddOwner\n    res = jobManifest.load(jdl)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py", line 34, in load\n    return self.loadJDL(dataString)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py", line 42, in loadJDL\n    result = loadJDLAsCFG(jdlString.strip())\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/JDL.py", line 153, in loadJDLAsCFG\n    result = assignValue(key, value, cfg)\n', '  File "/opt/conda/lib/python3.11/site-packages/DIRAC/Core/Utilities/JDL.py", line 85, in assignValue\n    return S_ERROR(f"No value for key {key}")\n']}, 0)
@aldbr aldbr added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant