Estou tentando realizar uma instalação não padrão, mas talvez alguém possa ter alguma insight sobre a causa do erro. Estou usando docker-compose, executando postgres+redis+sidekiq+main a partir de imagens separadas do Bitnami 2.3.9, e elas funcionam perfeitamente no meu computador Windows. No entanto, ao implantar no AWS ECS, estou recebendo um erro no aplicativo principal no meio da instalação. Além disso, as últimas linhas sobre o empacotamento de ativos (a lista é mais longa) não ocorrem no meu Windows local; no Windows, ele aguarda por um longo período e depois exibe mensagens de sucesso.
postgre INFO Servidor PostgreSQL encontrado escutando em postgresql:5432
postgre INFO Servidor PostgreSQL escutando e funcionando em postgresql:5432
discour INFO Preparando o ambiente do Discourse...
discour INFO Configurando os arquivos de banco de dados do Discourse...
discour INFO Configurando o Redis...
discour INFO Configurando o SMTP no Discourse...
discour INFO Configurando o banco de dados do Discourse...
discour INFO Habilitando plugins do PostgreSQL para o Discourse...
discour INFO Migrando o banco de dados...
discour INFO Criando o usuário administrador do Discourse...
discour INFO Configurando sua instalação do Discourse...
Erro ao executar 'postInstallation': Limpando arquivos temporários
Empacotando ativos
I, [2020-02-10T13:56:52.236240 #1088] INFO -- : Escrevendo /opt/bitnami/discourse/public/assets/vendor-3b2f6dcdff2179eecae36277e07dc69ded2872f619a6a2bd222bbfe69e9f28ae.js
I, [2020-02-10T13:56:58.189628 #1088] INFO -- : Escrevendo /opt/bitnami/discourse/public/assets/admin-e6fbf7cad5fdf706d3f174807bd8e6f8051c81dabdcb8c2c1cfae1ccee125eff.js
That sounds good because main reason was to split database from the monolith. I have went through the config and bootstrap process, running Ubuntu linux (WSL) on Windows with a mounted Windows docker (as native docker does not work on WSL), all went nicely, image was bootstrapped, database updated and a load of other things on screen. Finally docker is started (I see it in docker ps, and ports are properly mapped), but when I try to access it on localhost (that’s how I configured it), I get a blank screen as server does not send any response. Same thing was working finely on the bitnami docker containers (application opening) which I could not get to run properly on AWS for some reason. Could I be missing something? I doubt that running through WSL should be an issue, as it is a real linux and bootstrapping went without errors.
E é bem semelhante: instalado na AWS EC2, inicializado, Docker iniciado e não está funcionando na porta 80. Parece com isso:
[*******]# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
Conectado ao Docker dentro da EC2, nos logs do nginx encontro esses erros a cada segundo:
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)
Os logs do Redis e do Postgres estão normais. Os logs do aplicativo em /var/www/discourse/log também não mostram nada especial (embora sejam muito curtos).
Você conseguiu resolver isso? Estou enfrentando o mesmo problema…
Também tenho esses logs extras aparecendo:
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
Olá @George_Guliman, infelizmente as instalações do Bitnami não são suportadas aqui. Você terá que buscar assistência em outro lugar, provavelmente junto ao suporte do Bitnami.