-
-
Notifications
You must be signed in to change notification settings - Fork 647
Message: Psych::SyntaxError: (/<snip>/config.yml): did not find expected key while parsing a block mapping at line 4 column 1 #870
Comments
Hmm... so it looks like my alteration to the cron setup in config.yml was the culprit. Here's what I had changed. from: I'm guessing that's just not allowed? |
@caschbre it's most likely a YAML syntax error, YAML is very fussy about spacing. |
@caschbre - Are you using tabs at all? YAML doesn't allow tabs to be used anywhere, and will do funny things if you have them (http://www.yaml.org/faq.html) The job as formatted in your comment looks fine; I'm wondering if you might have your editor set to automatically force tabs. Also, make sure that spacing is correct for each config directive, e.g. drupalvm_cron_jobs:
- name: "Drupal Cron"
minute: "*/30"
job: "drush -r {{ drupal_core_path }} core-cron" (there should be four spaces before |
YAML loves them spaces -- https://www.youtube.com/watch?v=SsoOG6ZeyUI |
I'm also getting the same error with the Cron Job section uncommented using the default settings
Haven't figured out what the correct syntax should be. |
You need to remove the empty set drupalvm_cron_jobs:
- name: "Drupal Cron"
minute: "*/30"
job: "drush -r {{ drupal_core_path }} core-cron" |
Also just noticed those trailing commas in the example. That doesn't look like valid yaml. |
Followup #870: Fix invalid cron example by removing trailing commas
Just downloaded the latest DrupalVM today, updated config.yml like I normally do and
$ vagrant up
gave me the following...The text was updated successfully, but these errors were encountered: