Comments (3)
Running the command manually also produces a similar error:
(ckan.localhost.localdomain)ckan@ckan01:~/ckan.localhost.localdomain/src/ckan$ paster db init -c /etc/ckan/ckan.localhost.localdomain/production.ini
Traceback (most recent call last):
File "/usr/lib/ckan/ckan.localhost.localdomain/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/usr/lib/ckan/ckan.localhost.localdomain/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/ckan/ckan.localhost.localdomain/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/usr/lib/ckan/ckan.localhost.localdomain/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
result = self.command()
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/lib/cli.py", line 208, in command
self._load_config(cmd!='upgrade')
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/lib/cli.py", line 148, in _load_config
load_environment(conf.global_conf, conf.local_conf)
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/config/environment.py", line 232, in load_environment
p.load_all(config)
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/plugins/core.py", line 124, in load_all
unload_all()
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/plugins/core.py", line 181, in unload_all
unload(*reversed(_PLUGINS))
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/plugins/core.py", line 209, in unload
plugins_update()
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/plugins/core.py", line 116, in plugins_update
environment.update_config()
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/config/environment.py", line 270, in update_config
search.check_solr_schema_version()
File "/usr/lib/ckan/ckan.localhost.localdomain/src/ckan/ckan/lib/search/__init__.py", line 306, in check_solr_schema_version
% (version, ', '.join(SUPPORTED_SCHEMA_VERSIONS)))
ckan.lib.search.common.SearchError: SOLR schema version not supported: 1.5. Supported versions are [2.3]
(ckan.localhost.localdomain)ckan@ckan01:~/ckan.localhost.localdomain/src/ckan$
from ansible-ckan.
Configuring ckan's solr core first & then initializing the database seems to fix this error
Steps to reproduce
-
copy ckan's solr schema.xml to solr core conf dir & restart solr service
- name: Configure solr core used by ckan command: /bin/cp -a {{ ckan_virtualenv }}/src/ckan/ckan/config/solr/schema.xml {{ solr_var_dir }}/data/{{ item }}/conf/schema.xml notify: reload solr with_items: solr_cores tags: solr
-
initialize ckan postgresql db:
(ckan.localhost.localdomain)ckan@ckan01:~/ckan.localhost.localdomain/src/ckan$ paster db init -c /etc/ckan/ckan.localhost.localdomain/production.ini Initialising DB: SUCCESS
from ansible-ckan.
closed via 8b5b09d
from ansible-ckan.
Related Issues (13)
- Group hosts file according to roles HOT 1
- Add support for Travis CI HOT 3
- Download & Install postgresql from PGDG repo HOT 2
- Add tags & hosts distro checks HOT 1
- Internal Server Error(code 500) returned by apache HOT 4
- Ansible error when starting/enabling solr service HOT 2
- Test CKAN 2.4
- Use nip.io for ckan site name
- Switch to Travis trusty beta build environment HOT 1
- Port Playbooks to Ansible 2.0 HOT 2
- Only initialize CKAN database if necessary HOT 1
- user provisioning is not compatible with ansible 2.1 security
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-ckan.