- 환경
- Rocket.Chat ver 0.22.0 with docker image
- nginx
- 증상
- Rocket.Chat 을 docker image 를 이용하여 설치하였다.
- Memory : 1GB + swap 1GB = total 2GB
- file upload type 을 모두 가능하게 하도록 하기 위하여 empty 상태로 둠.
- max upload file size 는 500MB 로 설정
- 각종 파일들을 Rocket.Chat 의 channel 에 upload 하려할 때
- 1mb 이하의 파일들은 모두 잘 upload 되고, channel 의 chatting 창에도 잘 보여짐
- 1mb 이상의 파일을 upload 하려 하면,
- upload progress bar 가 조금 올라가다가 (upload file progress % 가 조금 증가하다가)
- connecting... 이라는 notification 이 표시되면서 더 이상 upload 가 진행되지 않음.
- Solution
Rocket.Chat 개발자 중 한 명인 Sing.li 에게 물어봤음.
sing.li 1:09 PM
@juce it is very likely that you're out of memory - make sure you have 1GB or more for your VPS/VM
@mario.loria and @juce - there is no magic to docker or docker cloud ... when you need memory, you need memory... allocate at least 1 GB - 2 GB preferred.- 결론은,
- memory 를 적어도 1GB ~ 2GB 는 줘라.
- 아직 테스트는 해보지 못 했지만, 이런 issue 를 가진 사람들이 꽤 있는 것 같음.
- p.s.
- Rocket.Chat 의 Administraion -> File Upload -> Storage Type 중
- 위의 현상은 GridFS 를 적용했을 때 발생함.
- Rocket.Chat 은 default 로 MongoDB 를 사용함.
- 사실 다른 선택도 없음.
- AmazonS3 를 적용했을 때는 잘 작동했음.
- FileSystem. 이건 그냥 쓰지 말자.