Installation Error on Ubuntu 16.04

185 views
Skip to first unread message

mfabun...@gmail.com

unread,
Jul 25, 2020, 3:26:01 AM7/25/20
to Alaveteli Dev
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:in `open'
/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:in `block (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

Graeme Porteous

unread,
Jul 27, 2020, 7:44:38 AM7/27/20
to alavet...@googlegroups.com
Hi Michael,

Thanks for reporting this. We were able to get a fix into the 0.38.0.0 https://github.com/mysociety/alaveteli/releases/tag/0.38.0.0

Let us know how you get on.

--
Graeme Porteous
gra...@mysociety.org


--
You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/6764e46a-e1f6-4e18-a8ab-128ad64989e4o%40googlegroups.com.

Michael Fabunmi

unread,
Jul 27, 2020, 11:32:21 AM7/27/20
to alavet...@googlegroups.com
Hi All,
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

I ran the command below several  times. I never got any error message back

 service alaveteli start

Below is what I get when i re-run the installation script.
***********************************************************************************************************************
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
+ '[' 4 -ne 4 ']'
+ UNIX_USER=alaveteli
+ HOST=ec2-52-210-174-97.eu-west-1.compute.amazonaws.com
+ DIRECTORY=/var/www/alaveteli
+ RUBY_VERSION=
+ DB_NAME=alaveteli
++ dig +short ec2-52-210-174-97.eu-west-1.compute.amazonaws.com
+ IP_ADDRESS_FOR_HOST=172.31.17.57
+ '[' x = x172.31.17.57 ']'
+ id alaveteli
++ whoami
+ '[' alaveteli '!=' alaveteli ']'
+ REPOSITORY=/var/www/alaveteli/alaveteli
+ LINK_DESTINATION=/home/alaveteli/alaveteli
+ ln -sfn /var/www/alaveteli/alaveteli /home/alaveteli/alaveteli
+ cd /var/www/alaveteli/alaveteli
+ BASHRC=/home/alaveteli/.bashrc
+ BASHRC_GEM_COMMENT='Set up local gem directory for Alaveteli'
+ BASHRC_START='# START Set up local gem directory for Alaveteli'
+ BASHRC_END='# END Set up local gem directory for Alaveteli'
+ sed -ibackup '/# START Set up local gem directory for Alaveteli/,/# END Set up                                                                                         local gem directory for Alaveteli/d' /home/alaveteli/.bashrc
++ mktemp /home/alaveteli/.bashrc.XXXXXXX
+ TMP_BASHRC=/home/alaveteli/.bashrc.xsa4l31
+ cat
+ cat /home/alaveteli/.bashrc
+ mv /home/alaveteli/.bashrc.xsa4l31 /home/alaveteli/.bashrc
+ source /home/alaveteli/.bashrc
++ export PATH=/home/alaveteli/.gem/ruby//bin:/home/alaveteli/bin:/home/alavetel                                                                                        i/.local/bin:/home/alaveteli/.gem/ruby//bin:/usr/local/sbin:/usr/local/bin:/usr/                                                                                        sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ PATH=/home/alaveteli/.gem/ruby//bin:/home/alaveteli/bin:/home/alaveteli/.loca                                                                                        l/bin:/home/alaveteli/.gem/ruby//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/u                                                                                        sr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ case $- in
++ return
+ echo 'gem: --no-ri --no-rdoc'
++ random_alphanumerics 32
++ head -c32
++ tr -dc A-Za-z0-9
+ RANDOM_EMAIL_SECRET=nNpL5cstj0HIF2dIGwssPEQyOwZ7RYTv
++ random_alphanumerics 10
++ head -c10
++ tr -dc A-Za-z0-9
+ RANDOM_EMERGENCY_PASSWORD=nl57rqYBU9
++ random_alphanumerics 100
++ head -c100
++ tr -dc A-Za-z0-9
+ RANDOM_COOKIE_SECRET=UdLUV7LKzsR1M5UQdCk6YZEgrN9WtfJQGl2rMhqO8fDLn37tJdbwwG1Bq                                                                                        cHDlzR2v3WOdnB9aMjtBTakvmUP7P1DtRt20sxHCsoF
+ '[' -f config/general.yml ']'
+ sed -r -e 's,^( *database: *)foi_(.*),\1alaveteli_\2,' -e 's,^( *username: *).                                                                                        *,\1alaveteli,' -e 's,^( *password: *).*,\1null,' -e 's,^( *host: *).*,\1/var/ru                                                                                        n/postgresql/,' -e 's,# constraint_disabling: false,  constraint_disabling: fals                                                                                        e,' config/database.yml-example
+ for SUFFIX in production test development
+ REAL_DB_NAME=alaveteli_production
+ echo Creating the database alaveteli_production
Creating the database alaveteli_production
+ egrep '^ *alaveteli_production *\|'
+ psql -l
+ for SUFFIX in production test development
+ REAL_DB_NAME=alaveteli_test
+ echo Creating the database alaveteli_test
Creating the database alaveteli_test
+ egrep '^ *alaveteli_test *\|'
+ psql -l
+ for SUFFIX in production test development
+ REAL_DB_NAME=alaveteli_development
+ echo Creating the database alaveteli_development
Creating the database alaveteli_development
+ egrep '^ *alaveteli_development *\|'
+ psql -l
+ echo Running rails-post-deploy
Running rails-post-deploy
+ script/rails-post-deploy
Running bundle install with options: --path /home/alaveteli/bundle/
Resolving dependencies...
Using rake 13.0.1
Using concurrent-ruby 1.1.6
Using minitest 5.14.1
Using thread_safe 0.3.6
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using crass 1.0.6
Using rack 2.2.3
Using nio4r 2.5.2
Using websocket-extensions 0.1.5
Using mime-types 2.99.3
Using public_suffix 4.0.5
Using arel 9.0.0
Using mimemagic 0.3.5
Using flipper 0.17.2
Using bundler 1.11.2
Using method_source 0.9.2
Using thor 1.0.1
Using ast 2.4.1
Using bcrypt 3.1.13
Using bindex 0.7.0
Using sass 3.4.25
Using uniform_notifier 1.13.0
Using byebug 11.0.1
Using cancancan 3.1.0
Using highline 2.0.0
Using net-ssh 2.9.4
Using mini_mime 1.0.2
Using regexp_parser 1.7.1
Using charlock_holmes 0.7.7
Using coderay 1.1.2
Using json 2.3.1
Using docile 1.3.2
Using simplecov-html 0.10.2
Using sync 0.5.0
Using safe_yaml 1.0.5
Using daemons 1.3.1
Using dalli 2.7.10
Using dante 0.2.0
Using diff-lcs 1.4.2
Using dynamic_form 1.1.4
Using eventmachine 1.2.7
Using execjs 2.7.0
Using fast_gettext 2.0.2
Using ffi 1.13.1
Using gender_detector 2.0.0
Using locale 2.1.3
Using text 1.3.1
Using gnuplot 2.6.2
Using hashdiff 1.0.1
Using hodel_3000_compliant_logger 0.1.1
Using holidays 7.1.0
Using htmlentities 4.3.4
Using ice_cube 0.16.3
Using iso_country_codes 0.7.8
Using jaro_winkler 1.5.4
Using libv8 3.16.14.19
Using rb-fsevent 0.10.4
Using mahoro 0.5
Using maxmind-db 1.0.0
Using mini_magick 4.10.1
Using multi_json 1.13.1
Using open4 1.3.4
Using parallel 1.19.2
Using pg 1.2.3
Using rainbow 3.0.0
Using ref 2.0.0
Using rexml 3.2.4
Using rolify 5.3.0
Using rspec-support 3.9.3
Using ruby-progressbar 1.10.1
Using unicode-display_width 1.7.0
Using ruby-ole 1.2.12.1
Using vpim 13.11.11
Using rubyzip 1.3.0
Using tilt 2.0.8
Using secure_headers 6.3.1
Using statistics2 0.54
Using stripe 5.22.0
Using syslog_protocol 0.9.2
Using unicode 0.4.4.4
Using unidecoder 1.1.2
Using will_paginate 3.3.0
Using xapian-full-alaveteli 1.4.11.1
Using xml-simple 1.1.5
Using zip_tricks 5.3.1
Using i18n 1.8.3
Using tzinfo 1.2.7
Using nokogiri 1.10.10
Using rack-test 1.1.0
Using sprockets 3.7.2
Using request_store 1.4.1
Using rack-ssl 1.4.1
Using rack-utf8_sanitizer 1.7.0
Using websocket-driver 0.7.2
Using mail 2.6.6
Using addressable 2.7.0
Using marcel 0.3.3
Using parser 2.7.1.4
Using bootstrap-sass 2.3.2.2
Using net-scp 1.2.1
Using net-sftp 2.1.2
Using net-ssh-gateway 1.3.0
Using pry 0.12.2
Using recaptcha 5.5.0
Using simplecov 0.16.1
Using tins 1.25.0
Using crack 0.4.3
Using thin 1.7.2
Using uglifier 4.2.0
Using gettext_i18n_rails 1.8.1
Using rb-inotify 0.10.1
Using gettext 3.2.9
Using icalendar 2.5.3
Using therubyracer 0.12.3
Using rspec-mocks 3.9.1
Using rspec-core 3.9.2
Using rspec-expectations 3.9.2
Using ruby-msg 1.5.2 from https://github.com/mysociety/ruby-msg.git (at ascii-en                                                                                        coding@fae72e5)
Using stripe-ruby-mock 3.0.1 from https://github.com/stripe-ruby-mock/stripe-rub                                                                                        y-mock (at 2c925fd@2c925fd)
Using money 6.13.8
Using activesupport 5.2.4.3
Using loofah 2.6.0
Using xpath 3.2.0
Using rotp 5.0.0
Using launchy 2.4.3
Using rubocop 0.81.0
Using capistrano 2.15.9
Using pry-byebug 3.7.0
Using term-ansicolor 1.7.1
Using webmock 3.8.3
Using listen 3.2.1
Using rails-dom-testing 2.0.3
Using globalid 0.4.2
Using activemodel 5.2.4.3
Using bullet 6.1.0
Using factory_bot 5.2.0
Using rails-html-sanitizer 1.3.0
Using capybara 3.15.1
Using rubocop-performance 1.5.2
Using rubocop-rails 2.5.2
Using coveralls 0.8.23
Using activejob 5.2.4.3
Using active_model_otp 2.0.1
Using activerecord 5.2.4.3
Using rspec-activemodel-mocks 1.1.0
Using strip_attributes 1.11.0 from https://github.com/mysociety/strip_attributes                                                                                        .git (at globalize3-rails5.2@62a5e1e)
Using actionview 5.2.4.3
Using acts_as_versioned 0.6.0 from https://github.com/technoweenie/acts_as_versi                                                                                        oned.git (at 63b1fc8@63b1fc8)
Using flipper-active_record 0.17.2
Using annotate 3.1.0
Using globalize 5.2.0
Using oink 0.10.1
Using actionpack 5.2.4.3
Using actioncable 5.2.4.3
Using actionmailer 5.2.4.3
Using activestorage 5.2.4.3
Using railties 5.2.4.3
Using sprockets-rails 3.2.1
Using rails-controller-testing 1.0.5
Using routing-filter 0.6.3
Using exception_notification 4.4.3
Using factory_bot_rails 5.2.0
Using fancybox-rails 0.3.1
Using jquery-rails 4.4.0
Using jquery-ui-rails 6.0.1
Using rails-i18n 5.1.3
Using rspec-rails 4.0.1
Using web-console 3.7.0
Using rails 5.2.4.3
Using sass-rails 5.0.7
Using alaveteli_features 0.0.1 from source at `gems/alaveteli_features`
Bundle complete! 83 Gemfile dependencies, 173 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

Can't download the latest MaxMind geoip data file. Please add MAXMIND_LICENSE_KE                                                                                        Y setting to config/general.yml
+ LOADED_INDICATOR=/home/alaveteli/.alaveteli-sample-data-loaded
+ '[' '!' -f /home/alaveteli/.alaveteli-sample-data-loaded ']'
ALTER ROLE
Creating /etc/cron.d/alaveteli... done
Creating /etc/init.d/alaveteli... done
Clearing any existing daemons
Removing /etc/init.d/alaveteli-alert-tracks... done
Removing /etc/init.d/alaveteli-send-notifications... done
Removing /etc/init.d/alaveteli-poll-for-incoming... done
Creating daemons for active daemons
Creating /etc/init.d/alaveteli-alert-tracks... alaveteli-alert-tracks.service is                                                                                         not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable alaveteli-alert-tracks
done
Creating /etc/init.d/alaveteli-send-notifications... alaveteli-send-notification                                                                                        s.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable alaveteli-send-notifications
done
Installation complete

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

You received this message because you are subscribed to a topic in the Google Groups "Alaveteli Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alaveteli-dev/An6DheNTZvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/CAD%3D4AyjU49bb_OLzd1U2u7m2hKYRuamBAu1ehZWUSy5pn%3D3gaA%40mail.gmail.com.

Michael Fabunmi

unread,
Jul 27, 2020, 1:23:55 PM7/27/20
to Alaveteli Dev
Hi All,
As per the text log dump below, i have a issue where by the  scripted installation runs successfully on Ubuntu 18.04.
However, the alaveteli services cannot be started.

***********************************************************************************************************************************
ubuntu@ip-172-31-21-210:~$ sudo sh ./install-site.sh --default alaveteli alavete                                                                                        li
==== 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:2 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Ign:5 http://debian.mysociety.org wheezy InRelease
Hit:6 http://debian.mysociety.org wheezy Release
Hit:7 http://security.ubuntu.com/ubuntu bionic-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-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
+ '[' 4 -ne 4 ']'
+ UNIX_USER=alaveteli
+ DIRECTORY=/var/www/alaveteli
+ RUBY_VERSION=
+ DB_NAME=alaveteli
+ IP_ADDRESS_FOR_HOST=172.31.21.210
+ '[' x = x172.31.21.210 ']'
+ id alaveteli
++ whoami
+ '[' alaveteli '!=' alaveteli ']'
+ REPOSITORY=/var/www/alaveteli/alaveteli
+ LINK_DESTINATION=/home/alaveteli/alaveteli
+ ln -sfn /var/www/alaveteli/alaveteli /home/alaveteli/alaveteli
+ cd /var/www/alaveteli/alaveteli
+ BASHRC=/home/alaveteli/.bashrc
+ BASHRC_GEM_COMMENT='Set up local gem directory for Alaveteli'
+ BASHRC_START='# START Set up local gem directory for Alaveteli'
+ BASHRC_END='# END Set up local gem directory for Alaveteli'
+ sed -ibackup '/# START Set up local gem directory for Alaveteli/,/# END Set up                                                                                         local gem directory for Alaveteli/d' /home/alaveteli/.bashrc
++ mktemp /home/alaveteli/.bashrc.XXXXXXX
+ TMP_BASHRC=/home/alaveteli/.bashrc.XHCrIwt
+ cat
+ cat /home/alaveteli/.bashrc
+ mv /home/alaveteli/.bashrc.XHCrIwt /home/alaveteli/.bashrc
+ source /home/alaveteli/.bashrc
++ export PATH=/home/alaveteli/.gem/ruby//bin:/home/alaveteli/.gem/ruby//bin:/us                                                                                        r/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/                                                                                        games:/snap/bin
++ PATH=/home/alaveteli/.gem/ruby//bin:/home/alaveteli/.gem/ruby//bin:/usr/local                                                                                        /sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/                                                                                        snap/bin
++ case $- in
++ return
+ echo 'gem: --no-ri --no-rdoc'
++ random_alphanumerics 32
++ head -c32
++ tr -dc A-Za-z0-9
+ RANDOM_EMAIL_SECRET=JdXumUCiCJQtilscYCiy1nuGH4rIqf9F
++ random_alphanumerics 10
++ head -c10
++ tr -dc A-Za-z0-9
+ RANDOM_EMERGENCY_PASSWORD=seT7Gxqmm9
++ random_alphanumerics 100
++ head -c100
++ tr -dc A-Za-z0-9
+ RANDOM_COOKIE_SECRET=sqqJ3ip0Fc9XuQNQ7AgFqlV2syYgbD7LWkllsbjMvmRnSJJq6W00938I0                                                                                        AJ42Dk3n06mSyVv3SMD26w5CWywgrM2XZNKlGNy2385
+ '[' -f config/general.yml ']'
+ sed -r -e 's,^( *database: *)foi_(.*),\1alaveteli_\2,' -e 's,^( *username: *).                                                                                        *,\1alaveteli,' -e 's,^( *password: *).*,\1null,' -e 's,^( *host: *).*,\1/var/ru                                                                                        n/postgresql/,' -e 's,# constraint_disabling: false,  constraint_disabling: fals                                                                                        e,' config/database.yml-example
+ for SUFFIX in production test development
+ REAL_DB_NAME=alaveteli_production
+ echo Creating the database alaveteli_production
Creating the database alaveteli_production
+ egrep '^ *alaveteli_production *\|'
+ psql -l
+ for SUFFIX in production test development
+ REAL_DB_NAME=alaveteli_test
+ echo Creating the database alaveteli_test
Creating the database alaveteli_test
+ egrep '^ *alaveteli_test *\|'
+ psql -l
+ for SUFFIX in production test development
+ REAL_DB_NAME=alaveteli_development
+ echo Creating the database alaveteli_development
Creating the database alaveteli_development
+ egrep '^ *alaveteli_development *\|'
+ psql -l
+ echo Running rails-post-deploy
Running rails-post-deploy
+ script/rails-post-deploy
Running bundle install with options: --path /home/alaveteli/bundle/
Using rake 13.0.1
Using concurrent-ruby 1.1.6
Using i18n 1.8.3
Using minitest 5.14.1
Using thread_safe 0.3.6
Using tzinfo 1.2.7
Using activesupport 5.2.4.3
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.10
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.6.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.4.3
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.2.4.3
Using nio4r 2.5.2
Using websocket-extensions 0.1.5
Using websocket-driver 0.7.2
Using actioncable 5.2.4.3
Using globalid 0.4.2
Using activejob 5.2.4.3
Using mime-types 2.99.3
Using mail 2.6.6
Using actionmailer 5.2.4.3
Using activemodel 5.2.4.3
Using public_suffix 4.0.5
Using addressable 2.7.0
Using rotp 5.0.0
Using active_model_otp 2.0.1
Using arel 9.0.0
Using activerecord 5.2.4.3
Using mimemagic 0.3.5
Using marcel 0.3.3
Using activestorage 5.2.4.3
Using acts_as_versioned 0.6.0 from https://github.com/technoweenie/acts_as_versi                                                                                        oned.git (at 63b1fc8@63b1fc8)
Using flipper 0.17.2
Using flipper-active_record 0.17.2
Using bundler 1.16.1
Using method_source 0.9.2
Using thor 1.0.1
Using railties 5.2.4.3
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.4.3
Using alaveteli_features 0.0.1 from source at `gems/alaveteli_features`
Using annotate 3.1.0
Using ast 2.4.1
Using bcrypt 3.1.13
Using bindex 0.7.0
Using sass 3.4.25
Using bootstrap-sass 2.3.2.2
Using uniform_notifier 1.13.0
Using bullet 6.1.0
Using byebug 11.0.1
Using cancancan 3.1.0
Using highline 2.0.0
Using net-ssh 2.9.4
Using net-scp 1.2.1
Using net-sftp 2.1.2
Using net-ssh-gateway 1.3.0
Using capistrano 2.15.9
Using mini_mime 1.0.2
Using regexp_parser 1.7.1
Using xpath 3.2.0
Using capybara 3.15.1
Using charlock_holmes 0.7.7
Using coderay 1.1.2
Using json 2.3.1
Using docile 1.3.2
Using simplecov-html 0.10.2
Using simplecov 0.16.1
Using sync 0.5.0
Using tins 1.25.0
Using term-ansicolor 1.7.1
Using coveralls 0.8.23
Using safe_yaml 1.0.5
Using crack 0.4.3
Using daemons 1.3.1
Using dalli 2.7.10
Using dante 0.2.0
Using diff-lcs 1.4.2
Using dynamic_form 1.1.4
Using eventmachine 1.2.7
Using exception_notification 4.4.3
Using execjs 2.7.0
Using factory_bot 5.2.0
Using factory_bot_rails 5.2.0
Using fancybox-rails 0.3.1
Using fast_gettext 2.0.2
Using ffi 1.13.1
Using gender_detector 2.0.0
Using locale 2.1.3
Using text 1.3.1
Using gettext 3.2.9
Using gettext_i18n_rails 1.8.1
Using request_store 1.4.1
Using globalize 5.2.0
Using gnuplot 2.6.2
Using hashdiff 1.0.1
Using hodel_3000_compliant_logger 0.1.1
Using holidays 7.1.0
Using htmlentities 4.3.4
Using ice_cube 0.16.3
Using icalendar 2.5.3
Using iso_country_codes 0.7.8
Using jaro_winkler 1.5.4
Using jquery-rails 4.4.0
Using jquery-ui-rails 6.0.1
Using launchy 2.4.3
Using libv8 3.16.14.19 (x86_64-linux)
Using rb-fsevent 0.10.4
Using rb-inotify 0.10.1
Using listen 3.2.1
Using mahoro 0.5
Using maxmind-db 1.0.0
Using mini_magick 4.10.1
Using money 6.13.8
Using multi_json 1.13.1
Using oink 0.10.1
Using open4 1.3.4
Using parallel 1.19.2
Using parser 2.7.1.4
Using pg 1.2.3
Using pry 0.12.2
Using pry-byebug 3.7.0
Using rack-ssl 1.4.1
Using rack-utf8_sanitizer 1.7.0
Using rails-controller-testing 1.0.5
Using rails-i18n 5.1.3
Using rainbow 3.0.0
Using recaptcha 5.5.0
Using ref 2.0.0
Using rexml 3.2.4
Using rolify 5.3.0
Using routing-filter 0.6.3
Using rspec-support 3.9.3
Using rspec-mocks 3.9.1
Using rspec-activemodel-mocks 1.1.0
Using rspec-core 3.9.2
Using rspec-expectations 3.9.2
Using rspec-rails 4.0.1
Using ruby-progressbar 1.10.1
Using unicode-display_width 1.7.0
Using rubocop 0.81.0
Using rubocop-performance 1.5.2
Using rubocop-rails 2.5.2
Using ruby-ole 1.2.12.1
Using vpim 13.11.11
Using ruby-msg 1.5.2 from https://github.com/mysociety/ruby-msg.git (at ascii-en                                                                                        coding@fae72e5)
Using rubyzip 1.3.0
Using tilt 2.0.8
Using sass-rails 5.0.7
Using secure_headers 6.3.1
Using statistics2 0.54
Using strip_attributes 1.11.0 from https://github.com/mysociety/strip_attributes                                                                                        .git (at globalize3-rails5.2@62a5e1e)
Using stripe 5.22.0
Using stripe-ruby-mock 3.0.1 from https://github.com/stripe-ruby-mock/stripe-rub                                                                                        y-mock (at 2c925fd@2c925fd)
Using syslog_protocol 0.9.2
Using therubyracer 0.12.3
Using thin 1.7.2
Using uglifier 4.2.0
Using unicode 0.4.4.4
Using unidecoder 1.1.2
Using web-console 3.7.0
Using webmock 3.8.3
Using will_paginate 3.3.0
Using xapian-full-alaveteli 1.4.11.1
Using xml-simple 1.1.5
Using zip_tricks 5.3.1
Bundle complete! 83 Gemfile dependencies, 173 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

MaxMind geoip data file downloaded
Please make sure config/general.yml has the following setting:
  GEOIP_DATABASE: vendor/data/GeoLite2-Country.mmdb
+ LOADED_INDICATOR=/home/alaveteli/.alaveteli-sample-data-loaded
+ '[' '!' -f /home/alaveteli/.alaveteli-sample-data-loaded ']'
ALTER ROLE
Creating /etc/cron.d/alaveteli... done
Creating /etc/init.d/alaveteli... done
Clearing any existing daemons
Removing /etc/init.d/alaveteli-alert-tracks... done
Removing /etc/init.d/alaveteli-send-notifications... done
Removing /etc/init.d/alaveteli-poll-for-incoming... done
Creating daemons for active daemons
Creating /etc/init.d/alaveteli-alert-tracks... alaveteli-alert-tracks.service is                                                                                         not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable alaveteli-alert-tracks
done
Creating /etc/init.d/alaveteli-send-notifications... alaveteli-send-notification                                                                                        s.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable alaveteli-send-notifications
done
Installation complete

ubuntu@ip-172-31-21-210:~$ sudo su
root@ec2-34-243-149-160:/home/ubuntu# service --status-all | grep '\[ ? \]'
 [ ? ]  alaveteli
 [ ? ]  alaveteli-alert-tracks
 [ ? ]  alaveteli-send-notifications
root@ec2-34-243-149-160:/home/ubuntu# hostname
root@ec2-34-243-149-160:/home/ubuntu# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-poli                                                                                        cy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
root@ec2-34-243-149-160:/home/ubuntu#
***********************************************************************************************************************

Cheers,
Michael Fabunmi

mfabun...@gmail.com

unread,
Jul 27, 2020, 1:58:03 PM7/27/20
to Alaveteli Dev
Hi All,
Below is the alaveteli init.d file.

root@ec2-34-243-149-160:/etc/init.d# nano alaveteli

****************************************************************************************************************************
#! /bin/sh
### BEGIN INIT INFO
# Provides:          application-thin-alaveteli
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starts the Thin app server for the "alaveteli" site
# Description:       The Thin app server for the "alaveteli" site
### END INIT INFO

# This example sysvinit script is based on the helpful example here:

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=alaveteli
SITE_HOME=/var/www/alaveteli/alaveteli
DESC="Alaveteli app server"
USER=alaveteli
CPUS=1
RAILS_ENV=development

set -e

# Check that the Daemon can be run
CURRENT_USER=$(whoami)
if [ "$CURRENT_USER" = "$USER" ]
  then
    cd $SITE_HOME && bundle exec thin --version > /dev/null 2>&1 || exit 0
  else
    su -l -c "cd $SITE_HOME && bundle exec thin --version &> /dev/null || exit 0" $USER
fi

start_daemon() {
  echo -n "Starting $DESC: "
  cd "$SITE_HOME" && bundle exec thin \
    --environment=$RAILS_ENV \
    --user="$USER" \
    --group="$USER" \

****************************************************************************************************************************

Cheers,
Michael

Gareth Rees

unread,
Jul 28, 2020, 5:15:53 AM7/28/20
to Alaveteli Dev
First place I'd dig into is the rails application log at `/var/www/alaveteli/alaveteli/log/production.log`.

That should give you some indication of what's up on the application side.

Best,

Gareth

Michael Fabunmi

unread,
Jul 28, 2020, 8:04:03 AM7/28/20
to alavet...@googlegroups.com
Hi Gareth,
At this time, what i have is  `/var/www/alaveteli/alaveteli/log/development.log`.  
I have attached zipped copies of all the files in the location "/var/www/alaveteli/alaveteli/log". 
Also, I have only made 3 changes in the general.yml file. 
Details below:-

***********************************************************************************************************************
SITE_NAME: 'WetinDemSabi'

DOMAIN: 'wetindemsabi.org'

AXMIND_LICENSE_KEY: '6nXXXXYYYjy'

***********************************************************************************************************************

Cheers,
Michael Fabunmi

development.zip
log.zip

Gareth Rees

unread,
Jul 28, 2020, 1:03:43 PM7/28/20
to Alaveteli Dev
Looks like the app is starting in development mode, rather than production mode, if you only have a development.log.

Might be caused by this bug https://github.com/mysociety/alaveteli/issues/2392. Do you have a `/var/www/alaveteli/alaveteli/config/rails_env.rb` file?

I think you may just need to change `RAILS_ENV=development` to `RAILS_ENV=production` in `/etc/init.d/alaveteli` and then probably run `sudo systemctl daemon-reload` and then restart the daemon.

Let us know if that works!

Out of interest, what country/jurisdiction are you creating an Alaveteli for?

Best,

Gareth

Michael Fabunmi

unread,
Jul 28, 2020, 5:12:20 PM7/28/20
to alavet...@googlegroups.com
Hi Gareth,
Please find below commentary on your previous mail..

Cheers,
Michael Fabunmi 

On Tue, 28 Jul 2020 at 18:03, Gareth Rees <gar...@mysociety.org> wrote:
Looks like the app is starting in development mode, rather than production mode, if you only have a development.log
    It has now generated a production.log file after i made the changes you suggested. See attached. file.
 
 
Might be caused by this bug https://github.com/mysociety/alaveteli/issues/2392. Do you have a `/var/www/alaveteli/alaveteli/config/rails_env.rb` file?
    The file rails_env.rb does not appear to exist anywhere within my  server system.

I think you may just need to change `RAILS_ENV=development` to `RAILS_ENV=production` in `/etc/init.d/alaveteli` and then probably run `sudo systemctl daemon-reload` and then restart the daemon.
    I made the changes and attempted to start the service but it would not start.

Let us know if that works!

 
Out of interest, what country/jurisdiction are you creating an Alaveteli for?
     I am doing it for Nigeria.
     I have already started work on fixmyarea4us.org (clone of fixmystreet.org for Nigeria) . I am eager to get Alaveteli going under wetindemsabi.org so that the data we gather for the target           institutions can be used for both applications. I am based in the UK in Coventry. I do large scale Office 365/Microsoft Azure migrations for a living.
production.zip

Graeme Porteous

unread,
Jul 29, 2020, 11:28:04 AM7/29/20
to alavet...@googlegroups.com
Hi Michael,

So the app is now running in the production environment but the database hasn't been set up correctly. This should have happened previously as part of the installation process but if the environment was wrong then it would've happened to the wrong database. The solution now would be to re-run the ./script/rails-post-deploy script which comes from Alaveteli.

Let us know how you get on.

Best,

--
Graeme Porteous
gra...@mysociety.org


Michael Fabunmi

unread,
Jul 29, 2020, 2:30:17 PM7/29/20
to alavet...@googlegroups.com
Hi Graham,
I have made the changes, but the services have still not started. I have attached more log files.


Cheers,
Michael Fabunmi

ServerLogs.zip

Gareth Rees

unread,
Jul 30, 2020, 5:19:00 AM7/30/20
to Alaveteli Dev
Thanks for letting us know a bit more about the work you're doing. Excellent!

Looks like you have some sort of permission issue if you look in the thin log file.

Make sure the files are owned and that the application is being started by the alaveteli user.

The pry gem shouldn't get loaded in the production environment, so make sure you have a `config/rails_env.rb` as per [1]

Best,

Gareth

Michael Fabunmi

unread,
Aug 8, 2020, 4:15:14 AM8/8/20
to alavet...@googlegroups.com
Hi Gareth,
I am still struggling with getting the installation to work. Please find attached a zip file containing various logs and config files from my server.

ServerLogs08082020.zip

Michael Fabunmi

unread,
Aug 8, 2020, 4:20:33 AM8/8/20
to alavet...@googlegroups.com

Hi Gareth,
At this stage, i think it would be handy if someone who has recently completed an install could share their experience. I have literally attempted the install on 10 different instances of fresh builds of various Linux versions. The result has always been very similar to what i am reporting here, or even more pronounced (installation does not complete).

Cheers,
Michael

On Thu, 30 Jul 2020 at 10:19, Gareth Rees <gar...@mysociety.org> wrote:

Gareth Rees

unread,
Aug 12, 2020, 6:52:17 AM8/12/20
to Alaveteli Dev
I think I'd try to debug this by checking each layer of the stack.

1. Can you start the thin application server directly? `RAILS_ENV=production bundle exec thin…` (Use the same arguments as used in the start_daemon function in /etc/init.di/alaveteli)
2. If so, with the server running, in a separate terminal can you access the application? `curl 127.0.0.1:3000` (or whatever port thin starts the app on).
3. Check logs; any errors?
4. Kill the foreground server and start the app server through the system daemon.
5. Can you still use curl to get a successful response? Any errors in the logs?
6. What happens when you start the web server? Can it access the backend when you make a request through that layer? Which logs show error messages at that point?

Try to step through each layer methodically, looking for indications of errors through any process output or log files (tip, you can use `ls -latr ./log` to list logs with the most recently modified at the bottom, so its easier to find which logs get written to at each step).

Sorry we can't immediately fix the issue. We know Alaveteli can be a bit hard work to get up and running, but having these conversations in public really helps us understand where the struggles are and how to improve the experience.

Best,

Gareth

Michael Fabunmi

unread,
Aug 12, 2020, 7:40:04 AM8/12/20
to alavet...@googlegroups.com
Hi Gareth,
Please find below a screen dump of my attempts to follow your instructions. I am normally a Windows Admin type, so i have to scramble around a bit to try to work out how to carry out your requests. I am happy with providing feedback in trying to get this instance running, but can i ask if you or a member of your team have been able to get a fresh instance running using the latest edition of one of the Linux versions? I was thinking of installing a known working version on my HyperV VM platform to see if somehow something in the AWS platform is what is giving so much grief.  

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Using username "ubuntu".
Authenticating with public key "imported-openssh-key"
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.3.0-1032-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Wed Aug 12 11:12:20 UTC 2020

  System load:  0.02               Processes:           120
  Usage of /:   19.7% of 19.32GB   Users logged in:     0
  Memory usage: 13%                IP address for eth0: 172.31.27.45
  Swap usage:   0%

 * Are you ready for Kubernetes 1.19? It's nearly here! Try RC3 with
   sudo snap install microk8s --channel=1.19/candidate --classic

   https://microk8s.io/ has docs and details.

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

0 packages can be updated.
0 updates are security updates.


Last login: Wed Aug 12 11:03:03 2020 from 46.18.177.137
ubuntu@ec2-3-249-79-247:~$ sudo su -
root@ec2-3-249-79-247:~#     RAILS_ENV=production bundle exec thin \

>     --environment=$RAILS_ENV \
>     --user="$USER" \
>     --group="$USER" \
>     --address=127.0.0.1 \
>     --daemonize \
>     --servers="$CPUS" \
>     --quiet \
>     start || true
Could not locate Gemfile or .bundle/ directory
root@ec2-3-249-79-247:~# exit
logout
ubuntu@ec2-3-249-79-247:~$ sudo su - alaveteli
alaveteli@ec2-3-249-79-247:~$ cd alaveteli
alaveteli@ec2-3-249-79-247:~/alaveteli$     RAILS_ENV=production bundle exec thi                                                                                        n \

>     --environment=$RAILS_ENV \
>     --user="$USER" \
>     --group="$USER" \
>     --address=127.0.0.1 \
>     --daemonize \
>     --servers="$CPUS" \
>     --quiet \
>     start || true
alaveteli@ec2-3-249-79-247:~/alaveteli$ service --status-all
 [ + ]  acpid

 [ ? ]  alaveteli
 [ ? ]  alaveteli-alert-tracks
 [ ? ]  alaveteli-send-notifications
 [ + ]  apparmor
 [ + ]  apport
 [ + ]  atd
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  dbus
 [ + ]  ebtables
 [ + ]  grub-common
 [ - ]  hibagent
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  iscsid
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ + ]  lvm2-lvmetad
 [ + ]  lvm2-lvmpolld
 [ + ]  lxcfs
 [ - ]  lxd
 [ - ]  mdadm
 [ - ]  mdadm-waitidle
 [ + ]  memcached
 [ + ]  nginx
 [ - ]  open-iscsi
 [ - ]  open-vm-tools
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  postfix
 [ + ]  postgresql
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ + ]  sysstat
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ - ]  x11-common
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:3000
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
alaveteli@ec2-3-249-79-247:~/alaveteli$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    240 ip-172-31-27-45.eu-:ssh 46.18.177.137:10500     ESTABLISHED
udp        0      0 localhost:36256         localhost:36256         ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    19585    /var/spool/postfix/de                                                                                        v/log
unix  12     [ ]         DGRAM                    14505    /run/systemd/journal/                                                                                        dev-log
unix  2      [ ]         DGRAM                    14507    /run/systemd/journal/                                                                                        syslog
unix  2      [ ]         DGRAM                    432639   /run/user/1000/system                                                                                        d/notify
unix  3      [ ]         DGRAM                    12930    /run/systemd/notify
unix  9      [ ]         DGRAM                    12945    /run/systemd/journal/                                                                                        socket
unix  3      [ ]         STREAM     CONNECTED     21911
unix  2      [ ]         DGRAM                    19587
unix  3      [ ]         STREAM     CONNECTED     21918
unix  3      [ ]         STREAM     CONNECTED     21890
unix  3      [ ]         STREAM     CONNECTED     23869    /var/run/postgresql/.                                                                                        s.PGSQL.5432
unix  3      [ ]         STREAM     CONNECTED     21887
unix  3      [ ]         STREAM     CONNECTED     21880
unix  2      [ ]         DGRAM                    22001
unix  3      [ ]         STREAM     CONNECTED     21929
unix  3      [ ]         STREAM     CONNECTED     21933
unix  3      [ ]         STREAM     CONNECTED     18409
unix  3      [ ]         STREAM     CONNECTED     21897
unix  3      [ ]         STREAM     CONNECTED     21882
unix  3      [ ]         STREAM     CONNECTED     21969
unix  3      [ ]         STREAM     CONNECTED     21927
unix  3      [ ]         STREAM     CONNECTED     21893
unix  3      [ ]         STREAM     CONNECTED     21935
unix  3      [ ]         STREAM     CONNECTED     21908
unix  3      [ ]         STREAM     CONNECTED     21866
unix  3      [ ]         DGRAM                    17777
unix  3      [ ]         STREAM     CONNECTED     21867
unix  3      [ ]         STREAM     CONNECTED     21905
unix  3      [ ]         STREAM     CONNECTED     21914
unix  3      [ ]         STREAM     CONNECTED     21894
unix  2      [ ]         DGRAM                    431583
unix  3      [ ]         STREAM     CONNECTED     21968
unix  3      [ ]         STREAM     CONNECTED     21926
unix  3      [ ]         STREAM     CONNECTED     19637    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     21883
unix  3      [ ]         STREAM     CONNECTED     21923
unix  3      [ ]         STREAM     CONNECTED     21902
unix  3      [ ]         STREAM     CONNECTED     21915
unix  3      [ ]         STREAM     CONNECTED     23389
unix  3      [ ]         STREAM     CONNECTED     21920
unix  2      [ ]         DGRAM                    21853
unix  3      [ ]         STREAM     CONNECTED     21906
unix  3      [ ]         STREAM     CONNECTED     21921
unix  3      [ ]         DGRAM                    17778
unix  3      [ ]         DGRAM                    17780
unix  3      [ ]         STREAM     CONNECTED     21896
unix  3      [ ]         STREAM     CONNECTED     21917
unix  3      [ ]         STREAM     CONNECTED     21886
unix  3      [ ]         STREAM     CONNECTED     21930
unix  3      [ ]         STREAM     CONNECTED     21924
unix  3      [ ]         STREAM     CONNECTED     20684    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     21932
unix  3      [ ]         STREAM     CONNECTED     21889
unix  3      [ ]         STREAM     CONNECTED     21912
unix  3      [ ]         STREAM     CONNECTED     21903
unix  3      [ ]         STREAM     CONNECTED     20683
unix  3      [ ]         STREAM     CONNECTED     21899
unix  3      [ ]         STREAM     CONNECTED     21909
unix  3      [ ]         STREAM     CONNECTED     21900
unix  3      [ ]         DGRAM                    17779
unix  3      [ ]         STREAM     CONNECTED     21879
unix  3      [ ]         STREAM     CONNECTED     17907    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         DGRAM                    15102
unix  3      [ ]         DGRAM                    12932
unix  3      [ ]         STREAM     CONNECTED     21164    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     16274
unix  3      [ ]         STREAM     CONNECTED     21942
unix  3      [ ]         STREAM     CONNECTED     21963
unix  2      [ ]         DGRAM                    19022
unix  3      [ ]         STREAM     CONNECTED     18918
unix  3      [ ]         DGRAM                    16462
unix  3      [ ]         STREAM     CONNECTED     21966
unix  2      [ ]         DGRAM                    431696
unix  3      [ ]         STREAM     CONNECTED     19870    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     15744    /run/systemd/journal/                                                                                        stdout
unix  2      [ ]         DGRAM                    432822
unix  3      [ ]         STREAM     CONNECTED     17295
unix  3      [ ]         STREAM     CONNECTED     21953
unix  3      [ ]         STREAM     CONNECTED     19638    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     21155
unix  3      [ ]         STREAM     CONNECTED     21957
unix  2      [ ]         DGRAM                    431685
unix  3      [ ]         STREAM     CONNECTED     21661
unix  3      [ ]         STREAM     CONNECTED     19639    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     363321
unix  3      [ ]         STREAM     CONNECTED     17744    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     431678
unix  3      [ ]         STREAM     CONNECTED     21286
unix  3      [ ]         STREAM     CONNECTED     18611
unix  2      [ ]         DGRAM                    16458
unix  3      [ ]         DGRAM                    432640
unix  3      [ ]         STREAM     CONNECTED     21951
unix  3      [ ]         STREAM     CONNECTED     20063    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     21959
unix  3      [ ]         STREAM     CONNECTED     19640    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     18756
unix  3      [ ]         DGRAM                    16463
unix  3      [ ]         STREAM     CONNECTED     19402
unix  3      [ ]         STREAM     CONNECTED     23388    /var/run/postgresql/.                                                                                        s.PGSQL.5432
unix  3      [ ]         STREAM     CONNECTED     19020
unix  2      [ ]         DGRAM                    14783
unix  3      [ ]         STREAM     CONNECTED     21156    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     18944    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     21960
unix  2      [ ]         DGRAM                    19628
unix  2      [ ]         DGRAM                    20668
unix  3      [ ]         STREAM     CONNECTED     16948
unix  2      [ ]         DGRAM                    15749
unix  3      [ ]         DGRAM                    432641
unix  3      [ ]         STREAM     CONNECTED     18410
unix  3      [ ]         STREAM     CONNECTED     20507
unix  3      [ ]         STREAM     CONNECTED     19716
unix  3      [ ]         STREAM     CONNECTED     19568    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         DGRAM                    16464
unix  3      [ ]         DGRAM                    15101
unix  3      [ ]         STREAM     CONNECTED     21938
unix  3      [ ]         STREAM     CONNECTED     18937    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     17742
unix  3      [ ]         STREAM     CONNECTED     432735
unix  3      [ ]         STREAM     CONNECTED     19636
unix  3      [ ]         STREAM     CONNECTED     15394    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         DGRAM                    16447
unix  3      [ ]         STREAM     CONNECTED     21950
unix  3      [ ]         DGRAM                    16446
unix  3      [ ]         STREAM     CONNECTED     21947
unix  3      [ ]         STREAM     CONNECTED     21659
unix  3      [ ]         STREAM     CONNECTED     20455    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     21939
unix  3      [ ]         STREAM     CONNECTED     21777    /var/run/dbus/system_                                                                                        bus_socket
unix  2      [ ]         DGRAM                    363457
unix  2      [ ]         DGRAM                    17928
unix  3      [ ]         STREAM     CONNECTED     432736
unix  3      [ ]         STREAM     CONNECTED     21944
unix  3      [ ]         DGRAM                    12931
unix  3      [ ]         STREAM     CONNECTED     21962
unix  3      [ ]         STREAM     CONNECTED     431694   /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     21660
unix  3      [ ]         STREAM     CONNECTED     18907
unix  2      [ ]         DGRAM                    17771
unix  3      [ ]         STREAM     CONNECTED     21945
unix  3      [ ]         STREAM     CONNECTED     20062    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     14729
unix  3      [ ]         STREAM     CONNECTED     19589    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     23387
unix  3      [ ]         STREAM     CONNECTED     364051   /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     16451    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         STREAM     CONNECTED     21941
unix  3      [ ]         STREAM     CONNECTED     21954
unix  2      [ ]         DGRAM                    431905
unix  3      [ ]         STREAM     CONNECTED     19790
unix  3      [ ]         STREAM     CONNECTED     21948
unix  3      [ ]         STREAM     CONNECTED     21776
unix  3      [ ]         STREAM     CONNECTED     21678
unix  3      [ ]         STREAM     CONNECTED     21956
unix  3      [ ]         STREAM     CONNECTED     21679    /var/run/dbus/system_                                                                                        bus_socket
unix  3      [ ]         STREAM     CONNECTED     21936
unix  3      [ ]         STREAM     CONNECTED     19635
unix  3      [ ]         STREAM     CONNECTED     19610    /run/systemd/journal/                                                                                        stdout
unix  2      [ ]         DGRAM                    427255
unix  3      [ ]         STREAM     CONNECTED     21658
unix  3      [ ]         STREAM     CONNECTED     17296    /run/systemd/journal/                                                                                        stdout
unix  3      [ ]         DGRAM                    16461
unix  3      [ ]         STREAM     CONNECTED     21965
unix  3      [ ]         STREAM     CONNECTED     19565
unix  3      [ ]         STREAM     CONNECTED     15741
unix  3      [ ]         STREAM     CONNECTED     20788
alaveteli@ec2-3-249-79-247:~/alaveteli$ service --status-all
 [ + ]  acpid

 [ ? ]  alaveteli
 [ ? ]  alaveteli-alert-tracks
 [ ? ]  alaveteli-send-notifications
 [ + ]  apparmor
 [ + ]  apport
 [ + ]  atd
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  dbus
 [ + ]  ebtables
 [ + ]  grub-common
 [ - ]  hibagent
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  iscsid
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ + ]  lvm2-lvmetad
 [ + ]  lvm2-lvmpolld
 [ + ]  lxcfs
 [ - ]  lxd
 [ - ]  mdadm
 [ - ]  mdadm-waitidle
 [ + ]  memcached
 [ + ]  nginx
 [ - ]  open-iscsi
 [ - ]  open-vm-tools
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  postfix
 [ + ]  postgresql
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ + ]  sysstat
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ - ]  x11-common
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:3000
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:80
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:443
curl: (7) Failed to connect to 127.0.0.1 port 443: Connection refused
alaveteli@ec2-3-249-79-247:~/alaveteli$ netstat -tulpn | grep LISTEN
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN                                                                                              -
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN                                                                                              -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN                                                                                              -
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN                                                                                              -
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN                                                                                              -
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN                                                                                              -
tcp6       0      0 :::22                   :::*                    LISTEN                                                                                              -
tcp6       0      0 :::25                   :::*                    LISTEN                                                                                              -
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:5432
curl: (52) Empty reply from server
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:25
220 ec2-3-249-79-247.eu-west-1.compute.amazonaws.com ESMTP Postfix (Ubuntu)
221 2.7.0 Error: I can break rules, too. Goodbye.
alaveteli@ec2-3-249-79-247:~/alaveteli$ curl 127.0.0.1:11211
curl: (52) Empty reply from server
alaveteli@ec2-3-249-79-247:~/alaveteli$ RAILS_ENV=production bundle exec thin \

