mysociety / alaveteli

Provide a Freedom of Information request system for your jurisdiction
https://alaveteli.org
Other
390 stars 196 forks source link

Script based installation option error on Ubuntu 16.04. #5825

Closed mfabunmi2013 closed 4 years ago

mfabunmi2013 commented 4 years ago

Hi All, I get the error below, when i attempt the use of the scripted installation method on a clean version on Ubuntu 16.04 on Amazon AWS.


Bundle complete! 85 Gemfile dependencies, 178 gems now installed. Bundled gems are installed into /home/alaveteli/bundle. Installing theme alavetelitheme from git://github.com/mysociety/alavetelitheme.g it Running uninstall hook in /var/www/alaveteli/alaveteli/lib/themes/alavetelitheme 9280b9493a83ca1cbc2b3eb1317e0f06c4e16273 Checking out origin/develop HEAD is now at 9280b94... Merge branch 'master' into develop Running install hook in /var/www/alaveteli/alaveteli/lib/themes/alavetelitheme Running post_install hook in /var/www/alaveteli/alaveteli/lib/themes/alavetelith eme alavetelitheme successfully installed in: /var/www/alaveteli/alaveteli/lib/theme s/alavetelitheme

rake aborted! OpenURI::HTTPError: 401 Unauthorized /var/www/alaveteli/alaveteli/lib/tasks/geoip.rake:25:in block (4 levels) in <to p (required)>' /var/www/alaveteli/alaveteli/lib/tasks/geoip.rake:23:inopen' /var/www/alaveteli/alaveteli/lib/tasks/geoip.rake:23:in block (3 levels) in <to p (required)>' /var/www/alaveteli/alaveteli/lib/tasks/geoip.rake:20:inblock (2 levels) in <to p (required)>' /home/alaveteli/bundle/ruby/2.3.0/gems/rake-12.3.3/exe/rake:27:in `<top (require d)>' Tasks: TOP => geoip:download_data (See full trace by running task with --trace)


Cheers, Michael Fabunmi

gbp commented 4 years ago

A fix for this issue has been merged and releases as part of 0.38.0.0

mfabunmi2013 commented 4 years ago

I ran the installation again. It completed this time around, however, the services are unable to start. Below is the message i get:-

root@ec2-52-210-174-97:/home/ubuntu# service --status-all | grep '[ ? ]' [ ? ] alaveteli [ ? ] alaveteli-alert-tracks [ ? ] alaveteli-send-notifications

mfabunmi2013 commented 4 years ago

It tried to run the installation script again. Below is the message i get:-


sudo sh ./install-site.sh --default alaveteli alavet eli ==== Installing alaveteli Updating package lists... done Installing some core packages... apt-utils... done git... done locales... done lockfile-progs... done curl... done dnsutils... done lsb-release... done Testing for being on EC2... done Generating locales... Generating locale en_GB... already done done Adding unix user... already done Updating APT sources... done Cloning or updating repository... updating... done Updating mySociety APT source... OK done Hit:1 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease Ign:4 http://debian.mysociety.org stretch InRelease Hit:5 http://debian.mysociety.org stretch Release Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease Reading package lists... Done Setting hostname... Installing nginx... done Adding site to nginx... done Your branch is up-to-date with 'origin/master'. Installing postfix... done /var/log/mail/mail.log { [ ok ] Restarting rsyslog (via systemctl): rsyslog.service. postfix: Postfix is running with backwards-compatible default settings postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" postfix/postfix-script: refreshing the Postfix mail system Installing packages from repository packages file... done createuser: creation of new role failed: ERROR: role "alaveteli" already exists Checking for postgres template_utf8 database... done

Can't download the latest MaxMind geoip data file. Please add MAXMIND_LICENSE_KE Y setting to config/general.yml

ubuntu@ec2-52-210-174-97:~$


mfabunmi2013 commented 4 years ago

Below are the version details:- root@ec2-52-210-174-97:/home/ubuntu# cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.6 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial root@ec2-52-210-174-97:/home/ubuntu#

garethrees commented 4 years ago

The alaveteli-dev mailing list is a better place for this, unless there's a specific problem with the codebase that can't be resolved there.

Ubuntu 16.04 is not supported (#4970) – 18.04 is the currently supported Ubuntu.

mfabunmi2013 commented 4 years ago

Thanks Gareth, i shall redirect any issues to the mailing list, going forward.

Cheers, Michael

On Mon, 27 Jul 2020 at 17:25, Gareth Rees notifications@github.com wrote:

The alaveteli-dev mailing list https://groups.google.com/u/1/g/alaveteli-dev/c/An6DheNTZvo is a better place for this, unless there's a specific problem with the codebase that can't be resolved there.

Ubuntu 16.04 is not supported (#4970 https://github.com/mysociety/alaveteli/issues/4970) – 18.04 is the currently supported Ubuntu.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mysociety/alaveteli/issues/5825#issuecomment-664499461, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQMVTOFIV7LPNZUAZ2TWS4TR5WTBFANCNFSM4PHKWW4A .