gemini-cli - 💡(How to fix) Fix Reason: Error: ENAMETOOLONG:

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

│ Reason: Error: ENAMETOOLONG: name too long, lstat │ │ Error: ENAMETOOLONG: name too long, lstat │ I was pasting in a trace to check. a syntax error

RAW_BUFFERClick to expand / collapse

What happened?

========================================= │ │ Reason: Error: ENAMETOOLONG: name too long, lstat │ │ '/Users/alpesh/Software/korchestrator/3.11/3.11.15/Frameworks/Python.fra │ │ mework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in │ │ run │ │ return self._loop.run_until_complete(task) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File │ │ "/opt/homebrew/Cellar/[email protected]/3.11.15/Frameworks/Python.framework/Ve │ │ rsions/3.11/lib/python3.11/asyncio/base_events.py", line 654, in │ │ run_until_complete │ │ return future.result() │ │ ^^^^^^^^^^^^^^^ │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/server.py", line 79, in serve │ │ await self._serve(sockets) │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/server.py", line 86, in _serve │ │ config.load() │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/config.py", line 441, in load │ │ self.loaded_app = import_from_string(self.app) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/importer.py", line 19, in import_from_string │ │ module = importlib.import_module(module_str) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File │ │ "/opt/homebrew/Cellar/[email protected]/3.11.15/Frameworks/Python.framework/Ve │ │ rsions/3.11/lib/python3.11/importlib/init.py", line 126, in │ │ import_module │ │ return _bootstrap._gcd_import(name[level:], package, level) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File "<frozen' │ │ Stack trace: │ │ Error: ENAMETOOLONG: name too long, lstat │ │ '/Users/alpesh/Software/korchestrator/3.11/3.11.15/Frameworks/Python.fra │ │ mework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in │ │ run │ │ return self._loop.run_until_complete(task) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File │ │ "/opt/homebrew/Cellar/[email protected]/3.11.15/Frameworks/Python.framework/Ve │ │ rsions/3.11/lib/python3.11/asyncio/base_events.py", line 654, in │ │ run_until_complete │ │ return future.result() │ │ ^^^^^^^^^^^^^^^ │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/server.py", line 79, in serve │ │ await self._serve(sockets) │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/server.py", line 86, in _serve │ │ config.load() │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/config.py", line 441, in load │ │ self.loaded_app = import_from_string(self.app) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File │ │ "/Users/alpesh/Software/korchestrator/.venv/lib/python3.11/site-packages │ │ /uvicorn/importer.py", line 19, in import_from_string │ │ module = importlib.import_module(module_str) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File │ │ "/opt/homebrew/Cellar/[email protected]/3.11.15/Frameworks/Python.framework/Ve │ │ rsions/3.11/lib/python3.11/importlib/init.py", line 126, in │ │ import_module │ │ return _bootstrap._gcd_import(name[level:], package, level) │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ File "<frozen' │ │ at Module.lstatSync (node:fs:1686:25) │ │ at robustRealpath │ │ (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-S │ │ AJ72M2G.js:41921:27) │ │ at resolveToRealPath │ │ (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-S │ │ AJ72M2G.js:41908:10) │ │ at checkPermissions │ │ (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-H │ │ 322INXK.js:46011:30) │ │ at │ │ file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/interact │ │ iveCli-3SJC5IBR.js:33678:37 │ │ at │ │ file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/interact │ │ iveCli-3SJC5IBR.js:21582:7 │ │ at Object.handleSubmit │ │ (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/interac │ │ tiveCli-3SJC5IBR.js:18754:9) │ │ at │ │ file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/interact │ │ iveCli-3SJC5IBR.js:21632:20 │ │ at │ │ file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/interact │ │ iveCli-3SJC5IBR.js:22173:13 │ │ at │ │ file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-H3 │ │ 22INXK.js:35309:15

What did you expect to happen?

I was pasting in a trace to check. a syntax error

Client information

  • CLI Version: 0.41.2
  • Git Commit: b0c7a1722
  • Session ID: 623e93f7-387a-44ca-b7f2-1027ad8f2245
  • Operating System: darwin v25.9.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5
  • Auth Type: oauth-personal
  • Memory Usage: 1.03 GB
  • Terminal Name: Unknown
  • Terminal Background: #000000
  • Kitty Keyboard Protocol: Unsupported

Login information

logged in via google login

Anything else we need to know?

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING