migrate command error - in :

can anyone help me with this ?

(venv) shivankurchavan@Shivankurs-MacBook-Air indusworks_mes % bench --site work.localhost migrate               
Migrating work.localhost
Updating DocTypes for frappe        : [========================================] 100%
Updating DocTypes for indusworks_mes: [========================================] 100%
Updating Dashboard for frappe
Updating Dashboard for indusworks_mes
Queued rebuilding of search index for work.localhost

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
    main()
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/commands/site.py", line 684, in migrate
    ).run(site=site)
      ^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/migrate.py", line 189, in run
    self.tearDown()
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/migrate.py", line 101, in tearDown
    frappe.enqueue(build_index_for_all_routes, queue="long")
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/__init__.py", line 2230, in enqueue
    return frappe.utils.background_jobs.enqueue(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 169, in enqueue
    return enqueue_call()
           ^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 153, in enqueue_call
    return q.enqueue_call(
           ^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/rq/queue.py", line 718, in enqueue_call
    job = self.create_job(
          ^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/rq/queue.py", line 581, in create_job
    job = self.job_class.create(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/rq/job.py", line 297, in create
    job.set_id(id)
  File "/Users/shivankurchavan/Desktop/2025/intership2/frappe-bench/env/lib/python3.12/site-packages/rq/job.py", line 737, in set_id
    raise ValueError('id must not contain ":"')
ValueError: id must not contain ":"
(venv) shivankurchavan@Shivankurs-MacBook-Air indusworks_mes % 

This has been fixed, and was an error in the create_job_id function in frappe/utils/backgroundjobs.py file.

Here’s the updated function, or better still update your frappe app to get the latest change

def create_job_id(job_id: str | None = None) -> str:
	"""
	Generate unique job id for deduplication

	:param job_id: Optional job id, if not provided, a UUID is generated for it
	:return: Unique job id, namespaced by site
	"""

	if not job_id:
		job_id = str(uuid4())
	else:
		job_id = job_id.replace(":", "|")
	return f"{frappe.local.site}||{job_id}"