App.yml يقول أن السطر 10 به خطأ غير متوقع!

لدي خطأ يظهر بعد محاولة تحديث وسحب المكونات الإضافية التي أضفتها إلى ملف app.yml الخاص بي وتشغيل الأمر ./launcher rebuild app ولكنه يطبع خطأ عند محاولة تحديث ملف yml وعند استخدام أمر للعثور على السطر الذي توجد به المشكلة. السطر الذي أتحدث عنه هو السطر 10 ولكنني لم ألمس أو أغير أي شيء في السطر 10 على الإطلاق. هذا غريب جدًا أن يحدث.

بعد تشغيل الأمر التالي: “cat -n containers/app.yml” فإنه يطبع ما يلي أدناه:

(\u003cunknown\u003e): لم يتم العثور على المفتاح المتوقع أثناء تحليل تعيين كتلة في السطر 10 العمود 1 -e LANG=en_US.UTF-8
خطأ في بناء جملة YAML. يرجى التحقق من ملفات التكوين الخاصة بـ containers/*.yml.

أنا لست متأكدًا مما يعنيه هذا. لم ألمس أي شيء في السطر 10 على الإطلاق وهو أمر غريب جدًا.

ربما ابحث عن “التحقق من صحة ملف yaml عبر الإنترنت” والصق ملف - المحذوف - yaml الخاص بك هناك؟

يشير خطأ UTF الخاص بك إليّ على أنه ربما لديك حرف غير متوقع في ملف yaml الخاص بك - ربما علامة اقتباس ذكية.

إعجاب واحد (1)

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

يبدو أنك قمت بلصق أو تحميل ملف yaml مع أرقام الأسطر.

أقترح عليك لصق ملف yaml المخفف الخاص بك هنا، ربما في قسم ثلاثي علامات الاقتباس.

إعجاب واحد (1)

أعتقد أنني سأقوم بإعادة التثبيت.

كما تراه مناسبًا. في موقعك، سأكون مهتمًا بمعرفة ما حدث، حتى أعرف كيف حدث، حتى أتجنبه في المستقبل.

إعجابَين (2)