Giter VIP home page Giter VIP logo

dgu-vagrant-puppet's Introduction

This repository is currently unmaintained

This repository is currently unmaintained, and as a result we are unable to provide more than guidance in using it. It should be feasible to use CKAN in combination with the many available extensions to obtain the same result.


Data.gov.uk To Go

This repo provides scripts to install a copy of data.gov.uk's website to your own server. Rebrand it and you have a fully-featured government open data portal.

NB This used to be the 'togo' branch, but that has been removed now - use master.

About

The UK Government has contributed Data.gov.uk To Go to Github to kick-start the use and development of common open data portal software, beyond the basic CKAN. UK wants to develop it in partnership with other providers of Open Data portals, through the usual Open Source / Github model of forking, pull requests, issues etc. that everyone is encouraged to contribute to.

Demo image

If you question or issue installing, please refer to open Github issues before creating a new one: https://github.com/datagovuk/dgu-vagrant-puppet/issues

Here are some useful docs: data.gov.uk guidance

  • Permissions for publisher users - requesting and giving
  • Creating datasets using the form
  • Creating datasets using harvesters, particularly for metadata in DCAT/data.json/CKAN format

David Read [email protected]

Overview

Here is an overview of the install process:

  • Machine preparation - Vagrant VM or a fresh Ubuntu 12.04 machine
  • CKAN source - download from Github
  • Puppet provision of the main software packages (Apache, Postgres, SOLR etc) and set-up linux users
  • CKAN database setup
  • Drupal install
  • Additional configuration

Suggested system requirements

data.gov.uk runs on a single machine specified as follows:

  • 24GB RAM
  • 8 cores
  • 200GB disc

We've not needed to make it work on a lesser machine, but no doubt it could.

For single-user testing, you can certainly run it in less. e.g. we run it on dev VMs with 8 GB RAM.

1. Machine preparation & CKAN install

There are two options - you can either use Vagrant to create a virtual machine, or you can use an Ubuntu machine that already exists. Either way, Puppet will be used to do basic set-up of users, install packages and CKAN itself.

Option 1: Virtual Machine creation

NB We have had issues running this in VMWare and suggest you stick with (free) VirtualBox, using 4.3.14 or later.

NB This setup does not work with a Windows host machine (since it relies on symbolic links).

Before creating the virtual machine, clone this repo to the host machine:

git clone https://github.com/datagovuk/dgu-vagrant-puppet
cd dgu-vagrant-puppet

Use the script to clone all the CKAN source repos onto your host machine:

cd src
./git_clone_all.sh
cd ..

Using Vagrant and Puppet, launch a fully provisioned Virtual Machine as described in this repo:

vagrant up

Now a great deal should happen. Expect these key stages:

  • create the virtual machine (VM)
  • boot the VM
  • update some key Ubuntu packages like linux-headers
  • mount the shared folders

You can generally ignore these warnings if they come up:

  • the version of GuestAdditions not matching
  • "Could not find the X.Org or XFree86 Window System, skipping."

At this point the shell text goes green and it does the "provision". If this does not start automatically, start it manually (from the host box):

vagrant provision

The provision is:

  • prepare to run librarian (install_puppet_dependancies.sh) - install git, update all Ubuntu packages, install ruby and librarian-puppet
  • runs librarian-puppet - downloads all puppet modules that are required (listed in Puppetfile) and makes a copy of the CKAN puppet module.
  • runs 'puppet apply' (blue output) - installs and configures CKAN and installs some dependencies of Drupal.

Provisioning will take a while, and you can ignore warnings that are listed in the section of this document titled 'Puppet warnings'. If you should suffer errors, please see the section below 'Puppet errors'.

NB If there is an error and you want to restart the provisioning, from the host box you should do:

vagrant provision

Now you can log into the new VM ("host" machine):

vagrant ssh

The prompt will change to show your terminal is connected to the VM, you will be logged in as the vagrant user. All further steps are from this ssh session on the VM after you have changed your user to 'co' with:

sudo su co

Option 2: Fresh machine preparation

Instead of using a virtual-machine it is perfectly fine alternative to use a non-virtual machine, freshly installed with Ubuntu 12.04. The Puppet scripts assume the name of the machine is 'ckan', so you need to login to it and rename it:

sudo hostname ckan
sudo vim /etc/hosts
# ^ add "127.0.0.1  ckan" to hosts...

Puppet will assume the home user is called 'co', so create it with some particular options:

sudo adduser co -u 510 --group sudo
sudo su co

All further steps are to be carried out from the ssh session under the user 'co' on this target machine.

You need to install some dependencies. Firstly git:

sudo apt-get install git

Now install ruby and 'librarian-puppet':

curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
rvm install 1.8.7
sudo gem install puppet -v 2.7.19
sudo gem install highline -v 1.6.1  # need this older version for librarian compatibility with this version of ruby
sudo gem install librarian-puppet -v 1.0.3

Clone this repo to the machine in /vagrant (to match the vagrant install):

sudo mkdir /vagrant
sudo chown co /vagrant
sudo chgrp co /vagrant
cd /vagrant
git clone https://github.com/datagovuk/dgu-vagrant-puppet
cd /vagrant/dgu-vagrant-puppet

Use the script to clone all the CKAN source repos.

ln -s /vagrant/dgu-vagrant-puppet/src /vagrant/src
ln -s /vagrant/dgu-vagrant-puppet/puppet/ /vagrant/puppet
ln -s /vagrant/dgu-vagrant-puppet/pypi /vagrant/pypi
ln -s /vagrant/src /src
cd /src
./git_clone_all.sh

Puppet is used to install and configure the main software packages (Apache, Postgres, SOLR etc) and setup linux users.

To provision an existing machine, install the puppet modules:

sudo /vagrant/puppet/install_puppet_dependancies.sh

and then execute the site manifest now at /etc/puppet/:

sudo puppet apply /vagrant/puppet/manifests/site.pp

Provisioning will take a while, and you can ignore warnings that are listed in the section of this document titled 'Puppet warnings'. If you should suffer errors, please see the section below 'Puppet errors'.

To automatically activate your CKAN python virtual environment on log-in, it is recommended to add this line to your .bashrc:

source ~/ckan/bin/activate && cd /src/ckan

and also add this line for the ruby to work properly:

source ~/.rvm/scripts/rvm

2. Extra CKAN setup

(This extra setup will be usefully puppetized in the future)

Download NLTK Stopwords Corpus

For the auth-theming used by the harvesters you need to install this corpus:

/home/co/ckan/bin/python -m nltk.downloader stopwords

Harvesting

Harvester needs a backend, and the default is Redis (installed by puppet).

You need to create the gather and fetch queues by running the consumers briefly:

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-harvest harvester gather_consumer --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-harvest harvester fetch_consumer --config=/var/ckan/ckan.ini

The queues should be left running, either in screen sessions, or preferably using supervisord.

Meanwhile you need the harvester run cron job to run every 10 minutes:

*/10 *  * * *   www-data  /home/co/ckan/bin/paster --plugin=ckanext-harvest harvester run --config=/var/ckan/ckan.ini

Archiver & QA

To enable the resource cache, broken link checker and 5 star checker:

  1. Unless you're just testing the site locally, change the ckan.cache_url_root setting in /var/ckan/ckan.ini to reflect the domain where you will host your site. e.g. for data.gov.uk we have:

     ckan.cache_url_root = http://data.gov.uk/data/resource_cache/
    
  2. Keep these two processes running in the background, using screen or ideally supervisord:

     sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan celeryd run concurrency=1 --queue=priority --config=/var/ckan/ckan.ini
     sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan celeryd run concurrency=4 --queue=bulk --config=/var/ckan/ckan.ini
    
  3. Trigger the weekly refreshes using this cron setting:

     0 22 * * 5  www-data  /home/co/ckan/bin/paster --plugin=ckanext-archiver archiver update --config=/var/ckan/ckan.ini
    

The Archiver and QA extensions are explained later on in this guide.

3. CKAN Database setup

IMPORTANT You must activate the CKAN virtual environment when working on the VM. Eg.:

source ~/ckan/bin/activate

And make sure you run paster commands as co user from the /src/ckan or /vagrant/src/ckan directory.

After running puppet, a fresh database is created for you. If you need to create it again then you can do it like this:

createdb -O dgu ckan --template template_postgis

Now you need to create the tables for the various extensions:

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-packagezip packagezip init --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-issues issues init_db --config=/var/ckan/ckan.ini

Option 1: Use test data

Sample data is provided to demonstrate CKAN. It comprises 5 sample datasets and is loaded like this:

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-dgu create-test-data --config=/var/ckan/ckan.ini

The sample data looks like this:

Demo image

Option 2: Download an existing database

At data.gov.uk we transfer database by first creating a dump (using pg_dump and gzip) and transfer it to a test server or local machine for development. Here is an example transfer - adapt the commands to transfer your own database dumps from your own server.

mkdir -p /vagrant/db_backup
rsync --progress [email protected]:/var/ckan/backup/ckan.2014-09-18.pg_dump.gz /vagrant/db_backup/

Then load the dump in (ensure you are logged in as the co user):

export CKAN_DUMP_FILE=`ls /vagrant/db_backup/ -t |head -n 1` && echo $CKAN_DUMP_FILE
sudo apachectl stop
dropdb ckan
createdb -O dgu ckan --template template_postgis
pv /vagrant/db_backup/$CKAN_DUMP_FILE | funzip \
  | PGPASSWORD=pass psql -h localhost -U dgu -d ckan
sudo apachectl start
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan db upgrade --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan search-index rebuild --config=/var/ckan/ckan.ini

Note: expect the pv command to produce a number of non-fatal errors and warnings. At the start there are several pages of errors before it starts creating tables:

...
ERROR:  must be owner of type public.geometry or type bytea
ERROR:  must be owner of type public.geometry or type public.geography
ERROR:  must be owner of type public.geometry or type text
ERROR:  must be owner of type text or type public.geometry
SET
SET
SET
CREATE TABLE
ALTER TABLE
CREATE TABLE
ALTER TABLE
...

There are also a few more errors later on to be expected a few times:

ERROR:  relation "geometry_columns" already exists
ERROR:  must be owner of relation geometry_columns
ERROR:  relation "spatial_ref_sys" already exists
ERROR:  must be owner of relation spatial_ref_sys

Give yourself a CKAN user for debug (optional)

For test purposes you can add a CKAN admin user. Remember to reset the password before making the site live.

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan user add admin email=admin@ckan password=pass --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan sysadmin add admin --config=/var/ckan/ckan.ini

Try CKAN

You can test CKAN on the command-line:

curl http://localhost/data/search

And try a browser to connect to the machine. If its running in Vagrant then the address (from the Vagrantfile) will be: http://192.168.11.11/data/search

You should get CKAN HTML. It's worth checking the logs for errors too:

less /var/log/ckan/ckan-apache.error.log

Working correctly you should see something like this:

[Fri Sep 19 13:43:49 2014] [error] 2014-09-19 13:43:49,484 DEBUG [ckanext.spatial.model.package_extent] Spatial tables defined in memory
[Fri Sep 19 13:43:49 2014] [error] 2014-09-19 13:43:49,491 DEBUG [ckanext.spatial.model.package_extent] Spatial tables already exist
[Fri Sep 19 13:43:49 2014] [error] 2014-09-19 13:43:49,502 DEBUG [ckanext.harvest.model] Harvest tables defined in memory
[Fri Sep 19 13:43:49 2014] [error] 2014-09-19 13:43:49,505 DEBUG [ckanext.harvest.model] Harvest tables already exist
[Fri Sep 19 13:43:50 2014] [error] 2014-09-19 13:43:50,025 CRITI [ckan.lib.uploader] Please specify a ckan.storage_path in your config
[Fri Sep 19 13:43:50 2014] [error]                              for your uploads

4. Drupal install

For Drupal you will need to complete the configuration of the LAMP stack and get a working drush installation, as explained below. For more detailed requirements, please refer to https://drupal.org/requirements .

Install Drush

For more details about installation of Drush, see here: https://github.com/drush-ops/drush

First get Composer:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

Now install the latest Drush:

composer global require drush/drush

And add it to the path:

sed -i '$a\export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
source $HOME/.bashrc

Install the DGU Drupal Distribution

You can install the DGU Drupal Distribution with the following commands:

