Yesterday I had an admin message about upgrades. From the web UI, I did the Docker upgrade first and this seemed to go well. After it finished, the upgrade button for Discourse was enabled and I initiated that. At some point something broke and now our site is down. I was on my phone at the time and I didn’t manage to look at the log carefully to see where exactly things broke, before
I’m currently pocking around over SSH and about to try ./launcher rebuild app to hopefully get a better idea about what exactly is the problem in the upgrade. I’ve never done Discourse command-line repair and I want to make sure that I don’t blow away our data. Looking over app.yml, I see that the container is stateless - great - and that all the data is on the host, accessed as a shared volume.
I ran discourse-doctor and it looks like disk space is not the issue. Will the rebuild app command touch the local data store?
아니요. 어떤 아이디어를 가질 가능성이 거의 없습니다. 제 추측으로는 서버가 완전히 재시작될 때까지 기다리지 않은 것 같지만, 무엇이든 원인이 될 수 있습니다. 재구축이 오류 없이 완료되었나요? 디스크 공간이 부족합니까? docker ps 명령을 실행했을 때 컨테이너가 실행 중인지 확인해 보셨나요?
./launcher rebuild app 명령만 실행하여 새 재빌드를 시도하고 로그를 확인해 보세요. 다른 실패로 중단되면 위로 스크롤하여 오류 메시지를 검색해 보세요. 오류 메시지에 문제가 무엇인지 표시됩니다. 해당 메시지를 여기에 복사해 주시면 도움을 드릴 수 있습니다.
./launcher rebuild app을 실행한 후 다음과 같은 메시지가 표시됩니다: ** FAILED TO BOOTSTRAP ** 위로 스크롤하여 이전 오류 메시지를 확인하십시오. 오류가 여러 개 있을 수 있습니다.
./discourse-doctor를 사용하면 문제를 진단하는 데 도움이 될 수 있습니다.
/pups/lib/pups/config.rb:106:in `block (2 levels) in run_commands': Invalid run command cd (SyntaxError)
from /pups/lib/pups/config.rb:100:in `each'
from /pups/lib/pups/config.rb:100:in `block in run_commands'
from /pups/lib/pups/config.rb:99:in `each'
from /pups/lib/pups/config.rb:99:in `run_commands'
from /pups/lib/pups/config.rb:78:in `run'
from /pups/lib/pups/cli.rb:31:in `run'
from /pups/bin/pups:8:in `<main>'
44bf915bdff740d4441ad5239f79d5b14a6ed375300c52b85c10eefb7af677a2
** 부트스트랩 실패 ** 이전의 오류 메시지를 확인하려면 위로 스크롤하세요. 오류가 하나 이상 있을 수 있습니다.
./discourse-doctor 도구를 사용하면 문제를 진단하는 데 도움이 될 수 있습니다.