codefori / vscode-ibmi

🌍 IBM i development extension for VS Code
https://codefori.github.io/docs/#/
MIT License
282 stars 92 forks source link

Debug certificate setup error: Bash is installed on the IBM i, but it is not your default shell..." #2134

Closed cwbuck closed 3 months ago

cwbuck commented 3 months ago

I am trying to run the Setup Service Certificate for the new Debug release here:

image

But I am encountering the following error:

image

As best I can tell, my default shell for my personal user is set to Bash. I've even added the following to my user's .profile to make sure it was getting set:

SHELL=/QOpenSys/pkgs/bin/bash

Also, I've tried running this in SQL to set bash to default for all users, but it does not seem to make a difference:

CALL QSYS2/SET_PASE_SHELL_INFO('*DEFAULT', '/QOpenSys/pkgs/bin/bash')
sebjulliand commented 3 months ago

Disconnect and reconnect to your LPAR using this action: image

It should clear the error (if bash is actually your shell now) and allow you to carry on.

cwbuck commented 3 months ago

Well, I think I've got bigger problems now...

I've done something now to block my connection to the server. Now I can't even connect 😬

image

sebjulliand commented 3 months ago

Do you have anything in your ~/.bashrc or ~/.profile file that would echo anything? Also, I'd advise you remove SHELL=/QOpenSys/pkgs/bin/bash from your .profile. Run this in a shell to make bash your default shell for sure:

/QOpenSys/pkgs/bin/chsh -s /QOpenSys/pkgs/bin/bash
cwbuck commented 3 months ago

Ah yes, I do have some custom message echos in my ~/.bashrc. Should I remove those? I've removed the SHELL=/QOpenSys/pkgs/bin/bash already.

sebjulliand commented 3 months ago

Ah yes, I do have some custom message echos in my ~/.bashrc. Should I remove those? I've removed the SHELL=/QOpenSys/pkgs/bin/bash already.

Yep, remove these echos and you should be fine!

cwbuck commented 3 months ago

That worked! Thank you so much for your help!

sebjulliand commented 3 months ago

That worked! Thank you so much for your help!

Anytime 😊