After the update/removal of singularity, I have had issues opening a .sif image through vs-code on baobab.
When I remote connect to the cluster and change to a work folder, I cannot open the terminal in VScode. The error I am getting is: “The terminal process failed to launch: Path to shell executable “/bin/bash” does not exist.”
It is only an issue in VScode. If I ssh into bao and run “apptainer shell -B /srv,/home --nv /home/users/a/algren/singularity_images/ftag-otcalib-pytorch-new-2.sif”, I have no issues using the image.
Host ot~*
RemoteCommand apptainer shell -B /srv,/home --nv /home/users/a/algren/singularity_images/ftag-otcalib-pytorch-new-2.sif
RequestTTY yes
Host bao
HostName baobab2.hpc.unige.ch
User algren
RequestTTY yes
Host baogpu ot~baogpu
HostName gpu023
User algren
ProxyJump bao
RequestTTY yes
This has been happening for me and a couple others as well.
Seems like anytime I open a new workspace, I get this error. Any clue as to why that might be the case?
For me, this didn’t solve the issue. The issue appears when I change workspaces on a node in singularity/apptainer. I don’t have the issue if I don’t run apptainer shell.
I have found a weird workaround: I use one vs-code window to ssh into a node and open a new one for changing workspaces. Then keeping the old one frozen.
I hope you can find the case of the issue. It start when I changed from using module load ... to apptainer.
However since the start of this week, we have been running into the issue where this method now returns
The terminal process failed to launch: Path to shell executable "/bin/bash" does not exist.
The frustrating part is that sometimes it works, sometimes this error is there. It seems very inconsistent. I have tried killing all of my running nodes, deleting my vscode files on the cluster here:
I apologize for any inconvenience, but vscode and all utilies to implement or using terminal through this kind of sofware are out of our scope and expertise. I recommend reaching out to Microsoft support or visiting the official forum where you can find experts who specialize in vscode and can provide you with the best guidance for your specific needs.
One more idea: instead of launching directly apptainer, maybe you can launch a sh script that will launch apptainer. The advantage of proceeding that way is you can log inside the script what is done.