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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random run initialization error #3057

Open
Luca-DTU opened this issue Nov 7, 2023 · 2 comments
Open

Random run initialization error #3057

Luca-DTU opened this issue Nov 7, 2023 · 2 comments
Labels
help wanted Extra attention is needed type / bug Issue type: something isn't working

Comments

@Luca-DTU
Copy link

Luca-DTU commented Nov 7, 2023

馃悰 Bug

Sometimes when setting up a run I get the following error
"TypeError: DBAPIError.init() missing 2 required positional arguments: 'params' and 'orig'"
this arises from calling
run = Run(repo=repo, experiment=experiment, log_system_params=True)

To reproduce

It happens when starting multiple parallel runs on the same repository in ARGO. Out of 100 pods, maybe a couple will show this error.

Environment

aim==3.17.5
python:3.10
argo-workflows==6.3.5
hera==5.4.1

@Luca-DTU Luca-DTU added help wanted Extra attention is needed type / bug Issue type: something isn't working labels Nov 7, 2023
@alberttorosyan
Copy link
Member

Hey @Luca-DTU! Could you please share the full error stack-trace? That would help to understand the root cause of the issue.

@Luca-DTU
Copy link
Author

Hi,
Here it is in one example:

Traceback (most recent call last):
File "/argo/staging/script", line 17, in
run = Run(repo=repo_name, experiment=experiment_name, log_system_params=True)
File "/usr/local/lib/python3.10/site-packages/aim/ext/exception_resistant.py", line 70, in wrapper
_SafeModeConfig.exception_callback(e, func)
File "/usr/local/lib/python3.10/site-packages/aim/ext/exception_resistant.py", line 47, in reraise_exception
raise e
File "/usr/local/lib/python3.10/site-packages/aim/ext/exception_resistant.py", line 68, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aim/sdk/run.py", line 828, in init
super().init(run_hash, repo=repo, read_only=read_only, experiment=experiment, force_resume=force_resume)
File "/usr/local/lib/python3.10/site-packages/aim/sdk/run.py", line 325, in init
self.props
File "/usr/local/lib/python3.10/site-packages/aim/sdk/run.py", line 440, in props
self._props = self.repo.request_props(self.hash, self.read_only)
File "/usr/local/lib/python3.10/site-packages/aim/sdk/repo.py", line 354, in request_props
return StructuredRunProxy(self.client, hash, read_only, created_at)
File "/usr/local/lib/python3.10/site-packages/aim/storage/structured/proxy.py", line 31, in init
handler = self._rpc_client.get_resource_handler(self, self.resource_type, args=self.init_args)
File "/usr/local/lib/python3.10/site-packages/aim/ext/transport/client.py", line 225, in get_resource_handler
raise_exception(response.exception)
File "/usr/local/lib/python3.10/site-packages/aim/ext/transport/message_utils.py", line 76, in raise_exception
raise exception(*args) if args else exception()
TypeError: DBAPIError.init() missing 2 required positional arguments: 'params' and 'orig'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed type / bug Issue type: something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants