Unhandled exception: An error occurred trying to start process 'bash' with working directory '/app'. No such file or directory
See original GitHub issueDescribe the bug I am trying to get Terminal.GUI based app to run on docker. Host is Ubuntu 20.04 under WSL, and target is Alpine Linux. I get error about bash, which I assume is not required with Alpine Linux.
The error is:
Unhandled exception. System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'bash' with working directory '/app'. No such file or directory
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Terminal.Gui.BashRunner.Run(String commandLine, Boolean output, String inputText, Boolean runCurses)
at Terminal.Gui.CursesDriver.Is_WSL_Platform()
at Terminal.Gui.CursesDriver.Init(Action terminalResized)
at Terminal.Gui.Application.Init(Func`1 topLevelFactory, ConsoleDriver driver, IMainLoopDriver mainLoopDriver)
at Terminal.Gui.Application.Init(ConsoleDriver driver, IMainLoopDriver mainLoopDriver)
at WhisperDragonCLI.Program.Main(String[] args) in /source/Program.cs:line 42
Aborted
To Reproduce
- Clone repo https://github.com/mcraiha/WhisperDragonCLI
- Run
docker build .
- Run
docker image ls
and get the image id - Run
docker run -it IMAGEID
- Try to execute the binary with
./WhisperDragon_CLI
Expected behavior No crash / errors
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
An error occurred trying to start process '/usr/bin/bash' with ...
Here is my current workflow with which I am having trouble getting it work. I think the problem relies in defining working directories...
Read more >An error occurred trying to start process 'bash' with working ...
Unhandled exception: An error occurred trying to start process 'bash' with working directory '/app'. No such file or directory #1815.
Read more >.net6 System.Diagnostics.Process.Start error - Microsoft Q&A
ComponentModel.Win32Exception:“An error occurred trying to start process 'https://gitee.com/yhuse/SunnyUI' with working directory 'E:\Projects.
Read more >Troubleshooting Tips for GitHub Actions Workflows
So try bumping up the version and retry. Error 15: An error occurred trying to start process '/usr/bin/bash' with working directory. This error ......
Read more >11 Ways to Fix "The System Cannot Find The Path ...
1. Run Command Prompt as an Administrator ... Windows utilities cannot access all files and folders available on your device. Administrative ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you very much.
If you mean the reproduction steps, they are the same as in my first post (the repo has been updated with newer .csproj file).