-
Notifications
You must be signed in to change notification settings - Fork 29
Clean install issues on Ubuntu 12.04 #107
Comments
… preparation" Also: * updated location of CKAN repos that are cloned * checked this all works, from "Virtual Machine creation" through CKAN install.
@zvetaM Thanks for such useful feedback and suggestions! To be honest, I wrote the 'fresh machine' instructions without trying them, so I'm very grateful for you sorting them out. I've committed a change to address all these points: 3bcc6bf
|
Thank you. Unfortunately, following the new installation steps, things still don't work on my side. When I run sudo puppet apply /vagrant/puppet/manifests/site.pp I get the following error: I tried combining different ruby and puppet versions. (ruby2.0 and ruby2.2, puppet 2.7.26, 2.7.18, 2.7.20, ...) and all fail, although all with different errors. For example, on Puppet 2.7.18 it fails when executing sudo puppet apply /vagrant/puppet/manifests/site.pp with While on puppet 2.7.20 it fails at the step sudo ./install_puppet_dependancies.sh with /var/lib/gems/2.2.0/gems/puppet-2.7.20/lib/puppet/util/monkey_patches.rb:128:in `to_proc': can't modify frozen Symbol (RuntimeError) If I run the next command source ~/ckan/bin/activate && cd /src/ckan , I get bash: /home/co/ckan/bin/activate: No such file or directory ... |
Here are the versions used in the vagrant route and which I've confirmed work.
If 'puppet apply' hasn't worked then you won't be able to do the following steps. |
Thank you, David! I installed the 1.8.7 version of Ruby by first installing rvm (as user co) and then issuing the Ruby 1.8.7 install using rvm: curl -L get.rvm.io | bash -s stable And then reinstalling puppet and librarian puppet under this version of Ruby. gem install highline --version 1.6.1 In order to get 'puppy apply' working, I had to
Whenever we want to use sudo as user co, it is better to execute |
…nd what the puppet scripts are designed for. Tips from: #107 (comment)
Thanks again @zvetaM I've updated the README and site.pp to nearly all of this: b7151dc However I'm not sure why you needed to pip install PasteScript and Pylons separately as they are in the puppet stuff already: https://github.com/datagovuk/dgu-vagrant-puppet/blob/master/puppet/modules/dgu_ckan/manifests/init.pp#L70-L72 |
Thank you! Regarding Pylons and PasteScript, Puppet apply kept failing at 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 (and the same for PasteScript) Previous instances of these errors I was able to resolve, but these two simply won't go away, so I decided to install them manually. |
Ok, I've added a note about these too: 8b86735 |
Hy! I also encountered some problems with Drupal; When I executed the last step in the first block of code in 4. Drupal --> Install the DGU Drupal Distribution, drush --yes --verbose site-install dgu --db-url=mysql://co:pass@localhost/dgu --account-name=admin --account-pass=admin --site-name='Slo portal'
which I ignored for the time being.
The website encountered an unexpected error. Please try again later. Through enabling the dblog and syslog Drupal modules I managed to get more details about the error:
By the way, when I tried to enable dblog Drupal module, I received the following error. But afterwards it seemed as if dblog was activated fine anyway, since drush wd-show works fine...
I hope that this isn't too much... I've followed the instructions to the letter, except in certain cases - for example, adding the admin user in CKAN: sudo -u www-data /home/co/ckan/bin/paster --plugin=ckan sysadmin add admin --config=/var/ckan/ckan.ini Thank you. |
I've put this in a new issue: #108 |
I've been following the instructions on how to install data.gov.uk on a clean Ubuntu 12.04 installation, Option 2: Fresh machine preparation, and I've had some problems:
sudo adduser co -u 510 -G sudo does not work. Instead I use sudo adduser co -uid 510 and manually add the user co to the group sudo in /etc/groups
the command sudo gem install librarian-puppet -v 1.0.3 fails with the error that ruby >= 1.9.3 is not installed, even though I did run the previous command sudo apt-get install ruby1.9.3 rubygems git. I decided to install ruby 2.2 using the commands
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.2
librarian-puppet -v 1.0.3 now installed successful.
sudo mkdir /vagrant
sudo chown co /vagrant
sudo chgrp co /vagrant
...
git checkout master
ln -s /vagrant/dgu-vagrant-puppet/src /vagrant/src
ln -s /vagrant/dgu-vagrant-puppet/puppet/ /vagrant/puppet
As the commands in the instructions fail due to user co not being allowed to touch the root directory without sudo
Unable to load puppet, the puppet gem is required for :git and :path source.
I installed puppet with sudo gem install puppet. Now I get the following error:
/var/lib/gems/2.2.0/gems/librarian-puppet-1.0.3/lib/librarian/puppet/source/local.rb:83:in `evaluate_modulefile': uninitialized constant Puppet::ModuleTool::ModulefileReader (NameError)
In the comment rodjek/librarian-puppet#296 (comment) I learned that this seems to be a problem that can be dealt with by downgrading to puppet3
How can I downgrade to puppet3?
Thank you for your answers
The text was updated successfully, but these errors were encountered: