[ckan-dev] Core Extensions (QA, Archiver) shouldnt they just work?

McDonaldR McDonaldR at angus.gov.uk
Thu Aug 25 15:35:48 UTC 2016


Hello

I just recently set them up on clean Ubuntu 14.04 VMs and they took some work before I started getting results.  I still don't think it's quite right but Archiver/Report/QA all update when I add a new dataset or change an existing one.

To get the plugins to work I had to make sure my nginx configuration was correct - check your path and permissions (www-data user)

Nginx - change in  config file from this:

    # Archived Files
    location /resource_cache {
        root /usr/share/nginx/html/resource_cache;
    }

To this:

    # Archived Files
    location /resource_cache {
        root /usr/share/nginx/html;
    }

Production.ini - change it from this:


·        ckanext-archiver.archive_dir = /usr/share/nginx/html/resource_cache

·        ckanext-archiver.cache_root_url = http://opendata.angus.gov.uk/resource_cache

To this:


·        ckanext-archiver.archive_dir = /usr/share/nginx/html/resource_cache

·        ckanext-archiver.cache_root_url = http://opendata.angus.gov.uk/resource_cache/  <--added trailing slash

I also had to sort out my celery queue and in the supervisor config file I had to change the following:


·        From command=/usr/lib/ckan/default/bin/paster --plugin=ckan celeryd --config=/etc/ckan/default/production.ini

·        To command=/usr/lib/ckan/default/bin/paster --plugin=ckanext-archiver celeryd2 run all --config=/etc/ckan/default/production.ini

The nginx logs had pointers that got me going in the right direction.  Making sure the www-data user can read and write in all the right places helped too.

Ross


Ross McDonald | GIS Data Coordinator | Resources Department, IT Division | Angus Council, Angus House, Orchardbank Business Park, Forfar, DD8 1AT
T: 01307 476419 | F: 01307 476401 | E: mcdonaldr at angus.gov.uk<mailto:mcdonaldr at angus.gov.uk>





From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of Timothy Giles
Sent: 25 August 2016 10:01
To: 'ckan-dev at lists.okfn.org'
Subject: [ckan-dev] Core Extensions (QA, Archiver) shouldnt they just work?

Hi,

My team and I sat down yesterday to try again, to install Archiver (+ Report) and QA. This was on an Ubuntu 12.04 + CKAN 'master' development VM and 14.04 + CKAN production VM.  After a day, neither VM shows the QA or Archiver GUI components. Both VMs failed to install Archiver with the instructions provided.

Being core CKAN developed extensions - am I wrong in thinking that they should just work out of the box? The install instructions should not leave out missing apt-get requirements. These are not extensions developed by outside groups.

OK - so, I will update the instructions with the missing steps. But - has anyone managed to successfully installed these two extensions on an up to date fresh CKAN installation?  Did you also have the same issues?  Is there something else I and my colleague are missing?


Regards Timothy

This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160825/f0edcb96/attachment-0003.html>


More information about the ckan-dev mailing list