sudo mkdir /var/www/drupal
sudo chown co:www-data /var/www/drupal
cd /src/dgu_d7/
drush make distro.make /var/www/drupal/dgu
mysql -u root --execute "CREATE DATABASE dgu;"
mysql -u root --execute "CREATE USER 'co'@'localhost' IDENTIFIED BY 'pass';"
mysql -u root --execute "GRANT ALL PRIVILEGES ON *.* TO 'co'@'localhost';"
cd /var/www/drupal/dgu
drush --yes --verbose site-install dgu --db-url=mysql://co:pass@localhost/dgu --account-name=admin --account-pass=admin  --site-name='something creative'
```

This will install Drupal, download all the required modules and configure the system.  In the `site-install` command you can ignore two errors at the end about sending e-mails, due to sendmail being missing. E-mail functionality will need to be fixed for a production system.

After this step completes successfully, you should enable some modules:

````bash
drush --yes en dgu_app dgu_blog dgu_consultation dgu_data_set dgu_data_set_request dgu_footer dgu_forum dgu_glossary dgu_idea dgu_library dgu_linked_data dgu_location dgu_moderation dgu_notifications dgu_organogram dgu_print dgu_reply dgu_search dgu_services dgu_user ckan

You will need to configure drupal with the url of your CKAN instance. We use the following drush commands:

drush vset ckan_url 'http://data.gov.uk/api/';
drush vset ckan_apikey 'xxxxxxxxxxxxxxxxxxxxx';

You may also check and modify these settings in the admin menu: configuration->system->ckan.

Now fix permissions:

sudo chown -R co:www-data /var/www/drupal/dgu/sites/default/files

Otherwise you'll get messages such as "The specified file temporary://fileKrLiDX could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log."

Drupal uses a second SOLR core for the search. The configuration of this is to be provided soon.

5. Drupal content

Sample content

Those evaluating this distribution will probably want to use the sample content, which creates some sample blog posts, apps etc. This is installed like this:

zcat /src/dgu_d7/sample/dgud7_default_db.sql.gz  | mysql -u root dgu

NB This will delete all other Drupal content and users.

You can now log-in by executing 'drush uli' in Drupal root folder. This command generates one time login link, you can change admin password once logged in.

If you get the message "The website encountered an unexpected error. Please try again later." please see the section below "Debugging Drupal".

6. Additional configuration

Passwords

For a live deployment it is important to change the passwords from the sample ones. The passwords to change are:

  • Drupal accounts, particularly admin and 'jason' users (if using the sample database). Log-in as admin and edit the users here: /admin/people

  • CKAN admin account. Change it with:

      sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan user setpass admin --config=/var/ckan/ckan.ini
    
  • HTTP Basic Auth around Drupal services. Change the password CKAN uses to contact the Drupal services API by editing in /var/ckan/ckan.ini the value for dgu.xmlrpc_password to be a new password:

      dgu.xmlrpc_password = newpassword
    

    And then set that same password to be the one accepted by the API using:

      sudo htpasswd /var/www/api_users ckan
    

    and reboot Apache:

      sudo apachectl restart
    
  • MySQL database for both the root and co. Use these commands:

      mysql -u root --execute "SET PASSWORD = PASSWORD('new root password');"
      mysql -u -p root --execute "SET PASSWORD FOR 'co'@'localhost' = PASSWORD('new co password');"
    

    And change password in your Drupal settings /var/www/drupal/dgu/sites/default/settings.php and reboot Apache:

      sudo apachectl restart
    
  • Postgres database:

      sudo -u postgres psql -c "ALTER USER Postgres WITH PASSWORD 'new postgres password';"
      sudo -u postgres psql -c "ALTER USER co WITH PASSWORD 'new co password';"
    

And change password in your CKAN sqlalchemy setting in /var/ckan/ckan.ini:

sqlalchemy.url = postgresql://dgu:pass@localhost/ckan

and reboot Apache:

sudo apachectl restart
  • SSH authentication. The install provides ssh access to the data.gov.uk team, and clearly this should be changed for other organizations. Remove the irrelevant people's lines from this file:

      /home/co/.ssh/authorized_keys
    

Syncing publishers and datasets from CKAN to Drupal

Drupal needs to get data from CKAN for forms creating Data Requests and Apps (for example).

It is suggested that this data is synchronized hourly with a cron.

To install the dependencies for the syncing:

cd /var/www/drupal/dgu
drush composer-rebuild
cd /var/www/drupal/dgu/sites/default/files/composer
composer install

You need to create a sysadmin user in CKAN that Drupal can use to get the data:

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan user add frontend [email protected] password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan sysadmin add frontend

Note the apikey from the output of the first command e.g.:

'apikey': u'17a4a2fa-edf9-479e-bd71-1c0620fe457d'

Now configure how Drupal contacts CKAN: Browse to: /admin/config/system/ckan (On vagrant it is: http://192.168.11.11/admin/config/system/ckan ) And configure the URL for CKAN (adding /api/) and the apikey from the previous step. e.g.

CKAN API URL = http://192.168.11.11/api/
API key = 17a4a2fa-edf9-479e-bd71-1c0620fe457d
CKAN editor role = data publisher
CKAN admin role = data publisher

(NB: leave the revision options the same)

To (re)sync all publishers you can execute:

drush ckan_resync_publisher all

These sync commands create a lock to avoid parallel execution. If you stop the command (ctrl+c) this lock isn't remove it, to remove it please append --kill to the command:

drush ckan_resync_publisher all --kill

You can also resync a single publisher:

drush ckan_resync_publisher 041e93f9-bf4e-48ec-b779-6bda9588ef55

There is also similar command for syncing datasets:

drush ckan_resync_dataset

and for datasets and publishers in one go:

drush ckan_resync_all

(NB If you have no dataset in CKAN, then you'll get an SQL error when syncing them.)

Caching

It is likely that you'll want to set-up caching in front of Apache, to massively speed up common requests. This can be achieved with Varnish or Nginx in front of Apache. We suggest:

  • Strip any cookies apart from these essential ones: (flags|SESS[a-z0-9]+|NO_CACHE|auth_tkt|ckan|session_api_[a-z]+)
  • Logged-in users bypass the cache - cookie SESS[a-z0-9]+
  • assets are kept for 24h - This is cache-safe because a timestamp is added to URLs that CKAN uses e.g. /assets/css/datagovuk.min.css?1411377399236, so whenever Grunt runs, a new number is given and the cache will be bypassed because of the new number.

Site Analytics/Usage (Google Analytics)

The Google Analytics data is shown here: http://data.gov.uk/data/site-usage To set this up, you need to:

  1. Setup Google Analytics account & tracking - see: https://github.com/datagovuk/ckanext-ga-report/blob/master/README.md#setup-google-analytics

  2. Add the configuration to your ckan.ini, customizing the values for the first 2 options:

     googleanalytics.id = UA-1010101-1
     googleanalytics.account = Account name (e.g. data.gov.uk, see top level item at https://www.google.com/analytics)
     googleanalytics.token.filepath = /var/ckan/ga_auth_token.dat
     ga-report.period = monthly
     ga-report.bounce_url = /data/search
    
  3. Create the database tables:

     sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-ga-report initdb --config=/var/ckan/ckan.ini
    
  4. Enable the extension by adding it to the list of ckan.plugins in ckan.ini:

     ckan.plugins = ... ga-report
    
  5. Generate an OAUTH token using the instructions: https://github.com/datagovuk/ckanext-ga-report/blob/master/README.md#authorization The paster command is:

     sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-ga-report getauthtoken --config=/var/ckan/ckan.ini
     mv token.dat /var/ckan/ga_auth_token.dat
    
  6. Now you can load the GA data into CKAN. Run it the first time on the command-line to check it works:

     sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-ga-report loadanalytics latest --config=/var/ckan/ckan.ini
    

Then you can add it as a cron job. e.g. add it to /etc/cron.d/ckan

0 22  * * *  www-data  /home/co/ckan/bin/paster --plugin=ckanext-ga-report loadanalytics latest --config=/var/ckan/ckan.ini

Orientation

CKAN Paster commands

When running CKAN paster commands, you should ensure that:

  • you specify the path to paster in the virtualenv (in the future you might just ensure you've activated CKAN's python virtual environment, but that doesn't work when you sudo)
  • you are in the CKAN source directory (/src/ckan)
  • use the www-data user, to avoid the log permissions problem (see section below)

You can see that the virtual environment is activated by the presence of the (ckan) prefix in the prompt. e.g.:

(ckan)co@precise64:/src/ckan$

Note you do need to specify --config because although ckan now gets it from the CKAN_INI environment variable (this is due to a recently introduced change to ckan), that is not available when you sudo.

Examples:

sudo -u www-data /home/co/ckan/bin/paster search-index rebuild --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster user user_d1 --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-dgu create-test-data --config=/var/ckan/ckan.ini
sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-dgu celeryd run concurrency=1 --queue=priority --config=/var/ckan/ckan.ini

You can add --help to list commands and find out more about one. Find full details of the CKAN paster commands is here: http://docs.ckan.org/en/ckan-2.2/paster.html

CKAN Config file

The ckan config file is /var/ckan/ckan.ini. If you change any options, for them to take effect in the web interface you need to restart apache:

sudo /etc/init.d/apache2 graceful

CKAN Logs

The main CKAN log file is: /var/log/ckan/ckan.log

Errors go to: /var/log/ckan/ckan-apache.error.log

The log levels are set in /var/ckan/ckan.ini, so to get the debug logging from ckan you can change the level in the logger_ckan section. i.e. change it to:

[logger_ckan]
level = DEBUG
handlers = console, file
qualname = ckan
propagate = 0

(and obviously restart apache to take effect)

The Celery queues workers (Archiver & QA) log to: /var/log/ckan/celeryd.log

Log permissions

It can happened that you may see CKAN return '500 Internal Server Error' and when looking at the log /var/log/ckan/ckan.log you see this error:

IOError: [Errno 13] Permission denied: '/var/log/ckan/ckan.log

This can happen when running paster commands and forgetting run them as the www-data user as directed. Normally the CKAN logfile is created and written to by apache and hence is owned by user www-data. However when running paster commands as the co user it will also write to the log, and if the log happens to roll-over at this time then the co user will now own the logfile. To rectify this, change the ownership:

sudo chown www-data:www-data /var/log/ckan/ckan.log

The fix for this issue is in the pipeline.

Grunt and assets

Data.gov.uk uses Grunt to do pre-processing of Javascript and CSS scripts as well as images and it writes timestamps to help with cache versioning.

Puppet will have installed a recent version of NodeJS (0.10.32+) and npm (1.4.28+) plus Grunt. There are two repos with assets which if you change you need to run Grunt before they will be used by CKAN.

Grunt runs on puppet provision, and you can manually run it like this:

cd /vagrant/src/ckanext-dgu
grunt
cd /vagrant/src/shared_dguk_assets
grunt

There is more about Grunt use here: https://github.com/datagovuk/shared_dguk_assets/blob/master/README.md P

Reports

The reports at /data/report should be pre-generated nightly using a cron. e.g.:

0 6  * * *  www-data  /home/co/ckan/bin/paster --plugin=ckanext-report report generate --config=/var/ckan/ckan.ini

Harvesting

For harvesting to work you need a cron running every few minutes to put the latest jobs onto the gather queue:

*/10 *  * * *   www-data  /home/co/ckan/bin/paster --plugin=ckanext-harvest harvester run --config=/var/ckan/ckan.ini

Archiver & QA

The 'Archiver' extension downloads all the data files and notes if the link is 'broken' or not. The 'QA' extension examines the downloaded data files, mainly to determine the format, and give the dataset a rating against the 5 Stars of Openness ("Openness Score").

The 'Archiver' is triggered when a dataset is created or modified, and that in turn triggers the 'QA'. In addition, to links going rotten at a later date, it is sensible to trigger the Archival (and thus QA) on a weekly basis using a cron job.

Archiver and QA work asynchronously from the rest of CKAN. Jobs for them are put onto a celery queue, and by 'running' the queue the Archiver and QA carry out their jobs. So for the Archiver and QA to work, you need to have two Celery processes running all the time, either in a screen session or preferably using supervisord.

The list of jobs in the queue are stored in Redis (previously the jobs were stored in the kombu_message table in the database - if this is still being used you need to add the [app:celery] section to your ckan config - see ckan.ini.erb).

In fact there are two queues for the jobs - 'priority' deals with the trickle of new and updated datasets and 'bulk' deals with the weekly refresh and other longer updates.

To see how many jobs are on a queue:

redis-cli -n 1 LLEN priority
redis-cli -n 1 LLEN bulk

To clean a queue (delete all of its the queued jobs):

redis-cli -n 1 DEL priority
redis-cli -n 1 DEL bulk

To schedule a dataset to be archived (and then QA'd):

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-archiver archiver update cabinet-office-energy-use --config=$CKAN_INI

or to archive all of a publisher's datasets (goes onto bulk queue):

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-archiver archiver update cabinet-office --config=$CKAN_INI

You can follow the logs of the Archiver & QA in /var/log/ckan/celeryd.log.

Backups (gov_daily)

The gov_daily.py script performs a number of nightly jobs including creating backups and getting the Site Analytics Google Analytics info. Read through and see if you need it in all or part. You can specify a parameter to just do the backup for example. It could be scheduled in the cron:

0 23  * * *  root  /home/co/ckan/bin/python /vagrant/src/ckanext-dgu/ckanext/dgu/bin/gov_daily.py backup /var/ckan/ckan.ini

Running in paster

When developing CKAN it is often helpful to use the pdb debugging tool. For this to work, you need to run CKAN in paster (instead of apache).

Run CKAN in paster:

stty echo; sudo -u www-data /home/co/ckan/bin/paster serve /var/ckan/ckan.ini --reload

In the code insert your pdb breakpoint (e.g. in the data controller):

import pdb; pdb.set_trace()

In your browser access the site via port 5000 (e.g. for vagrant):

http://192.168.11.11:5000/data/search

Occasionally when working with pdb you will find it goes into a mode where nothing you type appears on the screen. The solution without having to start a new terminal is to type on the command-line (blind):

stty echo

Paster shell

You can get a python shell which has the database loaded:

sudo -u www-data /home/co/ckan/bin/paster --plugin=pylons shell /var/ckan/ckan.ini

Running ckan tests

The core ckan tests can be run, but need to use the core ckan solr schema, for which you need to set-up a new solr core.

sed 's/8983\/solr/8983\/solr\/ckan-2.2/g' test-core.ini > test-core-dread.ini

TBC

Debugging Drupal

"The website encountered an unexpected error. Please try again later."

To find out what the error is behind this web error page, as long as it is not a public machine you can increase the debug level using this command:

cd /var/www/drupal/dgu
drush vset -y error_level 2

and request the page again.

Puppet notes

Puppet warnings

These messages may be seen during provisioning with Puppet, and are harmless:

warning: Could not retrieve fact fqdn
stdin: is not a tty
dpkg-preconfigure: unable to re-open stdin: No such file or directory
warning: Scope(Class[Python]): Could not look up qualified variable '::python::install::valid_versions'; class ::python::install has not been evaluated at /etc/puppet/modules/python/manifests/init.pp:73
warning: Scope(Class[Python]): Could not look up qualified variable '::python::install::valid_versions'; class ::python::install has not been evaluated at /etc/puppet/modules/python/manifests/init.pp:73
The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
duplicated key at line 165 ignored: :queue_type
==> default: /home/co/ckan/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
==> default:   SNIMissingWarning
==> default: /home/co/ckan/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
==> default:   InsecurePlatformWarning

Puppet errors

Despite aiming to keep these scripts working without error, 'Puppet apply' might possibly fail.

If 'puppet apply' fails (e.g. during 'provision') then you see it end with this red text:

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

At this point you will usually see lots of yellow warnings "Skipping because of failed dependencies" peppered amongst the blue lines. The art of finding out the cause of the failure is to scroll up to find the first of these yellow warnings and look for the error in the line or two above this.

It is always worth trying running puppet again (either with vagrant provision or puppet apply - see below) in case it was a one-off problem.

Pylons and Setuptools

Depending on the order which puppet installs the python packages, you may well get an error to do with installing Pylons, PasteScript and PasteDeploy. e.g.:

err: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pylons==0.9.7]/Exec[pip_install_Pylons==0.9.7]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log Pylons==0.9.7 returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/pip_package.pp:23

It is a known problem and can usually be solved if you simple rerun the 'puppet apply' / 'vagrant provision' step. You can also solve it manually on the box:

/home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi PasteScript==1.7.5
/home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi Pylons==0.9.7

SOLR

We've seen an issue where SOLR doesn't work properly the first time and when puppet tries to run 'paster db init' style commands you see this error:

WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
ERROR [ckan.lib.search.common] HTTP code=503, reason=Service Unavailable

This can usually be fixed by restarting SOLR, via its java environment 'jetty':

sudo service jetty restart

and check whether the start-up log:

less /usr/share/solr/solr-4.3.1/example/logs/solr.log

is full of errors or succeeds with something like:

Started [email protected]:8983

Puppet apply

When tinkering with the Puppet configuration and rerunning it, it can be frustrating the the vagrant provision takes several minutes to run. Much of the time there is no need to have librarian check the puppet module dependencies, and in this case there is a short cut.

You can manually install an updated Puppet CKAN module like this (on the guest):

sudo -u vagrant rsync -r /vagrant/puppet/modules/dgu_ckan/ /etc/puppet/modules/dgu_ckan/

And run 'puppet apply' as the vagrant user like this:

sudo FACTER_fqdn=ckan.home puppet apply --modulepath=/etc/puppet/modules /vagrant/puppet/manifests/site.pp

dgu-vagrant-puppet's People

Contributors

batje avatar carlqlange avatar j420n avatar jystewart avatar morty avatar ratajczak avatar rossjones avatar teajaymars avatar vladimirzd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dgu-vagrant-puppet's Issues

ImportError: No module named timestamp

Once the puppet install has run, the site throws an error about a missing timestamp. It seems from the code it is possible to configure this somewhere, no clue where that would be.

 sys.path: ['/vagrant/src/ckan/ckan', '/vagrant/src/ckanext-ga-report', '/vagrant/src/ckanext-spatial', '/vagrant/src/ckanext-os', '/vagrant/src/ckanext-qa', '/vagrant/src/ckanext-dgu', '/vagrant/src/ckanext-hierarchy', '/vagrant/src/logreporter', '/vagrant/src/ckanext-archiver', '/vagrant/src/ckanext-importlib', '/vagrant/src/ckanext-harvest', '/vagrant/src/ckanext-datapreview', '/vagrant/src/ckan', '/home/co/ckan/lib/python2.7/site-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']
Module ?:45 in <Expression u'h.ckan_asset_timestamp()'>         view
>>  <link rel="stylesheet" href="${h.url_for_static('/css/dgu-ckan.min.css')}?${h.ckan_asset_timestamp()}" />
Module ckanext.dgu.lib.helpers:1463 in ckan_asset_timestamp         view
>>  from ckanext.dgu.theme.timestamp import asset_build_timestamp

Translation of Menu items in Drupal

When we open

  • Structure
    • Menus
      • Management

and try to translate any of Menu links, we get

You are not authorized to access this page.

Can this strings be translated and how?

CKAN Database setup

when i run

"sudo -u www-data paster --plugin=ckanext-dgu create-test-data --config=ckan.ini"

i get error

(ckan)co@ckan:/src/ckan$ paster --plugin=ckanext-dgu create-test-data --config=ckan.ini

2014-09-26 11:33:11,135 ERROR ckan.lib.search relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'10d327cd-4b25-4ab7-825f-aefd2432756d', 'state_1': 'active'}
Traceback (most recent call last):
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 101, in dispatch_by_operation
index.insert_dict(entity)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 79, in insert_dict
return self.update_dict(data)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 104, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 260, in index_package
pkg_dict = item.before_index(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/plugin.py", line 549, in before_index
SearchIndexing.add_field__openness(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/search_indexing.py", line 215, in add_field__openness
qa_openness = get_action('qa_package_openness_show')(context, data_dict)
File "/vagrant/src/ckan/ckan/logic/init.py", line 425, in wrapped
result = _action(context, data_dict, **kw)
File "/vagrant/src/ckan/ckan/logic/init.py", line 556, in wrapper
return action(context, data_dict)
File "/vagrant/src/ckanext-qa/ckanext/qa/logic_action.py", line 134, in qa_package_openness_show
for qa in QA.get_for_package(pkg_id):
File "/vagrant/src/ckanext-qa/ckanext/qa/model.py", line 74, in get_for_package
.filter(model.Resource.state=='active')
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2115, in all
return list(self)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2227, in iter
return self._execute_and_instances(context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (ProgrammingError) relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'10d327cd-4b25-4ab7-825f-aefd2432756d', 'state_1': 'active'}
2014-09-26 11:33:11,146 ERROR ckan.model.modification relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'10d327cd-4b25-4ab7-825f-aefd2432756d', 'state_1': 'active'}
Traceback (most recent call last):
File "/vagrant/src/ckan/ckan/model/modification.py", line 79, in notify
observer.notify(entity, operation)
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 129, in notify
operation
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 101, in dispatch_by_operation
index.insert_dict(entity)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 79, in insert_dict
return self.update_dict(data)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 104, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 260, in index_package
pkg_dict = item.before_index(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/plugin.py", line 549, in before_index
SearchIndexing.add_field__openness(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/search_indexing.py", line 215, in add_field__openness
qa_openness = get_action('qa_package_openness_show')(context, data_dict)
File "/vagrant/src/ckan/ckan/logic/init.py", line 425, in wrapped
result = _action(context, data_dict, **kw)
File "/vagrant/src/ckan/ckan/logic/init.py", line 556, in wrapper
return action(context, data_dict)
File "/vagrant/src/ckanext-qa/ckanext/qa/logic_action.py", line 134, in qa_package_openness_show
for qa in QA.get_for_package(pkg_id):
File "/vagrant/src/ckanext-qa/ckanext/qa/model.py", line 74, in get_for_package
.filter(model.Resource.state=='active')
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2115, in all
return list(self)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2227, in iter
return self._execute_and_instances(context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (ProgrammingError) relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'10d327cd-4b25-4ab7-825f-aefd2432756d', 'state_1': 'active'}
Traceback (most recent call last):
File "/home/co/ckan/bin/paster", line 9, in
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
result = self.command()
File "/vagrant/src/ckanext-dgu/ckanext/dgu/lib/cli.py", line 39, in command
DguCreateTestData.create_dgu_test_data()
File "/vagrant/src/ckanext-dgu/ckanext/dgu/testtools/create_test_data.py", line 523, in create_dgu_test_data
cls.create_arbitrary(cls._packages)
File "/vagrant/src/ckan/ckan/lib/create_test_data.py", line 262, in create_arbitrary
model.repo.commit_and_remove()
File "/home/co/ckan/local/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py", line 112, in commit_and_remove
self.commit()
File "/home/co/ckan/local/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py", line 102, in commit
self.session.commit()
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 114, in do
return getattr(self.registry(), name)(_args, *_kwargs)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 656, in commit
self.transaction.commit()
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 314, in commit
self._prepare_impl()
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 290, in _prepare_impl
self.session.dispatch.before_commit(self.session)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/event.py", line 291, in call
fn(_args, *_kw)
File "/vagrant/src/ckan/ckan/model/extension.py", line 112, in before_commit
methodcaller('before_commit', session)
File "/vagrant/src/ckan/ckan/model/extension.py", line 92, in notify_observers
func(observer)
File "/vagrant/src/ckan/ckan/model/modification.py", line 47, in before_commit
self.notify(obj, domain_object.DomainObjectOperation.new)
File "/vagrant/src/ckan/ckan/model/modification.py", line 79, in notify
observer.notify(entity, operation)
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 129, in notify
operation
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 101, in dispatch_by_operation
index.insert_dict(entity)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 79, in insert_dict
return self.update_dict(data)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 104, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 260, in index_package
pkg_dict = item.before_index(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/plugin.py", line 549, in before_index
SearchIndexing.add_field__openness(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/search_indexing.py", line 215, in add_field__openness
qa_openness = get_action('qa_package_openness_show')(context, data_dict)
File "/vagrant/src/ckan/ckan/logic/init.py", line 425, in wrapped
result = _action(context, data_dict, **kw)
File "/vagrant/src/ckan/ckan/logic/init.py", line 556, in wrapper
return action(context, data_dict)
File "/vagrant/src/ckanext-qa/ckanext/qa/logic_action.py", line 134, in qa_package_openness_show
for qa in QA.get_for_package(pkg_id):
File "/vagrant/src/ckanext-qa/ckanext/qa/model.py", line 74, in get_for_package
.filter(model.Resource.state=='active')
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2115, in all
return list(self)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2227, in iter
return self._execute_and_instances(context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (ProgrammingError) relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'10d327cd-4b25-4ab7-825f-aefd2432756d', 'state_1': 'active'}

Also, when trying to get test database with
"rsync --progress [email protected]:/var/ckan/backup/ckan.2014-09-18.pg_dump.gz /vagrant/db_backup/"

i get

The authenticity of host 'co-prod3.dh.bytemark.co.uk (46.43.41.10)' can't be established.
RSA key fingerprint is c2:a3:fc:b9:f7:ec:19:95:c4:ec:43:f6:b4:38:48:1c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'co-prod3.dh.bytemark.co.uk,46.43.41.10' (RSA) to the list of known hosts.
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receiver=3.0.9]

This one looks like ssh key error when getting packages from github.

Any toughts?

togo branch: nltk install currently fails, needs setuptools==9.1

The nltk team have an issue that causes install to fail with newer versions of setuptools: nltk/nltk#824

I attempted to add "setuptools==9.1" to $pip_pkgs_remote but it didn't like that much (didn't work very hard at that though). Got around it by ssh-ing into the machine and manually doing

sudo su co
pip install setuptools==9.1
pip install nltk==2.0.4

and then vagrant provision again.

This issue may be fixed by the nltk team, but the version you rely on in the togo branch will need to be changed once they fix it. Otherwise a better workaround may be necessary.

togo: cant provision with puppet in a clean machine

I am trying to install from the togo branch in a clean ubuntu 12.04 machine

First, i figured the dgu-vagrant-puppet folder works best, if you put it in root and rename to /vagrant
I figured, i needed to run the stuff that is inside the vagrant.sh file. It installs puppet etc. But am left with a few errors (that repeat when i rerun)

reinier@ckan:/vagrant$ sudo ./vagrantup.sh
sudo: gem: command not found
mv: missing destination file operand after /etc/puppet{,.old}' Trymv --help' for more information.
ln: failed to create symbolic link `/etc/puppet': File exists // that makes sense running the second time
sudo: librarian-puppet: command not found
Provisioning complete.
Run a local puppet master:
sudo puppet master --mkusers
Update /etc/hosts with the line:
127.0.0.1 puppet
Run a puppet agent:
sudo puppet agent --test

Should i now run a puppet agent or a master? That's not in the documentation.

I decided to run an agent.
But when I do
sudo puppet apply /vagrant/puppet/manifests/site.pp
I get the error

Could not find class datagovuk::common for ckan.localdomain at /vagrant/puppet/manifests/site.pp:1 on node ckan.localdomain

