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

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

똥쓰똥쓰 279

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
번호 분류 제목 글쓴이 날짜 조회 추천
가이드 배드섹터 있는 HDD 복사 및 이미지 뜨기 : ddrescue, ddrescueview 3 klayf 2일 전14:16 234 +11
오픈소스 개인 구독 추적기 Wallos 9 달소 6일 전23:26 462 +3
질문 /var/www 폴더가 삭제되었습니다. ㅜ,.ㅜ 2 니속사정 24.05.06.20:42 331 +1
3919 질문
normal
블랙앤해적 7시간 전21:41 69 0
3918 잡담
image
kmw_ 9시간 전19:42 98 0
3917 잡담
image
감자탕 12시간 전17:03 145 0
3916 질문
image
똥쓰똥쓰 1일 전17:43 201 0
3915 잡담
normal
ljr10 1일 전16:55 157 0
3914 질문
image
EXP 1일 전15:32 87 0
3913 질문
image
감자탕 1일 전15:31 136 0
3912 가이드
image
klayf 2일 전14:16 234 +11
3911 후기
image
kmw_ 2일 전14:12 192 0
3910 질문
image
동도리군 2일 전13:23 258 0
3909 잡담
normal
SNFAIUWQ 3일 전21:40 85 0
3908 잡담
normal
kmw_ 3일 전18:44 205 0
3907 질문
normal
newsted1 3일 전09:57 126 0
3906 질문
normal
초보입니다ㅠㅠ 4일 전01:44 184 0
3905 질문
normal
서버구축하자 5일 전21:59 104 0
3904 후기
image
달소 5일 전10:59 180 0
3903 질문
image
경호 5일 전10:34 280 0
3902
image
달소 6일 전23:26 462 +3
3901 잡담
image
달소 6일 전22:44 219 0
3900 질문
normal
맛밥 24.05.07.16:13 249 0