What versions & operating system are you using?
System:
OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor
Memory: 17.27 GB / 31.23 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 23.6.0 - /home/ubuntu/.nvm/versions/node/v23.6.0/bin/node
npm: 10.9.2 - /home/ubuntu/.nvm/versions/node/v23.6.0/bin/npm
pnpm: 9.15.9 - /home/ubuntu/.nvm/versions/node/v23.6.0/bin/pnpm
Please provide a link to a minimal reproduction
n/a
Describe the Bug
When deploying using Wrangler@latest, it tries to login using the browser. If this is done in a headless environment like a server, it will fail and crash Wrangler:
✘ [ERROR] A file or directory could not be found.
Missing file or directory: xdg-open
This is typically caused by:
- The file or directory does not exist
- A typo in the file path
- The file was moved or deleted
Please check the file path and try again.
Please provide any relevant error logs
No response
What versions & operating system are you using?
System:
OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor
Memory: 17.27 GB / 31.23 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 23.6.0 - /home/ubuntu/.nvm/versions/node/v23.6.0/bin/node
npm: 10.9.2 - /home/ubuntu/.nvm/versions/node/v23.6.0/bin/npm
pnpm: 9.15.9 - /home/ubuntu/.nvm/versions/node/v23.6.0/bin/pnpm
Please provide a link to a minimal reproduction
n/a
Describe the Bug
When deploying using Wrangler@latest, it tries to login using the browser. If this is done in a headless environment like a server, it will fail and crash Wrangler:
✘ [ERROR] A file or directory could not be found. Missing file or directory: xdg-open This is typically caused by: - The file or directory does not exist - A typo in the file path - The file was moved or deleted Please check the file path and try again.Please provide any relevant error logs
No response