It would be great if we could run this stack in Uganda. We already run data.ug and if we can run a Drupal shell around ckan that would make us very happy, we love Drupal.
Any feedback would be highly appreciated.

"Content access permissions rebuild" message

When logged in as a sysadmin, on every Drupal page you see this error message "The content access permissions need to be rebuilt. Rebuild permissions.". This either needs solving or explaining in the README.

gov2go: could not find class dgu_ckan

Hi,

I try to install gov2go on an ubunty 12.04.
The first mistake I've got at step 2, git closed connection by "Permission denied (public key)".
I cloned all needed branches step by step using https-protocol.
But I could not check out branch 2.0 from ckanext-dgu.
On the website https://github.com/datagovuk/ckanext-dgu/branches/all there is also no branch 2.0.
And when I try "sudo puppet apply /vagrant/puppet/manifests/site.pp", I get the error:
"Coult not find class dgu_ckan for..."

What can I do`?
Can anybody help?

Greets

Error when accessing /ckan-admin/config

When accessing the URL /ckan-admin/config

the following line in header.html raises an error.

{% set notifications_tooltip = ngettext('Dashboard (%(num)d new item)', 'Dashboard (%(num)d new items)', c.new_activities) %}

It seems that c.new_activities has not been set.

Using the togo branch.

Rename of shared_dguk_assets repo broke the `togo` branch installation

Broke things in new and interesting ways - the clone_all script then checked me out of togo in my main dir because the repo didn't exist and it travelled up the filesystem, and because the master branch doesn't have a provisioner set in the Vagrantfile it was causing weirdness, and then when I changed back, it made npm give me ENOPACKAGEJSON. Fun, if fairly shallow, rabbithole.

Anyway, will add pull request later, just making sure it's known. Think it's just renaming the repo in git_clone_all.sh.

Is togo still actively supported, by the way? Or is there a new, better way to do things?

Error in installation when running puppet provisioning

Hi!

I'm trying to run an installation of a fresh installed ubuntu.

But when running the puppet provisioning:

sudo puppet apply /vagrant/puppet/manifests/site.pp

I get the following error:

Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/bin/paster", line 9, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     invoke(command, command_name, options, args[1:])
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     exit_code = runner.run(args)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     result = self.command()
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/lib/cli.py", line 211, in command
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     self._load_config()
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/lib/cli.py", line 87, in _load_config
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     load_environment(conf.global_conf, conf.local_conf)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/config/environment.py", line 135, in load_environment
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     p.load_all(config)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/plugins/core.py", line 95, in load_all
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     find_user_plugins(config)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/plugins/core.py", line 178, in find_user_plugins
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     plugins.extend(ep.load() for ep in entry_points)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/plugins/core.py", line 178, in <genexpr>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     plugins.extend(ep.load() for ep in entry_points)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/pkg_resources.py", line 2029, in load
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckanext-spatial/ckanext/spatial/harvesters.py", line 31, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     from owslib import wms
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/owslib/wms.py", line 21, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     from etree import etree
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/owslib/etree.py", line 19, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     patch_well_known_namespaces(etree)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/owslib/etree.py", line 14, in patch_well_known_namespaces
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     etree_module.register_namespace(k, v)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: AttributeError: 'module' object has no attribute 'register_namespace'
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]
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/bin/paster", line 9, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     invoke(command, command_name, options, args[1:])
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     exit_code = runner.run(args)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     result = self.command()
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/lib/cli.py", line 211, in command
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     self._load_config()
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/lib/cli.py", line 87, in _load_config
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     load_environment(conf.global_conf, conf.local_conf)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/config/environment.py", line 135, in load_environment
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     p.load_all(config)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/plugins/core.py", line 95, in load_all
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     find_user_plugins(config)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/plugins/core.py", line 178, in find_user_plugins
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     plugins.extend(ep.load() for ep in entry_points)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckan/ckan/plugins/core.py", line 178, in <genexpr>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     plugins.extend(ep.load() for ep in entry_points)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/pkg_resources.py", line 2029, in load
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/vagrant/src/ckanext-spatial/ckanext/spatial/harvesters.py", line 31, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     from owslib import wms
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/owslib/wms.py", line 21, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     from etree import etree
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/owslib/etree.py", line 19, in <module>
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     patch_well_known_namespaces(etree)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/owslib/etree.py", line 14, in patch_well_known_namespaces
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     etree_module.register_namespace(k, v)
Notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: AttributeError: 'module' object has no attribute 'register_namespace'
Error: /Stage[main]/Dgu_ckan/Exec[paster db init]: Failed to call refresh: /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]: /home/co/ckan/bin/paster --plugin=ckan db init --config=/var/ckan/ckan.ini returned 1 instead of one of [0]
Notice: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Dependency Exec[paster db init] has failures: true
Warning: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Skipping because of failed dependencies
Notice: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Dependency Exec[paster db init] has failures: true
Warning: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Skipping because of failed dependencies
Notice: /Stage[main]/Dgu_ckan/Notify[db_ready]: Dependency Exec[paster db init] has failures: true
Warning: /Stage[main]/Dgu_ckan/Notify[db_ready]: Skipping because of failed dependencies
Notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Exec[paster db init] has failures: true
Warning: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Skipping because of failed dependencies
Notice: Finished catalog run in 78.68 seconds

Is the goto branch up to date?

Apache modules missing

I tried installing Drupal on the same machine as the puppet-generated CKAN instance, but there is a lot of things that dont quite work.

Things like

sudo a2enmod rewrite

return
ERROR: Module rewrite does not exist!

Either the full apache + mysql etc etc install should be added to the puppet install (there seem to be a few tries, there is /etc/puppet/modules/apache/templates/vhost/_rewrite.erb on the system.)

Or the documentation should just say: do this on a second machine.

The documentation should also mention how to install mod_proxy and some other modules that are not super straightforward.

I am keeping notes in the README.md on my forked branch: https://github.com/batje/dgu-vagrant-puppet/tree/togo

ImportError: No module named report.interfaces

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.

vagrant up fails with errors

Tried installing dgu-vagrant-puppet togo branch yesterday, choosing the 1st option, i.e. to install on a Vagrant VM. But looks like "vagrant up" failed at some point in provisioning. I am able to do "vagrant ssh" and look around in the machine, but it probably should have created a CKAN database in postgresql, but there is no such thing. There are numerous errors in the "vagrant up" output below, perhaps you can shed some light on how to cure this:

laurikoobas@LAURIKOOBAS-PC /C/Users/laurikoobas/VagrantVMs/dgu2/dgu-vagrant-puppet (togo)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /src => C:/Users/laurikoobas/VagrantVMs/dgu2/dgu-vagrant-puppet/src
    default: /vagrant => C:/Users/laurikoobas/VagrantVMs/dgu2/dgu-vagrant-puppet
    default: /tmp/vagrant-puppet-3/manifests => C:/Users/laurikoobas/VagrantVMs/dgu2/dgu-vagrant-puppet/puppet/manifests
==> default: Running provisioner: shell...
    default: Running: C:/Users/LAURIK~1/AppData/Local/Temp/vagrant-shell20141001-3972-1razans.sh
==> default: stdin: is not a tty
==> default: Attempting to install git.
==> default: Ign http://security.ubuntu.com precise-security InRelease
==> default: Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
==> default: Get:2 http://security.ubuntu.com precise-security Release [50.7 kB]
==> default: Ign http://us.archive.ubuntu.com precise InRelease
==> default: Ign http://us.archive.ubuntu.com precise-updates InRelease
==> default: Ign http://us.archive.ubuntu.com precise-backports InRelease
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg
==> default: Get:3 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
==> default: Get:4 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
==> default: Hit http://us.archive.ubuntu.com precise Release
==> default: Get:5 http://security.ubuntu.com precise-security/main Sources [110 kB]
==> default: Get:6 http://us.archive.ubuntu.com precise-updates Release [98.7 kB]
==> default: Get:7 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
==> default: Get:8 http://security.ubuntu.com precise-security/universe Sources [32.7 kB]
==> default: Get:9 http://security.ubuntu.com precise-security/multiverse Sources [1,785 B]
==> default: Get:10 http://security.ubuntu.com precise-security/main amd64 Packages [426 kB]
==> default: Get:11 http://us.archive.ubuntu.com precise-backports Release [50.8 kB]
==> default: Hit http://us.archive.ubuntu.com precise/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
==> default: Get:12 http://us.archive.ubuntu.com precise-updates/main Sources [479 kB]
==> default: Get:13 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]
==> default: Get:14 http://security.ubuntu.com precise-security/universe amd64 Packages [98.1 kB]
==> default: Get:15 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,447 B]
==> default: Get:16 http://security.ubuntu.com precise-security/main i386 Packages [458 kB]
==> default: Get:17 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
==> default: Get:18 http://security.ubuntu.com precise-security/universe i386 Packages [104 kB]
==> default: Get:19 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,638 B]
==> default: Get:20 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
==> default: Get:21 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
==> default: Get:22 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
==> default: Get:23 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
==> default: Get:24 http://security.ubuntu.com precise-security/main Translation-en [194 kB]
==> default: Get:25 http://security.ubuntu.com precise-security/multiverse Translation-en [1,299 B]
==> default: Get:26 http://security.ubuntu.com precise-security/restricted Translation-en [1,253 B]
==> default: Get:27 http://security.ubuntu.com precise-security/universe Translation-en [60.4 kB]
==> default: Get:28 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,056 B]
==> default: Get:29 http://us.archive.ubuntu.com precise-updates/universe Sources [110 kB]
==> default: Get:30 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,886 B]
==> default: Get:31 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [836 kB]
==> default: Get:32 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [13.7 kB]
==> default: Get:33 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [248 kB]
==> default: Get:34 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [15.3 kB]
==> default: Get:35 http://us.archive.ubuntu.com precise-updates/main i386 Packages [867 kB]
==> default: Get:36 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.7 kB]
==> default: Get:37 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [255 kB]
==> default: Get:38 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.5 kB]
==> default: Get:39 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
==> default: Get:40 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
==> default: Get:41 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
==> default: Get:42 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
==> default: Get:43 http://us.archive.ubuntu.com precise-backports/main Sources [5,551 B]
==> default: Get:44 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
==> default: Get:45 http://us.archive.ubuntu.com precise-backports/universe Sources [39.8 kB]
==> default: Get:46 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,737 B]
==> default: Get:47 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [6,617 B]
==> default: Get:48 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
==> default: Get:49 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [42.8 kB]
==> default: Get:50 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,405 B]
==> default: Get:51 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,620 B]
==> default: Get:52 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
==> default: Get:53 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [42.7 kB]
==> default: Get:54 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,399 B]
==> default: Get:55 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
==> default: Get:56 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
==> default: Get:57 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
==> default: Get:58 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
==> default: Hit http://us.archive.ubuntu.com precise/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: Get:59 http://us.archive.ubuntu.com precise-updates/main Translation-en [368 kB]
==> default: Get:60 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [9,010 B]
==> default: Get:61 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [3,027 B]
==> default: Get:62 http://us.archive.ubuntu.com precise-updates/universe Translation-en [144 kB]
==> default: Get:63 http://us.archive.ubuntu.com precise-backports/main Translation-en [5,990 B]
==> default: Get:64 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,838 B]
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
==> default: Get:65 http://us.archive.ubuntu.com precise-backports/universe Translation-en [34.2 kB]
==> default: Fetched 5,317 kB in 40s (131 kB/s)
==> default: Reading package lists...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default:
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   git-man liberror-perl patch
==> default: Suggested packages:
==> default:   git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
==> default:   git-email git-gui gitk gitweb diffutils-doc
==> default: The following NEW packages will be installed:
==> default:   git git-man liberror-perl patch
==> default: 0 upgraded, 4 newly installed, 0 to remove and 169 not upgraded.
==> default: Need to get 6,821 kB of archives.
==> default: After this operation, 15.5 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
==> default: Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main git-man all 1:1.7.9.5-1 [630 kB]
==> default: Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main git amd64 1:1.7.9.5-1 [6,087 kB]
==> default: Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main patch amd64 2.6.1-3 [80.2 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 6,821 kB in 54s (125 kB/s)
==> default: Selecting previously unselected package liberror-perl.
==> default: (Reading database ...
==> default: 51095 files and directories currently installed.)
==> default: Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
==> default: Selecting previously unselected package git-man.
==> default: Unpacking git-man (from .../git-man_1%3a1.7.9.5-1_all.deb) ...
==> default: Selecting previously unselected package git.
==> default: Unpacking git (from .../git_1%3a1.7.9.5-1_amd64.deb) ...
==> default: Selecting previously unselected package patch.
==> default: Unpacking patch (from .../patch_2.6.1-3_amd64.deb) ...
==> default: Processing triggers for man-db ...
==> default: Setting up liberror-perl (0.17-1) ...
==> default: Setting up git-man (1:1.7.9.5-1) ...
==> default: Setting up git (1:1.7.9.5-1) ...
==> default: Setting up patch (2.6.1-3) ...
==> default: git installed.
==> default: Successfully installed thor-0.19.1
==> default: Successfully installed librarian-0.1.2
==> default: Successfully installed librarian-puppet-1.0.3
==> default: 3 gems installed
==> default: Installing ri documentation for thor-0.19.1...
==> default: Installing ri documentation for librarian-0.1.2...
==> default: Installing ri documentation for librarian-puppet-1.0.3...
==> default: Installing RDoc documentation for thor-0.19.1...
==> default: Installing RDoc documentation for librarian-0.1.2...
==> default: Installing RDoc documentation for librarian-puppet-1.0.3...
==> default: Running provisioner: puppet...
==> default: Running Puppet with site.pp...
==> default: stdin: is not a tty
==> default: warning: Scope(Class[Python]): Could not look up qualified variable '::python::install::valid_versions'; class ::python::install has not been evaluated at /etc/puppet/modules/python/manifests/init.pp:73
==> default: warning: Scope(Class[Python]): Could not look up qualified variable '::python::install::valid_versions'; class ::python::install has not been evaluated at /etc/puppet/modules/python/manifests/init.pp:73
==> default: notice: /Stage[main]//Package[php5-mysql]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]//Package[php5-gd]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/File[/etc/init.d/jetty]/ensure: defined content as '{md5}98ff946151ba09a69360ac80aff5d485'
==> default: notice: /Stage[main]/Dgu_ckan/Package[openjdk-7-jre-headless]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Package[libxslt1-dev]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created
==> default: notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created
==> default: notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.sh]/ensure: defined content as '{md5}7bbe7c5fce25a5ddd20415d909ba44fc'
==> default: notice: /Stage[main]//Package[screen]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/File[/tmp/create_postgis_template.sh]/ensure: defined content as '{md5}14a6a6717fe7964a1a8fe47af647b11a'
==> default: notice: /Stage[main]//File[/etc/motd]/ensure: defined content as '{md5}585b0982ce65215404f684bd20d5fbfa'
==> default: notice: /Stage[main]/Memcached/Package[memcached]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Memcached/Package[libmemcached-dev]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]//Package[mysql-server-5.5]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Package[redis-server]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Package[libpq-dev]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Postgresql::Client/Package[postgresql-client]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]//Package[php5-curl]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/File[/tmp/create_utf8_template.sh]/ensure: defined content as '{md5}78d9600bb24d8425d788a51d29d3c0ec'
==> default: notice: /Stage[main]//Package[curl]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Package[rabbitmq-server]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Package[python-pastescript]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Postgresql::Client/File[/usr/local/bin/validate_postgresql_connection.sh]/ensure: defined content as '{md5}20301932819f035492a30880f5bf335a'
==> default: notice: /Stage[main]//Package[pv]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/File[/etc/solr]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/etc/solr/conf]/ensure: created
==> default: notice: /Stage[main]/Apache::Mod::Prefork/Apache::Mpm[prefork]/Package[apache2-mpm-prefork]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Postgresql::Server::Install/Package[postgresql-server]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Sudo/File[/etc/sudoers.d/]/mode: mode changed '0755' to '0550'
==> default: notice: /Stage[main]//Sudo::Conf[sudo]/File[10_sudo]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/User[solr]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/log/solr]/ensure: created
==> default: notice: /Stage[main]//Package[vim]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]//File[/etc/fqdn]/ensure: defined content as '{md5}a9c5f363a53f0f51790eff7299a0860f'
==> default: notice: /Stage[main]//Package[unzip]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Apache/Package[httpd]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Apache/File[/etc/apache2/apache2.conf]/content: content changed '{md5}8f5c4e0629a7c10aead1bf839cc57c72' to '{md5}f0c7c974f7e1bedcda1d87fc01cd1b7a'
==> default: notice: /File[/etc/apache2/conf.d/security]/ensure: removed
==> default: notice: /File[/etc/apache2/conf.d/localized-error-pages]/ensure: removed
==> default: notice: /Stage[main]/Apache::Mod::Mime/Apache::Mod[mime]/File[mime.load symlink]/target: target changed '../mods-available/mime.load' to '/etc/apache2/mods-available/mime.load'
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_groupfile]/File[authz_groupfile.load symlink]/target: target changed '../mods-available/authz_groupfile.load' to '/etc/apache2/mods-available/authz_groupfile.load'
==> default: notice: /Stage[main]/Apache::Mod::Mime/File[mime.conf]/content: content changed '{md5}00a92470c78b1573e94bf421d72a3806' to '{md5}2fa646fe615e44d137a5d629f868c107'
==> default: notice: /Stage[main]/Apache::Mod::Setenvif/File[setenvif.conf]/content: content changed '{md5}99d607cc2acf4e13b700b1e67a8f8503' to '{md5}c7ede4173da1915b7ec088201f030c28'
==> default: notice: /Stage[main]/Apache::Mod::Deflate/File[deflate.conf]/content: content changed '{md5}8c13524d3a4955810e6434ff388c3168' to '{md5}44d54f557a5612be8da04c49dd6da862'
==> default: notice: /Stage[main]/Apache::Mod::Negotiation/File[negotiation.conf]/content: content changed '{md5}25480201827ba22eef212617006c1491' to '{md5}47284b5580b986a6ba32580b6ffb9fd7'
==> default: notice: /Stage[main]/Apache::Mod::Negotiation/Apache::Mod[negotiation]/File[negotiation.conf symlink]/target: target changed '../mods-available/negotiation.conf' to '/etc/apache2/mods-available/negotiation.conf'
==> default: notice: /Stage[main]/Apache::Mod::Alias/Apache::Mod[alias]/File[alias.load symlink]/target: target changed '../mods-available/alias.load' to '/etc/apache2/mods-available/alias.load'
==> default: notice: /Stage[main]/Apache::Mod::Dir/File[dir.conf]/content: content changed '{md5}b6882491a6d2b823da960f19a50b132f' to '{md5}c741d8ea840e6eb999d739eed47c69d7'
==> default: notice: /Stage[main]/Apache::Mod::Dir/Apache::Mod[dir]/File[dir.conf symlink]/target: target changed '../mods-available/dir.conf' to '/etc/apache2/mods-available/dir.conf'
==> default: notice: /Stage[main]/Apache::Mod::Setenvif/Apache::Mod[setenvif]/File[setenvif.load symlink]/target: target changed '../mods-available/setenvif.load' to '/etc/apache2/mods-available/setenvif.load'
==> default: notice: /File[/etc/apache2/conf.d/charset]/ensure: removed
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[auth_basic]/File[auth_basic.load symlink]/target: target changed '../mods-available/auth_basic.load' to '/etc/apache2/mods-available/auth_basic.load'
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf]/ensure: created
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out]/ensure: created
==> default: notice: /File[/etc/apache2/sites-enabled/000-default]/ensure: removed
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authn_file]/File[authn_file.load symlink]/target: target changed '../mods-available/authn_file.load' to '/etc/apache2/mods-available/authn_file.load'
==> default: notice: /Stage[main]/Apache::Mod::Dav/Apache::Mod[dav]/File[dav.load symlink]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/ckan]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/ckan/data]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/ckan/wsgi_app.py]/ensure: defined content as '{md5}54b39cb1f3e775e940e694ed810582a9'
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Ckan_config_file[ckan_ini_file]/File[/var/ckan/ckan.ini]/ensure: defined content as '{md5}22df88c0668b26343dfb8282906fa675'
==> default: err: /Stage[main]/Dgu_ckan/File[/vagrant/src/ckan/ckan.ini]/ensure: change from absent to link failed: Could not set 'link on ensure: Protocol error - /var/ckan/ckan.ini or /vagrant/src/ckan/ckan.ini at /etc/puppet/modules/dgu_ckan/manifests/init.pp:219
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan/ckan.log]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan/ckan-apache.error.log]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/ckan/who.ini]/ensure: defined content as '{md5}b464fcd543e00b5346d3db6b9b351df9'
==> default: notice: /File[/etc/apache2/conf.d/other-vhosts-access-log]/ensure: removed
==> default: notice: /Stage[main]/Apache::Mod::Prefork/File[/etc/apache2/mods-available/prefork.conf]/ensure: defined content as '{md5}109c4f51dac10fc1b39373855e566d01'
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat]/ensure: created
==> default: notice: /Stage[main]/Apache::Mod::Dir/Apache::Mod[dir]/File[dir.load symlink]/target: target changed '../mods-available/dir.load' to '/etc/apache2/mods-available/dir.load'
==> default: notice: /Stage[main]/Apache::Mod::Mime/Apache::Mod[mime]/File[mime.conf symlink]/target: target changed '../mods-available/mime.conf' to '/etc/apache2/mods-available/mime.conf'
==> default: notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.load]/content: content changed '{md5}17f662fd023dbaaab9d89f9a11ae58c1' to '{md5}3fa14d6e9f9d8eb25d09ed4823508f6d'
==> default: notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.load symlink]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/Apache::Mod[php5]/Package[libapache2-mod-php5]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Apache::Mod::Alias/File[alias.conf]/content: content changed '{md5}926033d21c2819e794c94a251355acc9' to '{md5}f6db1cc93bde9df82780cb98c2b33e77'
==> default: notice: /Stage[main]/Apache::Mod::Alias/Apache::Mod[alias]/File[alias.conf symlink]/target: target changed '../mods-available/alias.conf' to '/etc/apache2/mods-available/alias.conf'
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan/ckan-apache.custom.log]/ensure: created
==> default: notice: /Stage[main]/Apache::Mod::Negotiation/Apache::Mod[negotiation]/File[negotiation.load symlink]/target: target changed '../mods-available/negotiation.load' to '/etc/apache2/mods-available/negotiation.load'
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/Apache::Listen[80]/Concat::Fragment[Listen 80]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments/10_Listen 80]/ensure: defined content as '{md5}d5fcefc335117f400d451de47efeca87'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf/fragments.concat.out]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat.out]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf/fragments.concat]/ensure: created
==> default: notice: /Stage[main]/Apache::Mod::Reqtimeout/File[reqtimeout.conf]/content: content changed '{md5}f5104bdb13db79bd548728d5146931a7' to '{md5}81c51851ab7ee7942bef389dc7c0e985'
==> default: notice: /Stage[main]/Apache::Mod::Reqtimeout/Apache::Mod[reqtimeout]/File[reqtimeout.conf symlink]/target: target changed '../mods-available/reqtimeout.conf' to '/etc/apache2/mods-available/reqtimeout.conf'
==> default: notice: /Stage[main]/Apache::Mod::Reqtimeout/Apache::Mod[reqtimeout]/File[reqtimeout.load symlink]/target: target changed '../mods-available/reqtimeout.load' to '/etc/apache2/mods-available/reqtimeout.load'
==> default: notice: /File[/etc/apache2/sites-available/default-ssl]/ensure: removed
==> default: notice: /Stage[main]/Dgu_ckan/Apache::Mod[php5]/File[php5.load symlink]/target: target changed '../mods-available/php5.load' to '/etc/apache2/mods-available/php5.load'
==> default: notice: /Stage[main]/Apache::Mod::Setenvif/Apache::Mod[setenvif]/File[setenvif.conf symlink]/target: target changed '../mods-available/setenvif.conf' to '/etc/apache2/mods-available/setenvif.conf'
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_default]/File[authz_default.load symlink]/target: target changed '../mods-available/authz_default.load' to '/etc/apache2/mods-available/authz_default.load'
==> default: notice: /Stage[main]/Solr::Install/Puppi::Netinstall[netinstall_solr]/Exec[Retrieve http://archive.apache.org/dist/lucene/solr/4.3.1/solr-4.3.1.tgz in /var/tmp]/returns: executed successfully
==> default: notice: /Stage[main]/Solr::Install/Puppi::Netinstall[netinstall_solr]/Exec[Extract solr-4.3.1.tgz from /var/tmp]/returns: executed successfully
==> default: notice: /Stage[main]/Solr::Install/Puppi::Netinstall[netinstall_solr]/Exec[Chown solr-4.3.1.tgz in /usr/share/solr]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Solr/File[solr.conf]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/usr/share/solr/solr-4.3.1/example/solr/collection1/conf/solrconfig.xml]/content: content changed '{md5}2c0ea6581084402df175cbb1bfbecc12' to '{md5}61b4e9139ed486a2b7a6d439b8dcd9b7'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[setup_solr_core]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Exec[setup_solr_core]: Triggered 'refresh' from 2 events
==> default: notice: /Stage[main]/Apache::Mod::Proxy/Apache::Mod[proxy]/File[proxy.load symlink]/ensure: created
==> default: notice: /File[/etc/apache2/sites-available/default]/ensure: removed
==> default: notice: /Stage[main]/Dgu_ckan/File[apache_ckan_conf]/ensure: defined content as '{md5}0732eb52aee9e16860cf20318023a867'
==> default: notice: /Stage[main]/Apache::Mod::Deflate/Apache::Mod[deflate]/File[deflate.conf symlink]/target: target changed '../mods-available/deflate.conf' to '/etc/apache2/mods-available/deflate.conf'
==> default: notice: /Stage[main]/Apache::Mod::Deflate/Apache::Mod[deflate]/File[deflate.load symlink]/target: target changed '../mods-available/deflate.load' to '/etc/apache2/mods-available/deflate.load'
==> default: notice: /Stage[main]/Apache::Mod::Autoindex/Apache::Mod[autoindex]/File[autoindex.load symlink]/target: target changed '../mods-available/autoindex.load' to '/etc/apache2/mods-available/autoindex.load'
==> default: notice: /Stage[main]/Memcached/File[/etc/memcached.conf]/content: content changed '{md5}58c9e04b29e08c2e9b3094794d3ebd0e' to '{md5}75c4e8baea773a590664276b68147de1'
==> default: notice: /Stage[main]/Memcached/Service[memcached]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[allow access to all users]/Concat::Fragment[pg_hba_rule_allow access to all users]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/100_pg_hba_rule_allow access to all users]/ensure
: defined content as '{md5}0c5966ab4591f092ef66ce333bb3f463'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[local access as postgres user]/Concat::Fragment[pg_hba_rule_local access as postgres user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/001_pg_hba_rule_local access as postgres
user]/ensure: defined content as '{md5}03454101c43efbcdecc71dd3f734a68f'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[local access to database with same name]/Concat::Fragment[pg_hba_rule_local access to database with same name]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/002_pg_hba_rule_local
 access to database with same name]/ensure: defined content as '{md5}61275db6b21adbf53b575d4c1a6bbed1'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[allow localhost TCP access to postgresql user]/Concat::Fragment[pg_hba_rule_allow localhost TCP access to postgresql user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/003_pg_hb
a_rule_allow localhost TCP access to postgresql user]/ensure: defined content as '{md5}f30c1a00a0759236b37352c32cd0e284'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[deny access to postgresql user]/Concat::Fragment[pg_hba_rule_deny access to postgresql user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/004_pg_hba_rule_deny access to postgres
ql user]/ensure: defined content as '{md5}205b04b3328583b8330f59e37d55c8e8'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Config_entry[listen_addresses]/Postgresql_conf[listen_addresses]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf/fragments]/ensure: created
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_ident.conf]/returns: executed successfully
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_ident.conf]: Triggered 'refresh' from 2 events
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/etc/postgresql/9.1/main/pg_ident.conf]/content: content changed '{md5}f11c8332d3f444148c0b8ee83ec5fc6d' to '{md5}9300ac105fe777787ac9e793b8df8d25'
==> default: notice: /Stage[main]/Dgu_ckan/File[solr_schema_xml]/content: content changed '{md5}a00d869bb60ccf72eff2c4ff723f184d' to '{md5}27d838f67cd94663084548de73662763'
==> default: notice: /Stage[main]/Apache::Mod::Autoindex/File[autoindex.conf]/content: content changed '{md5}77ea294b47d8d2e4dc68107907da8311' to '{md5}2421a3c6df32c7e38c2a7a22afdf5728'
==> default: notice: /Stage[main]/Apache::Mod::Autoindex/Apache::Mod[autoindex]/File[autoindex.conf symlink]/target: target changed '../mods-available/autoindex.conf' to '/etc/apache2/mods-available/autoindex.conf'
==> default: notice: /Stage[main]/Apache/Concat::Fragment[Apache ports header]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments/10_Apache ports header]/ensure: defined content as '{md5}afe35cb5747574b700ebaa0f0b3a626e'
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat_/etc/apache2/ports.conf]/returns: executed successfully
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat_/etc/apache2/ports.conf]: Triggered 'refresh' from 4 events
==> default: notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/etc/apache2/ports.conf]/content: content changed '{md5}38b31d20326f3640a8dfbe1ff5d1c4ad' to '{md5}334fa5cddbf9a408ea1ca7a1666b1fc4'
==> default: notice: /Stage[main]/Apache::Mod::Prefork/Apache::Mpm[prefork]/File[/etc/apache2/mods-enabled/prefork.conf]/ensure: created
==> default: notice: /Stage[main]/Apache::Mod::Rewrite/Apache::Mod[rewrite]/File[rewrite.load symlink]/ensure: created
==> default: notice: /Stage[main]/Apache::Mod::Proxy/File[proxy.conf]/content: content changed '{md5}5b40618d1d3ec04e618b05581effd68a' to '{md5}9eab682d8c4c89abd0ff20c1a60b908d'
==> default: notice: /Stage[main]/Dgu_ckan/File[/var/ckan/sstore]/ensure: created
==> default: notice: CKAN's filesystem is ready.
==> default: notice: /Stage[main]/Dgu_ckan/Notify[ckan_fs_ready]/message: defined 'message' as 'CKAN's filesystem is ready.'
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_host]/File[authz_host.load symlink]/target: target changed '../mods-available/authz_host.load' to '/etc/apache2/mods-available/authz_host.load'
==> default: notice: /Stage[main]/Apache::Mod::Proxy/Apache::Mod[proxy]/File[proxy.conf symlink]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/etc/default/jetty]/ensure: defined content as '{md5}7230f736d205d929e31db196bd450a27'
==> default: err: /Stage[main]/Dgu_ckan/Service[jetty]/ensure: change from stopped to running failed: Could not start Service[jetty]: Execution of '/etc/init.d/jetty start' returned 127:  at /etc/puppet/modules/dgu_ckan/manifests/init.pp:473
==> default: notice: /Stage[main]/Dgu_ckan/Service[jetty]: Triggered 'refresh' from 5 events
==> default: notice: /Stage[main]//Sudo::Conf[sudo]/Exec[sudo-syntax-check for file /etc/sudoers.d/10_sudo]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[env]/File[env.load symlink]/target: target changed '../mods-available/env.load' to '/etc/apache2/mods-available/env.load'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[allow access to ipv6 localhost]/Concat::Fragment[pg_hba_rule_allow access to ipv6 localhost]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/101_pg_hba_rule_allow access to ipv6 lo
calhost]/ensure: defined content as '{md5}ab588822a007943223faadf86be3044a'
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_hba.conf]/returns: executed successfully
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_hba.conf]: Triggered 'refresh' from 8 events
==> default: notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/etc/postgresql/9.1/main/pg_hba.conf]/content: content changed '{md5}7694a77a71d01d43944f0ec2aa3fb165' to '{md5}c31ee6f98ede22591533e8056938c902'
==> default: notice: /Stage[main]/Nodejs/Apt::Ppa[ppa:chris-lea/node.js]/Package[python-software-properties]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Nodejs/Apt::Ppa[ppa:chris-lea/node.js]/Exec[add-apt-repository-ppa:chris-lea/node.js]/returns: executed successfully
==> default: notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Nodejs/Package[nodejs]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Package[grunt-cli]/ensure: created
==> default: notice: /Stage[main]//Group[co]/ensure: created
==> default: notice: /Stage[main]//User[co]/ensure: created
==> default: notice: /Stage[main]//File[/home/co/.bashrc]/ensure: ensure changed 'file' to 'link'
==> default: notice: /Stage[main]/Dgu_ckan/File[/home/co/.ssh/]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/File[/home/co/.ssh/authorized_keys]/ensure: defined content as '{md5}b54f029e82c860f05c0fbdfef3ed6184'
==> default: notice: /Stage[main]/Dgu_ckan/File[/home/co/.noserc]/ensure: defined content as '{md5}277484b2d11d757482ac6d921c3d5a7b'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed
_stream.js'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!  { [Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/del
ayed_stream.js']
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   errno: 50,
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   code: 'EPERM',
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   path: '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js'
 }
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Please try running this command again as root/Administrator.
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns:
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! System Linux 3.2.0-23-generic
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! cwd /src/shared_dguk_assets
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! node -v v0.10.32
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! npm -v 1.4.28
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! path /src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! code EPERM
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! errno 50
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! stack Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/d
elayed_stream.js'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN optional dep failed, continuing [email protected]
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delaye
d_stream.js'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!  { [Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/de
layed_stream.js']
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   errno: 50,
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   code: 'EPERM',
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   path: '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js
' }
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Please try running this command again as root/Administrator.
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns:
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! System Linux 3.2.0-23-generic
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! cwd /src/shared_dguk_assets
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! node -v v0.10.32
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! npm -v 1.4.28
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! path /src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! code EPERM
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! errno 50
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! stack Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/
delayed_stream.js'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-
delayed-http-upload.js'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!  { [Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/t
est-delayed-http-upload.js']
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   errno: 50,
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   code: 'EPERM',
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   path: '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-htt
p-upload.js' }
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Please try running this command again as root/Administrator.
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns:
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! System Linux 3.2.0-23-generic
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! cwd /src/shared_dguk_assets
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! node -v v0.10.32
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! npm -v 1.4.28
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! path /src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-up
load.js
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! code EPERM
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! errno 50
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! stack Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration
/test-delayed-http-upload.js'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN optional dep failed, continuing [email protected]
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! not ok code 0
==> default: err: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: change from notrun to 0 failed: sudo npm install returned 50 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:597
==> default: notice: /Stage[main]/Dgu_ckan/Exec[grunt_shared]: Dependency Exec[npm_deps_shared] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[grunt_shared]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Postgresql::Server::Service/Postgresql::Validate_db_connection[validate_service_is_running]/Exec[validate postgres connection for /postgres]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Triggered 'refresh' from 1 events
==> default: notice: /Stage[main]/Postgresql::Server::Passwd/Exec[set_postgres_postgrespw]/returns: ALTER ROLE
==> default: notice: /Stage[main]/Postgresql::Server::Passwd/Exec[set_postgres_postgrespw]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[ckan_default]/Postgresql_psql[CREATE ROLE "ckan_default" ENCRYPTED PASSWORD 'md55371973b6a925d285c554feaeb575e19' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1]/command: command changed 'notrun' to 'CREATE ROLE "cka
n_default" ENCRYPTED PASSWORD 'md55371973b6a925d285c554feaeb575e19' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1'
==> default: notice: /Stage[main]/Dgu_ckan/Package[postgresql-9.1-postgis]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[co]/Postgresql_psql[CREATE ROLE "co" ENCRYPTED PASSWORD 'md5600d89f1c751597c01c5cbbdabba7d34' LOGIN CREATEROLE CREATEDB SUPERUSER  CONNECTION LIMIT -1]/command: command changed 'notrun' to 'CREATE ROLE "co" ENCRYPTED PASSWORD 'md560
0d89f1c751597c01c5cbbdabba7d34' LOGIN CREATEROLE CREATEDB SUPERUSER  CONNECTION LIMIT -1'
==> default: notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[co]/Postgresql_psql[ALTER ROLE "co" NOREPLICATION]/command: command changed 'notrun' to 'ALTER ROLE "co" NOREPLICATION'
==> default: err: /Stage[main]/Dgu_ckan/Exec[createdb postgis_template]/returns: change from notrun to 0 failed: /tmp/create_postgis_template.sh ckan_default returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:385
==> default: err: /Stage[main]/Dgu_ckan/Exec[createdb utf8_template]/returns: change from notrun to 0 failed: /tmp/create_utf8_template.sh returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:395
==> default: notice: /Stage[main]/Dgu_ckan/Exec[createdb ckan_test]: Dependency Exec[createdb utf8_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[createdb ckan_test]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Package[python-psycopg2]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Apache::Mod[wsgi]/Package[libapache2-mod-wsgi]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Apache::Mod[wsgi]/File[wsgi.load symlink]/target: target changed '../mods-available/wsgi.load' to '/etc/apache2/mods-available/wsgi.load'
==> default: notice: /Stage[main]/Apache::Mod::Dav_fs/File[dav_fs.conf]/content: content changed '{md5}9d5c750538bf58538c558b907ca924f1' to '{md5}e36e2951cff0d4df331652ca6fccdb77'
==> default: notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.conf symlink]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[dgu]/Postgresql_psql[CREATE ROLE "dgu" ENCRYPTED PASSWORD 'md51d4fe45e0bdb2591d2c09146f5e61cb6' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1]/command: command changed 'notrun' to 'CREATE ROLE "dgu" ENCRYPTED PASSWO
RD 'md51d4fe45e0bdb2591d2c09146f5e61cb6' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1'
==> default: notice: /Stage[main]/Dgu_ckan/Exec[createdb ckan]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[createdb ckan]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Python::Install/Package[python-pip]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Python::Install/Package[python-virtualenv]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Python::Install/Package[python-dev]/ensure: ensure changed 'purged' to 'present'
==> default: notice: /Stage[main]/Dgu_ckan/Python::Virtualenv[/home/co/ckan]/File[/home/co/ckan]/ensure: created
==> default: notice: /Stage[main]/Dgu_ckan/Python::Virtualenv[/home/co/ckan]/Exec[python_virtualenv_/home/co/ckan]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[unicodecsv==0.9.4]/Exec[pip_install_unicodecsv==0.9.4]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ofs==0.4.1]/Exec[pip_install_ofs==0.4.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Jinja2==2.7]/Exec[pip_install_Jinja2==2.7]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[factory-boy==2.1.1]/Exec[pip_install_factory-boy==2.1.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Werkzeug==0.8.3]/Exec[pip_install_Werkzeug==0.8.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[fanstatic==0.12]/Exec[pip_install_fanstatic==0.12]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-openid==2.2.5]/Exec[pip_install_python-openid==2.2.5]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pyutilib.component.core==4.6]/Exec[pip_install_pyutilib.component.core==4.6]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[messytables==0.10.0]/Exec[pip_install_messytables==0.10.0]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[FormAlchemy==1.4.2]/Exec[pip_install_FormAlchemy==1.4.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[requests==1.1]/Exec[pip_install_requests==1.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebTest==1.4.3]/Exec[pip_install_WebTest==1.4.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[chardet==2.1.1]/Exec[pip_install_chardet==2.1.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[simplejson==2.6.2]/Exec[pip_install_simplejson==2.6.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[anyjson==0.3.3]/Exec[pip_install_anyjson==0.3.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[amqplib==1.0.2]/Exec[pip_install_amqplib==1.0.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[lxml==3.2.4]/Exec[pip_install_lxml==3.2.4]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[httplib2==0.8]/Exec[pip_install_httplib2==0.8]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[apachemiddleware==0.1.1]/Exec[pip_install_apachemiddleware==0.1.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pylons==0.9.7]/Exec[pip_install_Pylons==0.9.7]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nose==1.3.0]/Exec[pip_install_nose==1.3.0]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[sqlalchemy-migrate==0.7.2]/Exec[pip_install_sqlalchemy-migrate==0.7.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[celery==2.4.2]/Exec[pip_install_celery==2.4.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebHelpers==1.3]/Exec[pip_install_WebHelpers==1.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[psycopg2==2.4.5]/Exec[pip_install_psycopg2==2.4.5]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[MarkupSafe==0.15]/Exec[pip_install_MarkupSafe==0.15]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pep8==1.4.6]/Exec[pip_install_pep8==1.4.6]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[redis==2.9.1]/Exec[pip_install_redis==2.9.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[gdata==2.0.17]/Exec[pip_install_gdata==2.0.17]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebOb==1.0.8]/Exec[pip_install_WebOb==1.0.8]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebError==0.10.3]/Exec[pip_install_WebError==0.10.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[FormEncode==1.2.4]/Exec[pip_install_FormEncode==1.2.4]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Mako==0.8.1]/Exec[pip_install_Mako==0.8.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[repoze.who-friendlyform==1.0.8]/Exec[pip_install_repoze.who-friendlyform==1.0.8]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[repoze.who.plugins.openid==0.5.3]/Exec[pip_install_repoze.who.plugins.openid==0.5.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ConcurrentLogHandler==0.8.4]/Exec[pip_install_ConcurrentLogHandler==0.8.4]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[mock==1.0.1]/Exec[pip_install_mock==1.0.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pygments==1.6]/Exec[pip_install_Pygments==1.6]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[json-table-schema==0.1]/Exec[pip_install_json-table-schema==0.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[autoneg==0.5]/Exec[pip_install_autoneg==0.5]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[repoze.who==1.0.19]/Exec[pip_install_repoze.who==1.0.19]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[xlrd==0.9.2]/Exec[pip_install_xlrd==0.9.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Beaker==1.6.3]/Exec[pip_install_Beaker==1.6.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Genshi==0.6]/Exec[pip_install_Genshi==0.6]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[PasteScript==1.7.5]/Exec[pip_install_PasteScript==1.7.5]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pytz==2012j]/Exec[pip_install_pytz==2012j]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[kombu-sqlalchemy==1.1.0]/Exec[pip_install_kombu-sqlalchemy==1.1.0]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[SQLAlchemy==0.7.8]/Exec[pip_install_SQLAlchemy==0.7.8]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Tempita==0.5.1]/Exec[pip_install_Tempita==0.5.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[decorator==3.3.2]/Exec[pip_install_decorator==3.3.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Babel==0.9.6]/Exec[pip_install_Babel==0.9.6]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-dateutil==1.5]/Exec[pip_install_python-dateutil==1.5]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pairtree==0.7.1-T]/Exec[pip_install_Pairtree==0.7.1-T]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pylibmc]/Exec[pip_install_pylibmc]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Routes==1.13]/Exec[pip_install_Routes==1.13]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[zope.interface==4.0.1]/Exec[pip_install_zope.interface==4.0.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[kombu==2.1.3]/Exec[pip_install_kombu==2.1.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[vdm==0.11]/Exec[pip_install_vdm==0.11]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[PasteDeploy==1.5.0]/Exec[pip_install_PasteDeploy==1.5.0]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[PyMollom==0.1]/Exec[pip_install_PyMollom==0.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[OWSLib==0.8.2]/Exec[pip_install_OWSLib==0.8.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[flup==1.0.2]/Exec[pip_install_flup==1.0.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanclient==0.10]/Exec[pip_install_ckanclient==0.10]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[solrpy==0.9.5]/Exec[pip_install_solrpy==0.9.5]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[google-api-python-client==1.1]/Exec[pip_install_google-api-python-client==1.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-gflags==2.0]/Exec[pip_install_python-gflags==2.0]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[GeoAlchemy==0.7.2]/Exec[pip_install_GeoAlchemy==0.7.2]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Paste==1.7.5.1]/Exec[pip_install_Paste==1.7.5.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Flask==0.8]/Exec[pip_install_Flask==0.8]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-magic==0.4.3]/Exec[pip_install_python-magic==0.4.3]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[carrot==0.10.1]/Exec[pip_install_carrot==0.10.1]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[datautil==0.4]/Exec[pip_install_datautil==0.4]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[openpyxl==1.5.7]/Exec[pip_install_openpyxl==1.5.7]/returns: executed successfully
==> default: notice: /Stage[main]/Apache::Mod::Cgi/Apache::Mod[cgi]/File[cgi.load symlink]/target: target changed '../mods-available/cgi.load' to '/etc/apache2/mods-available/cgi.load'
==> default: notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_user]/File[authz_user.load symlink]/target: target changed '../mods-available/authz_user.load' to '/etc/apache2/mods-available/authz_user.load'
==> default: notice: /File[/etc/apache2/mods-enabled/php5.conf]/ensure: removed
==> default: notice: /File[/etc/apache2/mods-enabled/status.load]/ensure: removed
==> default: notice: /File[/etc/apache2/mods-enabled/wsgi.conf]/ensure: removed
==> default: notice: /File[/etc/apache2/mods-enabled/status.conf]/ensure: removed
==> default: notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 46 events
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Shapely==1.2.17]/Exec[pip_install_Shapely==1.2.17]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-ga-report]/Exec[pip_install_ckanext-ga-report]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-spatial]/Exec[pip_install_ckanext-spatial]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: Ignoring indexes: https://pypi.python.org/simple/
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: Directory '/src/ckan' is not installable. File 'setup.py' not found.
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: Storing debug log for failure in /home/co/ckan/pip.log
==> default: err: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log -e /src/ckan returned 1 instead of one of [0] at /etc/puppet
/modules/dgu_ckan/manifests/pip_package.pp:22
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-os]/Exec[pip_install_ckanext-os]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-qa]/Exec[pip_install_ckanext-qa]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-dgu-local]/Exec[pip_install_ckanext-dgu-local]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-report]/Exec[pip_install_ckanext-report]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-dgu]/Exec[pip_install_ckanext-dgu]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-hierarchy]/Exec[pip_install_ckanext-hierarchy]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-archiver]/Exec[pip_install_ckanext-archiver]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-importlib]/Exec[pip_install_ckanext-importlib]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-harvest]/Exec[pip_install_ckanext-harvest]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-datapreview]/Exec[pip_install_ckanext-datapreview]/returns: executed successfully
==> default: notice: /Stage[main]/Dgu_ckan/Exec[setup_virtualenv_permissions]: Dependency Exec[pip_install_ckan] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[setup_virtualenv_permissions]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[setup_virtualenv_permissions]: Triggered 'refresh' from 87 events
==> default: notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_dgu]: Dependency Exec[pip_install_ckan] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[npm_deps_dgu]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[grunt_dgu]: Dependency Exec[pip_install_ckan] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[grunt_dgu]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Notify[virtualenv_ready]: Dependency Exec[pip_install_ckan] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Notify[virtualenv_ready]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[paster db init]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: Traceback (most recent call last):
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/bin/paster", line 9, in <module>
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 93, in run
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     commands = get_commands()
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 135, in get_commands
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     plugins = pluginlib.resolve_plugins(plugins)
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     pkg_resources.require(plugin)
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     needed = self.resolve(parse_requirements(requirements))
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/pkg_resources.py", line 622, in resolve
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     raise DistributionNotFound(req)
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: pkg_resources.DistributionNotFound: Not Found: ckan (did you run python setup.py develop?)
==> default: err: /Stage[main]/Dgu_ckan/Exec[paster db init]: Failed to call refresh: /home/co/ckan/bin/paster --plugin=ckan db init --config=/var/ckan/ckan.ini returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:313
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster archiver init]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster archiver init]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[paster archiver init]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster qa init]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster qa init]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[paster qa init]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster dgu_local init]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster dgu_local init]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[paster dgu_local init]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Notify[db_ready]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Notify[db_ready]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Notify[db_ready]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Exec[pip_install_ckan] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Service[jetty] has failures: true
==> default: notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Exec[createdb postgis_template] has failures: true
==> default: warning: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Skipping because of failed dependencies
==> default: notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Triggered 'refresh' from 1 events
==> default: notice: Finished catalog run in 2816.74 seconds
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

FACTER_motd='Built by Vagrant using librarian-puppet.' FACTER_fqdn='ckan.home' FACTER_pgpasswd='pass' puppet apply --manifestdir /tmp/vagrant-puppet-3/manifests --detailed-exitcodes /tmp/vagrant-puppet-3/manifests/site.pp

Stdout from the command:

warning: Scope(Class[Python]): Could not look up qualified variable '::python::install::valid_versions'; class ::python::install has not been evaluated at /etc/puppet/modules/python/manifests/init.pp:73
warning: Scope(Class[Python]): Could not look up qualified variable '::python::install::valid_versions'; class ::python::install has not been evaluated at /etc/puppet/modules/python/manifests/init.pp:73
notice: /Stage[main]//Package[php5-mysql]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Package[php5-gd]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/File[/etc/init.d/jetty]/ensure: defined content as '{md5}98ff946151ba09a69360ac80aff5d485'
notice: /Stage[main]/Dgu_ckan/Package[openjdk-7-jre-headless]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Package[libxslt1-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created
notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created
notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.sh]/ensure: defined content as '{md5}7bbe7c5fce25a5ddd20415d909ba44fc'
notice: /Stage[main]//Package[screen]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/File[/tmp/create_postgis_template.sh]/ensure: defined content as '{md5}14a6a6717fe7964a1a8fe47af647b11a'
notice: /Stage[main]//File[/etc/motd]/ensure: defined content as '{md5}585b0982ce65215404f684bd20d5fbfa'
notice: /Stage[main]/Memcached/Package[memcached]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Memcached/Package[libmemcached-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Package[mysql-server-5.5]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Package[redis-server]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Package[libpq-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Postgresql::Client/Package[postgresql-client]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//Package[php5-curl]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/File[/tmp/create_utf8_template.sh]/ensure: defined content as '{md5}78d9600bb24d8425d788a51d29d3c0ec'
notice: /Stage[main]//Package[curl]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Package[rabbitmq-server]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Package[python-pastescript]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Postgresql::Client/File[/usr/local/bin/validate_postgresql_connection.sh]/ensure: defined content as '{md5}20301932819f035492a30880f5bf335a'
notice: /Stage[main]//Package[pv]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/File[/etc/solr]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/etc/solr/conf]/ensure: created
notice: /Stage[main]/Apache::Mod::Prefork/Apache::Mpm[prefork]/Package[apache2-mpm-prefork]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Postgresql::Server::Install/Package[postgresql-server]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Sudo/File[/etc/sudoers.d/]/mode: mode changed '0755' to '0550'
notice: /Stage[main]//Sudo::Conf[sudo]/File[10_sudo]/ensure: created
notice: /Stage[main]/Dgu_ckan/User[solr]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/log/solr]/ensure: created
notice: /Stage[main]//Package[vim]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]//File[/etc/fqdn]/ensure: defined content as '{md5}a9c5f363a53f0f51790eff7299a0860f'
notice: /Stage[main]//Package[unzip]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Apache/Package[httpd]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Apache/File[/etc/apache2/apache2.conf]/content: content changed '{md5}8f5c4e0629a7c10aead1bf839cc57c72' to '{md5}f0c7c974f7e1bedcda1d87fc01cd1b7a'
notice: /File[/etc/apache2/conf.d/security]/ensure: removed
notice: /File[/etc/apache2/conf.d/localized-error-pages]/ensure: removed
notice: /Stage[main]/Apache::Mod::Mime/Apache::Mod[mime]/File[mime.load symlink]/target: target changed '../mods-available/mime.load' to '/etc/apache2/mods-available/mime.load'
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_groupfile]/File[authz_groupfile.load symlink]/target: target changed '../mods-available/authz_groupfile.load' to '/etc/apache2/mods-available/authz_groupfile.load'
notice: /Stage[main]/Apache::Mod::Mime/File[mime.conf]/content: content changed '{md5}00a92470c78b1573e94bf421d72a3806' to '{md5}2fa646fe615e44d137a5d629f868c107'
notice: /Stage[main]/Apache::Mod::Setenvif/File[setenvif.conf]/content: content changed '{md5}99d607cc2acf4e13b700b1e67a8f8503' to '{md5}c7ede4173da1915b7ec088201f030c28'
notice: /Stage[main]/Apache::Mod::Deflate/File[deflate.conf]/content: content changed '{md5}8c13524d3a4955810e6434ff388c3168' to '{md5}44d54f557a5612be8da04c49dd6da862'
notice: /Stage[main]/Apache::Mod::Negotiation/File[negotiation.conf]/content: content changed '{md5}25480201827ba22eef212617006c1491' to '{md5}47284b5580b986a6ba32580b6ffb9fd7'
notice: /Stage[main]/Apache::Mod::Negotiation/Apache::Mod[negotiation]/File[negotiation.conf symlink]/target: target changed '../mods-available/negotiation.conf' to '/etc/apache2/mods-available/negotiation.conf'
notice: /Stage[main]/Apache::Mod::Alias/Apache::Mod[alias]/File[alias.load symlink]/target: target changed '../mods-available/alias.load' to '/etc/apache2/mods-available/alias.load'
notice: /Stage[main]/Apache::Mod::Dir/File[dir.conf]/content: content changed '{md5}b6882491a6d2b823da960f19a50b132f' to '{md5}c741d8ea840e6eb999d739eed47c69d7'
notice: /Stage[main]/Apache::Mod::Dir/Apache::Mod[dir]/File[dir.conf symlink]/target: target changed '../mods-available/dir.conf' to '/etc/apache2/mods-available/dir.conf'
notice: /Stage[main]/Apache::Mod::Setenvif/Apache::Mod[setenvif]/File[setenvif.load symlink]/target: target changed '../mods-available/setenvif.load' to '/etc/apache2/mods-available/setenvif.load'
notice: /File[/etc/apache2/conf.d/charset]/ensure: removed
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[auth_basic]/File[auth_basic.load symlink]/target: target changed '../mods-available/auth_basic.load' to '/etc/apache2/mods-available/auth_basic.load'
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf]/ensure: created
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out]/ensure: created
notice: /File[/etc/apache2/sites-enabled/000-default]/ensure: removed
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authn_file]/File[authn_file.load symlink]/target: target changed '../mods-available/authn_file.load' to '/etc/apache2/mods-available/authn_file.load'
notice: /Stage[main]/Apache::Mod::Dav/Apache::Mod[dav]/File[dav.load symlink]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/ckan]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/ckan/data]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/ckan/wsgi_app.py]/ensure: defined content as '{md5}54b39cb1f3e775e940e694ed810582a9'
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Ckan_config_file[ckan_ini_file]/File[/var/ckan/ckan.ini]/ensure: defined content as '{md5}22df88c0668b26343dfb8282906fa675'
err: /Stage[main]/Dgu_ckan/File[/vagrant/src/ckan/ckan.ini]/ensure: change from absent to link failed: Could not set 'link on ensure: Protocol error - /var/ckan/ckan.ini or /vagrant/src/ckan/ckan.ini at /etc/puppet/modules/dgu_ckan/manifests/init.pp:219
notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan/ckan.log]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan/ckan-apache.error.log]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/var/ckan/who.ini]/ensure: defined content as '{md5}b464fcd543e00b5346d3db6b9b351df9'
notice: /File[/etc/apache2/conf.d/other-vhosts-access-log]/ensure: removed
notice: /Stage[main]/Apache::Mod::Prefork/File[/etc/apache2/mods-available/prefork.conf]/ensure: defined content as '{md5}109c4f51dac10fc1b39373855e566d01'
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat]/ensure: created
notice: /Stage[main]/Apache::Mod::Dir/Apache::Mod[dir]/File[dir.load symlink]/target: target changed '../mods-available/dir.load' to '/etc/apache2/mods-available/dir.load'
notice: /Stage[main]/Apache::Mod::Mime/Apache::Mod[mime]/File[mime.conf symlink]/target: target changed '../mods-available/mime.conf' to '/etc/apache2/mods-available/mime.conf'
notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.load]/content: content changed '{md5}17f662fd023dbaaab9d89f9a11ae58c1' to '{md5}3fa14d6e9f9d8eb25d09ed4823508f6d'
notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.load symlink]/ensure: created
notice: /Stage[main]/Dgu_ckan/Apache::Mod[php5]/Package[libapache2-mod-php5]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Apache::Mod::Alias/File[alias.conf]/content: content changed '{md5}926033d21c2819e794c94a251355acc9' to '{md5}f6db1cc93bde9df82780cb98c2b33e77'
notice: /Stage[main]/Apache::Mod::Alias/Apache::Mod[alias]/File[alias.conf symlink]/target: target changed '../mods-available/alias.conf' to '/etc/apache2/mods-available/alias.conf'
notice: /Stage[main]/Dgu_ckan/File[/var/log/ckan/ckan-apache.custom.log]/ensure: created
notice: /Stage[main]/Apache::Mod::Negotiation/Apache::Mod[negotiation]/File[negotiation.load symlink]/target: target changed '../mods-available/negotiation.load' to '/etc/apache2/mods-available/negotiation.load'
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments]/ensure: created
notice: /Stage[main]/Dgu_ckan/Apache::Listen[80]/Concat::Fragment[Listen 80]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments/10_Listen 80]/ensure: defined content as '{md5}d5fcefc335117f400d451de47efeca87'
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf/fragments.concat.out]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments.concat.out]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf/fragments.concat]/ensure: created
notice: /Stage[main]/Apache::Mod::Reqtimeout/File[reqtimeout.conf]/content: content changed '{md5}f5104bdb13db79bd548728d5146931a7' to '{md5}81c51851ab7ee7942bef389dc7c0e985'
notice: /Stage[main]/Apache::Mod::Reqtimeout/Apache::Mod[reqtimeout]/File[reqtimeout.conf symlink]/target: target changed '../mods-available/reqtimeout.conf' to '/etc/apache2/mods-available/reqtimeout.conf'
notice: /Stage[main]/Apache::Mod::Reqtimeout/Apache::Mod[reqtimeout]/File[reqtimeout.load symlink]/target: target changed '../mods-available/reqtimeout.load' to '/etc/apache2/mods-available/reqtimeout.load'
notice: /File[/etc/apache2/sites-available/default-ssl]/ensure: removed
notice: /Stage[main]/Dgu_ckan/Apache::Mod[php5]/File[php5.load symlink]/target: target changed '../mods-available/php5.load' to '/etc/apache2/mods-available/php5.load'
notice: /Stage[main]/Apache::Mod::Setenvif/Apache::Mod[setenvif]/File[setenvif.conf symlink]/target: target changed '../mods-available/setenvif.conf' to '/etc/apache2/mods-available/setenvif.conf'
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_default]/File[authz_default.load symlink]/target: target changed '../mods-available/authz_default.load' to '/etc/apache2/mods-available/authz_default.load'
notice: /Stage[main]/Solr::Install/Puppi::Netinstall[netinstall_solr]/Exec[Retrieve http://archive.apache.org/dist/lucene/solr/4.3.1/solr-4.3.1.tgz in /var/tmp]/returns: executed successfully
notice: /Stage[main]/Solr::Install/Puppi::Netinstall[netinstall_solr]/Exec[Extract solr-4.3.1.tgz from /var/tmp]/returns: executed successfully
notice: /Stage[main]/Solr::Install/Puppi::Netinstall[netinstall_solr]/Exec[Chown solr-4.3.1.tgz in /usr/share/solr]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Solr/File[solr.conf]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/usr/share/solr/solr-4.3.1/example/solr/collection1/conf/solrconfig.xml]/content: content changed '{md5}2c0ea6581084402df175cbb1bfbecc12' to '{md5}61b4e9139ed486a2b7a6d439b8dcd9b7'
notice: /Stage[main]/Dgu_ckan/Exec[setup_solr_core]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Exec[setup_solr_core]: Triggered 'refresh' from 2 events
notice: /Stage[main]/Apache::Mod::Proxy/Apache::Mod[proxy]/File[proxy.load symlink]/ensure: created
notice: /File[/etc/apache2/sites-available/default]/ensure: removed
notice: /Stage[main]/Dgu_ckan/File[apache_ckan_conf]/ensure: defined content as '{md5}0732eb52aee9e16860cf20318023a867'
notice: /Stage[main]/Apache::Mod::Deflate/Apache::Mod[deflate]/File[deflate.conf symlink]/target: target changed '../mods-available/deflate.conf' to '/etc/apache2/mods-available/deflate.conf'
notice: /Stage[main]/Apache::Mod::Deflate/Apache::Mod[deflate]/File[deflate.load symlink]/target: target changed '../mods-available/deflate.load' to '/etc/apache2/mods-available/deflate.load'
notice: /Stage[main]/Apache::Mod::Autoindex/Apache::Mod[autoindex]/File[autoindex.load symlink]/target: target changed '../mods-available/autoindex.load' to '/etc/apache2/mods-available/autoindex.load'
notice: /Stage[main]/Memcached/File[/etc/memcached.conf]/content: content changed '{md5}58c9e04b29e08c2e9b3094794d3ebd0e' to '{md5}75c4e8baea773a590664276b68147de1'
notice: /Stage[main]/Memcached/Service[memcached]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[allow access to all users]/Concat::Fragment[pg_hba_rule_allow access to all users]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/100_pg_hba_rule_allow access to all users]/ensure: defined con
tent as '{md5}0c5966ab4591f092ef66ce333bb3f463'
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[local access as postgres user]/Concat::Fragment[pg_hba_rule_local access as postgres user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/001_pg_hba_rule_local access as postgres user]/ensure:
 defined content as '{md5}03454101c43efbcdecc71dd3f734a68f'
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[local access to database with same name]/Concat::Fragment[pg_hba_rule_local access to database with same name]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/002_pg_hba_rule_local access to da
tabase with same name]/ensure: defined content as '{md5}61275db6b21adbf53b575d4c1a6bbed1'
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[allow localhost TCP access to postgresql user]/Concat::Fragment[pg_hba_rule_allow localhost TCP access to postgresql user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/003_pg_hba_rule_allow
localhost TCP access to postgresql user]/ensure: defined content as '{md5}f30c1a00a0759236b37352c32cd0e284'
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[deny access to postgresql user]/Concat::Fragment[pg_hba_rule_deny access to postgresql user]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/004_pg_hba_rule_deny access to postgresql user]/ensu
re: defined content as '{md5}205b04b3328583b8330f59e37d55c8e8'
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Config_entry[listen_addresses]/Postgresql_conf[listen_addresses]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_ident.conf/fragments]/ensure: created
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_ident.conf]/returns: executed successfully
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_ident.conf]: Triggered 'refresh' from 2 events
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_ident.conf]/File[/etc/postgresql/9.1/main/pg_ident.conf]/content: content changed '{md5}f11c8332d3f444148c0b8ee83ec5fc6d' to '{md5}9300ac105fe777787ac9e793b8df8d25'
notice: /Stage[main]/Dgu_ckan/File[solr_schema_xml]/content: content changed '{md5}a00d869bb60ccf72eff2c4ff723f184d' to '{md5}27d838f67cd94663084548de73662763'
notice: /Stage[main]/Apache::Mod::Autoindex/File[autoindex.conf]/content: content changed '{md5}77ea294b47d8d2e4dc68107907da8311' to '{md5}2421a3c6df32c7e38c2a7a22afdf5728'
notice: /Stage[main]/Apache::Mod::Autoindex/Apache::Mod[autoindex]/File[autoindex.conf symlink]/target: target changed '../mods-available/autoindex.conf' to '/etc/apache2/mods-available/autoindex.conf'
notice: /Stage[main]/Apache/Concat::Fragment[Apache ports header]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments/10_Apache ports header]/ensure: defined content as '{md5}afe35cb5747574b700ebaa0f0b3a626e'
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat_/etc/apache2/ports.conf]/returns: executed successfully
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat_/etc/apache2/ports.conf]: Triggered 'refresh' from 4 events
notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/etc/apache2/ports.conf]/content: content changed '{md5}38b31d20326f3640a8dfbe1ff5d1c4ad' to '{md5}334fa5cddbf9a408ea1ca7a1666b1fc4'
notice: /Stage[main]/Apache::Mod::Prefork/Apache::Mpm[prefork]/File[/etc/apache2/mods-enabled/prefork.conf]/ensure: created
notice: /Stage[main]/Apache::Mod::Rewrite/Apache::Mod[rewrite]/File[rewrite.load symlink]/ensure: created
notice: /Stage[main]/Apache::Mod::Proxy/File[proxy.conf]/content: content changed '{md5}5b40618d1d3ec04e618b05581effd68a' to '{md5}9eab682d8c4c89abd0ff20c1a60b908d'
notice: /Stage[main]/Dgu_ckan/File[/var/ckan/sstore]/ensure: created
notice: CKAN's filesystem is ready.
notice: /Stage[main]/Dgu_ckan/Notify[ckan_fs_ready]/message: defined 'message' as 'CKAN's filesystem is ready.'
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_host]/File[authz_host.load symlink]/target: target changed '../mods-available/authz_host.load' to '/etc/apache2/mods-available/authz_host.load'
notice: /Stage[main]/Apache::Mod::Proxy/Apache::Mod[proxy]/File[proxy.conf symlink]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/etc/default/jetty]/ensure: defined content as '{md5}7230f736d205d929e31db196bd450a27'
err: /Stage[main]/Dgu_ckan/Service[jetty]/ensure: change from stopped to running failed: Could not start Service[jetty]: Execution of '/etc/init.d/jetty start' returned 127:  at /etc/puppet/modules/dgu_ckan/manifests/init.pp:473
notice: /Stage[main]/Dgu_ckan/Service[jetty]: Triggered 'refresh' from 5 events
notice: /Stage[main]//Sudo::Conf[sudo]/Exec[sudo-syntax-check for file /etc/sudoers.d/10_sudo]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[env]/File[env.load symlink]/target: target changed '../mods-available/env.load' to '/etc/apache2/mods-available/env.load'
notice: /Stage[main]/Postgresql::Server::Config/Postgresql::Server::Pg_hba_rule[allow access to ipv6 localhost]/Concat::Fragment[pg_hba_rule_allow access to ipv6 localhost]/File[/var/lib/puppet/concat/_etc_postgresql_9.1_main_pg_hba.conf/fragments/101_pg_hba_rule_allow access to ipv6 localhost]/ensu
re: defined content as '{md5}ab588822a007943223faadf86be3044a'
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_hba.conf]/returns: executed successfully
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/Exec[concat_/etc/postgresql/9.1/main/pg_hba.conf]: Triggered 'refresh' from 8 events
notice: /Stage[main]/Postgresql::Server::Config/Concat[/etc/postgresql/9.1/main/pg_hba.conf]/File[/etc/postgresql/9.1/main/pg_hba.conf]/content: content changed '{md5}7694a77a71d01d43944f0ec2aa3fb165' to '{md5}c31ee6f98ede22591533e8056938c902'
notice: /Stage[main]/Nodejs/Apt::Ppa[ppa:chris-lea/node.js]/Package[python-software-properties]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Nodejs/Apt::Ppa[ppa:chris-lea/node.js]/Exec[add-apt-repository-ppa:chris-lea/node.js]/returns: executed successfully
notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Nodejs/Package[nodejs]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Package[grunt-cli]/ensure: created
notice: /Stage[main]//Group[co]/ensure: created
notice: /Stage[main]//User[co]/ensure: created
notice: /Stage[main]//File[/home/co/.bashrc]/ensure: ensure changed 'file' to 'link'
notice: /Stage[main]/Dgu_ckan/File[/home/co/.ssh/]/ensure: created
notice: /Stage[main]/Dgu_ckan/File[/home/co/.ssh/authorized_keys]/ensure: defined content as '{md5}b54f029e82c860f05c0fbdfef3ed6184'
notice: /Stage[main]/Dgu_ckan/File[/home/co/.noserc]/ensure: defined content as '{md5}277484b2d11d757482ac6d921c3d5a7b'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!  { [Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.j
s']
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   errno: 50,
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   code: 'EPERM',
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   path: '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js' }
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Please try running this command again as root/Administrator.
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns:
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! System Linux 3.2.0-23-generic
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! cwd /src/shared_dguk_assets
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! node -v v0.10.32
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! npm -v 1.4.28
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! path /src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! code EPERM
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! errno 50
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! stack Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream
.js'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN optional dep failed, continuing [email protected]
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!  { [Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.
js']
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   errno: 50,
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   code: 'EPERM',
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   path: '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js' }
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Please try running this command again as root/Administrator.
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns:
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! System Linux 3.2.0-23-generic
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! cwd /src/shared_dguk_assets
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! node -v v0.10.32
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! npm -v 1.4.28
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! path /src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! code EPERM
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! errno 50
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! stack Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_strea
m.js'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-
upload.js'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!  { [Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-h
ttp-upload.js']
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   errno: 50,
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   code: 'EPERM',
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!   path: '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js'
}
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR!
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! Please try running this command again as root/Administrator.
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns:
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! System Linux 3.2.0-23-generic
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! cwd /src/shared_dguk_assets
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! node -v v0.10.32
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! npm -v 1.4.28
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! path /src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! code EPERM
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! errno 50
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! stack Error: EPERM, open '/src/shared_dguk_assets/node_modules/grunt-contrib-less/node_modules/less/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed
-http-upload.js'
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm WARN optional dep failed, continuing [email protected]
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: npm ERR! not ok code 0
err: /Stage[main]/Dgu_ckan/Exec[npm_deps_shared]/returns: change from notrun to 0 failed: sudo npm install returned 50 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:597
notice: /Stage[main]/Dgu_ckan/Exec[grunt_shared]: Dependency Exec[npm_deps_shared] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[grunt_shared]: Skipping because of failed dependencies
notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::begin]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Postgresql::Server::Service/Service[postgresqld]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Postgresql::Server::Service/Postgresql::Validate_db_connection[validate_service_is_running]/Exec[validate postgres connection for /postgres]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Postgresql::Server::Passwd/Exec[set_postgres_postgrespw]/returns: ALTER ROLE
notice: /Stage[main]/Postgresql::Server::Passwd/Exec[set_postgres_postgrespw]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[ckan_default]/Postgresql_psql[CREATE ROLE "ckan_default" ENCRYPTED PASSWORD 'md55371973b6a925d285c554feaeb575e19' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1]/command: command changed 'notrun' to 'CREATE ROLE "ckan_default" EN
CRYPTED PASSWORD 'md55371973b6a925d285c554feaeb575e19' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1'
notice: /Stage[main]/Dgu_ckan/Package[postgresql-9.1-postgis]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[co]/Postgresql_psql[CREATE ROLE "co" ENCRYPTED PASSWORD 'md5600d89f1c751597c01c5cbbdabba7d34' LOGIN CREATEROLE CREATEDB SUPERUSER  CONNECTION LIMIT -1]/command: command changed 'notrun' to 'CREATE ROLE "co" ENCRYPTED PASSWORD 'md5600d89f1c751597
c01c5cbbdabba7d34' LOGIN CREATEROLE CREATEDB SUPERUSER  CONNECTION LIMIT -1'
notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[co]/Postgresql_psql[ALTER ROLE "co" NOREPLICATION]/command: command changed 'notrun' to 'ALTER ROLE "co" NOREPLICATION'
err: /Stage[main]/Dgu_ckan/Exec[createdb postgis_template]/returns: change from notrun to 0 failed: /tmp/create_postgis_template.sh ckan_default returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:385
err: /Stage[main]/Dgu_ckan/Exec[createdb utf8_template]/returns: change from notrun to 0 failed: /tmp/create_utf8_template.sh returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:395
notice: /Stage[main]/Dgu_ckan/Exec[createdb ckan_test]: Dependency Exec[createdb utf8_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[createdb ckan_test]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Package[python-psycopg2]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Apache::Mod[wsgi]/Package[libapache2-mod-wsgi]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Apache::Mod[wsgi]/File[wsgi.load symlink]/target: target changed '../mods-available/wsgi.load' to '/etc/apache2/mods-available/wsgi.load'
notice: /Stage[main]/Apache::Mod::Dav_fs/File[dav_fs.conf]/content: content changed '{md5}9d5c750538bf58538c558b907ca924f1' to '{md5}e36e2951cff0d4df331652ca6fccdb77'
notice: /Stage[main]/Apache::Mod::Dav_fs/Apache::Mod[dav_fs]/File[dav_fs.conf symlink]/ensure: created
notice: /Stage[main]/Dgu_ckan/Postgresql::Server::Role[dgu]/Postgresql_psql[CREATE ROLE "dgu" ENCRYPTED PASSWORD 'md51d4fe45e0bdb2591d2c09146f5e61cb6' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1]/command: command changed 'notrun' to 'CREATE ROLE "dgu" ENCRYPTED PASSWORD 'md51d4fe4
5e0bdb2591d2c09146f5e61cb6' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1'
notice: /Stage[main]/Dgu_ckan/Exec[createdb ckan]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[createdb ckan]: Skipping because of failed dependencies
notice: /Stage[main]/Python::Install/Package[python-pip]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Python::Install/Package[python-virtualenv]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Python::Install/Package[python-dev]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Dgu_ckan/Python::Virtualenv[/home/co/ckan]/File[/home/co/ckan]/ensure: created
notice: /Stage[main]/Dgu_ckan/Python::Virtualenv[/home/co/ckan]/Exec[python_virtualenv_/home/co/ckan]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[unicodecsv==0.9.4]/Exec[pip_install_unicodecsv==0.9.4]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ofs==0.4.1]/Exec[pip_install_ofs==0.4.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Jinja2==2.7]/Exec[pip_install_Jinja2==2.7]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[factory-boy==2.1.1]/Exec[pip_install_factory-boy==2.1.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Werkzeug==0.8.3]/Exec[pip_install_Werkzeug==0.8.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[fanstatic==0.12]/Exec[pip_install_fanstatic==0.12]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-openid==2.2.5]/Exec[pip_install_python-openid==2.2.5]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pyutilib.component.core==4.6]/Exec[pip_install_pyutilib.component.core==4.6]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[messytables==0.10.0]/Exec[pip_install_messytables==0.10.0]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[FormAlchemy==1.4.2]/Exec[pip_install_FormAlchemy==1.4.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[requests==1.1]/Exec[pip_install_requests==1.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebTest==1.4.3]/Exec[pip_install_WebTest==1.4.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[chardet==2.1.1]/Exec[pip_install_chardet==2.1.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[simplejson==2.6.2]/Exec[pip_install_simplejson==2.6.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[anyjson==0.3.3]/Exec[pip_install_anyjson==0.3.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[amqplib==1.0.2]/Exec[pip_install_amqplib==1.0.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[lxml==3.2.4]/Exec[pip_install_lxml==3.2.4]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[httplib2==0.8]/Exec[pip_install_httplib2==0.8]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[apachemiddleware==0.1.1]/Exec[pip_install_apachemiddleware==0.1.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pylons==0.9.7]/Exec[pip_install_Pylons==0.9.7]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nose==1.3.0]/Exec[pip_install_nose==1.3.0]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[sqlalchemy-migrate==0.7.2]/Exec[pip_install_sqlalchemy-migrate==0.7.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[celery==2.4.2]/Exec[pip_install_celery==2.4.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebHelpers==1.3]/Exec[pip_install_WebHelpers==1.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[psycopg2==2.4.5]/Exec[pip_install_psycopg2==2.4.5]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[MarkupSafe==0.15]/Exec[pip_install_MarkupSafe==0.15]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pep8==1.4.6]/Exec[pip_install_pep8==1.4.6]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[redis==2.9.1]/Exec[pip_install_redis==2.9.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[gdata==2.0.17]/Exec[pip_install_gdata==2.0.17]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebOb==1.0.8]/Exec[pip_install_WebOb==1.0.8]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[WebError==0.10.3]/Exec[pip_install_WebError==0.10.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[FormEncode==1.2.4]/Exec[pip_install_FormEncode==1.2.4]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Mako==0.8.1]/Exec[pip_install_Mako==0.8.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[repoze.who-friendlyform==1.0.8]/Exec[pip_install_repoze.who-friendlyform==1.0.8]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[repoze.who.plugins.openid==0.5.3]/Exec[pip_install_repoze.who.plugins.openid==0.5.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ConcurrentLogHandler==0.8.4]/Exec[pip_install_ConcurrentLogHandler==0.8.4]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[mock==1.0.1]/Exec[pip_install_mock==1.0.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pygments==1.6]/Exec[pip_install_Pygments==1.6]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[json-table-schema==0.1]/Exec[pip_install_json-table-schema==0.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[autoneg==0.5]/Exec[pip_install_autoneg==0.5]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[repoze.who==1.0.19]/Exec[pip_install_repoze.who==1.0.19]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[xlrd==0.9.2]/Exec[pip_install_xlrd==0.9.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Beaker==1.6.3]/Exec[pip_install_Beaker==1.6.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Genshi==0.6]/Exec[pip_install_Genshi==0.6]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[PasteScript==1.7.5]/Exec[pip_install_PasteScript==1.7.5]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pytz==2012j]/Exec[pip_install_pytz==2012j]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[kombu-sqlalchemy==1.1.0]/Exec[pip_install_kombu-sqlalchemy==1.1.0]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[SQLAlchemy==0.7.8]/Exec[pip_install_SQLAlchemy==0.7.8]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Tempita==0.5.1]/Exec[pip_install_Tempita==0.5.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[decorator==3.3.2]/Exec[pip_install_decorator==3.3.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Babel==0.9.6]/Exec[pip_install_Babel==0.9.6]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-dateutil==1.5]/Exec[pip_install_python-dateutil==1.5]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Pairtree==0.7.1-T]/Exec[pip_install_Pairtree==0.7.1-T]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[pylibmc]/Exec[pip_install_pylibmc]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Routes==1.13]/Exec[pip_install_Routes==1.13]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[zope.interface==4.0.1]/Exec[pip_install_zope.interface==4.0.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[kombu==2.1.3]/Exec[pip_install_kombu==2.1.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[vdm==0.11]/Exec[pip_install_vdm==0.11]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[PasteDeploy==1.5.0]/Exec[pip_install_PasteDeploy==1.5.0]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[PyMollom==0.1]/Exec[pip_install_PyMollom==0.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[OWSLib==0.8.2]/Exec[pip_install_OWSLib==0.8.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[flup==1.0.2]/Exec[pip_install_flup==1.0.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanclient==0.10]/Exec[pip_install_ckanclient==0.10]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[solrpy==0.9.5]/Exec[pip_install_solrpy==0.9.5]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[google-api-python-client==1.1]/Exec[pip_install_google-api-python-client==1.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-gflags==2.0]/Exec[pip_install_python-gflags==2.0]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[GeoAlchemy==0.7.2]/Exec[pip_install_GeoAlchemy==0.7.2]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Paste==1.7.5.1]/Exec[pip_install_Paste==1.7.5.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Flask==0.8]/Exec[pip_install_Flask==0.8]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[python-magic==0.4.3]/Exec[pip_install_python-magic==0.4.3]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[carrot==0.10.1]/Exec[pip_install_carrot==0.10.1]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[datautil==0.4]/Exec[pip_install_datautil==0.4]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[openpyxl==1.5.7]/Exec[pip_install_openpyxl==1.5.7]/returns: executed successfully
notice: /Stage[main]/Apache::Mod::Cgi/Apache::Mod[cgi]/File[cgi.load symlink]/target: target changed '../mods-available/cgi.load' to '/etc/apache2/mods-available/cgi.load'
notice: /Stage[main]/Apache::Default_mods/Apache::Mod[authz_user]/File[authz_user.load symlink]/target: target changed '../mods-available/authz_user.load' to '/etc/apache2/mods-available/authz_user.load'
notice: /File[/etc/apache2/mods-enabled/php5.conf]/ensure: removed
notice: /File[/etc/apache2/mods-enabled/status.load]/ensure: removed
notice: /File[/etc/apache2/mods-enabled/wsgi.conf]/ensure: removed
notice: /File[/etc/apache2/mods-enabled/status.conf]/ensure: removed
notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 46 events
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[Shapely==1.2.17]/Exec[pip_install_Shapely==1.2.17]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-ga-report]/Exec[pip_install_ckanext-ga-report]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-spatial]/Exec[pip_install_ckanext-spatial]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: Ignoring indexes: https://pypi.python.org/simple/
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: Directory '/src/ckan' is not installable. File 'setup.py' not found.
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: Storing debug log for failure in /home/co/ckan/pip.log
err: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckan]/Exec[pip_install_ckan]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log -e /src/ckan returned 1 instead of one of [0] at /etc/puppet/modules/dgu_
ckan/manifests/pip_package.pp:22
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-os]/Exec[pip_install_ckanext-os]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-qa]/Exec[pip_install_ckanext-qa]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-dgu-local]/Exec[pip_install_ckanext-dgu-local]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-report]/Exec[pip_install_ckanext-report]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-dgu]/Exec[pip_install_ckanext-dgu]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-hierarchy]/Exec[pip_install_ckanext-hierarchy]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-archiver]/Exec[pip_install_ckanext-archiver]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-importlib]/Exec[pip_install_ckanext-importlib]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-harvest]/Exec[pip_install_ckanext-harvest]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-datapreview]/Exec[pip_install_ckanext-datapreview]/returns: executed successfully
notice: /Stage[main]/Dgu_ckan/Exec[setup_virtualenv_permissions]: Dependency Exec[pip_install_ckan] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[setup_virtualenv_permissions]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[setup_virtualenv_permissions]: Triggered 'refresh' from 87 events
notice: /Stage[main]/Dgu_ckan/Exec[npm_deps_dgu]: Dependency Exec[pip_install_ckan] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[npm_deps_dgu]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[grunt_dgu]: Dependency Exec[pip_install_ckan] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[grunt_dgu]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Notify[virtualenv_ready]: Dependency Exec[pip_install_ckan] has failures: true
warning: /Stage[main]/Dgu_ckan/Notify[virtualenv_ready]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[paster db init]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: Traceback (most recent call last):
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/bin/paster", line 9, in <module>
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 93, in run
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     commands = get_commands()
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 135, in get_commands
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     plugins = pluginlib.resolve_plugins(plugins)
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     pkg_resources.require(plugin)
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     needed = self.resolve(parse_requirements(requirements))
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:   File "/home/co/ckan/local/lib/python2.7/site-packages/pkg_resources.py", line 622, in resolve
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns:     raise DistributionNotFound(req)
notice: /Stage[main]/Dgu_ckan/Exec[paster db init]/returns: pkg_resources.DistributionNotFound: Not Found: ckan (did you run python setup.py develop?)
err: /Stage[main]/Dgu_ckan/Exec[paster db init]: Failed to call refresh: /home/co/ckan/bin/paster --plugin=ckan db init --config=/var/ckan/ckan.ini returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/init.pp:313
notice: /Stage[main]/Dgu_ckan/Exec[paster archiver init]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[paster archiver init]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[paster archiver init]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[paster inventory init]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[paster qa init]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[paster qa init]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[paster qa init]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[paster dgu_local init]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[paster dgu_local init]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[paster dgu_local init]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[paster ga_reports init]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Notify[db_ready]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Notify[db_ready]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Notify[db_ready]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Exec[pip_install_ckan] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Service[jetty] has failures: true
notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Dependency Exec[createdb postgis_template] has failures: true
warning: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Dgu_ckan/Exec[a2ensite ckan.conf]: Triggered 'refresh' from 1 events
notice: Finished catalog run in 2816.74 seconds


Stderr from the command:

stdin: is not a tty


laurikoobas@LAURIKOOBAS-PC /C/Users/laurikoobas/VagrantVMs/dgu2/dgu-vagrant-puppet (togo)
$

Problem cloning CKAN source

Hi, I have a problem when cloning the CKAN source up into my virtualbox machine when i tried to do the cloning of the CKAN source mentioned in step 2 where this command:

cd vagrant/src
./git_clone_all.sh

was being executed. I was wondering if anyone has the same issue . Below is the shell output when the command is being executed:

co@ckan:/vagrant/src$ sudo ./git_clone_all.sh
[sudo] password for co:
Cloning into 'ckan'...
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 7: cd: can't cd to ckan
error: pathspec 'release-v2.0.1-dgu' did not match any file(s) known to git.
fatal: remote okfn already exists.
/vagrant/src
Cloning into 'ckanext-archiver'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 13: cd: can't cd to ckanext-archiver
Switched to branch 'master'
/vagrant/src
Cloning into 'ckanext-datapreview'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 18: cd: can't cd to ckanext-datapreview
Already on 'master'
/vagrant/src
Cloning into 'ckanext-dgu'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 23: cd: can't cd to ckanext-dgu
Switched to branch '2.0'
ln: failed to create symbolic link ./.git/hooks/commit-msg': No such file or directory /vagrant/src Cloning into 'ckanext-ga-report'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 29: cd: can't cd to ckanext-ga-report Switched to branch 'master' /vagrant/src Cloning into 'ckanext-harvest'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 34: cd: can't cd to ckanext-harvest Switched to branch '2.0' /vagrant/src Cloning into 'ckanext-os'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 39: cd: can't cd to ckanext-os Switched to branch 'master' /vagrant/src Cloning into 'ckanext-qa'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 44: cd: can't cd to ckanext-qa Switched to branch '2.0' /vagrant/src Cloning into 'ckanext-spatial'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 49: cd: can't cd to ckanext-spatial error: pathspec 'dgu' did not match any file(s) known to git. /vagrant/src Cloning into 'ckanext-importlib'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 54: cd: can't cd to ckanext-importlib Switched to branch 'master' /vagrant/src Cloning into 'ckanext-hierarchy'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 59: cd: can't cd to ckanext-hierarchy Already on 'master' /vagrant/src Cloning into 'dgu-joint-assets'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 64: cd: can't cd to dgu-joint-assets Already on 'master' /vagrant/src Cloning into 'logreporter'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 69: cd: can't cd to logreporter Already on 'master' /vagrant/src co@ckan:/vagrant/src$ sudo ./git_clone_all.sh Cloning into 'ckan'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 7: cd: can't cd to ckan error: pathspec 'release-v2.0.1-dgu' did not match any file(s) known to git. fatal: remote okfn already exists. /vagrant/src Cloning into 'ckanext-archiver'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 13: cd: can't cd to ckanext-archiver Already on 'master' /vagrant/src Cloning into 'ckanext-datapreview'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 18: cd: can't cd to ckanext-datapreview Already on 'master' /vagrant/src Cloning into 'ckanext-dgu'... Permission denied (publickey). fatal: The remote end hung up unexpectedly ./git_clone_all.sh: 23: cd: can't cd to ckanext-dgu Switched to branch '2.0' ln: failed to create symbolic link./.git/hooks/commit-msg': No such file or directory
/vagrant/src
Cloning into 'ckanext-ga-report'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 29: cd: can't cd to ckanext-ga-report
Switched to branch 'master'
/vagrant/src
Cloning into 'ckanext-harvest'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 34: cd: can't cd to ckanext-harvest
Switched to branch '2.0'
/vagrant/src
Cloning into 'ckanext-os'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 39: cd: can't cd to ckanext-os
Switched to branch 'master'
/vagrant/src
Cloning into 'ckanext-qa'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 44: cd: can't cd to ckanext-qa
Switched to branch '2.0'
/vagrant/src
Cloning into 'ckanext-spatial'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 49: cd: can't cd to ckanext-spatial
error: pathspec 'dgu' did not match any file(s) known to git.
/vagrant/src
Cloning into 'ckanext-importlib'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 54: cd: can't cd to ckanext-importlib
Switched to branch 'master'
/vagrant/src
Cloning into 'ckanext-hierarchy'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 59: cd: can't cd to ckanext-hierarchy
Already on 'master'
/vagrant/src
Cloning into 'dgu-joint-assets'...
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 64: cd: can't cd to dgu-joint-assets
Already on 'master'
/vagrant/src
Cloning into 'logreporter'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
./git_clone_all.sh: 69: cd: can't cd to logreporter
Already on 'master'
/vagrant/src

Errors when trying to save a new dataset

I have a working instance of dgu-vagrant-puppet togo branch. When I log in and try to save a brand new dataset, I get the following errors in CKAN error log. Any hints to where I should be looking for to find the reason?

[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] Error - <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'iteritems', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] URL: https://192.168.11.11/dataset/new, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/weberror/errormiddleware.py', line 162 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   app_iter = self.application(environ, sr_checker), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   resp = self.call_func(req, *args, **self.kwargs), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return self.func(req, *args, **kwargs), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return request.get_response(self.app), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   application, catch_exc_info=False), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   app_iter = application(self.environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   resp = self.call_func(req, *args, **self.kwargs), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return self.func(req, *args, **kwargs), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/fanstatic/injector.py', line 54 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   response = request.get_response(self.app), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   application, catch_exc_info=False), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   app_iter = application(self.environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/beaker/middleware.py', line 73 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return self.app(environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/beaker/middleware.py', line 155 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return self.wrap_app(environ, session_start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   response = self.app(environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckanext-dgu/ckanext/dgu/authentication/drupal_auth.py', line 121 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return self.app(environ, new_start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/pylons/wsgiapp.py', line 125 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   response = self.dispatch(controller, environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/pylons/wsgiapp.py', line 324 in dispatch, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return controller(environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/lib/base.py', line 279 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   res = WSGIController.__call__(self, environ, start_response), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/pylons/controllers/core.py', line 221 in __call__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   response = self._dispatch_call(), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   response = self._inspect_call(func), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   result = self._perform_call(func, args), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/home/co/ckan/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return func(**args), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/controllers/package.py', line 484 in new, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return self._save_new(context, package_type=package_type), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/controllers/package.py', line 920 in _save_new, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   pkg_dict = get_action('package_create')(context, data_dict), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/logic/__init__.py', line 328 in wrapped, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   return _action(context, data_dict, **kw), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/logic/action/create.py', line 132 in package_create, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   data, errors = _validate(data_dict, schema, context), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/lib/navl/dictization_functions.py', line 230 in validate, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   converted_data, errors = _validate(flattened, schema, context), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/lib/navl/dictization_functions.py', line 272 in _validate, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   converted_data = augment_data(data, schema), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/lib/navl/dictization_functions.py', line 116 in augment_data, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   flattented_schema = flatten_schema(schema), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] File '/vagrant/src/ckan/ckan/lib/navl/dictization_functions.py', line 63 in flatten_schema, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   for key, value in schema.iteritems():, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] AttributeError: 'NoneType' object has no attribute 'iteritems', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] , referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] , referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] CGI Variables, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] -------------, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   AUTH_TYPE: 'cookie', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   CKAN_CURRENT_URL: '/dataset/new', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   CKAN_LANG: 'en', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   CKAN_LANG_IS_DEFAULT: True, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   CONTENT_TYPE: 'application/x-www-form-urlencoded; charset=utf-8', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   DOCUMENT_ROOT: '/var/www', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   GATEWAY_INTERFACE: 'CGI/1.1', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTPS: '1', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_ACCEPT_ENCODING: 'gzip,deflate', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_ACCEPT_LANGUAGE: 'et-EE,et;q=0.8,en-US;q=0.6,en;q=0.4', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_CACHE_CONTROL: 'max-age=0', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_CONNECTION: 'keep-alive', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_COOKIE: 'SESS6dde74eb1eff9ccac97068632fbfffb1=IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k; SSESS6dde74eb1eff9ccac97068632fbfffb1=4AKd50imcMZ-azwwAH45P8H4CbregC1KNpL7jYCk56s; has_js=1; auth_tkt="67629b0bd6582c206ce4ac2f8a4a1d4c543f9c62user_d1!IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k"', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_HOST: '192.168.11.11', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_ORIGIN: 'https://192.168.11.11', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_REFERER: 'https://192.168.11.11/dataset/new', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   HTTP_USER_AGENT: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   PATH_INFO: '/dataset/new', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   PATH_TRANSLATED: 'redirect:/index.php', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REMOTE_ADDR: '192.168.11.1', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REMOTE_PORT: '50724', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REMOTE_USER: 'user_d1', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REMOTE_USER_DATA: 'IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REMOTE_USER_TOKENS: [''], referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REQUEST_METHOD: 'POST', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   REQUEST_URI: '/dataset/new', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SCRIPT_FILENAME: '/var/ckan/wsgi_app.py', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_ADDR: '192.168.11.11', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_ADMIN: '[no address given]', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_NAME: '192.168.11.11', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_PORT: '443', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_PROTOCOL: 'HTTP/1.1', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_SIGNATURE: '<address>Apache/2.2.22 (Ubuntu) Server at 192.168.11.11 Port 443</address>\\n', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   SERVER_SOFTWARE: 'Apache/2.2.22 (Ubuntu)', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] , referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] , referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] WSGI Variables, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] --------------, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   application: <fanstatic.publisher.Delegator object at 0x7fb0d37b56d0>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   beaker.cache: <beaker.cache.CacheManager object at 0x7fb0d37b2910>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7fb0d37b2510>>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   beaker.session: {'_accessed_time': 1413455258.29616, '_creation_time': 1413455258.29616}, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   fanstatic.needed: <fanstatic.core.NeededResources object at 0x7fb0db75c290>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.application_group: 'localhost|/dataset', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.callable_object: 'application', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.handler_script: '', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.input_chunked: '0', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.listener_host: '', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.listener_port: '443', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.process_group: '', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.request_handler: 'wsgi-script', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.script_reloading: '1', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   mod_wsgi.version: (3, 3), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   paste.cookies: (<SimpleCookie: SESS6dde74eb1eff9ccac97068632fbfffb1='IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k' SSESS6dde74eb1eff9ccac97068632fbfffb1='4AKd50imcMZ-azwwAH45P8H4CbregC1KNpL7jYCk56s' auth_tkt='67629b0bd6582c206ce4ac2f8a4a1d4c543f9c62user_d1!IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k' has_js='1'>, 'SESS6dde74eb1eff9ccac97068632fbfffb1=IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k; SSESS6dde74eb1eff9ccac97068632fbfffb1=4AKd50imcMZ-azwwAH45P8H4CbregC1KNpL7jYCk56s; has_js=1; auth_tkt="67629b0bd6582c206ce4ac2f8a4a1d4c543f9c62user_d1!IS3V2uzWcGffmQza8HTkDNTa_T4Bok2SdyLpDe66W4k"'), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   paste.registry: <paste.registry.Registry object at 0x7fb0db73ca90>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   paste.throw_errors: True, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   pylons.action_method: <bound method PackageController.new of <ckanext.dgu.controllers.package.PackageController object at 0x7fb0db768c90>>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   pylons.controller: <ckanext.dgu.controllers.package.PackageController object at 0x7fb0db768c90>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   pylons.pylons: <pylons.util.PylonsContext object at 0x7fb0db768ed0>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   pylons.routes_dict: {'action': u'new', 'controller': u'ckanext.dgu.controllers.package:PackageController'}, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   repoze.who.identity: <repoze.who identity (hidden, dict-like) at 140397573408320>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   repoze.who.logger: <logging.Logger object at 0x7fb0d392db10>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   repoze.who.plugins: {'ckanext.dgu.authentication.drupal_repoze_plugin:DrupalLoginPlugin': <ckanext.dgu.authentication.drupal_repoze_plugin.DrupalLoginPlugin object at 0x7fb0d3ba77d0>, 'openid': <OpenIdIdentificationPlugin 140397440588048>, 'dgu_auth_tkt': <DGUAuthTktCookiePlugin 140397439045776>, 'ckan.lib.authenticator:OpenIDAuthenticator': <ckan.lib.authenticator.OpenIDAuthenticator object at 0x7fb0d3ba7750>, 'friendlyform': <FriendlyFormPlugin 140397440586512>, 'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x7fb0d3ba7790>}, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   routes.route: <routes.route.Route object at 0x7fb0d3408790>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   routes.url: <routes.util.URLGenerator object at 0x7fb0db768fd0>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   webob._parsed_post_vars: (MultiDict([('title', 'testDataset1'), ('extras__100__key', 'unpublished'), ('extras__100__value', 'false'), ('name', 'testdataset1'), ('package_type', 'individual'), ('update_frequency', ''), ('update_frequency-other', ''), ('timeseries_resources__0__id', ''), ('timeseries_resources__0__resource_type', ''), ('timeseries_resources__0__date', ''), ('timeseries_resources__0__description', ''), ('timeseries_resources__0__url', ''), ('timeseries_resources__0__format', ''), ('individual_resources__0__id', ''), ('individual_resources__0__resource_type', ''), ('individual_resources__0__description', ''), ('individual_resources__0__url', 'http://www.lta.gov.sg/content/dam/ltaweb/corp/PublicationsResearch/files/FactsandFigures/MVP02-2_New_Cars_by_make.pdf'), ('individual_resources__0__format', 'PDF'), ('notes', 'Test dataset description1'), ('license_id', 'uk-ogl'), ('access_constraints', ''), ('owner_org', 'e087c7b4-2c02-4940-b465-109f1ecec295'), ('contact-name', ''), ('con...t([('ti...h')])>), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   webob._parsed_query_vars: (GET([]), ''), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   webob.adhoc_attrs: {'errors': 'ignore', 'response': <Response at 0x7fb0db768d50 200 OK>, 'language': 'en-us'}, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   webob.is_body_readable: True, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   webob.is_body_seekable: False, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   wsgi process: 'Multiprocess', referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fb0db73f990>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   wsgi.version: (1, 1), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x7fb0db768fd0>, {'action': u'new', 'controller': u'ckanext.dgu.controllers.package:PackageController'}), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] ------------------------------------------------------------, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] , referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]             <p>Additionally an error occurred while sending the &lt;weberror.reporter.EmailReporter object at 0x7fb0db770550&gt; report:, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] , referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]             <pre>Traceback (most recent call last):, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   File "/home/co/ckan/lib/python2.7/site-packages/weberror/errormiddleware.py", line 450, in send_report, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]     rep.report(exc_data), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   File "/home/co/ckan/lib/python2.7/site-packages/weberror/reporter.py", line 45, in report, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]     server = smtplib.SMTP(self.smtp_server), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   File "/usr/lib/python2.7/smtplib.py", line 249, in __init__, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]     (code, msg) = self.connect(host, port), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   File "/usr/lib/python2.7/smtplib.py", line 309, in connect, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]     self.sock = self._get_socket(host, port, self.timeout), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]     return socket.create_connection((port, host), timeout), referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]   File "/usr/lib/python2.7/socket.py", line 571, in create_connection, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]     raise err, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] error: [Errno 111] Connection refused, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1] </pre>, referer: https://192.168.11.11/dataset/new
[Thu Oct 16 10:27:38 2014] [error] [client 192.168.11.1]             </p>, referer: https://192.168.11.11/dataset/new

Map search to another location

Hi,

how can we set map search to new region (/data/map-based-search).

We would like to set this to Croatia.

Thank you

No distributions matching the version for pytz

When runing 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/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: Could not find a version that satisfies the requirement pytz (from dateutils->logreporter==1.0) (from versions: 2012j)
Notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: Cleaning up...
Notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: No distributions matching the version for pytz (from dateutils->logreporter==1.0)
Notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: Storing debug log for failure in /home/co/ckan/pip.log
Error: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log -e /src/logreporter returned 1 instead of one of [0]
Error: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[logreporter]/Exec[pip_install_logreporter]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log -e /src/logreporter returned 1 instead of one of [0]

In log file /home/co/ckan/pip.log we get:

Local files found: /vagrant/pypi/pytz-2012j.tar.gz
Ignoring link file:///vagrant/pypi/pytz-2012j.tar.gz, version 2012j is a pre-release (use --pre to allow).
Could not find a version that satisfies the requirement pytz (from dateutils->logreporter==1.0) (from versions: 2012j)
Cleaning up...

Should we use pytz-2014.7.tar.gz or change script to use --pre to alow pytz-2012.tar.gz?

Thank you

Permissions error installing ckanext-dgu

This issue is originally by @tbalaz but moved from #25 (comment)

i was still getting errors when running "sudo puppet apply /vagrant/puppet/manifests/site.pp".

 Error: Unable to create directory "/vagrant/src/shared_dguk_assets/assets" (Error code: EACCES).
Error: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log -e /src/ckanext-dgu returned 1 instead of one of [0]

Error: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[ckanext-dgu]/Exec[pip_install_ckanext-dgu]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log -e /src/ckanext-dgu returned 1 instead of one of [0]

I solved error by running "chmod 777 -R /src/".

Would it be good to add this in instalation script?

Error trying to install ckan using "Option 2: Fresh machine preparation"

Hi,

I have an error when I try to install ckan using a fresh machine.

When I write this command:
"sudo -u www-data paster --plugin=ckanext-harvest harvester gather_consumer --config=../ckan/ckan.ini"

I have this error message:

Traceback (most recent call last):
File "/usr/bin/paster", line 4, in
command.run()
File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 93, in run
commands = get_commands()
File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 135, in get_commands
plugins = pluginlib.resolve_plugins(plugins)
File "/usr/lib/python2.7/dist-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
pkg_resources.require(plugin)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Not Found: ckanext-harvest (did you run python setup.py develop?)

How can I fix it ?

Sample Apache .conf file

I am 100% sure I looked at a full apache.conf file yesterday, including all proxy forwards to the mapserver etc.

Cant find it anywhere.

I setup Drupal on a seperate server, and I want to re-create that file for that scenario.

(i plan to give more intelligent feedback in the future)

odug roadmap

Hi,

when conneting to http://server/odug/roadmap. We get The requested page "/odug/roadmap" could not be found.

is odug roadmap part of dgu-varant-puppet? How can we add it?

Thank you.

Ckan Internatiolization

How can a use CKAN in another language? I've tried putting

ckan.locale_default= es

I have the following error

File '/vagrant/src/ckanext-dgu/ckanext/dgu/theme/templates/layout_base.html', line 127 in <Expression u"if_(h.check_access('package_create'),'with-publisher','without-publisher')">

File '/vagrant/src/ckan/ckan/lib/helpers.py', line 667 in check_access logic.check_access(action, context, data_dict) File '/vagrant/src/ckan/ckan/logic/**init**.py', line 296 in check_access log.debug('check access NO - %s user=%s "%s"', action, user, str(e)) File '/vagrant/src/ckan/ckan/logic/**init**.py', line 39 in **str** return ' - '.join([str(err_msg) for err_msg in err_msgs if err_msg]) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 30: ordinal not in range(128)

How to create new publishers?

On a brand new dgu-vagrant-puppet TOGO installation, how to create publishers and associate users with them? I'm trying to create a new dataset, having logged in as Drupal's admin user (and the authentication to CKAN works now, no problems here). Basically all goes fine except that Publisher is mandatory and no publishers are provided in the relevant dropdown, even though I have imported test data as indicated in README chapter 3 option 1. I suppose this is because my Drupal admin user has not been associated with any organizations in the underlying CKAN.

So, how to create new organizations and associate users with them? The Publishers page only enables to get in touch with the site's runner. And in Drupal admin menu, under Content -> Publishers (where no publishers are listed) I cannot find any means to add new Publishers. Perhaps I could do it via CKAN's standard organizations management page, but not sure how to access it.

/dataset/edit

Hi,

we need to translate menus in /Dataset/edit (Data Files, Description, Licence, Publisher, Theme&tags, ...)

image

Is there a way to do that using Drupal, .po file or any other way?

Thanks,

CKAN permissions error

Follow the readme step by step. Every thing look ok but data menu.

When i click data menu, the url point to /data/search and show error below:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.22 (Ubuntu) Server at 182.92.192.78 Port 80

Cannot import name DefaultOrganizationForm

Hi,

im working on setting dgu-vagrant-puppet installation on Ubuntu12.04.

when i run

sudo puppet apply /vagrant/puppet/manifests/site.pp

i'm getting error:

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]

then when i try to runonly /home/co/ckan/bin/paster --plugin=ckan db init --config=/var/ckan/ckan.ini i get:

File "/vagrant/src/ckanext-hierarchy/ckanext/hierarchy/plugin.py", line 4, in
from ckan.lib.plugins import DefaultOrganizationForm
ImportError: cannot import name DefaultOrganizationForm

Thanks

903-redesign does not exist

Hi,

when using ๏€ต

dgu-vagrant-puppet / src / git_clone_all.sh

which branch shoud i use for ckanext-dgu since 903-redesign from script does not exist.

Thank you.

Invalid guest machine status

I'm trying "vagrant up" in the latest TOGO branch that downloads CKAN release-v2.2-dgu. And I run quickly into the following message:

The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

So I attempted to start VirtualBox in headless mode (as I don't want to run it with GUI) and ran into the following outcome (found no working solution on the web yet):

VBoxManage startvm dgutg_vm --type headless
VBoxManage: error: VT-x is not available. (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Console, interface IConsole

Could this whole thing have to do with the fact that I'm running this Ubuntu 14.04 as a VirtualBox created on a Winodws machine?

So I have an Ubuntu 14.04 VirtualBox running on Windows, and inside that box I'm trying to go through the whole dgu-vagrant-puppet installation procedure, meaning it needs a running VirtualBox also inside that box.

When I ran vagrant straight from Windows then I ran into various issues that I posted under issue #33.

Ckan API question

Hi, tbalaz nad me are working together we have running site made from TOGO branch and we are publishing first datasets..
I have tried to get data via API, but i can get only package data.. not dataset itself.

I am not using our actual site because it isn't public at moment but if it helps in providing answers i can give you access i just need your public IP adress.

This king of api queries is working: http://data.gov.uk/api/3/action/package_show?id=mot-active-vts

But we would like to get dataset something like this
http://data.zagreb.hr/en/api/action/datastore_search?resource_id=e957cf04-8db9-4216-a4ab-d13416503f3c and this isn't working at moment.

I know ckan needs datastore extension for this, and i noticed it isn't instaled on data.gov.uk

So i was wondering is there any other way to get data or if there is any problem with datastore extension?

We feel that having api which is providing actual data from dataset is pretty important stuf for data usage so i think there must be other way .

Also, i have more then one question about using portal/publishing data/moderation so i am not sure if this is right place to ask... If it isn't let me know where to ask.

Thnx for help

Dataset approval

Hi,

Whenever we add new dataset, dataset is immediately visible.

There is no approval for published datasets.

Is there a way to manage enable/disable approval of new datasets?

Please advice.

Permissions on Public file system path

I've got this error:

The directory sites/default/files exists but is not writable and could not be made writable.

permissions on /file are:

drwxrwxr-x 9 co co 4096 Nov 14 12:27 files

when i change it to www-data:co there is no error.

Should i change owner of sites/default/files since everything was owned by user co.

im afraid that something else would not work.

Can someone tell me right way to configure ownership?

Missing package in /vagrant/pypi/

When running sudo puppet apply /vagrant/puppet/manifests/site.pp

from https://github.com/datagovuk/dgu-vagrant-puppet/tree/togo we get error:

Error: /home/co/ckan/bin/pip install --pre --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log redis==2.9.1 returned 1 instead of one of [0]
Error: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[redis==2.9.1]/Exec[pip_install_redis==2.9.1]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --pre --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log redis==2.9.1 returned 1 instead of one of [0]

Solved with adding package from https://pypi.python.org/packages/source/r/redis/redis-2.9.1.tar.gz

to

/vagrant/pypi/

We will make PR for this.

relation "qa" does not exist

I'm following the tutorial and when I run

sudo -u www-data /home/co/ckan/bin/paster --plugin=ckanext-dgu create-test-data --config=ckan.ini

I have this error
Can anybody help me?

ProgrammingError: (ProgrammingError) relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'3503e083-12d9-43b2-aa50-989a71bc45b6', 'state_1': 'active'}
Traceback (most recent call last):
File "/home/co/ckan/bin/paster", line 9, in
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/home/co/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
result = self.command()
File "/vagrant/src/ckanext-dgu/ckanext/dgu/lib/cli.py", line 39, in command
DguCreateTestData.create_dgu_test_data()
File "/vagrant/src/ckanext-dgu/ckanext/dgu/testtools/create_test_data.py", line 523, in create_dgu_test_data
cls.create_arbitrary(cls._packages)
File "/vagrant/src/ckan/ckan/lib/create_test_data.py", line 262, in create_arbitrary
model.repo.commit_and_remove()
File "/home/co/ckan/local/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py", line 112, in commit_and_remove
self.commit()
File "/home/co/ckan/local/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py", line 102, in commit
self.session.commit()
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 114, in do
return getattr(self.registry(), name)(_args, *_kwargs)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 656, in commit
self.transaction.commit()
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 314, in commit
self._prepare_impl()
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 290, in _prepare_impl
self.session.dispatch.before_commit(self.session)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/event.py", line 291, in call
fn(_args, *_kw)
File "/vagrant/src/ckan/ckan/model/extension.py", line 112, in before_commit
methodcaller('before_commit', session)
File "/vagrant/src/ckan/ckan/model/extension.py", line 92, in notify_observers
func(observer)
File "/vagrant/src/ckan/ckan/model/modification.py", line 47, in before_commit
self.notify(obj, domain_object.DomainObjectOperation.new)
File "/vagrant/src/ckan/ckan/model/modification.py", line 79, in notify
observer.notify(entity, operation)
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 129, in notify
operation
File "/vagrant/src/ckan/ckan/lib/search/init.py", line 101, in dispatch_by_operation
index.insert_dict(entity)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 79, in insert_dict
return self.update_dict(data)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 104, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/vagrant/src/ckan/ckan/lib/search/index.py", line 260, in index_package
pkg_dict = item.before_index(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/plugin.py", line 549, in before_index
SearchIndexing.add_field__openness(pkg_dict)
File "/vagrant/src/ckanext-dgu/ckanext/dgu/search_indexing.py", line 215, in add_field__openness
qa_openness = get_action('qa_package_openness_show')(context, data_dict)
File "/vagrant/src/ckan/ckan/logic/init.py", line 425, in wrapped
result = _action(context, data_dict, **kw)
File "/vagrant/src/ckan/ckan/logic/init.py", line 556, in wrapper
return action(context, data_dict)
File "/vagrant/src/ckanext-qa/ckanext/qa/logic_action.py", line 134, in qa_package_openness_show
for qa in QA.get_for_package(pkg_id):
File "/vagrant/src/ckanext-qa/ckanext/qa/model.py", line 74, in get_for_package
.filter(model.Resource.state=='active')
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2115, in all
return list(self)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2227, in iter
return self._execute_and_instances(context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
params)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
context)
File "/home/co/ckan/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (ProgrammingError) relation "qa" does not exist
LINE 2: FROM qa JOIN resource ON qa.resource_id = resource.id
^
'SELECT qa.id AS qa_id, qa.package_id AS qa_package_id, qa.resource_id AS qa_resource_id, qa.resource_timestamp AS qa_resource_timestamp, qa.archival_timestamp AS qa_archival_timestamp, qa.openness_score AS qa_openness_score, qa.openness_score_reason AS qa_openness_score_reason, qa.format AS qa_format, qa.created AS qa_created, qa.updated AS qa_updated \nFROM qa JOIN resource ON qa.resource_id = resource.id \nWHERE qa.package_id = %(package_id_1)s AND resource.state = %(state_1)s' {'package_id_1': u'3503e083-12d9-43b2-aa50-989a71bc45b6', 'state_1': 'active'}

My homepage shows "site is not found"

My homepage is showing that site is not found (see picture attached, error is in Croatian). Is this misconfiguration in installation scripts or excpected behaviour and we need to setup home page using Drupal?
05158496-47ca-11e4-9f5f-69d805c06af2
(Q from @tbalaz)

Error running togo branch

Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: grunt returned 99 instead of one of [0]
Error: /Stage[main]/Dgu_ckan/Exec[grunt_shared]/returns: change from notrun to 0 failed: grunt returned 99 instead of one of [0]
Error: grunt returned 99 instead of one of [0]
Error: /Stage[main]/Dgu_ckan/Exec[grunt_dgu]/returns: change from notrun to 0 failed: grunt returned 99 instead of one of [0]

Invalid module name 'dgu_ckan'

Hi,

i'm installing dgu-vagrant-puppet following Data.gov togo instructions (https://github.com/datagovuk/dgu-vagrant-puppet/tree/togo) on fresh Ubuntu 12.04.

When i run install_puppet_dependancies.sh i'm getting errors:

Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com. You should update your Puppetfile

Invalid module name 'dgu_ckan', you should qualify it with 'ORGANIZATION-dgu_ckan' for resolution to work correctly

Invalid module name 'python', you should qualify it with 'ORGANIZATION-python' for resolution to work correctly

Invalid module name 'solr', you should qualify it with 'ORGANIZATION-solr' for resolution to work correctly

Can anyone advice how to resolve?

Thank you.

Error trying to install ckan using "Option 1: Virtual Machine creation"

Hi, I'm trying to install ckan using "Option 1: Virtual Machine creation".
After I launch a fully provisioned Virtual Machine with the command "vagrant up" I have this errors:

notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Collecting nltk==2.0.4
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Extracting in /tmp/tmpkwuZ1q
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Now working in /tmp/tmpkwuZ1q/distribute-0.6.21
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Building a Distribute egg in /tmp/pip-build-KuWMS3/nltk
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: /tmp/pip-build-KuWMS3/nltk/distribute-0.6.21-py2.7.egg
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Traceback (most recent call last):
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: File "", line 20, in
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: File "/tmp/pip-build-KuWMS3/nltk/setup.py", line 32, in
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: del sdist.finders[:]
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: AttributeError: 'module' object has no attribute 'finders'
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Complete output from command python setup.py egg_info:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Extracting in /tmp/tmpkwuZ1q
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Now working in /tmp/tmpkwuZ1q/distribute-0.6.21
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Building a Distribute egg in /tmp/pip-build-KuWMS3/nltk
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: /tmp/pip-build-KuWMS3/nltk/distribute-0.6.21-py2.7.egg
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Traceback (most recent call last):
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: File "", line 20, in
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: File "/tmp/pip-build-KuWMS3/nltk/setup.py", line 32, in
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: del sdist.finders[:]
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: AttributeError: 'module' object has no attribute 'finders'
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns:
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: ----------------------------------------
notice: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-KuWMS3/nltk
err: /Stage[main]/Dgu_ckan/Dgu_ckan::Pip_package[nltk==2.0.4]/Exec[pip_install_nltk==2.0.4]/returns: change from notrun to 0 failed: /home/co/ckan/bin/pip install --no-index --find-links=file:///vagrant/pypi --log-file /home/co/ckan/pip.log nltk==2.0.4 returned 1 instead of one of [0] at /etc/puppet/modules/dgu_ckan/manifests/pip_package.pp:22

After that, I have a lot of "Dependency Exec[pip_install_nltk==2.0.4] has failures: true" and "Skipping because of failed dependencies".

What is my mistake ?
Thanks

Drupal search errors

The Drupal search page has two errors http://192.168.11.11/search/everything

  • "Notice: Undefined variable: content_type in dgu_search_preprocess() (line 52 of /var/www/drupal/dgu/profiles/dgu/modules/features/dgu_search/plugins/content_types/dgu_search_info.inc)."
  • "Notice: Undefined index: in dgu_search_preprocess() (line 52 of /var/www/drupal/dgu/profiles/dgu/modules/features/dgu_search/plugins/content_types/dgu_search_info.inc)."

can't add datasets

Hi,

we have working dgu (installed using https://github.com/datagovuk/dgu-vagrant-puppet/tree/togo) but we can't edit publisher data. There is no administrator icon
image
we only have Contact details, Publisher Hierarchy, Reports and Analytics and RSS Feed icons

I'm logged on to site with user that have this roles:
administrator
blogger
ckan adminstrator
data publisher
data request administrator
glossary moderator
moderator
news editor

Can someone help?

Wrong Guzzle version

After installing you are stuck with an old guzzle/guzzle version. I think this is because of

https://packagist.org/packages/silex/ckan_client

I had to manually upgrade to guzzle 3.1.2. The manual is in my todo fork. But better even would be to have it install by default. Composer is quite new to me, so not sure where to fix it (i guess in the composer.json of the ckan module on d.o. if so, happy to provide a patch)

Also the 2d and 4th line of the 4 additional modules to enable (why? its an install profile?) were not necessary.

Error: /Stage[main]/Main/User[co]/uid: change from 1000 to 510 failed: Could not set uid on user

Hi,

after last changes to togo branch i have started deployment from scratch.

now i'm getting error:

Error: Could not set uid on user[co]: Execution of '/usr/sbin/usermod -u 510 co' returned 8: usermod: user co is currently logged in
Error: /Stage[main]/Main/User[co]/uid: change from 1000 to 510 failed: Could not set uid on user[co]: Execution of '/usr/sbin/usermod -u 510 co' returned 8: usermod: user co is currently logged in

and

Error: /Stage[main]/Dgu_ckan/Exec[paster db init]: Failed to call refresh: Could not find command '/home/co/ckan/bin/paster'
Error: /Stage[main]/Dgu_ckan/Exec[paster db init]: Could not find command '/home/co/ckan/bin/paster'

when running sudo puppet apply /vagrant/puppet/manifests/site.pp.

Please advice.

vagrant ownership in fresh machine operation

In README, under "Fresh machine operation", there's creation of vagrant directory:

mkdir /vagrant

Who should be the owner of this directory? User "co"? Or user "vagrant" as it is in the Vagrant VM installation.

Need sample Drupal content

When you install To Go, the Drupal side is pretty useless without any sample content. You're not able to create any content without some categories being set-up. I think this is pretty essential.

As it stands, when you install To Go, in Drupal you get:

  1. Home page is blank with 404 and message "The requested page "/" could not be found. "
  2. Apps page has no apps and you can only part-fill in the form to create one, because there are no app categories defined, and that is a mandatory field.
  3. Interact page is blank with 404 and message "The requested page "/interact" could not be found."
  4. Interact sub-menu is missing.
  5. I can't create a Forum topic (let alone a post) because the "forum" dropdown is mandatory but gives no options.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.