Skip to content

Instantly share code, notes, and snippets.

@silenius
Created May 25, 2016 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silenius/51d61aa9ab07f8b9847213ad32ed2564 to your computer and use it in GitHub Desktop.
Save silenius/51d61aa9ab07f8b9847213ad32ed2564 to your computer and use it in GitHub Desktop.
sandbox.lan:
- Rendering SLS 'base:webapps.ckan_bbpf' failed: Jinja error: cannot represent an object: {'app:main': {'solr_url': 'http://10.209.1.30:8983/solr/ckan_bbpf', 'ckan.bbpf_theme.publications_mendeley_group.name': 'the GBIF Public Library at Mendeley', 'ckan.site_url': 'http://home.bebif.be/ckan_bbpf', 'ckan.plugins': 'stats text_view image_view recline_view bbpf_theme gbif_fields', 'ckan.bbpf_theme.publications_service.url': 'http://home.bebif.be/belgian_publications/papers', 'ckan.bbpf_theme.publications_mendeley_group.url': 'https://www.mendeley.com/groups/1068301/gbif-public-library/', 'ckan.site_id': 'ckan_bbpf'}}
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/site-packages/salt/utils/templates.py", line 366, in render_jinja_tmpl
- output = template.render(**decoded_context)
- File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
- return self.environment.handle_exception(exc_info, True)
- File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
- reraise(exc_type, exc_value, tb)
- File "<template>", line 70, in top-level template code
- File "/usr/local/lib/python2.7/site-packages/salt/utils/yamlencoding.py", line 42, in yaml_encode
- ynode = yrepr.represent_data(data)
- File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 67, in represent_data
- node = self.yaml_representers[None](self, data)
- File "/usr/local/lib/python2.7/site-packages/yaml/representer.py", line 247, in represent_undefined
- raise RepresenterError("cannot represent an object: %s" % data)
- RepresenterError: cannot represent an object: {'app:main': {'solr_url': 'http://10.209.1.30:8983/solr/ckan_bbpf', 'ckan.bbpf_theme.publications_mendeley_group.name': 'the GBIF Public Library at Mendeley', 'ckan.site_url': 'http://home.xxx.be/ckan_bbpf', 'ckan.plugins': 'stats text_view image_view recline_view bbpf_theme gbif_fields', 'ckan.bbpf_theme.publications_service.url': 'http://home.bebif.be/belgian_publications/papers', 'ckan.bbpf_theme.publications_mendeley_group.url': 'https://www.mendeley.com/groups/1068301/gbif-public-library/', 'ckan.site_id': 'ckan_bbpf'}}
-
- ; line 70
-
- ---
- [...]
-
- adapt_ckan_config_file:
- ini.options_present:
- - name: {{ deploy_dir ~ '/etc/ckan.ini' }}
- - sections:
- {{ webapp.ini|yaml_encode }} <======================
- - watch:
- - cmd: create_ckan_config_file
-
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/site-packages/salt/utils/templates.py", line 366, in render_jinja_tmpl
- [...]
- ---
ERROR: Minions returned with non-zero exit code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment