Comments (15)
ok great! works perfectly
from forward.
Can you give me an example to reproduce your issue? If you need to refer to your username in the job submission script, since it's run when it's already on the node you can just refer to $USER
.
from forward.
Okay so I have it partially figured out...I was using this config text before:
Host login.sherlock.stanford.edu
ControlMaster auto
ControlPersist yes
ControlPath ~/.ssh/%l%r@%h:%p%
and changed to this
Host sherlock
User myusername
Hostname sh02-ln01.stanford.edu
GSSAPIDelegateCredentials yes
GSSAPIAuthentication yes
ControlMaster auto
ControlPersist yes
ControlPath ~/.ssh/%l%r@%h:%p
and the error is gone on my old laptop macOS High Sierra 10.13.6 but still persists on my OS Catalina laptop
from forward.
its using my local username when accessing the function check_previous_submit()
so when logging in to ssh it shows this:
== Checking for previous notebook ==
[email protected]'s password:
from forward.
Ah, is it the case that Macs have a $USERNAME defined, regardless of any external tool like sherlock? if so, that's the bug - the $USERNAME being used there isn't the one defined by forward, but by your Mac. Could you open a new terminal and check this variable?
from forward.
Perhaps in the new os! when I echo $USERNAME it shows my local username
from forward.
Yep, that's the issue! Let me open a PR that updates the variables to be namespaced with FORWARD_
. I usually do this for most tools that need some namespace in their environment, but didn't here. Give me a few minutes!
from forward.
thank you so much!
from forward.
@depond1 would you care to test this pull request branch?
You should be able to clone the branch to a new folder
git clone -b update/environment-namespace [email protected]:vsoch/forward.git
git clone -b update/environment-namespace https://github.com/vsoch/forward
and then run ./setup.sh to produce the params.sh and proceed as before. Let me know if anything is not working!
from forward.
I am getting a permissions error I believe,
Cloning into 'forward'...
Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
from forward.
Ah that just means that you don't have ssl configured, in which case the second command is what you want :)
git clone -b update/environment-namespace https://github.com/vsoch/forward
I would highly recommend adding an ssh key to your account if you haven't already, and 2FA too. here are instructions for the first: https://help.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account
from forward.
thanks! looks like it works! :) I needed to update the end.sh script to include $FORWARD_USERNAME as well
from forward.
That would be a bug in my PR - let me fix it and you can take another look.
from forward.
okay just pushed - take a look!
from forward.
Updated both end.sh and resume.sh, and merged! I'm going to close the issue since we've fixed the error, thanks for opening, and please ping again if you need help. :)
from forward.
Related Issues (20)
- Add input argument to control custom python envs HOT 8
- [sbatch] tensorflow HOT 2
- julia+jupyter notebook HOT 1
- remove port specification HOT 2
- argument parsing for sbatch scripts
- Running a notebook: "ssh: Could not resolve hostname" HOT 4
- Trouble with Command Line Arguments to Launch Jupyter Notebooks into the Proper Directory HOT 5
- Explore Jupyter Labs notebooks
- resume.sh issue with ssh usage HOT 16
- explore service jobs
- Recent start.sh issues HOT 4
- explore sherlock/r.sbatch
- Test with other notebook types
- Access denied by pam_slurm_adopt: you have no active jobs on this node HOT 9
- Trouble logging in to launch jupyter notebook HOT 3
- ControlPath can be too long HOT 1
- Running notebook w/ python 3 HOT 22
- slow sherlock response leads to port forwarding failure HOT 11
- Allow for hosts other than sherlock HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forward.