Is http://emg.nysbc.org/git/myami/ still available?
Added by Wei Guo about 5 years ago
In the centos7AutoInstallation.py installer script for Leginon, myami needs to clone from that repo, but the link is dead.
Can you check the git repo, or update the installer script.
18 self.gitCmd = "git clone -b trunk http://emg.nysbc.org/git/myami " + self.gitMyamiDir
PS, please also correct the password input, we don't want to display my root password on my screen. or use it as a cmdline arg. Not secure.
1232 # Set the root password
1233 password = raw_input("Please enter the system root password: ")
1234 password = password.strip()
1235 self.serverRootPass = password
1236
Thanks
Wei
Replies (8)
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Anchi Cheng about 5 years ago
If you were doing this yesterday, our internet connection to the outside world was down for institutional-wide maintenance. Regarding the root password, thanks for pointing that out. we will change that.
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Wei Guo about 5 years ago
Hi, Anchi,
Thanks for very prompt reply.
It is not accessible today, now, as I test.
http://emg.nysbc.org/git/ is available but prompts for password. So the repo is not readable.
Thanks
Wei
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Anchi Cheng about 5 years ago
Did you try to access the address with webbrowser ? That was not the intention. git cloning does not requires password. Pushing commit requires it. The autoinstall script is meant to be run from command line.
Try
git clone -b trunk http://emg.nysbc.org/git/myami your_local_directory
If it still ask for password, this system you use has a local git configuration that impose that not from our side. I just tried it.
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Wei Guo about 5 years ago
I think my (institution) IP is blocked.
$ git clone -b trunk http://emg.nysbc.org/git/myami myami
Cloning into 'myami'...
fatal: unable to access 'http://emg.nysbc.org/git/myami/': Recv failure: Connection reset by peer
Do you have a blacklist on that server?
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Sargis Dallakyan about 5 years ago
I've just tried from my home computer and it works. We don't have a blacklist on that server. It might be your institution networking as it was the case in this stackoverflow - https://stackoverflow.com/questions/24484327/git-clone-error-read-from-socket-failed-connection-reset-by-peer-fatal-could
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Wei Guo about 5 years ago
OK. Figured out that I have to use https instead of http on this server. This is probably some network security on my end. Thanks all for your help.
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Wei Guo about 5 years ago
My diff from this thread.
1. Probably https is better than http.
2. use getpass instead of raw_input.
import hashlib +import getpass class CentosInstallation(object): def setReleaseDependantValues(self): # need to change to branch when release - self.gitCmd = "git clone -b trunk http://emg.nysbc.org/git/myami " + self.gitMyamiDir + self.gitCmd = "git clone -b trunk https://emg.nysbc.org/git/myami " + self.gitMyamiDir # redhat release related values self.torqueLibPath = '/var/lib/torque/' @@ -1230,7 +1231,7 @@ self.adminEmail = value # Set the root password - password = raw_input("Please enter the system root password: ") + password = getpass.getpass("Please enter the system root password: ") password = password.strip() self.serverRootPass = password
##################
Other places use clear text passwords. Maybe you can fix it.
1328 setupURL = "http://localhost/myamiweb/setup/autoInstallSetup.php?password=" + self.serverRootPass + "&myamidir=" + self.leginon_app_rootdir + "&appv=%d " % app_version + "&uploadsample=" + "%d" % int(self.doDownloadSampleImages) 1329 myamiwebOpened = None 1330 # To get the included path correctly in php command, we need to cd to where the file is. 1331 cmd = "php autoInstallSetup.php --password %s --myamidir %s --appv %d --uploadsample %d" % (self.serverRootPass, self.leginon_app_rootdir, app_version, int(self.doDownloadSampleImages))
RE: Is http://emg.nysbc.org/git/myami/ still available? - Added by Anchi Cheng about 5 years ago
Thanks for pointing this out and suggest solutions. Created Issue #8309 to fix this. We have also converted all references to https in the documentation. Hopefully nothing is missed.