App.yml dit que la ligne 10 a une erreur inattendue !

J’ai une erreur qui apparaît après avoir essayé de mettre à jour et d’extraire les plugins que j’ai ajoutés à mon fichier app.yml et exécuté la commande ./launcher rebuild app, mais cela imprime une erreur à la fois lorsque j’essaie de mettre à jour le fichier yml et aussi lorsque j’utilise une commande pour trouver sur quelle ligne se trouve le problème. La ligne dont je parle est la ligne 10, mais je n’ai pas touché ni changé quoi que ce soit sur la ligne 10, point. C’est très étrange que cela se produise.

Après avoir exécuté la commande suivante : « cat -n containers/app.yml », cela imprime ce qui suit ci-dessous :

(\u003cunknown\u003e) : n’a pas trouvé la clé attendue lors de l’analyse d’un bloc de mappage à la ligne 10, colonne 1 -e LANG=en_US.UTF-8
Erreur de syntaxe YAML. Veuillez vérifier vos fichiers de configuration containers/*.yml.

Je ne suis pas sûr de ce que cela est censé me dire. Je n’ai jamais touché à quoi que ce soit sur la ligne 10, ce qui est très étrange.

Peut-être rechercher « valider fichier yaml en ligne » et y coller votre fichier yml - [REDACTED] ?

Votre erreur UTF me suggère que vous avez peut-être un caractère inattendu dans votre fichier yml - peut-être une apostrophe typographique.

1 « J'aime »

is there a way to rebuild the app.yml file ?. When I go to the yaml file validation website it shows me up to 80+ errors in the file. Again I have not changed anything period.

Here’s what I get when I scan the app.yml file. from line 3 to 84 I get these errors.

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

On dirait que vous avez collé ou téléchargé un fichier yaml avec des numéros de ligne.

Je vous suggère de coller votre fichier yml expurgé ici, peut-être dans une section avec des triples apostrophes.

1 « J'aime »

Je suppose que je vais devoir tout réinstaller.

Comme bon vous semble. À votre place, je serais intéressé de savoir ce qui s’est passé, pour savoir comment cela s’est passé, afin de l’éviter à l’avenir.

2 « J'aime »