'postInstallation' 실행 오류: 임시 파일 삭제

안녕하세요,

비표준 설치(non standard installation)를 시도하고 있는데, 오류의 원인에 대해 통찰을 줄 수 있는 분이 계실지 모르겠습니다. docker-compose를 사용하여 postgres, redis, sidekiq, main을 각각 별도의 Bitnami 2.3.9 이미지로 실행하고 있으며, 제 Windows 컴퓨터에서는 완벽하게 작동합니다. 하지만 AWS ECS에 배포하면 설치 중간에 메인 앱에서 오류가 발생합니다. 또한 자산 번들링(bundling assets)에 대한 최신 로그 줄(목록은 더 깁니다)은 제 로컬 Windows 환경에서는 전혀 나타나지 않으며, Windows에서는 긴 시간 대기 후에 성공 메시지가 출력됩니다.

postgre INFO Found PostgreSQL server listening at postgresql:5432
postgre INFO PostgreSQL server listening and working at postgresql:5432
discour INFO Preparing Discourse environment...
discour INFO Configuring the Discourse database files...
discour INFO Configuring Redis...
discour INFO Setting up SMTP in Discourse...
discour INFO Configuring Discourse database...
discour INFO Enabling PostgreSQL plugins for Discourse...
discour INFO Migrating database...
discour INFO Creating the Discourse admin user...
discour INFO Configuring your Discourse installation...
Error executing 'postInstallation': Purging temp files
Bundling assets
I, [2020-02-10T13:56:52.236240 #1088] INFO -- : Writing /opt/bitnami/discourse/public/assets/vendor-3b2f6dcdff2179eecae36277e07dc69ded2872f619a6a2bd222bbfe69e9f28ae.js
I, [2020-02-10T13:56:58.189628 #1088] INFO -- : Writing /opt/bitnami/discourse/public/assets/admin-e6fbf7cad5fdf706d3f174807bd8e6f8051c81dabdcb8c2c1cfae1ccee125eff.js

지원되지 않는 설치 환경은, 글쎄요, 지원되지 않습니다.

외부 데이터베이스(예: 별도의 PostgreSQL 서버로 Discourse 실행하기)를 사용하는 완전히 설정된 클라우드 설치 가이드를 따르시면 지원되는 설치 환경을 실행할 수 있습니다.

좋습니다. 메인 목적이 모놀리식 아키텍처에서 데이터베이스를 분리하는 것이었기 때문입니다. 설정과 부트스트랩 과정을 거쳐, Windows에서 WSL로 Ubuntu Linux를 실행하고, Windows의 Docker를 마운트하여 사용했습니다(WSL에서 네이티브 Docker가 작동하지 않기 때문입니다). 모든 과정이 순조롭게 진행되었고, 이미지가 부트스트랩되었으며, 데이터베이스가 업데이트되었고, 화면에 다른 여러 작업들도 완료되었습니다. 마침내 Docker가 시작되었습니다(docker ps에서 확인 가능하고, 포트가 올바르게 매핑되어 있음). 하지만 로컬호스트(이렇게 구성했습니다)에서 접근을 시도하면 서버가 아무 응답도 보내지 않아 화면이 공백으로 표시됩니다. 같은 설정은 Bitnami Docker 컨테이너에서는 잘 작동했습니다(응용 프로그램이 열렸음). 하지만 AWS에서는 어떤 이유로 제대로 실행할 수 없었습니다. 제가 놓치고 있는 것이 있을까요? WSL을 통해 실행하는 것이 문제가 될 것 같지는 않습니다. 실제로 Linux이고, 부트스트랩도 오류 없이 진행되었기 때문입니다.

그리고 상당히 비슷한 상황인데, AWS EC2에 설치하고 부트스트랩을 거친 뒤 도커를 실행했는데 포트 80에서 작동하지 않습니다. 다음과 같은 현상이 나타납니다.

[*******]# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
Connected to the docker inside EC2, in nginx logs I find such errors each second:
cannot load certificate "/shared/ssl/ec2-x-x-x-x.xx-xx.compute.amazonaws.com.cer": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name: no start line: Expecting: TRUSTED CERTIFICATE)

Redis와 Postgres 로그는 정상입니다. /var/www/discourse/log에 있는 애플리케이션 로그에서도 특별히 이상한 점은 보이지 않습니다(다만 로그가 매우 짧습니다).

안녕하세요,

해결하셨나요? 저도 동일한 문제를 겪고 있습니다…
저에게는 다음 추가 로그도 표시됩니다:

at runProgram (/opt/bitnami/nami/node_modules/nami-utils/lib/os/run-program.js:223:14)
    at Object.runProgram (/opt/bitnami/nami/node_modules/nami-utils/lib/os/index.js:63:12)
    at Object.$app.helpers.execute (/root/.nami/components/com.bitnami.ruby/helpers.js:44:7)
    at Object.$app.helpers.bundleExecute (/root/.nami/components/com.bitnami.ruby/helpers.js:62:8)
    at Object.<anonymous> (/opt/bitnami/nami/node_modules/lodash/index.js:51:276)
    at Service.$app.postInstallation (/root/.nami/components/com.bitnami.discourse/main.js:82:8)
    at Service.runStep (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:159:12)
    at _.each.step (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:32)
    at r (/opt/bitnami/nami/node_modules/lodash/index.js:5:348)
    at Function.sf (/opt/bitnami/nami/node_modules/lodash/index.js:78:256)
Error executing 'postInstallation': Purging temp files

안녕하세요 @George_Guliman, 불행히도 여기서는 Bitnami 설치에 대한 지원을 제공하지 않습니다. Bitnami 지원팀 등 다른 곳에서 도움을 받아야 할 것입니다.

네, 알아요.. 기사가 문제를 해결했는지 궁금해서요.

감사합니다,