Dvc exp run --temp fails when dvc exp run succeds

Hey,

atm I have the problem that both dvc exp run --temp as well as running experiments via the queue fail but running them normally succeeds.

In the first case I get the following error:

dvc exp run --temp
ERROR: unexpected error - Duplicate keyword name at line 13.

Running it in the queue I get following output in the celery worker out file:

[2025-09-08 15:44:42,704: INFO/MainProcess] Connected to filesystem://localhost//
[2025-09-08 15:44:42,727: INFO/MainProcess] dvc-exp-291215-1@localhost ready.
[2025-09-08 15:44:42,733: INFO/MainProcess] Task dvc.repo.experiments.queue.tasks.run_exp[34c400c9-9287-4eee-8a6a-5b0e805732bf] received
[2025-09-08 15:44:58,009: ERROR/MainProcess] Task dvc.repo.experiments.queue.tasks.run_exp[34c400c9-9287-4eee-8a6a-5b0e805732bf] raised unexpected: DuplicateError(‘Duplicate keyword name at line 13.’)
Traceback (most recent call last):
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/celery/app/trace.py”, line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/celery/app/trace.py”, line 736, in protected_call
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/dvc/repo/experiments/queue/tasks.py”, line 112, in run_exp
executor = setup_exp.s(entry_dict)()
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/celery/canvas.py”, line 349, in call
return self.type(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/celery/app/trace.py”, line 737, in protected_call
return orig(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/celery/app/task.py”, line 411, in call
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/dvc/repo/experiments/queue/tasks.py”, line 34, in setup_exp
executor = BaseStashQueue.init_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/dvc/repo/experiments/queue/base.py”, line 518, in init_executor
executor.init_git(
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/funcy/decorators.py”, line 47, in wrapper
return deco(call, *dargs, **dkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/funcy/flow.py”, line 99, in retry
return call()
^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/funcy/decorators.py”, line 68, in call
return self._func(*self._args, **self._kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/dvc/repo/experiments/executor/local.py”, line 135, in init_git
self._update_git_config(ConfigObj(local_git_config, list_values=False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/configobj/init.py”, line 1224, in init
self._load(infile, configspec)
File “/home/fuchsfa/VisualPromptingSeismic/.venv/lib/python3.12/site-packages/configobj/init.py”, line 1313, in _load
raise error
configobj.DuplicateError: Duplicate keyword name at line 13.
[2025-09-08 15:45:06,520: INFO/MainProcess] monitor: shutting down due to empty queue.

dvc doctor

DVC version: 3.63.0 (pip)

Platform: Python 3.12.7 on Linux-5.15.0-152-generic-x86_64-with-glibc2.41
Subprojects:
dvc_data = 3.16.12
dvc_objects = 5.1.1
dvc_render = 1.0.2
dvc_task = 0.40.2
scmrepo = 3.5.2
Supports:
http (aiohttp = 3.12.15, aiohttp-retry = 2.9.1),
https (aiohttp = 3.12.15, aiohttp-retry = 2.9.1),
ssh (sshfs = 2025.2.0)
Config:
Global: /home/fuchsfa/.config/dvc
System: /etc/xdg/dvc
Cache types: hardlink, symlink
Cache directory: beegfs on beegfs_nodev
Caches: local
Remotes: local
Workspace directory: beegfs on beegfs_nodev
Repo: dvc, git
Repo.site_cache_dir: /var/tmp/dvc/repo/5eb8e6b15c38e21a49126018920c8147

(align) fuchsfa@erebos05:~/align$ dvc exp run --tempERROR: unexpected error - Duplicate keyword name at line 13.
(align) fuchsfa@erebos05:~/align$ dvc doctorDVC version: 3.61.0 (pip)
Platform: Python 3.12.7 on Linux-5.15.0-151-generic-x86_64-with-glibc2.41Subprojects:dvc_data = 3.16.12dvc_objects = 5.1.1dvc_render = 1.0.2dvc_task = 0.40.2scmrepo = 3.3.11Supports:http (aiohttp = 3.12.15, aiohttp-retry = 2.9.1),https (aiohttp = 3.12.15, aiohttp-retry = 2.9.1)Config:Global: /home/fuchsfa/.config/dvcSystem: /etc/xdg/dvcCache types: hardlink, symlinkCache directory: beegfs on beegfs_nodevCaches: localRemotes: localWorkspace directory: beegfs on beegfs_nodevRepo: dvc, gitRepo.site_cache_dir: /var/tmp/dvc/repo/5bd8845c8855293b65c1034fca596b01

I have the same error in a different repository as well, after updating dvc

anyone know to which file this error refers to? ERROR: unexpected error - Duplicate keyword name at line 13. It cant be the params.yaml file because dvc repro works fine…

dvc exp run --temp -v

2025-09-15 15:57:42,262 DEBUG: v3.59.1 (pip), CPython 3.12.7 on Linux-5.15.0-151-generic-x86_64-with-glibc2.412025-09-15 15:57:42,263 DEBUG: command: /home/fuchsfa/align/.venv/bin/dvc exp run --temp -v

2025-09-15 15:57:45,991 DEBUG: Stashed experiment ‘7c0112e’ with baseline ‘a976dac’ for future execution.
2025-09-15 15:57:46,342 DEBUG: Init temp dir executor in ‘/home/fuchsfa/align/.dvc/tmp/exps/standalone/tmpg2mec1tk’
2025-09-15 15:57:48,195 DEBUG: Writing experiments local config ‘/home/fuchsfa/align/.dvc/tmp/exps/standalone/tmpg2mec1tk/.dvc/config.local’
2025-09-15 15:57:48,213 ERROR: unexpected error - Duplicate keyword name at line 13.Traceback (most recent call last):File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/cli/init.py”, line 211, in mainret = cmd.do_run()^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/cli/command.py”, line 27, in do_runreturn self.run()^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/commands/experiments/run.py”, line 14, in runself.repo.experiments.run(File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/init.py”, line 354, in runreturn run(self.repo, *args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/init.py”, line 58, in wrapperreturn f(repo, *args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/run.py”, line 77, in runreturn repo.experiments.reproduce_one(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/init.py”, line 126, in reproduce_oneresults = self._reproduce_queue(^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/utils.py”, line 62, in wrapperret = f(exp, *args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/init.py”, line 249, in _reproduce_queueexec_results = queue.reproduce(copy_paths=copy_paths, message=message)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/queue/workspace.py”, line 91, in reproduceentry, executor = self.get()^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/queue/tempdir.py”, line 67, in getexecutor = self.init_executor(^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/queue/base.py”, line 518, in init_executorexecutor.init_git(File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/funcy/decorators.py”, line 47, in wrapperreturn deco(call, *dargs, **dkwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/funcy/flow.py”, line 99, in retryreturn call()^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/funcy/decorators.py”, line 68, in callreturn self._func(*self._args, **self._kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/dvc/repo/experiments/executor/local.py”, line 135, in init_gitself._update_git_config(ConfigObj(local_git_config, list_values=False))^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/configobj/init.py”, line 1224, in initself._load(infile, configspec)File “/home/fuchsfa/align/.venv/lib/python3.12/site-packages/configobj/init.py”, line 1313, in _loadraise errorconfigobj.DuplicateError: Duplicate keyword name at line 13.

2025-09-15 15:57:48,280 DEBUG: link type reflink is not available ([Errno 95] no more link types left to try out)2025-09-15 15:57:48,281 DEBUG: Removing ‘/home/fuchsfa/.eqokd–x05uih5uuVmuCKw.tmp’2025-09-15 15:57:48,282 DEBUG: Removing ‘/home/fuchsfa/.eqokd–x05uih5uuVmuCKw.tmp’2025-09-15 15:57:48,284 DEBUG: Removing ‘/home/fuchsfa/.eqokd–x05uih5uuVmuCKw.tmp’
2025-09-15 15:57:48,285 DEBUG: Removing ‘/home/fuchsfa/align/.dvc/cache/files/md5/.LDOgIlmxHOWzHpkZmI6w5A.tmp’2025-09-15 15:57:48,292 DEBUG: Version info for developers:
DVC version: 3.59.1 (pip)
Platform: Python 3.12.7 on Linux-5.15.0-151-generic-x86_64-with-glibc2.41Subprojects:dvc_data = 3.16.12dvc_objects = 5.1.1dvc_render = 1.0.2dvc_task = 0.40.2scmrepo = 3.3.11Supports:http (aiohttp = 3.12.15, aiohttp-retry = 2.9.1),https (aiohttp = 3.12.15, aiohttp-retry = 2.9.1)Config:Global: /home/fuchsfa/.config/dvcSystem: /etc/xdg/dvcCache types: hardlink, symlinkCache directory: beegfs on beegfs_nodevCaches: localRemotes: localWorkspace directory: beegfs on beegfs_nodevRepo: dvc, gitRepo.site_cache_dir: /var/tmp/dvc/repo/5bd8845c8855293b65c1034fca596b01

Having any troubles? Hit us up at , we are always happy to help!

2025-09-15 15:57:48,295 DEBUG: Analytics is enabled.2025-09-15 15:57:48,679 DEBUG: Trying to spawn [‘daemon’, ‘analytics’, ‘/tmp/tmp7nbj2czc’, ‘-v’]

2025-09-15 15:57:48,699 DEBUG: Spawned [‘daemon’, ‘analytics’, ‘/tmp/tmp7nbj2czc’, ‘-v’] with pid 28369

output running with -v

Hi, sorry for late response.

There is some duplicate keys in your .git/config. This is a bug in DVC, because dvc uses configobj to parse git config and apparently, git allows duplicate keys while configobj does not.

For now, I’d suggest checking .git/config and remove duplicate keys from line 13.

1 Like

thx a lot, its working now :slight_smile: