• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
질문

혹시 시놀로지 패키지센터의 mariaDB 위치를 아시는분 계시나요? (feat. NPM 문제원인)

똥쓰똥쓰 281

0

4

요즘 NPM이 2.10.x로 넘어오면서 퍼미션 에러 이슈가 나오고 있습니다....

 

 

 

현재 압축된 원인은 db의 권한문제로 확인 되었고,  db쪽 디렉토리에 777 권한을 줘야 한다고 합니다.

참고로 도커로 db를 설치했을 경우도 binding된 디렉토리에 777 권한을 줘야 한다고 하네요....

 

제 경우 시놀로지 패키지센터의 db를 사용 중인데 패키지센터에 설치 된 db파일은 어느 위치에 저장되는지 아시는분 계시나요?

 

NPM 2.10.2에서 PGID를 설정하지 않으면 괜찮긴한데 이 부분을 지정하려면 해당 디렉토리에 777 권한을 줘야 할 것 같습니다.

 

Ok I think I got it now,

the issue is the permissions on the mysql folder directory

"[insert your path here]:/var/lib/mysql"

for some reason the "Other User" Value needs to be set to read,write,execute

easier wasy to do this is go to the folder where your mysql data is on the host machine (NOT INSIDE THE CONTAINER), and "chmod 777 -R [mysql folder]"

I know there are hard feelings about security and giving a container full read right permissions in a folder, but if you take other precautions this should be fine, and probably best to back up your volume as well. But this fixed the issue for me, even if I tear the container down and build it back up again with terraform.

신고공유스크랩
4
2등
인내심 2023.04.05. 13:29
root@DSM:~# find / -name "mysql"
/volume1/@database/mariadb10/mysql
^C

DSM7 + mariaDB10 기준 저도 윗분과 동일하네용

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
잡담 하필 왜 밖에있을때 죽는지.. 3 kmw_ 1일 전10:47 219 +1
후기 PBS 이전완료..! 2 kmw_ 3일 전21:50 359 +1
잡담 PBS 드디어 분리.. 3 kmw_ 4일 전20:27 814 +1
3960 질문
image
감자탕 1시간 전10:00 33 0
3959 질문
normal
arkx 18시간 전16:39 51 0
3958 잡담
image
kmw_ 1일 전10:47 219 +1
3957 정보
normal
달소 1일 전10:03 71 0
3956 질문
normal
건건 1일 전03:02 42 0
3955 질문
normal
만츠 1일 전00:29 58 0
3954 질문
normal
webmaster 2일 전16:00 91 0
3953 질문
normal
TANG 2일 전15:03 103 0
3952 질문
normal
맛밥 3일 전21:59 336 0
3951 후기
image
kmw_ 3일 전21:50 359 +1
3950 질문
image
loopy 4일 전23:46 126 0
3949 잡담
image
kmw_ 4일 전20:27 814 +1
3948 질문
image
만츠 4일 전20:09 120 0
3947 잡담
image
달소 4일 전17:54 222 0
3946 정보
image
달소 4일 전15:54 72 0
3945 질문
image
뮤어 4일 전12:56 120 0
3944 질문
normal
지축또타 4일 전12:50 113 0
3943 가이드
image
keiminem 5일 전09:01 952 +8
3942 가이드
image
keiminem 5일 전08:53 838 +1
3941 가이드
image
keiminem 5일 전08:38 211 +1