app.yml에서 10번째 줄에 예기치 않은 오류가 발생했습니다!

app.yml 파일에 추가한 플러그인을 업데이트하고 가져온 후 ./launcher rebuild app 명령을 실행하려고 했을 때 오류가 발생했습니다. yml 파일을 업데이트할 때도, 문제의 줄을 찾기 위해 명령을 사용할 때도 모두 오류가 표시됩니다. 말씀하시는 줄은 10번 줄인데, 저는 10번 줄을 절대 건드리거나 변경한 적이 없습니다. 이런 일이 일어나는 것이 매우 기이합니다.

다음 명령을 실행한 후: cat -n containers/app.yml 아래 내용이 출력됩니다:

(): did not find expected key while parsing a block mapping at line 10 column 1 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

이 메시지가 무엇을 의미하는지 정확히 모르겠습니다. 10번 줄은 정말로 한 번도 건드린 적이 없는데, 이는 매우 이상한 일입니다.

“validate yaml file online”라고 검색해서 수정한 yml 파일을 해당 사이트에 붙여넣어 보시는 건 어떨까요?

UTF 오류를 보면 yml 파일에 예상치 못한 문자가 있는 것 같습니다. 예를 들어, 똑똑한 인용표(smart quote) 같은 것이 있을 수 있습니다.

app.yml 파일을 다시 생성하는 방법이 있을까요? YAML 파일 검증 웹사이트에 접속하면 파일에 80개 이상의 오류가 표시됩니다. 저는 아무것도 변경하지 않았습니다.

app.yml 파일을 스캔했을 때의 결과는 다음과 같습니다. 3행부터 84행까지 다음 오류가 발생합니다.

