We use the custom home directory setup (you added for us!) and it was working until we upgraded to 1.6.7-1. I just upgraded to 1.6.17-2 in our development environment to see if it was fixed but it isn’t. Users without a home directory are getting the error:
chdir(2) failed: no such file or directory
Your connection to the remote server has been terminated.
I thought it might be an issue with DEFAULT_SSHHOST but I tried pointing the app directly to one of our login servers and it’s still failing. This does work for our users if they login to our server via SSH so I’m pretty sure it’s an OOD issue.
Let me know what other info you need from us. Thanks!
Dori
UB CCR
We haven’t tested any other apps. That’s as far as they can get without a home directory so they launch a shell and it creates the home directory. Then they restart the OOD webserver process and the OOD dashboard comes up.
Ah so before they would launch the shell and the home directory gets created. Now they launch the shell and they get an error instead. Here are all the changes to the shell app between 1.5.5 and 1.6.17: https://github.com/OSC/ood-shell/compare/v1.4.2...v1.4.6
I don’t see any changes there specific to the type of problem you could be seeing.
Perhaps that is what is happening here? You could probably see in the user’s nginx access logs that are experiencing this problem what URL they tried to access.
We’re not purposely using ‘cd’ into any directory but this is what happens when a new user logs in. The home directory is created and then the user is dumped into it. Nothing has changed on that end though.
I think I know what the problem is, though will need time to test it out. I think it broke when we updated from https://github.com/chjj/pty.js to https://github.com/microsoft/node-pty (the microsoft version is a fork with updated code). This commit may have introduced the problem. Though, the error message there is “chdir(2) failed.” not “chdir(2) failed: no such file or directory” so that is odd.
@dsajdak@efranz I would like to configure OOD to use a directory other than the user’s home directory as their “home directory” when using OOD. Is this related to the custom home directory setup that you are talking about or does that have to do with creating home directories for users that do not already have one? If the former, is there documentation on it somewhere? Thanks!