# git pull 시도시, 권한 에러 발생
$:~/airflow$ git pull
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 1), reused 4 (delta 1), pack-reused 0
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
# .git 의 권한 확인
ls -lah .git/objects
# 현재 위치
.git/objects
# root 권한 확인 (소유자 확인)
ls -al | grep root
# 결과
drwxr-xr-x 2 root root 4096 Jan 4 02:08 45
drwxr-xr-x 2 root root 4096 Jan 4 02:08 5c
drwxr-xr-x 2 root root 4096 Jan 4 02:08 6e
drwxr-xr-x 2 root root 4096 Jan 4 02:08 91
drwxr-xr-x 2 root root 4096 Jan 4 02:08 97
drwxr-xr-x 2 root root 4096 Jan 4 02:08 a4
drwxr-xr-x 2 root root 4096 Jan 4 02:08 d6
drwxr-xr-x 2 root root 4096 Jan 4 02:08 f7
# 권한 변경
sudo chown (your_username).(your_group) 45 5c 6e 91 97 a4 d6 f7
# pull 정상 작동
$ git pull
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 1), reused 4 (delta 1), pack-reused 0
Unpacking objects: 100% (4/4), 1.04 KiB | 212.00 KiB/s, done.
From https://github.com/...
1eb6dce..3b0a904 main -> origin/main
Updating 1eb6dce..3b0a904
Fast-forward
______.py | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 ____/_____.py
반응형
'일상 기술노트' 카테고리의 다른 글
[견고한 데이터 엔지니어링] 데이터 엔지니어링 수명 주기 - 1 : 데이터 수명주기 ? 데이터 엔지니어링 수명주기 ? (0) | 2023.11.12 |
---|---|
[python] 부족한 지식을 메우자 (0) | 2021.09.24 |
[클라우데라 프로젝트] storm 설정 (error) (0) | 2020.12.17 |
[클라우데라 프로젝트] storm 설치(1) (0) | 2020.12.14 |
02-2.처리/탐색 레이어, 분석/응용 레이어 이해하기 (0) | 2020.07.11 |