Skip to content

500 Internal Server Error when cloning VFolder #4212

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

Closed
jopemachine opened this issue Apr 17, 2025 — with Lablup-Issue-Syncer · 0 comments · Fixed by #4214
Closed

500 Internal Server Error when cloning VFolder #4212

jopemachine opened this issue Apr 17, 2025 — with Lablup-Issue-Syncer · 0 comments · Fixed by #4214
Assignees

Comments

@jopemachine
Copy link
Member

jopemachine commented Apr 17, 2025

Summary

A 500 Internal Server Error occurs when attempting to clone a VFolder from the main branch head. The error traceback indicates an AttributeError: 'UserResourcePolicyRow' object has no attribute 'allowed_vfolder_hosts'. Investigate and resolve the issue to ensure VFolder cloning works correctly.

Logs/Errors  

❯ ./backend.ai vfolder clone abcdef new local:volume1
✘ BackendAPIError: 500 Internal Server Error
  Internal server error.
  ➜ Message: Traceback (most recent call last):
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/server.py", line 288, in exception_middleware
      resp = await handler(request)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/server.py", line 275, in api_middleware
      resp = await _handler(request)
             ^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/common/metrics/http.py", line 27, in metric_middleware
      resp = await handler(request)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/auth.py", line 595, in auth_middleware
      return await handler(request)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/dist/export/python/virtualenvs/python-default/3.13.3/lib/python3.13/site-packages/aiotools/func.py", line 23, in wrapped
      return await coro(*args, *cargs, **kwargs, **ckwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/ratelimit.py", line 73, in rlim_middleware
      response = await handler(request)
                 ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/dist/export/python/virtualenvs/python-default/3.13.3/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
      return await handler(request)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/auth.py", line 602, in wrapped
      return await handler(request, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/manager.py", line 80, in wrapped
      return await handler(request, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/vfolder.py", line 321, in _wrapped
      return await handler(
             ^^^^^^^^^^^^^^
      ...<9 lines>...
      )
      ^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/vfolder.py", line 217, in _wrapped
      return await handler(request, row, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/utils.py", line 211, in wrapped
      return await handler(request, checked_params, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/api/vfolder.py", line 2024, in clone
      result = await root_ctx.processors.vfolder.clone_vfolder.wait_for_complete(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ...<9 lines>...
      )
      ^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/actions/processor.py", line 65, in wait_for_complete
      return await self._run(action)
             ^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/actions/processor.py", line 41, in _run
      result = await self._func(action)
               ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jopemachine/.local/backend.ai/repos/main/src/ai/backend/manager/services/vfolder/services/vfolder.py", line 783, in clone
      vfolder_hosts = requester_user_row.resource_policy_row.allowed_vfolder_hosts
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'UserResourcePolicyRow' object has no attribute 'allowed_vfolder_hosts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants