Develop

[GitHub] Failed to write credentials for - store in secure store 체크시 발생하는 에러 본문

웹 개발/Git

[GitHub] Failed to write credentials for - store in secure store 체크시 발생하는 에러

개발 기록 2024. 2. 21. 09:58

문제

 

깃허브에 코드를 commit 할 때

store in secure store 라는 체크 박스를 체크하면

commit 할때마다 아이디와 암호(토큰)를 입력하지 않아도 된다.

 

 

그러나

 

 

체크박스를 체크했을시 이러한 오류가 나타나면 

아이디와 암호가 저장되지 않는다

따라서 매번 입력해줘야한다

 

다행히도 이러한 오류가 떴더라도 자동 로그인이 안된다는 의미일뿐 코드들은 무사히 커밋된다.

 

원인

 

이클립스에 저장된  git 저장소의 키가 꼬여서 발생하는 에러이다.

 

해결방법

 

이클립스에 저장되어 있는 키를 삭제하거나 추가하면 된다.

 

1. 추가

Preferences

=> General

=> Security

=> Secure Storage

에 들어가서

 

첫번째에 있는 Password

=> Windows Integration (64bit) 체크 해제

=> Apply and Close

 

 

 

 

적용후에 다시 커밋하려고 하면 비밀번호를 다시 설정할 것이다.

화면이 뜨는대로 설정해주면 끝!

 

단점..계정이 2개가 되기 때문에 커밋할때마다 이때 설정한 비밀번호를 입력해줘야한다.

깃허브 토큰보단 짧지만 귀찮다면 2번 방법인 삭제를 추천한다.

 

2. 삭제

 

Preferences

=> General

=> Security

=> Secure Storage

까지는 위의 과정과 동일하다

 

이 다음

두번째에 있는 Contents 

=> Delete 클릭

 

 

나는 지금 보면

=> [Default Secure Storage]

=> org.eclipse.equinox.secure.storage

=> recovery

에 있는 org.eclipse.equinox.security 가 2개인데 위에서 1번과정을 통해

계정을 추가했기 때문이다...

 

나는 1번 과정을 통해 1개를 더 만들지 않은 사람들은 보통은 한개만 있을 것이다!

그리고 Delete를 누르면 그냥 다 지워짐... 하나만 지울수는 없더라...

 

이 과정이 끝나면 꼭 이클립스 재실행하기!!

 

 

 

 


 

그러다 커밋하니까 또 오류뜸..

Push to ~~ origin' has encountered a problem.

Can't connect to any repository:

 

 

찾다보니

헬스하는 감성 개발자 :: [Git] 이클립스 git push / pull 안될 때 (git push | pull 안됨 오류 해결 | problem occurred push to has encountered a problem) (tistory.com)

 

[Git] 이클립스 git push / pull 안될 때 (git push | pull 안됨 오류 해결 | problem occurred push to has encountered

이클립스에서 git push | pull을 할 때 다음과 같이 에러가 날 때가 많습니다, 뿌리를 고치고자 앞으로 에러가 없을 오류 해결방법을 시작해봅시다. 1. cmd 창 실행 cmd창(mac은 mac에 맞게)을 켜봅시다.

healthdevelop.tistory.com

 

이러한 방법도 있었지만....넘 길어서 다른 방법을 찾아보았다.

 

사실 이 오류도 3번째라 이번엔 빨리 해결했기에 기록한다

2번째까진 너무 헤매고 다녀서 어케 했는지 기억도 못했음ㅋㅋㅋㅋㅋㅜㅜ

 

일단

 

1. Window => Show views => Others

 

2. Git => Git Repositories 

 

클릭후 Open을 눌러주면

퍼온 사진

 

이러한 창이 보일텐데 나는 지금 고쳐서 

다르게 뜨길래 

 

Eclipse | git-receive-pack not permitted on :: venh.log (tistory.com)

 

Eclipse | git-receive-pack not permitted on

GitHub 연동 후 문제없이 사용하고 있었는데 갑자기 Commit, Push, Pull.. 아래와 같은 에러 메시지가 나왔다. 결론은 2021. 08. 13일부터 GitHub에서 ID/Password 인증을 없애고 ID/Personal Access Token 방식의 Token

kitty-geno.tistory.com

 

 

이분 사진 가져옴!!

(미안하지만 다시 오류나는건 싫은걸)

 

쨋든 저기 보이는 fetch랑 push를 다 지우고 다시 추가하면 된다.

 

이 과정을 하기전에

위의 2번 삭제방법을 실행하는 Contents로 들어가서 

뭐가 더 있는지 확인하고 꼭 다 지운다음 이클립스 재실행하는 것 잊지말기!!!

 

 

짜짠

 

 

커밋성공! 

지금까지 오류떠서 안올라갔던 내용들도 다 올라갔다.

 

또 생길 오류라 기록함,,

 

+)

또 다른 오류 생기기전에?? fetch도 삭제했었음,,,,

이거!

 

근데 생각해보니

2번(삭제) 방법을 실행하고 이클립스를 재실행 안해서 이런일을 겪었을수도...


 

참고한 글

 

Eclipse - Failed to write credentials for 'your git repo URL' to secure store No password provided. | OpenWritings.net

 

Eclipse - Failed to write credentials for 'your git repo URL' to secure store No password provided. | OpenWritings.net

Issue When I pushed my code to GitHub and provided the correct username and password, I got the following error message: Failed to write credentials for 'https://github.com/xuanngo2001/android-sharedpreferences-basic.git' to secure store No password provid

openwritings.net

 

[eclipse][git] 이클립스 git 처리 중 failed to write credential 'https://github.com' 오류 (tistory.com)

 

[eclipse][git] 이클립스 git 처리 중 failed to write credential 'https://github.com' 오류

이클립스에 저장된 git 저장소의 키가 꼬이게 되면 이런 오류가 발생한다. failed to write credential 'https://github.com'이 오류가 발생하면 암호를 매번 다시 넣어야 한다. 이럴 때는 이클립스에 저장된

118k.tistory.com