Giter Club home page Giter Club logo

Comments (15)

depond1 avatar depond1 commented on May 31, 2024 1

ok great! works perfectly

from forward.

vsoch avatar vsoch commented on May 31, 2024

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.

depond1 avatar depond1 commented on May 31, 2024

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.

depond1 avatar depond1 commented on May 31, 2024

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.

vsoch avatar vsoch commented on May 31, 2024

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.

depond1 avatar depond1 commented on May 31, 2024

Perhaps in the new os! when I echo $USERNAME it shows my local username

from forward.

vsoch avatar vsoch commented on May 31, 2024

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.

depond1 avatar depond1 commented on May 31, 2024

thank you so much!

from forward.

vsoch avatar vsoch commented on May 31, 2024

@depond1 would you care to test this pull request branch?

#36

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.

depond1 avatar depond1 commented on May 31, 2024

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.

vsoch avatar vsoch commented on May 31, 2024

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.

depond1 avatar depond1 commented on May 31, 2024

thanks! looks like it works! :) I needed to update the end.sh script to include $FORWARD_USERNAME as well

from forward.

vsoch avatar vsoch commented on May 31, 2024

That would be a bug in my PR - let me fix it and you can take another look.

from forward.

vsoch avatar vsoch commented on May 31, 2024

okay just pushed - take a look!

from forward.

vsoch avatar vsoch commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.