Skip to content

Instantly share code, notes, and snippets.

@rfilmyer
Created November 12, 2015 03:01
Show Gist options
  • Save rfilmyer/b14ee972530ec2446ba3 to your computer and use it in GitHub Desktop.
Save rfilmyer/b14ee972530ec2446ba3 to your computer and use it in GitHub Desktop.
Logs (round 2) from installing zulip
+ mkdir -p /etc/zulip
+ echo -e '[machine]\npuppet_classes = zulip::voyager\ndeploy_type = voyager'
+ /root/zulip/scripts/zulip-puppet-apply -f
Warning: Could not retrieve fact fqdn
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for roger-virtualbox in environment production in 0.94 seconds
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/nginx.conf]/content: content changed '{md5}a85dcbc5367783f3d42d0b7eab22ea50' to '{md5}b89ac81eb60b5e363f9ecf9683599307'
Notice: /Stage[main]/Zulip::Postgres_common/Exec[disable_logrotate]/returns: executed successfully
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/sites-enabled/default]/ensure: removed
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/zulip-include/]/ensure: created
Notice: /Stage[main]/Zulip::Base/File[/etc/security/limits.conf]/content: content changed '{md5}11c27ba00b7bd6a255f33126f75c5005' to '{md5}0a4777cfe97a43d0f78744f7a731ce9c'
Notice: /Stage[main]/Zulip::Base/File[/etc/security/limits.conf]/mode: mode changed '0644' to '0640'
Notice: /Stage[main]/Zulip::Base/Group[zulip]/ensure: created
Notice: /Stage[main]/Zulip::Base/File[/var/lib/nagios_state/]/ensure: created
Notice: /Stage[main]/Zulip::Base/User[zulip]/ensure: created
Notice: /Stage[main]/Zulip::Base/File[/var/log/zulip]/owner: owner changed 'root' to 'zulip'
Notice: /Stage[main]/Zulip::Base/File[/var/log/zulip]/group: group changed 'root' to 'zulip'
Notice: /Stage[main]/Zulip::Base/File[/var/log/zulip]/mode: mode changed '0755' to '0750'
Notice: /Stage[main]/Zulip::App_frontend/File[/home/zulip/logs]/ensure: created
Notice: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-pyjwt]/Package[python-pyjwt]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-diff-match-patch]/Package[python-diff-match-patch]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::App_frontend/File[/home/zulip/tornado]/ensure: created
Notice: /Stage[main]/Zulip::App_frontend/File[/home/zulip/deployments]/ensure: created
Notice: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-django-pipeline]/Package[python-django-pipeline]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::Base/File[/etc/zulip]/owner: owner changed 'root' to 'zulip'
Notice: /Stage[main]/Zulip::Base/File[/etc/zulip]/group: group changed 'root' to 'zulip'
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/zulip-include/proxy]/ensure: defined content as '{md5}8683dd0113898fe5936de0902c6dbe7c'
Notice: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-ujson]/Package[python-ujson]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::Voyager/File[/etc/cron.d/restart-zulip]/ensure: defined content as '{md5}3a56343b1c9850a778b9b9150e309587'
Notice: /Stage[main]/Zulip::Voyager/File[/home/zulip/prod-static]/ensure: created
Notice: /Stage[main]/Zulip::Voyager/File[/etc/sysctl.d/40-postgresql.conf]/ensure: defined content as '{md5}ca8270c89e9fac9474b84f05319927ad'
Notice: /Stage[main]/Zulip::Voyager/Exec[sysctl_p]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/zulip-include/location-sockjs]/ensure: defined content as '{md5}544722576393dc1c674ac77873e29ddc'
Notice: /Stage[main]/Zulip::Base/File[/var/log/zulip/queue_error]/ensure: created
Notice: /Stage[main]/Apt/File[sources.list]/mode: mode changed '0664' to '0644'
Notice: /Stage[main]/Zulip::Voyager/Apt::Source[zulip]/Apt::Pin[zulip]/File[zulip.pref]/ensure: created
Notice: /Stage[main]/Zulip::Voyager/Apt::Source[zulip]/File[zulip.list]/content: content changed '{md5}4c2f981c373a88a1afe64d0a698aa3f1' to '{md5}fb0486ab82826605dee84cfeb30e0282'
Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Zulip::App_frontend/File[/etc/memcached.conf]/content: content changed '{md5}58c9e04b29e08c2e9b3094794d3ebd0e' to '{md5}560ad9e191ec96e590845b989cdd2266'
Notice: /Stage[main]/Zulip::App_frontend/Service[memcached]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Zulip::Voyager/File[/etc/postgresql/9.3/main/postgresql.conf.template]/ensure: defined content as '{md5}67c3cb1e07c6519d7ba20cbc7a3083af'
Notice: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-sourcemap]/Package[python-sourcemap]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-boto]/Package[python-boto]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::Redis/File[/etc/redis/redis.conf]/content: content changed '{md5}e79ac99a5236e6ab3faf86bdd99affaf' to '{md5}14d695d70f07e9299b4927e5190c62b5'
Notice: /Stage[main]/Zulip::Redis/Service[redis-server]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Zulip::Supervisor/File[/etc/supervisor/supervisord.conf]/content: content changed '{md5}99dc7e8a1178ede9ae9794aaecbca436' to '{md5}4cc59756bf4802c5a0d18575f39a62b6'
Notice: /Stage[main]/Zulip::App_frontend/File[/etc/supervisor/conf.d/zulip.conf]/ensure: defined content as '{md5}b81ca4dac26a50db55766f07a8560136'
Notice: /Stage[main]/Zulip::Voyager/File[/etc/nginx/sites-available/zulip-enterprise]/ensure: defined content as '{md5}e360f803d7b63c853fa466400601c89c'
Notice: /Stage[main]/Zulip::Voyager/File[/etc/nginx/sites-enabled/zulip-enterprise]/ensure: created
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/fastcgi_params]/content: content changed '{md5}b52a930102d29af34efbcbd9e4aa33d7' to '{md5}50288b82d92a2a19936f1a5b55bf17ab'
Notice: /Stage[main]/Zulip::Nginx/File[/etc/nginx/zulip-include/proxy_longpolling]/ensure: defined content as '{md5}e32de15d9e2f10be88c07f26a6228675'
Notice: /Stage[main]/Zulip::App_frontend/File[/etc/nginx/zulip-include/app.d/]/ensure: created
Notice: /Stage[main]/Zulip::App_frontend/File[/etc/nginx/zulip-include/app]/ensure: defined content as '{md5}485b3b6a5f268439635d8abe46c76db6'
Notice: /Stage[main]/Zulip::App_frontend/File[/etc/nginx/zulip-include/upstreams]/ensure: defined content as '{md5}84fcb491b0cf30d21de0b029dc7afc1d'
Notice: /Stage[main]/Zulip::App_frontend/File[/etc/nginx/zulip-include/uploads.types]/ensure: defined content as '{md5}0d51d78a483570dc725581b6918d08ce'
Notice: /Stage[main]/Zulip::Nginx/Service[nginx]/ensure: ensure changed 'stopped' to 'running'
Notice: /Stage[main]/Zulip::Rabbit/File[/etc/cron.d/rabbitmq-queuesize]/ensure: defined content as '{md5}4273ccb225e37b8d04090187122806d1'
Notice: /Stage[main]/Zulip::Rabbit/File[/etc/rabbitmq/rabbitmq.config]/ensure: defined content as '{md5}2dd16948c9f36d8797732cb4c9e43bc8'
Notice: /Stage[main]/Zulip::Rabbit/File[/etc/default/rabbitmq-server]/content: content changed '{md5}7cc5216f193f6be1cb32c45021197b39' to '{md5}d0d028b94fbee9c1f4ff98e109cce3f4'
Notice: /Stage[main]/Zulip::Rabbit/File[/etc/cron.d/rabbitmq-numconsumers]/ensure: defined content as '{md5}dc5158f03148f188b3bc7b7418a4c16a'
Notice: /Stage[main]/Zulip::Rabbit/Exec[epmd]/returns: executed successfully
Notice: /Stage[main]/Zulip::Voyager/Exec[pgtune]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Zulip::Voyager/Exec[pg_ctlcluster 9.3 main restart]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Zulip::Postgres_appdb/File[/usr/share/postgresql/9.3/tsearch_data/zulip_english.stop]/ensure: defined content as '{md5}34e771a8f53b4ae2e8b43affd3f820b2'
Notice: /Stage[main]/Zulip::Postgres_appdb/Zulip::Postgres_appdb::Safepackage[postgresql-9.3-tsearch-extras]/Package[postgresql-9.3-tsearch-extras]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Zulip::Postgres_appdb/File[/etc/sysctl.d/30-postgresql-shm.conf]/ensure: removed
Notice: /Stage[main]/Zulip::Postgres_appdb/File[/usr/local/bin/process_fts_updates]/ensure: defined content as '{md5}fa38c6a75941b37d2290da5a78c0f8a5'
Notice: /Stage[main]/Zulip::Postgres_appdb/File[/etc/supervisor/conf.d/zulip_db.conf]/ensure: defined content as '{md5}96092d7f27d76f48178a53b51f80b0f0'
Notice: /Stage[main]/Zulip::Supervisor/Service[supervisor]: Triggered 'refresh' from 3 events
Notice: Finished catalog run in 91.21 seconds
+ apt-get -y upgrade
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
linux-headers-3.19.0-25 linux-headers-3.19.0-25-generic
linux-image-3.19.0-25-generic linux-image-extra-3.19.0-25-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ '[' -e /etc/init.d/nginx ']'
+ service nginx restart
* Restarting nginx nginx
...fail!
+ /root/zulip/scripts/setup/generate_secrets.py
Generated Camo config file /etc/default/camo
Generated /etc/zulip/zulip-secrets.conf with auto-generated secrets!
+ cp -a /root/zulip/zproject/local_settings_template.py /etc/zulip/settings.py
+ ln -nsf /etc/zulip/settings.py /root/zulip/zproject/local_settings.py
+ rabbitmqctl status
+ /root/zulip/scripts/setup/configure-rabbitmq
+ dirname /root/zulip/scripts/setup/configure-rabbitmq
+ /root/zulip/scripts/setup/../../bin/get-django-setting RABBITMQ_PASSWORD
+ RMQPW=b4801f65e1387962c595790728ee1bcf509b419c23ffb478aa7fe8b8e4c71c8f
+ sudo rabbitmqctl delete_user zulip
Deleting user "zulip" ...
Error: no_such_user: zulip
+ true
+ sudo rabbitmqctl delete_user guest
Deleting user "guest" ...
...done.
+ sudo rabbitmqctl add_user zulip b4801f65e1387962c595790728ee1bcf509b419c23ffb478aa7fe8b8e4c71c8f
Creating user "zulip" ...
...done.
+ sudo rabbitmqctl set_user_tags zulip administrator
Setting tags for user "zulip" to [administrator] ...
...done.
+ sudo rabbitmqctl set_permissions -p / zulip .* .* .*
Setting permissions for user "zulip" in vhost "/" ...
...done.
+ /root/zulip/scripts/setup/postgres-init-db
+ cd /
+ su postgres -c psql
CREATE ROLE
ALTER ROLE
NOTICE: database "zulip" does not exist, skipping
DROP DATABASE
CREATE DATABASE
+ su postgres -c psql zulip
CREATE SCHEMA
CREATE EXTENSION
+ dirname /root/zulip/scripts/setup/postgres-init-db
+ sh /root/zulip/scripts/setup/flush-memcached
OK
+ echo Database created
Database created
++ /root/zulip/zulip_tools.py make_deploy_path
+ deploy_path=/home/zulip/deployments/2015-11-11-18-57-53
+ mv /root/zulip /home/zulip/deployments/2015-11-11-18-57-53
+ ln -nsf /home/zulip/deployments/next /root/zulip
+ ln -nsf /home/zulip/deployments/2015-11-11-18-57-53 /home/zulip/deployments/next
+ ln -nsf /home/zulip/deployments/2015-11-11-18-57-53 /home/zulip/deployments/current
+ ln -nsf /etc/zulip/settings.py /home/zulip/deployments/2015-11-11-18-57-53/zproject/local_settings.py
+ cp -rT /home/zulip/deployments/2015-11-11-18-57-53/prod-static/serve /home/zulip/prod-static
+ chown -R zulip:zulip /home/zulip /var/log/zulip /etc/zulip/settings.py
+ chown zulip:zulip /var/run/supervisor.sock
+ cd /home/zulip/deployments/current
+ set +x
Installation complete!
Now edit /etc/zulip/settings.py and fill in the mandatory values.
Once you've done that, please run:
su zulip -c /home/zulip/deployments/current/scripts/setup/initialize-database
To configure the initial database.
total create filename
247 247 /root/zulip/zerver/lib/
72 72 /usr/lib/python2.7/dist-packages/boto.dpkg-new/
60 60 /root/zulip/zerver/
38 38 /root/zulip/confirmation/
35 35 /root/zulip/zerver/management/commands/
26 26 /root/zulip/zerver/worker/
23 23 /usr/lib/python2.7/dist-packages/pipeline.dpkg-new/
20 20 /root/zulip/zerver/lib/bugdown/
15 15 /root/zulip/zerver/management/
14 14 /usr/share/pyshared/pipeline.dpkg-new/
13 13 /etc/nginx/zulip-include/
10 10 /usr/lib/python2.7/dist-packages/
8 8 /usr/lib/python2.7/dist-packages/sourcemap.dpkg-new/
6 6 /etc/cron.d/
6 6 /usr/lib/python2.7/
6 6 /usr/share/doc/
6 6 /root/zulip/zproject/
6 6 /usr/lib/python2.7/dist-packages/diff_match_patch.dpkg-new/
5 5 /usr/lib/python2.7/dist-packages/django_pipeline-1.2.2.1.egg-info.dpkg-new/
5 5 /usr/share/pyshared/django_pipeline-1.2.2.1.egg-info.dpkg-new/
5 5 /usr/lib/python2.7/dist-packages/sourcemap-0.1.7.egg-info.dpkg-new/
4 4 /etc/supervisor/conf.d/
4 4 /usr/share/postgresql/9.3/tsearch_data/
4 4 /usr/lib/python2.7/dist-packages/diff_match_patch-20120106.egg-info.dpkg-new/
4 4 /usr/share/doc/python-boto.dpkg-new/
3 3 /usr/lib/python2.7/ctypes/
3 3 /usr/share/doc/python-django-pipeline.dpkg-new/
3 3 /usr/share/doc/python-ujson.dpkg-new/
3 3 /usr/share/doc/postgresql-9.3-tsearch-extras.dpkg-new/
2 2 /etc/sysctl.d/
2 2 /etc/redis/
2 2 /etc/default/
2 2 /etc/supervisor/
2 2 /etc/rabbitmq/
2 2 /etc/zulip/
2 2 /etc/postgresql/9.3/main/
2 2 /etc/apt/preferences.d/
2 2 /etc/apt/sources.list.d/
2 2 /etc/nginx/sites-available/
2 2 /etc/nginx/
2 2 /etc/
2 2 /usr/local/bin/
2 2 /usr/share/pyshared/
2 2 /usr/share/postgresql/9.3/extension/
2 2 /usr/share/doc/python-diff-match-patch.dpkg-new/
2 2 /usr/share/doc/python-sourcemap.dpkg-new/
1 1 /etc/nginx/sites-enabled/
1 1 /usr/lib/postgresql/9.3/lib/
1 1 /usr/lib/python2.7/dist-packages/jwt/
1 1 /root/zulip/
1 1 /root/
1 0 /etc/nginx/zulip-include/proxy20151111-912-18zbzd4.lock/
1 0 /etc/sysctl.d/40-postgresql.conf20151111-912-1gi1lg3.lock/
1 0 /etc/nginx/zulip-include/location-sockjs20151111-912-1wa6djc.lock/
1 0 /etc/apt/preferences.d/zulip.pref20151111-912-5mvmm6.lock/
1 0 /etc/apt/sources.list.d/zulip.list20151111-912-7wpe80.lock/
1 0 /etc/memcached.conf20151111-912-1m3959d.lock/
1 0 /etc/postgresql/9.3/main/postgresql.conf.template20151111-912-1wwni8l.lock/
1 0 /etc/redis/redis.conf20151111-912-ucadmd.lock/
1 0 /etc/supervisor/supervisord.conf20151111-912-gwp5g2.lock/
1 0 /etc/supervisor/conf.d/zulip.conf20151111-912-1ey1s5q.lock/
1 0 /etc/nginx/sites-available/zulip-enterprise20151111-912-2gfk43.lock/
1 0 /etc/nginx/fastcgi_params20151111-912-1vvmabm.lock/
1 0 /etc/nginx/zulip-include/proxy_longpolling20151111-912-9r4syi.lock/
1 0 /etc/nginx/zulip-include/app20151111-912-1h8h5sl.lock/
1 0 /etc/nginx/zulip-include/upstreams20151111-912-qx39dp.lock/
1 0 /etc/nginx/zulip-include/uploads.types20151111-912-invlc2.lock/
1 0 /etc/cron.d/rabbitmq-queuesize20151111-912-1d4ess2.lock/
1 0 /etc/rabbitmq/rabbitmq.config20151111-912-dhsyxe.lock/
1 0 /etc/default/rabbitmq-server20151111-912-1w9gubw.lock/
1 0 /etc/cron.d/rabbitmq-numconsumers20151111-912-14kuqmc.lock/
1 0 /usr/share/postgresql/9.3/tsearch_data/zulip_english.stop20151111-912-srall.lock/
1 0 /usr/local/bin/process_fts_updates20151111-912-1r9ghs9.lock/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment