-
Notifications
You must be signed in to change notification settings - Fork 336
Description
I have tried codespace before everything was fine back then but now after a while when i tried to use codespace then initialization process has error. i tried to dig deep and check codespace : creation log. below is the error log section of creation log
2025-04-25 23:13:31.554Z: SUCCESS: Bench frappe-bench initialized
2025-04-25 23:13:34.028Z: Traceback (most recent call last):
File "/workspace/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 48, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1694, in invoke
super().invoke(ctx)
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 107, in app_group
ctx.obj = CliCtxObj(sites=get_sites(site), force=force, verbose=verbose, profile=profile)
^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 119, in get_sites
elif default_site := frappe.get_conf().default_site:
^^^^^^^^^^^^^^^^^
2025-04-25 23:13:34.030Z: File "/workspace/frappe-bench/apps/frappe/frappe/config.py", line 155, in get_conf
with frappe.init_site(site):
File "/workspace/frappe-bench/apps/frappe/frappe/init.py", line 368, in enter
init(self.site)
File "/workspace/frappe-bench/apps/frappe/frappe/init.py", line 268, in init
setup_redis_cache_connection()
File "/workspace/frappe-bench/apps/frappe/frappe/init.py", line 396, in setup_redis_cache_connection
cache = setup_cache()
^^^^^^^^^^^^^
File "/workspace/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 381, in setup_cache
return RedisWrapper.from_url(frappe.conf.get("redis_cache"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/redis/client.py", line 145, in from_url
connection_pool = ConnectionPool.from_url(url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py", line 1274, in from_url
url_options = parse_url(url)
^^^^^^^^^^^^^^
File "/workspace/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py", line 1168, in parse_url
raise ValueError(
ValueError: Redis URL must specify one of the following schemes (redis://, rediss://, unix://)
Redis URL must specify one of the following schemes (redis://, rediss://, unix://)
2025-04-25 23:13:34.084Z: postCreateCommand failed with exit code 1. Skipping any further user-provided commands.
2025-04-25 23:13:34.088Z: Error: Command failed: /bin/sh -c bash /workspace/scripts/init.sh
2025-04-25 23:13:34.089Z: {"outcome":"error","message":"Command failed: /bin/sh -c bash /workspace/scripts/init.sh","description":"The postCreateCommand in the devcontainer.json failed.","containerId":"6c9f1ace3436eedd72e757a304951b2aaa96303ebee0850a5006330276d86467"}
2025-04-25 23:13:34.090Z: at b7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:130)
2025-04-25 23:13:34.090Z: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-04-25 23:13:34.092Z: at async Am (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:4483)
2025-04-25 23:13:34.092Z: at async Xw (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3828)
2025-04-25 23:13:34.095Z: at async $w (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3032)
2025-04-25 23:13:34.095Z: at async fa (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2438)
2025-04-25 23:13:34.095Z: at async ctA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:410:3710)
2025-04-25 23:13:34.095Z: devcontainer process exited with exit code 1
2025-04-25 23:13:34.097Z: at async YtA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:482:3944)
2025-04-25 23:13:34.098Z: at async eB (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:482:4886)
2025-04-25 23:13:34.098Z: at async prA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:663:200)
=================================================================================
2025-04-25 23:13:34.122Z: Finished configuring codespace.