> --environment=$RAILS_ENV \
> --user="$USER" \
> --group="$USER" \
> --address=127.0.0.1 \
> --daemonize \
> --servers="$CPUS" \
> --quiet \
> start || true
alaveteli@ec2-3-249-79-247:~/alaveteli$ RAILS_ENV=production bundle exec thin --environment=$RAILS_ENV --user="$USER" --group="$USER" --address=127.0.0.1 --daemonize --servers="$CPUS" --quiet start || true
alaveteli@ec2-3-249-79-247:~/alaveteli$ service --status-all
 [ + ]  acpid

 [ ? ]  alaveteli
 [ ? ]  alaveteli-alert-tracks
 [ ? ]  alaveteli-send-notifications
 [ + ]  apparmor
 [ + ]  apport
 [ + ]  atd
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  dbus
 [ + ]  ebtables
 [ + ]  grub-common
 [ - ]  hibagent
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  iscsid
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ + ]  lvm2-lvmetad
 [ + ]  lvm2-lvmpolld
 [ + ]  lxcfs
 [ - ]  lxd
 [ - ]  mdadm
 [ - ]  mdadm-waitidle
 [ + ]  memcached
 [ + ]  nginx
 [ - ]  open-iscsi
 [ - ]  open-vm-tools
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  postfix
 [ + ]  postgresql
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ + ]  sysstat
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ - ]  x11-common
alaveteli@ec2-3-249-79-247:~/alaveteli$ netstat -tulpn | grep LISTEN
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN      -
tcp6       0      0 :::25                   :::*                    LISTEN      -
alaveteli@ec2-3-249-79-247:~/alaveteli$
  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
