Aggiornato da CLI:
cd /var/discourse
git pull
./launcher rebuild app
Tutto è andato bene, ma ho ricevuto un errore 502 Bad Gateway.
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6598e9407e29 local_discourse/app "/sbin/boot" 35 minuti fa Up 22 minuti 0.0.0.0:2045->80/tcp app
./launcher logs app
(105) exiting
ok: run: redis: (pid 47) 17s
ok: run: postgres: (pid 44) 17s
supervisor pid: 114 unicorn pid: 118
config/unicorn_launcher: riga 71: kill: (118) - Nessun processo
config/unicorn_launcher: riga 15: kill: (118) - Nessun processo
(114) exiting
ok: run: redis: (pid 47) 21s
ok: run: postgres: (pid 44) 21s
supervisor pid: 123 unicorn pid: 127
config/unicorn_launcher: riga 71: kill: (127) - Nessun processo
config/unicorn_launcher: riga 15: kill: (127) - Nessun processo
(123) exiting
ok: run: redis: (pid 47) 26s
ok: run: postgres: (pid 44) 26s
supervisor pid: 132 unicorn pid: 136
curl localhost:2045
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
Discourse è in esecuzione all’interno di un contenitore LXC; anche il mio secondo forum, ospitato in un contenitore LXC, funziona correttamente dopo l’aggiornamento. Molto strano.
Qualche consiglio?
Aggiornamento:
Vedo che un processo Ruby è ancora in esecuzione e sta consumando molta CPU:
/usr/local/bin/ruby /usr/local/bin/bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb
Aggiornamento 2:
Risolto passando da un contenitore LXC non privilegiato a uno privilegiato.