root@docker2:/var/discourse# ./launcher stop web_only && ./launcher rebuild data && ./launcher rebuild web_only
x86_64 arch detected.
+ /usr/bin/docker stop -t 600 web_only
web_only
x86_64 arch detected.
Ensuring launcher is up to date
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 data
data
./launcher: Zeile 334: Warnung: Kommandoersetzung: NULL-Byte in der Eingabe ignoriert.
2.0.20240825-0027: Pulling from discourse/base
Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146
Status: Image is up to date for discourse/base:2.0.20240825-0027
docker.io/discourse/base:2.0.20240825-0027
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-10-04T15:54:02.326983 #1] INFO -- : Reading from stdin
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/cli.rb:54:in `split': invalid byte sequence in UTF-8 (ArgumentError)
split = conf.split("_FILE_SEPERATOR_")
^^^^^^^^^^^^^^^^^^
from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/cli.rb:54:in `run'
from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/bin/pups:9:in `<top (required)>'
from /usr/local/bin/pups:25:in `load'
from /usr/local/bin/pups:25:in `<main>'
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
이 문제를 해결하는 방법에 대한 아이디어가 있을까요? 이 재배포 이후로 포럼이 현재 사용 불가능한 상태입니다
이 경우 web_only와 data는 분리된 컨테이너이며, web_only 컨테이너의 시작이 다음과 같이 실패합니다.
oot@docker2:/var/discourse# ./launcher start web_only
x86_64 arch detected.
starting up existing container
+ /usr/bin/docker start web_only
Error response from daemon: Cannot link to a non running container: /data AS /web_only/data
Error: failed to start containers: web_only
데이터베이스가 다른 머신에 외부로 구성되어 있으므로, 이 경우 docker를 통해 수동으로 시작해야 하는 것 같습니다. web_only yaml 파일의 이 코드를 참조하세요:
## connect to central postgres database
DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_USERNAME: discourse
DISCOURSE_DB_PASSWORD: xxxxxxxxxx
DISCOURSE_DB_HOST: 10.10.xx.xx
DISCOURSE_REDIS_HOST: data
root@docker2:/var/discourse/containers# yamllint web_only.yml
web_only.yml
5:81 error line too long (115 > 80 characters) (line-length)
8:1 warning missing document start "---" (document-start)
14:4 warning missing starting space in comment (comments)
14:3 warning comment not indented like content (comments-indentation)
15:4 warning missing starting space in comment (comments)
18:81 error line too long (85 > 80 characters) (line-length)
36:3 warning comment not indented like content (comments-indentation)
37:4 warning missing starting space in comment (comments)
43:81 error line too long (85 > 80 characters) (line-length)
44:81 error line too long (87 > 80 characters) (line-length)
58:81 error line too long (84 > 80 characters) (line-length)
67:81 error line too long (90 > 80 characters) (line-length)
68:4 warning missing starting space in comment (comments)
77:81 error line too long (83 > 80 characters) (line-length)
79:4 warning missing starting space in comment (comments)
99:81 error line too long (81 > 80 characters) (line-length)
110:81 error line too long (81 > 80 characters) (line-length)
117:81 error line too long (81 > 80 characters) (line-length)
126:43 error trailing spaces (trailing-spaces)
151:4 warning missing starting space in comment (comments)
154:4 warning missing starting space in comment (comments)
155:4 warning missing starting space in comment (comments)
156:4 warning missing starting space in comment (comments)
156:81 error line too long (131 > 80 characters) (line-length)