Unexpected scalar at node end at line 3, column 6
Unexpected scalar token in YAML stream: "4" at line 4, column 6
Unexpected scalar token in YAML stream: "5" at line 5, column 6
Unexpected scalar token in YAML stream: "6" at line 6, column 6
Unexpected scalar token in YAML stream: "7" at line 7, column 6
Unexpected scalar token in YAML stream: "8" at line 8, column 6
Unexpected scalar token in YAML stream: "9\n 10 templates" at line 9, column 6
Unexpected map-value-ind token in YAML stream: ":" at line 9, column 25
Unexpected scalar token in YAML stream: "11 - \"templates/postgres.template.yml\"\n 12 - \"templates/redis.template.yml\"\n 13 - \"templates/web.template.yml\"\n 14" at line 10, column 5
Unexpected scalar token in YAML stream: "15" at line 11, column 5
Unexpected scalar token in YAML stream: "16 - \"templates/web.ratelimited.template.yml\"\n 17" at line 12, column 5
Unexpected scalar token in YAML stream: "18 - \"templates/web.ssl.template.yml\"\n 19 - \"templates/web.letsencrypt.ssl.template.yml\"\n 20\n 21" at line 13, column 5
Unexpected scalar token in YAML stream: "22" at line 14, column 5
Unexpected scalar token in YAML stream: "23" at line 15, column 5
Unexpected scalar token in YAML stream: "24 expose" at line 16, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 16, column 15
Unexpected scalar token in YAML stream: "25 - \"80:80\"" at line 17, column 5
Unexpected scalar token in YAML stream: "26 - \"443:443\"" at line 18, column 5
Unexpected scalar token in YAML stream: "27\n 28 params" at line 19, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 19, column 22
Unexpected scalar token in YAML stream: "29 db_default_text_search_config" at line 20, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 20, column 40
Unexpected double-quoted-scalar token in YAML stream: "\"pg_catalog.english\"" at line 20, column 42
Unexpected scalar token in YAML stream: "30\n 31" at line 21, column 5
Unexpected scalar token in YAML stream: "32" at line 22, column 5
Unexpected scalar token in YAML stream: "33 db_shared_buffers" at line 23, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 23, column 28
Unexpected double-quoted-scalar token in YAML stream: "\"1024MB\"" at line 23, column 30
Unexpected scalar token in YAML stream: "34\n 35" at line 24, column 5
Unexpected scalar token in YAML stream: "36" at line 25, column 5
Unexpected scalar token in YAML stream: "37\n 38" at line 26, column 5
Unexpected scalar token in YAML stream: "39" at line 27, column 5
Unexpected scalar token in YAML stream: "40\n 41 env" at line 28, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 28, column 19
Unexpected scalar token in YAML stream: "42 LC_ALL" at line 29, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 29, column 17
Unexpected scalar token in YAML stream: "en_US.UTF-8" at line 29, column 19
Unexpected scalar token in YAML stream: "43 LANG" at line 30, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 30, column 15
Unexpected scalar token in YAML stream: "en_US.UTF-8" at line 30, column 17
Unexpected scalar token in YAML stream: "44 LANGUAGE" at line 31, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 31, column 19
Unexpected scalar token in YAML stream: "en_US.UTF-8" at line 31, column 21
Unexpected scalar token in YAML stream: "45" at line 32, column 5
Unexpected scalar token in YAML stream: "46\n 47" at line 33, column 5
Unexpected scalar token in YAML stream: "48" at line 34, column 5
Unexpected scalar token in YAML stream: "49 UNICORN_WORKERS" at line 35, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 35, column 26
Unexpected scalar token in YAML stream: "4" at line 35, column 28
Unexpected scalar token in YAML stream: "50\n 51" at line 36, column 5
Unexpected scalar token in YAML stream: "52" at line 37, column 5
Unexpected scalar token in YAML stream: "53 DISCOURSE_HOSTNAME" at line 38, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 38, column 29
Unexpected scalar token in YAML stream: "community.officialmikej.com" at line 38, column 31
Unexpected scalar token in YAML stream: "54\n 55" at line 39, column 5
Unexpected scalar token in YAML stream: "56" at line 40, column 5
Unexpected scalar token in YAML stream: "57" at line 41, column 5
Unexpected scalar token in YAML stream: "58\n 59" at line 42, column 5
Unexpected scalar token in YAML stream: "60" at line 43, column 5
Unexpected scalar token in YAML stream: "61 DISCOURSE_DEVELOPER_EMAILS" at line 44, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 44, column 37
Unexpected single-quoted-scalar token in YAML stream: "'official.mikejtv@gmail.com'" at line 44, column 39
Unexpected scalar token in YAML stream: "62\n 63" at line 45, column 5
Unexpected scalar token in YAML stream: "64" at line 46, column 5
Unexpected scalar token in YAML stream: "65" at line 47, column 5
Unexpected scalar token in YAML stream: "66 DISCOURSE_SMTP_ADDRESS" at line 48, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 48, column 33
Unexpected scalar token in YAML stream: "smtp.mailgun.org" at line 48, column 35
Unexpected scalar token in YAML stream: "67 DISCOURSE_SMTP_PORT" at line 49, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 49, column 30
Unexpected scalar token in YAML stream: "587" at line 49, column 32
Unexpected scalar token in YAML stream: "68 DISCOURSE_SMTP_USER_NAME" at line 50, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 50, column 35
Unexpected scalar token in YAML stream: "no-reply@officialmikej.com" at line 50, column 37
Unexpected scalar token in YAML stream: "69 DISCOURSE_SMTP_PASSWORD" at line 51, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 51, column 34
Unexpected double-quoted-scalar token in YAML stream: "\"1413b575d91c226717812982d994d7a5-f0e50a42-15346abd\"" at line 51, column 36
Unexpected scalar token in YAML stream: "70" at line 52, column 5
Unexpected scalar token in YAML stream: "71 DISCOURSE_SMTP_DOMAIN" at line 53, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 53, column 32
Unexpected scalar token in YAML stream: "officialmikej.com" at line 53, column 34
Unexpected scalar token in YAML stream: "72 DISCOURSE_NOTIFICATION_EMAIL" at line 54, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 54, column 39
Unexpected scalar token in YAML stream: "no-reply@officialmikej.com" at line 54, column 41
Unexpected scalar token in YAML stream: "73\n 74" at line 55, column 5
Unexpected scalar token in YAML stream: "75 LETSENCRYPT_ACCOUNT_EMAIL" at line 56, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 56, column 36
Unexpected scalar token in YAML stream: "official.mikejtv@gmail.com" at line 56, column 38
Unexpected scalar token in YAML stream: "76\n 77" at line 57, column 5
Unexpected scalar token in YAML stream: "78" at line 58, column 5
Unexpected scalar token in YAML stream: "79" at line 59, column 5
Unexpected scalar token in YAML stream: "80\n 81" at line 60, column 5
Unexpected scalar token in YAML stream: "82" at line 61, column 5
Unexpected scalar token in YAML stream: "83" at line 62, column 5
Unexpected scalar token in YAML stream: "84\n 85" at line 63, column 5
Unexpected scalar token in YAML stream: "86 volumes" at line 64, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 64, column 16
Unexpected scalar token in YAML stream: "87 - volume" at line 65, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 65, column 19
Unexpected scalar token in YAML stream: "88 host" at line 66, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 66, column 19
Unexpected scalar token in YAML stream: "/var/discourse/shared/standalone" at line 66, column 21
Unexpected scalar token in YAML stream: "89 guest" at line 67, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 67, column 20
Unexpected scalar token in YAML stream: "/shared" at line 67, column 22
Unexpected scalar token in YAML stream: "90 - volume" at line 68, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 68, column 19
Unexpected scalar token in YAML stream: "91 host" at line 69, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 69, column 19
Unexpected scalar token in YAML stream: "/var/discourse/shared/standalone/log/var-log" at line 69, column 21
Unexpected scalar token in YAML stream: "92 guest" at line 70, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 70, column 20
Unexpected scalar token in YAML stream: "/var/log" at line 70, column 22
Unexpected scalar token in YAML stream: "93\n 94" at line 71, column 5
Unexpected scalar token in YAML stream: "95" at line 72, column 5
Unexpected scalar token in YAML stream: "96 hooks" at line 73, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 73, column 14
Unexpected scalar token in YAML stream: "97 after_code" at line 74, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 74, column 21
Unexpected scalar token in YAML stream: "98 - exec" at line 75, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 75, column 19
Unexpected scalar token in YAML stream: "99 cd" at line 76, column 5
Unexpected map-value-ind token in YAML stream: ":" at line 76, column 19
Unexpected scalar token in YAML stream: "$home/plugins" at line 76, column 21
Unexpected scalar token in YAML stream: "100 cmd" at line 77, column 4
Unexpected map-value-ind token in YAML stream: ":" at line 77, column 20
Unexpected scalar token in YAML stream: "101\n 102 - sudo -E git clone https://github.com/discourse/docker_manager.git\n 103\n 104 - sudo -E git clone https://github.com/discourse/discourse-follow.git\n 105\n 106 - sudo -E git clone https://github.com/discourse/discourse-animated-avatar.git\n 107\n 108 - sudo -E git clone https://github.com/discourse/discourse-post-voting.git\n 109\n 110 - sudo -E git clone https://github.com/discourse/discourse-subscriptions.git\n 111\n 112\n 113\n 114\n 115\n 116" at line 78, column 4
Unexpected scalar token in YAML stream: "117 run" at line 79, column 4
Unexpected map-value-ind token in YAML stream: ":" at line 79, column 12
Unexpected scalar token in YAML stream: "118 - exec" at line 80, column 4
Unexpected map-value-ind token in YAML stream: ":" at line 80, column 17
Unexpected scalar token in YAML stream: "echo \"Beginning of custom commands\"" at line 80, column 19
Unexpected scalar token in YAML stream: "119" at line 81, column 4
Unexpected scalar token in YAML stream: "120" at line 82, column 4
Unexpected scalar token in YAML stream: "121" at line 83, column 4
Unexpected scalar token in YAML stream: "122 - exec" at line 84, column 4
Unexpected map-value-ind token in YAML stream: ":" at line 84, column 17
Unexpected scalar token in YAML stream: "echo \"End of custom commands\"" at line 84, column 19

줄번호가 포함된 yaml 파일을 붙여넣거나 업로드한 것 같습니다.

편집된 yml 파일을 여기에 붙여넣어 주시면 좋겠습니다. 삼중 백쿼트(```) 섹션으로 포맷을 지정해 주시면 됩니다.

재설치를 해야 할 것 같아요.

당신 마음대로입니다. 제 위치라면 무슨 일이 있었는지, 어떻게 그런 일이 발생했는지 알고 싶을 텐데, 그러면 앞으로 같은 일이 일어나지 않도록 방지할 수 있을 테니까요.