Coder Social home page Coder Social logo

Comments (15)

davidlt avatar davidlt commented on August 23, 2024

@kkaadze, have you initialized CMSSW environment? (cmsenv or eval $(scram r -sh) for bash).

The problem is that default push strategy is not understood by git version you have now. This should be the case if you are currently using older git version, but should not be the case if you are in CMSSW environment. You can manually modify GIT configuration ~/.gitconfig and change push.default. I would suggest to pick matching for now.

Probably this happened: in CMSSW environment GIT printed a message about push.default change in upcoming GIT 2.0 and required you to select the default value. GIT does that in order to make sure that migration to GIT 2.0 would not yield a different behavior. Now if you use SLC5 or SLC6 system GIT, which is older comparing to CMSSW version, it does not understand simple strategy.

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

Hello,

Thanks for feedback. I changed ~/.gitconfig into this:
[push]
default = matching

but still when executing instructions on this page:
http://cms-sw.github.io/cmssw/usercode-faq.html
after command

git push --mirror -u origin

I get:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

What is going on?

Thanks,
keti

On 29 July 2013 21:02, davidlt [email protected] wrote:

@kkaadze https://github.com/kkaadze, have you initialized CMSSW
environment? (cmsenv or eval $(scram r -sh) for bash).

The problem is that default push strategy is not understood by git version
you have now. This should be the case if you are currently using older git
version, but should not be the case if you are in CMSSW environment. You
can manually modify GIT configuration ~/.gitconfig and change *
push.default_. I would suggest to pick *matching_ for now.

Probably this happened: in CMSSW environment GIT printed a message about *
push.default* change in upcoming GIT 2.0 and required you to select the
default value. GIT does that in order to make sure that migration to GIT
2.0 would not yield a different behavior. Now if you use SLC5 or SLC6
system GIT, which is older comparing to CMSSW version, it does not
understand simple strategy.


Reply to this email directly or view it on GitHubhttps://github.com//issues/194#issuecomment-21743133
.

CERN

+41 76 705 5807

from cmssw.

davidlt avatar davidlt commented on August 23, 2024

@kkaadze , it's actually documented in the link you provided.

In case you get the following message:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly
you forgot to register your ssh key when you registered to github, you can do it by going to https://github.com/settings/ssh and adding your public key there.

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

Hello,

Thanks for feedback! I did following command and got error.

[kkaadze@lxplus0274 usercode]$ git push --mirror -u origin
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

Then I tired to do git push origin master before the last line, but still
the error:
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

Could you suggest what is wrong?
thanks,
keti

On 30 July 2013 13:54, davidlt [email protected] wrote:

@kkaadze https://github.com/kkaadze , it's actually documented in the
link you provided.

In case you get the following message:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly
you forgot to register your ssh key when you registered to github, you can
do it by going to https://github.com/settings/ssh and adding your public
key there.


Reply to this email directly or view it on GitHubhttps://github.com//issues/194#issuecomment-21785644
.

CERN

+41 76 705 5807

from cmssw.

davidlt avatar davidlt commented on August 23, 2024

@kkaadze , have you configured your remote?

git remote -v

It should show origin remote as [email protected]:kkaadze/usercode.git

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

It seems that when I try to do this command:

setenv MY_GITHUB_USER git config --get user.github

my user name is not set up, i.e.

echo $MY_GITHUB_USER
I get empty string.

Thanks,
Keti

On 30 July 2013 16:56, davidlt [email protected] wrote:

@kkaadze https://github.com/kkaadze , have you configured your remote?

git remote -v

It should show origin remote as [email protected]:kkaadze/usercode.git


Reply to this email directly or view it on GitHubhttps://github.com//issues/194#issuecomment-21796572
.

CERN

+41 76 705 5807

from cmssw.

davidlt avatar davidlt commented on August 23, 2024

@kkaadze , makes sense. Do:

git config --global user.github kkaadze

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

Hello,

I am trying to do "git pull" to get some changes from software package
in CMSSW_5_3_11 on slc6 and get following error

git: /afs/
cern.ch/cms/slc5_amd64_gcc462/cms/cmssw/CMSSW_5_3_11/external/slc5_amd64_gcc462/lib/libz.so.1:
version `ZLIB_1.2.0' not found (required by git)

Could you please suggest what am I doing wrong? it was working last week, I
think.

Is there some CMSSW-GIT related FAQs or twiki where one can search for some
solutions on basic command errors?

Many thanks,
Keti

from cmssw.

ktf avatar ktf commented on August 23, 2024

I am trying to do "git pull" to get some changes from software package
in CMSSW_5_3_11 on slc6 and get following error

Developing using a slc5 release on slc6 is not supported (regardless of git, BTW).

Ciao,

Giulio

Office: 6-2-25 CERN
Tel: +41227671799
GitHub: http://github.com/ktf/

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

Hi Giulio,

Thanks for the feedback. I have to use CMSSW_5X series for my code. So I
logged in to slc5 machine and tried to
do "git pull" and get following message:
"fatal: Authentication failed"

Could you suggest what is wrong now?

Thanks a lot,
Keti

On 2 August 2013 18:31, Giulio Eulisse [email protected] wrote:

I am trying to do "git pull" to get some changes from software package
in CMSSW_5_3_11 on slc6 and get following error

Developing using a slc5 release on slc6 is not supported (regardless of
git, BTW).

Ciao,

Giulio

Office: 6-2-25 CERN
Tel: +41227671799
GitHub: http://github.com/ktf/


Reply to this email directly or view it on GitHubhttps://github.com//issues/194#issuecomment-22017359
.

CERN

+41 76 705 5807

from cmssw.

ktf avatar ktf commented on August 23, 2024

What does:

 git remote show my-cmssw
 git remote show official-cmssw

tell you?

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

Hi Giulio,

On 3 August 2013 00:08, Giulio Eulisse [email protected] wrote:

What does:

git remote show my-cmssw

this tells:

fatal: 'my-cmssw' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

git remote show official-cmssw

this tells:

fatal: 'official-cmssw' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Thanks a lot,
Keti

tell you?


Reply to this email directly or view it on GitHubhttps://github.com//issues/194#issuecomment-22039301
.

CERN

+41 76 705 5807

from cmssw.

ktf avatar ktf commented on August 23, 2024

Can you provide me the exact steps you used?

from cmssw.

kkaadze avatar kkaadze commented on August 23, 2024

Could you clarify which steps do you mean? I created this release a few
weeks ago and I was working in it
fine. Then, sometime last week, when I tried to do "git pull" or "git push"
it was no longer working.
After that I followed the feedback whatever I received from you
step-by-step as you told me.

Many thanks,
Keti

On 5 August 2013 09:23, Giulio Eulisse [email protected] wrote:

Can you provide me the exact steps you used?


Reply to this email directly or view it on GitHubhttps://github.com//issues/194#issuecomment-22092737
.

CERN

+41 76 705 5807

from cmssw.

ktf avatar ktf commented on August 23, 2024

Closing this assuming there was no further need. Reopen if not ok.

from cmssw.

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.