Closed tbalaz closed 10 years ago
Ah, we need to add in this repo: git@github.com:datagovuk/ckanext-report.git as for the others - clone etc.
Hi,
we added lines:
"git clone git@github.com:datagovuk/ckanext-report cd ckanext-report git checkout master cd -"
to script https://github.com/datagovuk/dgu-vagrant-puppet/blob/togo/src/git_clone_all.sh.
but error is still there.
i know that i need to add line
'ckanext-report' under $pip_pkgs_local in https://github.com/datagovuk/dgu-vagrant-puppet/blob/togo/puppet/modules/dgu_ckan/manifests/init.pp
Is there something else that should be changed in init.pp?
Do i need to add "report" to ckan.plugins in
dgu-vagrant-puppet / puppet / modules / dgu_ckan / templates / ckan.ini.erb.
Thank you.
When i look at output of "sudo puppet apply /vagrant/puppet/manifests/site.pp" i see:
Notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-ga-report]/Exec[pip_install_ckanext-ga-report]/returns: executed successfully
for all packages from /vagrant/src except ckanext-report
Packages in /vagrant/src/ :
ckan
ckanext-datapreview
ckanext-ga-report
ckanext-hierarchy
ckanext-os
ckanext-report
ckanext-archiver
ckanext-dgu
ckanext-harvest
ckanext-importlib
ckanext-qa
ckanext-spatial
logreporter
It seems that ckanext-report is not installed.
I can install ckanext-report with pip install -e /src/ckanext-report with no errors but i still have same error when i run "sudo puppet apply /vagrant/puppet/manifests/site.pp"
I would appreciate any help.
Yes, in ckan.ini.erb ckan.plugins you need to add "report dgu_report".
However I'm not sure that will help this particular error. So puppet is failing to do the /home/co/ckan/bin/pip install -e /src/ckanext-report
(note the path to pip if you want to do it manually). I would have thought adding it to $pip_pkgs_local and doing puppet apply would do this.
I think this is down to a problem due to us using librarian-puppet. This is used to get the puppet dependencies. However it copies the ckan puppet module files into it's own location on disk. So when you update the ckan puppet puppet file you have to also get librarian to recopy it into its location to affect future runs of 'puppet apply'. This has caught me many times.
Ok, i will try that and let you know results.
I've run this from scratch with the updated puppet scripts and this problem appears resolved.
When running sudo puppet apply /vagrant/puppet/manifests/site.pp
from https://github.com/datagovuk/dgu-vagrant-puppet/tree/togo we get error:
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: File "/vagrant/src/ckanext-dgu/ckanext/dgu/plugin.py", line 18, in
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: from ckanext.report.interfaces import IReport
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: ImportError: No module named report.interfaces
Error: /home/co/ckan/bin/paster --plugin=ckan db init --config=/var/ckan/ckan.ini returned 1 instead of one of [0]
Error: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: change from notrun to 0 failed: /home/co/ckan/bin/paster --plugin=ckan db init --config=/var/ckan/ckan.ini returned 1 instead of one of [0]
Can anyone help.
Thank you.