Cheers,
Michael Fabunmi 

Michael Fabunmi

unread,
Aug 9, 2021, 2:18:37 AM8/9/21
to alavet...@googlegroups.com
Hi Gareth,
I wonder if anyone else is seeing this issue. I have recently started seeing the following message displayed in the forms input box on the website:-

"This form is not secure. Autofill has been turned off." 

This is despite the fact that the site is on https, and the certificate is still valid. 
The website is on https://fixmyarea4us.org.

The certificate is scheduled to expire next month - September 2021.

Regards,
Michael Fabunmi
07989214228

Graeme Porteous

unread,
Aug 9, 2021, 5:05:41 AM8/9/21
to alavet...@googlegroups.com
Hi, this error normally means the page has some external resource which is loaded via http instead of https.

Hope this helps,

--
Graeme Porteous
gra...@mysociety.org


Michael Fabunmi

unread,
Aug 9, 2021, 6:02:34 AM8/9/21
to alavet...@googlegroups.com
Hi Graeme,
I have attached some screenshots. It looks like the certificate might have automatically rolled over, but has not been properly configured to exclusively be used to redirect all http connections to HTTPS. I will have to look into it. However, if there is a handy link to what needs to be changed, that will really help.

Cheers,
Michael Fabunmi

Capture601.JPG
Capture603.JPG
Capture602.JPG

Graeme Porteous

unread,
Aug 9, 2021, 6:21:35 AM8/9/21
to alavet...@googlegroups.com
If this related to your FixMyStreet installation then I suggest you direct your mail to: https://groups.google.com/a/mysociety.org/g/fixmystreet/

Alaveteli and FixMyStreet are managed by different teams within mySociety.

Best

--
Graeme Porteous
gra...@mysociety.org


John Handelaar

unread,
Aug 9, 2021, 3:57:06 PM8/9/21
to alavet...@googlegroups.com


On Mon 9 Aug 2021, 07:18 Michael Fabunmi, <mfabun...@gmail.com> wrote:
Hi Gareth,
I wonder if anyone else is seeing this issue. I have recently started seeing the following message displayed in the forms input box on the website:-

"This form is not secure. Autofill has been turned off." 

This is despite the fact that the site is on https, and the certificate is still valid. 
The website is on https://fixmyarea4us.org.

That page's forms point to the non-https version of your address, which is the direct cause of your error.

I would guess you have a mistake in your config file.

jh



Reply all
Reply to author
Forward
0 new messages