Advertisement
palx

Alavateli VPS install-sh console output

Aug 19th, 2021 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.22 KB | None | 0 0
  1. # output in the console after running:
  2. # sudo sh install-site.sh alaveteli alaveteli-usr alaveteli.myfoia.org >> install-sh.log
  3. # * see install-sh.log here: https://pastebin.com/V2kM7Ycr
  4. # on Ubuntu 18.04
  5.  
  6. ubuntu@vps-xxxx:~$ pwd
  7. /home/ubuntu
  8. ubuntu@vps-xxxx:~$ mkdir ISLI
  9. ubuntu@vps-xxxx:~$ cd ISLI/
  10. ubuntu@vps-xxxx:~/ISLI$ curl -O https://raw.githubusercontent.com/mysociety/commonlib/master/bin/install-site.sh
  11.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
  12.                                  Dload  Upload   Total   Spent    Left  Speed
  13. 100 21663  100 21663    0     0   100k      0 --:--:-- --:--:-- --:--:--  100k
  14. ubuntu@vps-xxxx:~/ISLI$ sudo sh install-site.sh alaveteli alaveteli-usr alaveteli.myfoia.org >> install.log
  15. Cloning into '/var/www/alaveteli.myfoia.org/alaveteli'...
  16. remote: Enumerating objects: 172576, done.
  17. remote: Counting objects: 100% (5613/5613), done.
  18. remote: Compressing objects: 100% (2273/2273), done.
  19. remote: Total 172576 (delta 3177), reused 4900 (delta 2844), pack-reused 166963
  20. Receiving objects: 100% (172576/172576), 130.74 MiB | 12.79 MiB/s, done.
  21. Resolving deltas: 100% (117288/117288), done.
  22. Submodule 'commonlib' (git://git.mysociety.org/commonlib) registered for path 'commonlib'
  23. Cloning into '/var/www/alaveteli.myfoia.org/alaveteli/commonlib'...
  24. remote: Counting objects: 7860, done.
  25. remote: Compressing objects: 100% (4557/4557), done.
  26. remote: Total 7860 (delta 5063), reused 4983 (delta 3197)
  27. Receiving objects: 100% (7860/7860), 2.08 MiB | 8.96 MiB/s, done.
  28. Resolving deltas: 100% (5063/5063), done.
  29. Warning: apt-key output should not be parsed (stdout is not a terminal)
  30. postfix/postfix-script: refreshing the Postfix mail system
  31. Extract templates from packages: 100%
  32. + '[' 5 -ne 5 ']'
  33. + UNIX_USER=alaveteli-usr
  34. + HOST=alaveteli.myfoia.org
  35. + DIRECTORY=/var/www/alaveteli.myfoia.org
  36. + RUBY_VERSION=2.5.8
  37. + USE_RBENV=true
  38. + DB_NAME=alaveteli
  39. ++ dig +short alaveteli.myfoia.org
  40. + IP_ADDRESS_FOR_HOST=135.125.190.31
  41. + '[' x = x135.125.190.31 ']'
  42. + id alaveteli-usr
  43. ++ whoami
  44. + '[' alaveteli-usr '!=' alaveteli-usr ']'
  45. + REPOSITORY=/var/www/alaveteli.myfoia.org/alaveteli
  46. + LINK_DESTINATION=/home/alaveteli-usr/alaveteli
  47. + ln -sfn /var/www/alaveteli.myfoia.org/alaveteli /home/alaveteli-usr/alaveteli
  48. + cd /var/www/alaveteli.myfoia.org/alaveteli
  49. + BASHRC=/home/alaveteli-usr/.bashrc
  50. + BASHRC_GEM_COMMENT='Set up local gem directory for Alaveteli'
  51. + BASHRC_START='# START Set up local gem directory for Alaveteli'
  52. + BASHRC_END='# END Set up local gem directory for Alaveteli'
  53. + sed -ibackup '/# START Set up local gem directory for Alaveteli/,/# END Set up local gem directory for Alaveteli/d' /home/alaveteli-usr/.bashrc
  54. ++ mktemp /home/alaveteli-usr/.bashrc.XXXXXXX
  55. + TMP_BASHRC=/home/alaveteli-usr/.bashrc.PRGdxKb
  56. + '[' true = true ']'
  57. + RBENV=/home/alaveteli-usr/.rbenv
  58. + '[' -d /home/alaveteli-usr/.rbenv ']'
  59. + echo 'Install rbenv & ruby-build'
  60. + git clone https://github.com/rbenv/rbenv.git /home/alaveteli-usr/.rbenv
  61. Cloning into '/home/alaveteli-usr/.rbenv'...
  62. remote: Enumerating objects: 2946, done.
  63. remote: Counting objects: 100% (50/50), done.
  64. remote: Compressing objects: 100% (39/39), done.
  65. remote: Total 2946 (delta 22), reused 22 (delta 11), pack-reused 2896
  66. Receiving objects: 100% (2946/2946), 589.89 KiB | 6.48 MiB/s, done.
  67. Resolving deltas: 100% (1831/1831), done.
  68. + cd /home/alaveteli-usr/.rbenv
  69. + src/configure
  70. + make -C src
  71. + mkdir -p /home/alaveteli-usr/.rbenv/plugins
  72. + git clone https://github.com/rbenv/ruby-build.git /home/alaveteli-usr/.rbenv/plugins/ruby-build
  73. Cloning into '/home/alaveteli-usr/.rbenv/plugins/ruby-build'...
  74. remote: Enumerating objects: 11732, done.
  75. remote: Counting objects: 100% (425/425), done.
  76. remote: Compressing objects: 100% (149/149), done.
  77. remote: Total 11732 (delta 275), reused 369 (delta 246), pack-reused 11307
  78. Receiving objects: 100% (11732/11732), 2.47 MiB | 1.24 MiB/s, done.
  79. Resolving deltas: 100% (7742/7742), done.
  80. + cd /var/www/alaveteli.myfoia.org/alaveteli
  81. + cat
  82. + cat /home/alaveteli-usr/.bashrc
  83. + mv /home/alaveteli-usr/.bashrc.PRGdxKb /home/alaveteli-usr/.bashrc
  84. + source /home/alaveteli-usr/.bashrc
  85. ++ export PATH=/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  86. ++ PATH=/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  87. +++ rbenv init -
  88. ++ eval 'export PATH="/home/alaveteli-usr/.rbenv/shims:${PATH}"
  89. export RBENV_SHELL=bash
  90. source '\''/home/alaveteli-usr/.rbenv/libexec/../completions/rbenv.bash'\''
  91. command rbenv rehash 2>/dev/null
  92. rbenv() {
  93.  local command
  94.  command="${1:-}"
  95.  if [ "$#" -gt 0 ]; then
  96.    shift
  97.  fi
  98.  
  99.  case "$command" in
  100.  rehash|shell)
  101.    eval "$(rbenv "sh-$command" "$@")";;
  102.  *)
  103.    command rbenv "$command" "$@";;
  104.  esac
  105. }'
  106. +++ export PATH=/home/alaveteli-usr/.rbenv/shims:/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  107. +++ PATH=/home/alaveteli-usr/.rbenv/shims:/home/alaveteli-usr/.rbenv/bin:/home/alaveteli-usr/.gem/ruby/2.5.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  108. +++ export RBENV_SHELL=bash
  109. +++ RBENV_SHELL=bash
  110. +++ source /home/alaveteli-usr/.rbenv/libexec/../completions/rbenv.bash
  111. ++++ complete -F _rbenv rbenv
  112. +++ command rbenv rehash
  113. ++ case $- in
  114. ++ return
  115. + '[' true = true ']'
  116. + echo 'Installing Ruby 2.5.8'
  117. + rbenv install -s 2.5.8
  118. + local command
  119. + command=install
  120. + '[' 3 -gt 0 ']'
  121. + shift
  122. + case "$command" in
  123. + command rbenv install -s 2.5.8
  124. + rbenv install -s 2.5.8
  125. Downloading ruby-2.5.8.tar.bz2...
  126. -> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.8.tar.bz2
  127. Installing ruby-2.5.8...
  128.  
  129. WARNING: ruby-2.5.8 is past its end of life and is now unsupported.
  130. It no longer receives bug fixes or critical security updates.
  131.  
  132. Installed ruby-2.5.8 to /home/alaveteli-usr/.rbenv/versions/2.5.8
  133.  
  134. + rbenv global 2.5.8
  135. + local command
  136. + command=global
  137. + '[' 2 -gt 0 ']'
  138. + shift
  139. + case "$command" in
  140. + command rbenv global 2.5.8
  141. + rbenv global 2.5.8
  142. + gem install bundler
  143. + echo 'gem: --no-ri --no-rdoc'
  144. ++ random_alphanumerics 32
  145. ++ head -c32
  146. ++ tr -dc A-Za-z0-9
  147. + RANDOM_EMAIL_SECRET=xxxx
  148. ++ random_alphanumerics 10
  149. ++ head -c10
  150. ++ tr -dc A-Za-z0-9
  151. + RANDOM_EMERGENCY_PASSWORD=xxxx
  152. ++ random_alphanumerics 100
  153. ++ head -c100
  154. ++ tr -dc A-Za-z0-9
  155. + RANDOM_COOKIE_SECRET=xxxx
  156. + '[' -f config/general.yml ']'
  157. + sed -r -e 's,^( *DOMAIN:).*,\1 '\''alaveteli.myfoia.org'\'',' -e 's,^( *FORCE_SSL:).*,\1 false,' -e 's,^( *TIME_ZONE:).*,\1 '\''Europe/London'\'',' -e 's,^( *BLOG_FEED:).*,\1 '\'''\'',' -e 's,^( *TWITTER_USERNAME:).*,\1 '\'''\'',' -e 's,^( *INCLUDE_DEFAULT_LOCALE_IN_URLS:).*,\1 false,' -e 's,^( *INCOMING_EMAIL_DOMAIN:).*,\1 '\''alaveteli.myfoia.org'\'',' -e 's,^( *INCOMING_EMAIL_PREFIX:).*,\1 '\''foi+'\'',' -e 's,^( *INCOMING_EMAIL_SECRET:).*,\1 '\''Zchklb19m2RPo2X13j6NLn9nEzIrNlNc'\'',' -e 's,^( *ADMIN_USERNAME:).*,\1 '\''emergency'\'',' -e 's,^( *ADMIN_PASSWORD:).*,\1 '\''aJvL7IUbNG'\'',' -e 's,^( *CONTACT_EMAIL:).*,\1 '\''postmaster@alaveteli.myfoia.org'\'',' -e 's,^( *TRACK_SENDER_EMAIL:).*,\1 '\''postmaster@alaveteli.myfoia.org'\'',' -e 's,^( *SECRET_KEY_BASE:).*,\1 '\''xxxx'\'',' -e 's,^( *FORWARD_NONBOUNCE_RESPONSES_TO:).*,\1 '\''user-support@alaveteli.myfoia.org'\'',' -e 's,^( *HTML_TO_PDF_COMMAND:).*,\1 '\''/usr/local/bin/wkhtmltopdf'\'',' -e 's,^( *EXCEPTION_NOTIFICATIONS_FROM:).*,\1 '\''do-not-reply-to-this-address@alaveteli.myfoia.org'\'',' -e '/EXCEPTION_NOTIFICATIONS_TO:/,/^$/c EXCEPTION_NOTIFICATIONS_TO:\n - team@alaveteli.myfoia.org\n' -e 's,^( *MTA_LOG_PATH:).*,\1 '\''/var/log/mail/mail.log-*'\'',' -e 's,^( *MTA_LOG_TYPE:).*,\1 '\''postfix'\'',' -e 's,^( *DONATION_URL:).*,\1 null,' -e 's,^( *THEME_BRANCH:).*,\1 '\''develop'\'',' -e 's,^( *USE_MAILCATCHER_IN_DEVELOPMENT:).*,\1 false,' -e 's,^( *BUNDLE_PATH:).*,\1 /home/alaveteli-usr/bundle/,' -e 's,^( *POP_MAILER_USER_NAME:).*,\1 '\''alaveteli-incoming'\'',' -e 's,^( *POP_MAILER_PASSWORD:).*,\1 '\''alaveteli-incoming'\'',' -e 's,^( *POP_MAILER_PORT:).*,\1 '\''110'\'',' -e 's,^( *POP_MAILER_ENABLE_SSL:).*,\1 false,' config/general.yml-example
  158. + sed -r -e 's,^( *database: *)foi_(.*),\1alaveteli_\2,' -e 's,^( *username: *).*,\1alaveteli-usr,' -e 's,^( *password: *).*,\1null,' -e 's,^( *host: *).*,\1/var/run/postgresql/,' -e 's,# constraint_disabling: false,  constraint_disabling: false,' config/database.yml-example
  159. + for SUFFIX in production test development
  160. + REAL_DB_NAME=alaveteli_production
  161. + echo Creating the database alaveteli_production
  162. + egrep '^ *alaveteli_production *\|'
  163. + psql -l
  164. + createdb -T template_utf8 --owner alaveteli-usr alaveteli_production
  165. + for SUFFIX in production test development
  166. + REAL_DB_NAME=alaveteli_test
  167. + echo Creating the database alaveteli_test
  168. + egrep '^ *alaveteli_test *\|'
  169. + psql -l
  170. + createdb -T template_utf8 --owner alaveteli-usr alaveteli_test
  171. + for SUFFIX in production test development
  172. + REAL_DB_NAME=alaveteli_development
  173. + echo Creating the database alaveteli_development
  174. + egrep '^ *alaveteli_development *\|'
  175. + psql -l
  176. + createdb -T template_utf8 --owner alaveteli-usr alaveteli_development
  177. + echo Running rails-post-deploy
  178. + script/rails-post-deploy
  179. [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path '/home/alaveteli-usr/bundle/'`, and stop using this flag
  180. Cloning into '/var/www/alaveteli.myfoia.org/alaveteli/lib/themes/alavetelitheme'...
  181. remote: Enumerating objects: 1782, done.
  182. remote: Counting objects: 100% (25/25), done.
  183. remote: Compressing objects: 100% (15/15), done.
  184. remote: Total 1782 (delta 8), reused 22 (delta 8), pack-reused 1757
  185. Receiving objects: 100% (1782/1782), 631.65 KiB | 344.00 KiB/s, done.
  186. Resolving deltas: 100% (655/655), done.
  187. Note: checking out 'origin/develop'.
  188.  
  189. You are in 'detached HEAD' state. You can look around, make experimental
  190. changes and commit them, and you can discard any commits you make in this
  191. state without impacting any branches by performing another checkout.
  192.  
  193. If you want to create a new branch to retain commits you create, you may
  194. do so (now or later) by using -b with the checkout command again. Example:
  195.  
  196.   git checkout -b <new-branch-name>
  197.  
  198. HEAD is now at 9280b94 Merge branch 'master' into develop
  199. + LOADED_INDICATOR=/home/alaveteli-usr/.alaveteli-sample-data-loaded
  200. + '[' '!' -f /home/alaveteli-usr/.alaveteli-sample-data-loaded ']'
  201. + echo Running load-sample-data
  202. + bundle exec script/load-sample-data
  203. + echo Running destroy-and-rebuild-xapian-index
  204. + script/destroy-and-rebuild-xapian-index
  205. + touch /home/alaveteli-usr/.alaveteli-sample-data-loaded
  206. alaveteli-alert-tracks.service is not a native service, redirecting to systemd-sysv-install.
  207. Executing: /lib/systemd/systemd-sysv-install enable alaveteli-alert-tracks
  208. alaveteli-send-notifications.service is not a native service, redirecting to systemd-sysv-install.
  209. Executing: /lib/systemd/systemd-sysv-install enable alaveteli-send-notifications
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement