zulip / docker-zulip

Container configurations, images, and examples for Zulip.
https://zulip.com/
Apache License 2.0
586 stars 244 forks source link

Zulip first start database initi failed in "initialize-database" exit code 1. #95

Closed AnicetR closed 6 years ago

AnicetR commented 6 years ago

Hello !

I've some trouble to run the container. Pgsql seems to not configure itself.

Here is the stacktrace :

Creating dockerzulip1710_redis_1     ... done
Creating dockerzulip1710_zulip_1     ... done
Creating dockerzulip1710_memcached_1 ... done
Creating dockerzulip1710_rabbitmq_1  ... done
Creating dockerzulip1710_database_1  ... done
Attaching to dockerzulip1710_redis_1, dockerzulip1710_rabbitmq_1, dockerzulip1710_memcached_1, dockerzulip1710_database_1, dockerzulip1710_zulip_1
redis_1      | Starting redis-server...
redis_1      |                 _._
redis_1      |            _.-``__ ''-._
redis_1      |       _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
redis_1      |   .-`` .-```.  ```\/    _.,_ ''-._
redis_1      |  (    '      ,       .-`  | `,    )     Running in standalone mode
redis_1      |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1      |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1      |   `-._    `-._  `-./  _.-'    _.-'
redis_1      |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1      |  |    `-._`-._        _.-'_.-'    |           http://redis.io
redis_1      |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1      |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1      |  |    `-._`-._        _.-'_.-'    |
redis_1      |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1      |       `-._    `-.__.-'    _.-'
redis_1      |           `-._        _.-'
redis_1      |               `-.__.-'
redis_1      |
redis_1      | 1:M 04 Mar 14:48:40.929 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1      | 1:M 04 Mar 14:48:40.929 # Server started, Redis version 3.0.6
redis_1      | 1:M 04 Mar 14:48:40.929 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1      | 1:M 04 Mar 14:48:40.929 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
database_1   | LOG:  database system was interrupted; last known up at 2018-03-04 14:41:36 UTC
zulip_1      | === Begin Initial Configuration Phase ===
zulip_1      | Preparing and linking the uploads folder ...
redis_1      | 1:M 04 Mar 14:48:40.929 * DB loaded from disk: 0.000 seconds
redis_1      | 1:M 04 Mar 14:48:40.929 * The server is now ready to accept connections on port 6379
redis_1      | 1:M 04 Mar 14:48:40.929 * The server is now ready to accept connections at /var/run/redis/redis.sock
zulip_1      | Prepared and linked the uploads directory.
zulip_1      | Executing nginx configuration ...
zulip_1      | Nginx configuration succeeded.
zulip_1      | Exectuing certificates configuration...
zulip_1      | Certificates configuration succeeded.
zulip_1      | Setting database configuration ...
zulip_1      | Setting key "DATABASES", type "array" in file "/home/zulip/deployments/current/zproject/settings.py".
zulip_1      | Setting key "REMOTE_POSTGRES_HOST", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "REMOTE_POSTGRES_SSLMODE", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Database configuration succeeded.
zulip_1      | Setting Zulip secrets ...
zulip_1      | Secrets already generated/existing.
zulip_1      | Secret found for "rabbitmq_password".
zulip_1      | Secret found for "email_password".
zulip_1      | Secret found for "secret_key".
zulip_1      | Linking secrets from data dir to etc zulip  ...
zulip_1      | Linked existing secrets from data dir to etc zulip.
zulip_1      | Zulip secrets configuration succeeded.
zulip_1      | Activating authentication backends ...
zulip_1      | Setting key "AUTHENTICATION_BACKENDS", type "array" in file "/etc/zulip/settings.py".
zulip_1      | Adding authentication backend "EmailAuthBackend".
zulip_1      | Authentication backend activation succeeded.
zulip_1      | Executing Zulip configuration ...
zulip_1      | Setting key "EXTERNAL_HOST", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "EMAIL_HOST", type "string" in file "/home/zulip/deployments/current/zproject/settings.py".
zulip_1      | Setting key "ALLOWED_HOSTS", type "array" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "NOREPLY_EMAIL_ADDRESS", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "ZULIP_ADMINISTRATOR", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "REDIS_HOST", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "RABBITMQ_HOST", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "EMAIL_HOST_USER", type "string" in file "/home/zulip/deployments/current/zproject/settings.py".
zulip_1      | Setting key "DEFAULT_FROM_EMAIL", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "MEMCACHED_LOCATION", type "string" in file "/etc/zulip/settings.py".
database_1   | LOG:  database system was not properly shut down; automatic recovery in progress
zulip_1      | Setting key "EMAIL_USE_SSL", type "bool" in file "/home/zulip/deployments/current/zproject/settings.py".
database_1   | LOG:  redo starts at 0/1A27FD8
zulip_1      | Setting key "ADMIN_DOMAIN", type "string" in file "/etc/zulip/settings.py".
zulip_1      | Setting key "EMAIL_USE_TLS", type "bool" in file "/home/zulip/deployments/current/zproject/settings.py".
zulip_1      | Setting key "EMAIL_PORT", type "integer" in file "/home/zulip/deployments/current/zproject/settings.py".
database_1   | LOG:  invalid record length at 0/1AD4410
database_1   | LOG:  redo done at 0/1AD3F30
database_1   | LOG:  last completed transaction was at log time 2018-03-04 14:42:12.008336+00
database_1   | LOG:  MultiXact member wraparound protections are now enabled
database_1   | LOG:  autovacuum launcher started
database_1   | LOG:  database system is ready to accept connections
rabbitmq_1   |
rabbitmq_1   |               RabbitMQ 3.5.5. Copyright (C) 2007-2015 Pivotal Software, Inc.
rabbitmq_1   |   ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
rabbitmq_1   |   ##  ##
rabbitmq_1   |   ##########  Logs: tty
rabbitmq_1   |   ######  ##        tty
rabbitmq_1   |   ##########
rabbitmq_1   |               Starting broker...
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:42 ===
rabbitmq_1   | Starting RabbitMQ 3.5.5 on Erlang 18.1
rabbitmq_1   | Copyright (C) 2007-2015 Pivotal Software, Inc.
rabbitmq_1   | Licensed under the MPL.  See http://www.rabbitmq.com/
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:42 ===
rabbitmq_1   | node           : rabbit@zulip-rabbit
rabbitmq_1   | home dir       : /var/lib/rabbitmq
rabbitmq_1   | config file(s) : /etc/rabbitmq/rabbitmq.config
rabbitmq_1   | cookie hash    : xRNrAsI6/766aFZnYVHPew==
rabbitmq_1   | log            : tty
rabbitmq_1   | sasl log       : tty
rabbitmq_1   | database dir   : /var/lib/rabbitmq/mnesia/rabbit@zulip-rabbit
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Memory limit set to 4741MB of 11854MB total.
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Disk free limit set to 50MB
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Limiting to approx 65436 file handles (58890 sockets)
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | FHC read buffering:  ON
rabbitmq_1   | FHC write buffering: ON
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   |     application: mnesia
rabbitmq_1   |     exited: stopped
rabbitmq_1   |     type: temporary
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Priority queues enabled, real BQ is rabbit_variable_queue
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Adding vhost '/'
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Creating user 'jdcchat'
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Setting user tags for user 'jdcchat' to [administrator]
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Setting permissions for 'jdcchat' in '/' to '.*', '.*', '.*'
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | msg_store_transient: using rabbit_msg_store_ets_index to provide index
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | msg_store_persistent: using rabbit_msg_store_ets_index to provide index
rabbitmq_1   |
rabbitmq_1   | =WARNING REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | msg_store_persistent: rebuilding indices from scratch
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | started TCP Listener on [::]:5672
rabbitmq_1   |  completed with 0 plugins.
rabbitmq_1   |
rabbitmq_1   | =INFO REPORT==== 4-Mar-2018::14:48:43 ===
rabbitmq_1   | Server startup complete; 0 plugins started.
zulip_1      | Zulip configuration succeeded.
zulip_1      | Auto backup enabled.
zulip_1      | === End Initial Configuration Phase ===
zulip_1      | === Begin Bootstrap Phase ===
zulip_1      | Waiting for database server to allow connections ...
database_1   | FATAL:  database "jdcchat" does not exist
zulip_1      | (Re)creating database structure ...
zulip_1      | Setting up the database, schema and user ...
database_1   | FATAL:  database "jdcchat" does not exist
zulip_1      | psql: FATAL:  database "jdcchat" does not exist
zulip_1      | Creating tsearch_extras extension ...
database_1   | FATAL:  password authentication failed for user "postgres"
database_1   | DETAIL:  User "postgres" has no password assigned.
database_1   |  Connection matched pg_hba.conf line 95: "host all all all md5"
zulip_1      | psql: FATAL:  password authentication failed for user "postgres"
zulip_1      | Database structure recreated.
zulip_1      | Bootstrapping RabbitMQ ...
zulip_1      | +++ dirname /root/zulip/scripts/setup/configure-rabbitmq
zulip_1      | ++ /root/zulip/scripts/setup/../get-django-setting RABBITMQ_HOST
zulip_1      | + RABBITMQ_HOST=rabbitmq
zulip_1      | +++ dirname /root/zulip/scripts/setup/configure-rabbitmq
zulip_1      | ++ /root/zulip/scripts/setup/../get-django-setting RABBITMQ_USERNAME
zulip_1      | + RABBITMQ_USERNAME=zulip
zulip_1      | +++ dirname /root/zulip/scripts/setup/configure-rabbitmq
zulip_1      | ++ /root/zulip/scripts/setup/../get-django-setting RABBITMQ_PASSWORD
zulip_1      | + RABBITMQ_PASSWORD=kujgsqd@maad476543@ad
zulip_1      | + sudo rabbitmqctl -n rabbitmq delete_user zulip
zulip_1      | Error: unable to connect to node rabbitmq@526c3f0bf9da: nodedown
zulip_1      |
zulip_1      | DIAGNOSTICS
zulip_1      | ===========
zulip_1      |
zulip_1      | attempted to contact: [rabbitmq@526c3f0bf9da]
zulip_1      |
zulip_1      | rabbitmq@526c3f0bf9da:
zulip_1      |   * connected to epmd (port 4369) on 526c3f0bf9da
zulip_1      |   * epmd reports: node 'rabbitmq' not running at all
zulip_1      |                   no other nodes on 526c3f0bf9da
zulip_1      |   * suggestion: start the node
zulip_1      |
zulip_1      | current node details:
zulip_1      | - node name: 'rabbitmq-cli-112@526c3f0bf9da'
zulip_1      | - home dir: /var/lib/rabbitmq
zulip_1      | - cookie hash: booMIiFB1gpbrRkpNpXbJw==
zulip_1      |
zulip_1      | + true
zulip_1      | + sudo rabbitmqctl -n rabbitmq delete_user zulip
zulip_1      | Error: unable to connect to node rabbitmq@526c3f0bf9da: nodedown
zulip_1      |
zulip_1      | DIAGNOSTICS
zulip_1      | ===========
zulip_1      |
zulip_1      | attempted to contact: [rabbitmq@526c3f0bf9da]
zulip_1      |
zulip_1      | rabbitmq@526c3f0bf9da:
zulip_1      |   * connected to epmd (port 4369) on 526c3f0bf9da
zulip_1      |   * epmd reports: node 'rabbitmq' not running at all
zulip_1      |                   no other nodes on 526c3f0bf9da
zulip_1      |   * suggestion: start the node
zulip_1      |
zulip_1      | current node details:
zulip_1      | - node name: 'rabbitmq-cli-200@526c3f0bf9da'
zulip_1      | - home dir: /var/lib/rabbitmq
zulip_1      | - cookie hash: booMIiFB1gpbrRkpNpXbJw==
zulip_1      |
zulip_1      | + true
zulip_1      | + sudo rabbitmqctl -n rabbitmq delete_user guest
zulip_1      | Error: unable to connect to node rabbitmq@526c3f0bf9da: nodedown
zulip_1      |
zulip_1      | DIAGNOSTICS
zulip_1      | ===========
zulip_1      |
zulip_1      | attempted to contact: [rabbitmq@526c3f0bf9da]
zulip_1      |
zulip_1      | rabbitmq@526c3f0bf9da:
zulip_1      |   * connected to epmd (port 4369) on 526c3f0bf9da
zulip_1      |   * epmd reports: node 'rabbitmq' not running at all
zulip_1      |                   no other nodes on 526c3f0bf9da
zulip_1      |   * suggestion: start the node
zulip_1      |
zulip_1      | current node details:
zulip_1      | - node name: 'rabbitmq-cli-289@526c3f0bf9da'
zulip_1      | - home dir: /var/lib/rabbitmq
zulip_1      | - cookie hash: booMIiFB1gpbrRkpNpXbJw==
zulip_1      |
zulip_1      | + true
zulip_1      | + sudo rabbitmqctl -n rabbitmq add_user zulip kujgsqd@maad476543@ad
zulip_1      | Error: unable to connect to node rabbitmq@526c3f0bf9da: nodedown
zulip_1      |
zulip_1      | DIAGNOSTICS
zulip_1      | ===========
zulip_1      |
zulip_1      | attempted to contact: [rabbitmq@526c3f0bf9da]
zulip_1      |
zulip_1      | rabbitmq@526c3f0bf9da:
zulip_1      |   * connected to epmd (port 4369) on 526c3f0bf9da
zulip_1      |   * epmd reports: node 'rabbitmq' not running at all
zulip_1      |                   no other nodes on 526c3f0bf9da
zulip_1      |   * suggestion: start the node
zulip_1      |
zulip_1      | current node details:
zulip_1      | - node name: 'rabbitmq-cli-378@526c3f0bf9da'
zulip_1      | - home dir: /var/lib/rabbitmq
zulip_1      | - cookie hash: booMIiFB1gpbrRkpNpXbJw==
zulip_1      |
zulip_1      | RabbitMQ bootstrap succeeded.
zulip_1      | Executing Zulip first start init ...
zulip_1      | ++ dirname /home/zulip/deployments/current/scripts/setup/initialize-database
zulip_1      | + cd /home/zulip/deployments/current/scripts/setup/../..
zulip_1      | + ./manage.py checkconfig
zulip_1      | + ./manage.py migrate --noinput
zulip_1      | Operations to perform:
zulip_1      |   Apply all migrations: analytics, auth, confirmation, contenttypes, sessions, sites, social_django, zerver
zulip_1      | Running migrations:
database_1   | ERROR:  schema "zulip" does not exist
database_1   | STATEMENT:
database_1   |  CREATE TEXT SEARCH DICTIONARY english_us_hunspell
database_1   |    (template = ispell, DictFile = en_us, AffFile = en_us, StopWords = zulip_english);
database_1   |  CREATE TEXT SEARCH CONFIGURATION zulip.english_us_search (COPY=pg_catalog.english);
database_1   |  ALTER TEXT SEARCH CONFIGURATION zulip.english_us_search
database_1   |    ALTER MAPPING FOR asciiword, asciihword, hword_asciipart, word, hword, hword_part
database_1   |    WITH english_us_hunspell, english_stem;
database_1   |
database_1   |  CREATE FUNCTION escape_html(text) RETURNS text IMMUTABLE LANGUAGE 'sql' AS $$
database_1   |    SELECT replace(replace(replace(replace(replace($1, '&', '&amp;'), '<', '&lt;'),
database_1   |                                   '>', '&gt;'), '"', '&quot;'), '''', '&#39;');
database_1   |  $$ ;
database_1   |
database_1   |  ALTER TABLE zerver_message ADD COLUMN search_tsvector tsvector;
database_1   |  CREATE INDEX zerver_message_search_tsvector ON zerver_message USING gin(search_tsvector);
database_1   |  ALTER INDEX zerver_message_search_tsvector SET (fastupdate = OFF);
database_1   |
database_1   |  CREATE TABLE fts_update_log (id SERIAL PRIMARY KEY, message_id INTEGER NOT NULL);
database_1   |  CREATE FUNCTION do_notify_fts_update_log() RETURNS trigger LANGUAGE plpgsql AS
database_1   |    $$ BEGIN NOTIFY fts_update_log; RETURN NEW; END $$;
database_1   |  CREATE TRIGGER fts_update_log_notify AFTER INSERT ON fts_update_log
database_1   |    FOR EACH STATEMENT EXECUTE PROCEDURE do_notify_fts_update_log();
database_1   |  CREATE FUNCTION append_to_fts_update_log() RETURNS trigger LANGUAGE plpgsql AS
database_1   |    $$ BEGIN INSERT INTO fts_update_log (message_id) VALUES (NEW.id); RETURN NEW; END $$;
database_1   |  CREATE TRIGGER zerver_message_update_search_tsvector_async
database_1   |    BEFORE INSERT OR UPDATE OF subject, rendered_content ON zerver_message
database_1   |    FOR EACH ROW EXECUTE PROCEDURE append_to_fts_update_log();
database_1   |
zulip_1      |   Applying zerver.0001_initial...Traceback (most recent call last):
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
zulip_1      |     return self.cursor.execute(sql)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zerver/lib/db.py", line 31, in execute
zulip_1      |     return wrapper_execute(self, super(TimeTrackingCursor, self).execute, query, vars)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zerver/lib/db.py", line 18, in wrapper_execute
zulip_1      |     return action(sql, params)
zulip_1      | psycopg2.ProgrammingError: schema "zulip" does not exist
zulip_1      |
zulip_1      |
zulip_1      | The above exception was the direct cause of the following exception:
zulip_1      |
zulip_1      | Traceback (most recent call last):
zulip_1      |   File "./manage.py", line 25, in <module>
zulip_1      |     execute_from_command_line(sys.argv)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
zulip_1      |     utility.execute()
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
zulip_1      |     self.fetch_command(subcommand).run_from_argv(self.argv)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
zulip_1      |     self.execute(*args, **cmd_options)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
zulip_1      |     output = self.handle(*args, **options)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 204, in handle
zulip_1      |     fake_initial=fake_initial,
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/migrations/executor.py", line 115, in migrate
zulip_1      |     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
zulip_1      |     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
zulip_1      |     state = migration.apply(state, schema_editor)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/migrations/migration.py", line 129, in apply
zulip_1      |     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/migrations/operations/special.py", line 108, in database_forwards
zulip_1      |     self._run_sql(schema_editor, self.sql)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/migrations/operations/special.py", line 133, in _run_sql
zulip_1      |     schema_editor.execute(statement, params=None)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/backends/base/schema.py", line 120, in execute
zulip_1      |     cursor.execute(sql, params)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 65, in execute
zulip_1      |     return self.cursor.execute(sql, params)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/utils.py", line 94, in __exit__
zulip_1      |     six.reraise(dj_exc_type, dj_exc_value, traceback)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
zulip_1      |     raise value.with_traceback(tb)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zulip-py3-venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute
zulip_1      |     return self.cursor.execute(sql)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zerver/lib/db.py", line 31, in execute
zulip_1      |     return wrapper_execute(self, super(TimeTrackingCursor, self).execute, query, vars)
zulip_1      |   File "/home/zulip/deployments/2017-11-23-13-49-02/zerver/lib/db.py", line 18, in wrapper_execute
zulip_1      |     return action(sql, params)
zulip_1      | django.db.utils.ProgrammingError: schema "zulip" does not exist
zulip_1      |
zulip_1      | Zulip first start database initi failed in "initialize-database" exit code 1. Exiting.
dockerzulip1710_zulip_1 exited with code 1

Here is my docker_compose.yml :

version: '2'
services:
  database:
    image: "quay.io/galexrt/postgres-zulip-tsearchextras:latest"
    environment:
      POSTGRES_DB: zulip
      POSTGRES_PASSWORD: masked
      POSTGRES_USER: jdcchat
    volumes:
      - "/opt/docker/zulip/postgresql/data:/var/lib/postgresql/data:rw"
  memcached:
    image: "quay.io/sameersbn/memcached:latest"
    restart: always
  rabbitmq:
    image: "rabbitmq:3.5.5"
    hostname: zulip-rabbit
    restart: always
    environment:
        RABBITMQ_DEFAULT_USER: "jdcchat"
        RABBITMQ_DEFAULT_PASS: "masked"
  redis:
    image: "quay.io/sameersbn/redis:latest"
    volumes:
      - "/opt/docker/zulip/redis:/var/lib/redis:rw"
  zulip:
    image: "quay.io/galexrt/zulip:1.7.1-0"
    ports:
      - "65000:80"
      - "65001:443"
    environment:
      DB_HOST: "database"
      DB_HOST_PORT: "5432"
      DB_USER: "jdcchat"
      DB_PASS: "kujgsqd@maad476543@ad"
      SETTING_MEMCACHED_LOCATION: "memcached:11211"
      SETTING_RABBITMQ_HOST: "rabbitmq"
      SETTING_REDIS_HOST: "redis"
      SECRETS_email_password: "masked"
      SECRETS_rabbitmq_password: "masked"
      SECRETS_secret_key: "masked"
      SETTING_EXTERNAL_HOST: "chat.journalducoin.com"
      SETTING_ZULIP_ADMINISTRATOR: "anicet.reglat@gmail.com"
      SETTING_ADMIN_DOMAIN: "chat.journalducoin.com"
      SETTING_NOREPLY_EMAIL_ADDRESS: "noreply@journalducoin.com"
      SETTING_DEFAULT_FROM_EMAIL: "Chat journalducion Noreply <noreply@journalducoin.com>"
      SETTING_EMAIL_HOST: "smtp.journalducoin.com"
      SETTING_EMAIL_HOST_USER: "noreply@journalducoin.com"
      SETTING_EMAIL_PORT: "587"
      # It seems that the email server needs to use ssl or tls and can't be used without it
      SETTING_EMAIL_USE_SSL: "False"
      SETTING_EMAIL_USE_TLS: "True"
      SETTING_ALLOWED_HOSTS: "[ '*', '127.0.0.2' ]"
      ZULIP_AUTH_BACKENDS: "EmailAuthBackend"
    volumes:
      - "/opt/docker/zulip/zulip:/data:rw"

Here is the entrypoint.sh conf :

DB_HOST="${DB_HOST:-127.0.0.1}"
DB_HOST_PORT="${DB_HOST_PORT:-5432}"
DB_NAME="${DB_NAME:-zulip}"
DB_SCHEMA="${DB_SCHEMA:-zulip}"
DB_USER="${DB_USER:-jdcchat}"
DB_PASS="${DB_PASS:-masked}"
DB_ROOT_USER="${DB_ROOT_USER:-postgres}"
DB_ROOT_PASS="${DB_ROOT_PASS:-$(echo $DB_PASS)}"
REMOTE_POSTGRES_SSLMODE="${REMOTE_POSTGRES_SSLMODE:-prefer}"
unset DB_PASSWORD
# RabbitMQ
IGNORE_RABBITMQ_ERRORS="${IGNORE_RABBITMQ_ERRORS:-true}"
SETTING_RABBITMQ_HOST="${SETTING_RABBITMQ_HOST:-127.0.0.1}"
SETTING_RABBITMQ_USER="${SETTING_RABBITMQ_USER:-jdcchat}"
SETTING_RABBITMQ_PASSWORD="${SETTING_RABBITMQ_PASSWORD:-masked}"
SECRETS_rabbitmq_password="${SECRETS_rabbitmq_password:-$(echo $SETTING_RABBITMQ_PASSWORD)}"
unset SETTING_RABBITMQ_PASSWORD
export RABBITMQ_NODE="$SETTING_RABBITMQ_HOST"
# Redis
SETTING_RATE_LIMITING="${SETTING_RATE_LIMITING:-True}"
SETTING_REDIS_HOST="${SETTING_REDIS_HOST:-127.0.0.1}"
SETTING_REDIS_PORT="${SETTING_REDIS_PORT:-6379}"

Any idea of what's appening ?

Thanks

galexrt commented 6 years ago

@AnicetR The database schema doesn't exist, see zulip_1 | django.db.utils.ProgrammingError: schema "zulip" does not exist.

Are you using an external database or the database that comes with the docker-compose.yaml? Because you have specified 127.0.0.1 for the DB_HOST where database should be used as of the latest docker-compose.yaml.

AnicetR commented 6 years ago

I use the one shipped within the postgres container, I didnt saw this in the conf. My mistake, I will try to specify database and come back to you for feedback.

Thanks a lot for your support on dummy mistakes ! Haha

mailtodillibabu commented 4 years ago

Hi @galexrt and @AnicetR,

I'm also facing this issue with the latest Zulip 2.1.1.0(Docker version). Kindly update me on what needs to be done to solve this issue?

Here is my stacktrace: root@dilli:/home/dilli/Documents/dilli/poc/zulip/docker-zulip# docker-compose up Recreating dockerzulip_zulip_1 ... Starting dockerzulip_redis_1 ... Starting dockerzulip_redis_1 Recreating dockerzulip_zulip_1 Starting dockerzulip_memcached_1 ... Starting dockerzulip_database_1 ... Starting dockerzulip_rabbitmq_1 ... Starting dockerzulip_rabbitmq_1 Starting dockerzulip_database_1 Recreating dockerzulip_zulip_1 ... done Attaching to dockerzulip_memcached_1, dockerzulip_redis_1, dockerzulip_rabbitmq_1, dockerzulip_database_1, dockerzulip_zulip_1 redis_1 | Starting redis-server... redis_1 | 1:C 09 Jan 18:21:54.365 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo redis_1 | 1:C 09 Jan 18:21:54.365 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=1, just started redis_1 | 1:C 09 Jan 18:21:54.365 # Configuration loaded rabbitmq_1 | 2020-01-09 18:22:01.304 [info] <0.33.0> Application lager started on node 'rabbit@zulip-rabbit' database_1 | database_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization database_1 | redis1 | ._
database_1 | 2020-01-09 18:21:57.421 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 redis1 | .-__ ''-._ zulip_1 | === Begin Initial Configuration Phase === redis_1 | _.- .. ''-. Redis 4.0.9 (00000000/0) 64 bit database_1 | 2020-01-09 18:21:57.421 UTC [1] LOG: listening on IPv6 address "::", port 5432 redis1 | .-`` .-.\/ ., ''-.
redis_1 | ( ' , .-|, ) Running in standalone mode redis1 | |`-.-...- ...-.`-._|' _.-'| Port: 6379 zulip_1 | Preparing and linking the uploads folder ... redis1 | | `-. ._ / _.-' | PID: 1 database_1 | 2020-01-09 18:21:58.414 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" redis_1 |-. `-. -./ _.-' _.-' redis_1 | |-.`-. `-..-' .-'.-'|
redis1 | | `-.-._ _.-'_.-' | http://redis.io zulip_1 | Prepared and linked the uploads directory. redis_1 |-. `-.-.__.-'_.-' _.-' zulip_1 | Executing nginx configuration ... redis_1 | |-.`-. -.__.-' _.-'_.-'| database_1 | 2020-01-09 18:21:59.479 UTC [20] LOG: database system was shut down at 2020-01-09 18:17:06 UTC redis_1 | |-.`-. .-'.-' |
zulip_1 | Nginx configuration succeeded. redis1 | `-. -._-..-'.-' .-'
database_1 | 2020-01-09 18:22:00.774 UTC [1] LOG: database system is ready to accept connections zulip_1 | Certificates configuration succeeded. redis1 | `-. `-.
.-' _.-'
zulip_1 | Setting database configuration ... redis1 | `-. _.-'
redis_1 | `-..-'
redis_1 | redis_1 | 1:M 09 Jan 18:21:54.367 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. redis_1 | 1:M 09 Jan 18:21:54.367 # Server initialized redis_1 | 1:M 09 Jan 18:21:54.367 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. redis_1 | 1:M 09 Jan 18:21:54.367 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. redis_1 | 1:M 09 Jan 18:21:54.367 DB loaded from disk: 0.000 seconds redis_1 | 1:M 09 Jan 18:21:54.367 Ready to accept connections redis_1 | 1:M 09 Jan 18:21:54.367 * The server is now ready to accept connections at /var/run/redis/redis-server.sock zulip_1 | Setting key "REMOTE_POSTGRES_HOST", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "REMOTE_POSTGRES_SSLMODE", type "string" in file "/etc/zulip/settings.py". zulip_1 | Database configuration succeeded. zulip_1 | Setting Zulip secrets ... zulip_1 | Generating Zulip secrets ... zulip_1 | Generated Camo config file /etc/default/camo zulip_1 | generate_secrets: No new secrets to generate. zulip_1 | Secrets generation succeeded. zulip_1 | Zulip secrets configuration succeeded. zulip_1 | Activating authentication backends ... zulip_1 | Setting key "AUTHENTICATION_BACKENDS", type "array" in file "/etc/zulip/settings.py". zulip_1 | Adding authentication backend "EmailAuthBackend". zulip_1 | Authentication backend activation succeeded. zulip_1 | Executing Zulip configuration ... zulip_1 | Empty var for key "EMAIL_HOST". zulip_1 | Setting key "EMAIL_HOST_USER", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "EMAIL_PORT", type "integer" in file "/etc/zulip/settings.py". zulip_1 | Setting key "EMAIL_USE_SSL", type "bool" in file "/etc/zulip/settings.py". zulip_1 | Setting key "EMAIL_USE_TLS", type "bool" in file "/etc/zulip/settings.py". zulip_1 | Setting key "EXTERNAL_HOST", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "MEMCACHED_LOCATION", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "RABBITMQ_HOST", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "RABBITMQ_USER", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "RATE_LIMITING", type "bool" in file "/etc/zulip/settings.py". zulip_1 | Setting key "REDIS_HOST", type "string" in file "/etc/zulip/settings.py". zulip_1 | Setting key "REDIS_PORT", type "integer" in file "/etc/zulip/settings.py". zulip_1 | Setting key "ZULIP_ADMINISTRATOR", type "string" in file "/etc/zulip/settings.py". rabbitmq_1 | 2020-01-09 18:22:04.759 [info] <0.33.0> Application mnesia started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.759 [info] <0.33.0> Application crypto started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.759 [info] <0.33.0> Application recon started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.759 [info] <0.33.0> Application jsx started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.760 [info] <0.33.0> Application os_mon started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.760 [info] <0.33.0> Application xmerl started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.760 [info] <0.33.0> Application inets started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.760 [info] <0.33.0> Application asn1 started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.760 [info] <0.33.0> Application public_key started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.761 [info] <0.33.0> Application ssl started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.761 [info] <0.33.0> Application ranch started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.761 [info] <0.33.0> Application ranch_proxy_protocol started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.761 [info] <0.33.0> Application rabbit_common started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:04.761 [info] <0.226.0> rabbitmq_1 | Starting RabbitMQ 3.7.7 on Erlang 20.3.8.5 rabbitmq_1 | Copyright (C) 2007-2018 Pivotal Software, Inc. rabbitmq_1 | Licensed under the MPL. See http://www.rabbitmq.com/ rabbitmq_1 | rabbitmq_1 | ## ## rabbitmq_1 | ## ## RabbitMQ 3.7.7. Copyright (C) 2007-2018 Pivotal Software, Inc. rabbitmq_1 | ########## Licensed under the MPL. See http://www.rabbitmq.com/ rabbitmq_1 | ###### ## rabbitmq_1 | ########## Logs: rabbitmq_1 | rabbitmq_1 | Starting broker... rabbitmq_1 | 2020-01-09 18:22:04.762 [info] <0.226.0> rabbitmq_1 | node : rabbit@zulip-rabbit rabbitmq_1 | home dir : /var/lib/rabbitmq rabbitmq_1 | config file(s) : /etc/rabbitmq/rabbitmq.conf rabbitmq_1 | cookie hash : L8bj38vxUHy2n7e4QOx3lA== rabbitmq_1 | log(s) : rabbitmq_1 | database dir : /var/lib/rabbitmq/mnesia/rabbit@zulip-rabbit rabbitmq_1 | 2020-01-09 18:22:04.774 [info] <0.257.0> Memory high watermark set to 6321 MiB (6628442112 bytes) of 15803 MiB (16571105280 bytes) total rabbitmq_1 | 2020-01-09 18:22:04.777 [info] <0.259.0> Enabling free disk space monitoring rabbitmq_1 | 2020-01-09 18:22:04.777 [info] <0.259.0> Disk free limit set to 50MB rabbitmq_1 | 2020-01-09 18:22:04.779 [info] <0.261.0> Limiting to approx 1048476 file handles (943626 sockets) rabbitmq_1 | 2020-01-09 18:22:04.779 [info] <0.262.0> FHC read buffering: OFF rabbitmq_1 | 2020-01-09 18:22:04.779 [info] <0.262.0> FHC write buffering: ON rabbitmq_1 | 2020-01-09 18:22:04.780 [info] <0.226.0> Waiting for Mnesia tables for 30000 ms, 9 retries left zulip_1 | Zulip configuration succeeded. zulip_1 | Auto backup enabled. zulip_1 | === End Initial Configuration Phase === zulip_1 | === Begin Bootstrap Phase === zulip_1 | Waiting for database server to allow connections ... zulip_1 | Executing Zulip first start init ... zulip_1 | +++ readlink -f /home/zulip/deployments/current/scripts/setup/initialize-database zulip_1 | ++ dirname /home/zulip/deployments/2019-12-14-03-04-44/scripts/setup/initialize-database zulip_1 | + THIS_DIR=/home/zulip/deployments/2019-12-14-03-04-44/scripts/setup zulip_1 | + cd /home/zulip/deployments/2019-12-14-03-04-44/scripts/setup/../.. zulip_1 | + ./manage.py checkconfig rabbitmq_1 | 2020-01-09 18:22:06.267 [info] <0.226.0> Waiting for Mnesia tables for 30000 ms, 9 retries left rabbitmq_1 | 2020-01-09 18:22:06.267 [info] <0.226.0> Peer discovery backend rabbit_peer_discovery_classic_config does not support registration, skipping registration. rabbitmq_1 | 2020-01-09 18:22:06.268 [info] <0.226.0> Priority queues enabled, real BQ is rabbit_variable_queue rabbitmq_1 | 2020-01-09 18:22:06.907 [info] <0.288.0> Starting rabbit_node_monitor rabbitmq_1 | 2020-01-09 18:22:06.922 [info] <0.316.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@zulip-rabbit/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L' for vhost '/' exists zulip_1 | + ./manage.py migrate --noinput rabbitmq_1 | 2020-01-09 18:22:08.101 [info] <0.316.0> Starting message stores for vhost '/' rabbitmq_1 | 2020-01-09 18:22:08.102 [info] <0.320.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_transient": using rabbit_msg_store_ets_index to provide index rabbitmq_1 | 2020-01-09 18:22:08.103 [info] <0.316.0> Started message store of type transient for vhost '/' rabbitmq_1 | 2020-01-09 18:22:08.103 [info] <0.323.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": using rabbit_msg_store_ets_index to provide index rabbitmq_1 | 2020-01-09 18:22:08.104 [info] <0.316.0> Started message store of type persistent for vhost '/' rabbitmq_1 | 2020-01-09 18:22:08.107 [info] <0.358.0> started TCP Listener on [::]:5672 rabbitmq_1 | 2020-01-09 18:22:08.107 [info] <0.226.0> Setting up a table for connection tracking on this node: 'tracked_connection_on_node_rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:08.107 [info] <0.226.0> Setting up a table for per-vhost connection counting on this node: 'tracked_connection_per_vhost_on_node_rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:08.108 [info] <0.33.0> Application rabbit started on node 'rabbit@zulip-rabbit' rabbitmq_1 | 2020-01-09 18:22:08.259 [info] <0.5.0> Server startup complete; 0 plugins started. rabbitmq_1 | completed with 0 plugins. zulip_1 | Operations to perform: zulip_1 | Apply all migrations: analytics, auth, confirmation, contenttypes, otp_static, otp_totp, sessions, social_django, two_factor, zerver zulip_1 | Running migrations: database_1 | 2020-01-09 18:22:18.419 UTC [28] ERROR: schema "zulip" does not exist database_1 | 2020-01-09 18:22:18.419 UTC [28] STATEMENT:
database_1 | CREATE TEXT SEARCH DICTIONARY english_us_hunspell database_1 | (template = ispell, DictFile = en_us, AffFile = en_us, StopWords = zulip_english); database_1 | CREATE TEXT SEARCH CONFIGURATION zulip.english_us_search (COPY=pg_catalog.english); database_1 | ALTER TEXT SEARCH CONFIGURATION zulip.english_us_search database_1 | ALTER MAPPING FOR asciiword, asciihword, hword_asciipart, word, hword, hword_part database_1 | WITH english_us_hunspell, english_stem; database_1 |
database_1 |
database_1 | CREATE FUNCTION escape_html(text) RETURNS text IMMUTABLE LANGUAGE 'sql' AS $$ database_1 | SELECT replace(replace(replace(replace(replace($1, '&', '&'), '<', '<'), database_1 | '>', '>'), '"', '"'), '''', '''); database_1 | $$ ; database_1 |
database_1 | ALTER TABLE zerver_message ADD COLUMN search_tsvector tsvector; database_1 | CREATE INDEX zerver_message_search_tsvector ON zerver_message USING gin(search_tsvector); database_1 | ALTER INDEX zerver_message_search_tsvector SET (fastupdate = OFF); database_1 |
database_1 | CREATE TABLE fts_update_log (id SERIAL PRIMARY KEY, message_id INTEGER NOT NULL); database_1 | CREATE FUNCTION do_notify_fts_update_log() RETURNS trigger LANGUAGE plpgsql AS database_1 | $$ BEGIN NOTIFY fts_update_log; RETURN NEW; END $$; database_1 | CREATE TRIGGER fts_update_log_notify AFTER INSERT ON fts_update_log database_1 | FOR EACH STATEMENT EXECUTE PROCEDURE do_notify_fts_update_log(); database_1 | CREATE FUNCTION append_to_fts_update_log() RETURNS trigger LANGUAGE plpgsql AS database_1 | $$ BEGIN INSERT INTO fts_update_log (message_id) VALUES (NEW.id); RETURN NEW; END $$; database_1 | CREATE TRIGGER zerver_message_update_search_tsvector_async database_1 | BEFORE INSERT OR UPDATE OF subject, rendered_content ON zerver_message database_1 | FOR EACH ROW EXECUTE PROCEDURE append_to_fts_update_log(); database_1 |
zulip_1 | Applying zerver.0001_initial...Traceback (most recent call last): zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/backends/utils.py", line 62, in execute zulip_1 | return self.cursor.execute(sql) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zerver/lib/db.py", line 31, in execute zulip_1 | return wrapper_execute(self, super().execute, query, vars) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zerver/lib/db.py", line 18, in wrapper_execute zulip_1 | return action(sql, params) zulip_1 | psycopg2.errors.InvalidSchemaName: schema "zulip" does not exist zulip_1 | zulip_1 | zulip_1 | The above exception was the direct cause of the following exception: zulip_1 | zulip_1 | Traceback (most recent call last): zulip_1 | File "./manage.py", line 46, in zulip_1 | execute_from_command_line(sys.argv) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/
init__.py", line 364, in execute_from_command_line zulip_1 | utility.execute() zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/init.py", line 356, in execute zulip_1 | self.fetch_command(subcommand).run_from_argv(self.argv) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv zulip_1 | self.execute(*args, *cmd_options) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute zulip_1 | output = self.handle(args, **options) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 204, in handle zulip_1 | fake_initial=fake_initial, zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/migrations/executor.py", line 115, in migrate zulip_1 | state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards zulip_1 | state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/migrations/executor.py", line 244, in apply_migration zulip_1 | state = migration.apply(state, schema_editor) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/migrations/migration.py", line 129, in apply zulip_1 | operation.database_forwards(self.app_label, schema_editor, old_state, project_state) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/migrations/operations/special.py", line 108, in database_forwards zulip_1 | self._run_sql(schema_editor, self.sql) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/migrations/operations/special.py", line 133, in _run_sql zulip_1 | schema_editor.execute(statement, params=None) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 136, in execute zulip_1 | cursor.execute(sql, params) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute zulip_1 | return self.cursor.execute(sql, params) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/utils.py", line 94, in exit zulip_1 | six.reraise(dj_exc_type, dj_exc_value, traceback) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/utils/six.py", line 685, in reraise zulip_1 | raise value.with_traceback(tb) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zulip-py3-venv/lib/python3.6/site-packages/django/db/backends/utils.py", line 62, in execute zulip_1 | return self.cursor.execute(sql) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zerver/lib/db.py", line 31, in execute zulip_1 | return wrapper_execute(self, super().execute, query, vars) zulip_1 | File "/home/zulip/deployments/2019-12-14-03-04-44/zerver/lib/db.py", line 18, in wrapper_execute zulip_1 | return action(sql, params) zulip_1 | django.db.utils.ProgrammingError: schema "zulip" does not exist zulip_1 | zulip_1 | Zulip first start database initi failed in "initialize-database" exit code 1. Exiting. dockerzulip_zulip_1 exited with code 1