Comments (16)
Are you using docker-compose up
to start it?
Is the container stopping after these "errors", because I have no problems.
It seems these "errors" are just because in this case the user guest is non existing.
I'll supress these errors from rabbitmqctl in my next commit, but as I said it should "boot" without any problems, when using the default docker-compose.yml
from docker-zulip.
rabbitmqctl setup errors are now supressed.
Added in commit b2775d5.
Can you try again and see if Zulip is reachable on your host (should be https://127.0.0.1)?
BTW have you generated the certificates using the generate_certs.sh script and moved them to the correct location?
from docker-zulip.
The certificates are now generated automatically, if they don't exist in the data volume.
See #14 for details.
from docker-zulip.
@galexrt Thank you for your reply. Yes, I use the docker-compose up -d
to start it.
And zulip container stopped after the error, while others (database, reddis....) still ran.
I will try again and reply later.
from docker-zulip.
+1
I got the same problem
zulip_1 | Setting tags for user "zulip" to [administrator] ...
zulip_1 | Error: unable to connect to node rabbit@68e92d893c9e: nodedown
zulip_1 |
zulip_1 | DIAGNOSTICS
zulip_1 | ===========
zulip_1 |
zulip_1 | nodes in question: [rabbit@68e92d893c9e]
zulip_1 |
zulip_1 | hosts, their running nodes and ports:
zulip_1 | - 68e92d893c9e: [{rabbitmqctl118,44514}]
zulip_1 |
zulip_1 | current node details:
zulip_1 | - node name: rabbitmqctl118@68e92d893c9e
zulip_1 | - home dir: /var/lib/rabbitmq
zulip_1 | - cookie hash: iUMOUTJBvbouqoUCdJwRPQ==
zulip_1 |
zulip_1 | Generating and setting secrets ...
zulip_1 | Generated Camo config file /etc/default/camo
zulip_1 | Generated /etc/zulip/zulip-secrets.conf with auto-generated secrets!
zulip_1 | Setting secret "email_password".
zulip_1 | Setting secret "rabbitmq_password".
zulip_1 | No secret found for key "s3_key".
zulip_1 | No secret found for key "s3_secret_key".
zulip_1 | No secret found for key "android_gcm_api_key".
zulip_1 | No secret found for key "google_oauth2_client_secret".
zulip_1 | No secret found for key "dropbox_app_key".
zulip_1 | No secret found for key "mailchimp_api_key".
zulip_1 | No secret found for key "mandrill_api_key".
zulip_1 | No secret found for key "twitter_consumer_key".
zulip_1 | No secret found for key "twitter_consumer_secret".
zulip_1 | No secret found for key "twitter_access_token_key".
zulip_1 | No secret found for key "twitter_access_token_secret".
zulip_1 | Secrets generated and set.
zulip_1 | Setting Zulip settings ...
zulip_1 | No zulip.key given in /data.
zulip_1 | Zulip setup failed.
zulip_1 | mkdir: cannot create directory '/home/zulip/uploads': File exists
from docker-zulip.
@galexrt
Now, it says
database_1 | 2015-10-21 03:33:58 UTC [95-1] zulip@zulip ERROR: could not open dictionary file "/usr/share/postgresql/9.4/tsearch_data/en_us.dict": No such file or directory
database_1 | 2015-10-21 03:33:58 UTC [95-2] zulip@zulip 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, '&', '&'), '<', '<'),
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/current/manage.py", line 21, in <module>
zulip_1 | execute_from_command_line(sys.argv)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
zulip_1 | utility.execute()
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 330, in execute
zulip_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 393, in run_from_argv
zulip_1 | self.execute(*args, **cmd_options)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 444, in execute
zulip_1 | output = self.handle(*args, **options)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 221, in handle
zulip_1 | executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 110, in migrate
zulip_1 | self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", line 148, in apply_migration
zulip_1 | state = migration.apply(state, schema_editor)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/migrations/migration.py", line 115, in apply
zulip_1 | operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/migrations/operations/special.py", line 102, in database_forwards
zulip_1 | self._run_sql(schema_editor, self.sql)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/migrations/operations/special.py", line 127, in _run_sql
zulip_1 | schema_editor.execute(statement, params=None)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/backends/base/schema.py", line 111, in execute
zulip_1 | cursor.execute(sql, params)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
zulip_1 | return self.cursor.execute(sql, params)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 97, in __exit__
zulip_1 | six.reraise(dj_exc_type, dj_exc_value, traceback)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute
zulip_1 | return self.cursor.execute(sql)
zulip_1 | File "/home/zulip/deployments/2015-10-20-17-30-08/zerver/lib/db.py", line 23, in execute
zulip_1 | return wrapper_execute(self, super(TimeTrackingCursor, self).execute, query, vars)
zulip_1 | File "/home/zulip/deployments/2015-10-20-17-30-08/zerver/lib/db.py", line 11, in wrapper_execute
zulip_1 | return action(sql, params)
zulip_1 | django.db.utils.InternalError: could not open dictionary file "/usr/share/postgresql/9.4/tsearch_data/en_us.dict": No such file or directory
zulip_1 |
zulip_1 | Zulip migration failed.
zulip_zulip_1 exited with code 1
from docker-zulip.
My logs is the same
Added zulip's log.
zulip_1 | Zulip settings setup done.
zulip_1 | Setting up database settings and server ...
zulip_1 | ERROR: permission denied to create role
zulip_1 | Waiting for database server to allow connectionsALTER ROLE
zulip_1 | ERROR: must be owner of database zulip
zulip_1 | ERROR: database "zulip" already exists
zulip_1 | CREATE SCHEMA
zulip_1 | ERROR: permission denied to create extension "tsearch_extras"
zulip_1 | HINT: Must be superuser to create this extension.
zulip_1 | Database setup done.
zulip_1 | Checking zulip config ...
zulip_1 | Initiating Database ...
zulip_1 | Migrating database ...
zulip_1 | Operations to perform:
zulip_1 | Synchronize unmigrated apps: staticfiles, pipeline
zulip_1 | Apply all migrations: confirmation, sessions, guardian, zerver, sites, auth, contenttypes
zulip_1 | Synchronizing apps without migrations:
zulip_1 | Creating tables...
zulip_1 | Running deferred SQL...
zulip_1 | Installing custom SQL...
zulip_1 | Running migrations:
zulip_1 | Rendering model states... DONE
zulip_1 | Applying contenttypes.0001_initial... OK
zulip_1 | Applying contenttypes.0002_remove_content_type_name... OK
zulip_1 | Applying auth.0001_initial... OK
zulip_1 | Applying auth.0002_alter_permission_name_max_length... OK
zulip_1 | Applying auth.0003_alter_user_email_max_length... OK
zulip_1 | Applying auth.0004_alter_user_username_opts... OK
zulip_1 | Applying auth.0005_alter_user_last_login_null... OK
zulip_1 | Applying auth.0006_require_contenttypes_0002... OK
zulip_1 | Applying confirmation.0001_initial... OK
zulip_1 | Traceback (most recent call last):
zulip_1 | File "/home/zulip/deployments/current/manage.py", line 21, in <module>
zulip_1 | execute_from_command_line(sys.argv)
zulip_1 | File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
zulip_1 | utility.execute()
from docker-zulip.
It seems like a database problem. I'm working on a fix for it.
from docker-zulip.
I fixed the error, as I thought it was a problem with the galexrt/zulip-postgresql-tsearchextras
container. It is now fixed in the latest version.
Please remove and/or repull both images!
Can you try again using quay.io/galexrt/zulip:latest
instead of quay.io/galexrt/zulip:1.3.6
and repull quay.io/galexrt/zulip-postgresql-tsearchextras:latest
.
For me it's working now, please tell me if it's working for you now too.
I merged the fixes into the version tag and branch now.
BTW: If you start the container and it doesn't return with a exit code, then everything should be okay.
from docker-zulip.
@galexrt
Great! It seems to work now!
Thank you!
from docker-zulip.
@galexrt
But I meet another problem.
The 'forget password' email can't be sent.
I use the mailgun to send email, and it shows that zulip does not calling mailgun to send email.
Also, I can't login zulip by the ZULIP_USER_EMAIL
and ZULIP_USER_PASSWORD
,
do I miss something?
from docker-zulip.
@njuaplusplus I create a new ticket for your problem with the login.
I'll close this ticket now, as it seems to work again. :)
from docker-zulip.
@njuaplusplus See #17 and #16.
from docker-zulip.
I have the log like this:
DIAGNOSTICS
zulip_1 | ===========
zulip_1 |
zulip_1 | attempted to contact: [rabbitmq@4ffe37383a75]
zulip_1 |
zulip_1 | rabbitmq@4ffe37383a75:
zulip_1 | * connected to epmd (port 4369) on 4ffe37383a75
zulip_1 | * epmd reports: node 'rabbitmq' not running at all
zulip_1 | no other nodes on 4ffe37383a75
zulip_1 | * suggestion: start the node
zulip_1 |
zulip_1 | current node details:
zulip_1 | - node name: 'rabbitmq-cli-337@4ffe37383a75'
zulip_1 | - home dir: /var/lib/rabbitmq
zulip_1 | - cookie hash: mMXCT8CVI2CVwROdZbmFEw==
zulip_1 |
zulip_1 | + true
zulip_1 | + sudo rabbitmqctl -n rabbitmq add_user zulip zulip
zulip_1 | Error: unable to connect to node rabbitmq@4ffe37383a75: nodedown
zulip_1 |
zulip_1 | DIAGNOSTICS
zulip_1 | ===========
zulip_1 |
zulip_1 | attempted to contact: [rabbitmq@4ffe37383a75]
zulip_1 |
zulip_1 | rabbitmq@4ffe37383a75:
zulip_1 | * connected to epmd (port 4369) on 4ffe37383a75
zulip_1 | * epmd reports: node 'rabbitmq' not running at all
zulip_1 | no other nodes on 4ffe37383a75
zulip_1 | * suggestion: start the node
zulip_1 |
zulip_1 | current node details:
zulip_1 | - node name: 'rabbitmq-cli-450@4ffe37383a75'
zulip_1 | - home dir: /var/lib/rabbitmq
zulip_1 | - cookie hash: mMXCT8CVI2CVwROdZbmFEw==
zulip_1 |
**zulip_1 | RabbitMQ bootstrap succeeded.
zulip_1 | Executing Zulip first start init ...
zulip_1 | First Start Init not needed. Continuing**.
Is Rabbitmq running well? Is there any problem in the contact between Rabbitmq and Zulip ? or is everything fine?
from docker-zulip.
@toan2948 As written above in this issue, the errors are okay because the Rabbitmq is already correctly setup. The "errors" mean that rabbitmq could not be reconfigured which is as written okay in that case.
Please use your created issue for questions and/or issues you experience. This issue is from Oct 21, 2015..
from docker-zulip.
Excuse me :). I thought the issues should be in the same topics.
from docker-zulip.
Related Issues (20)
- update to a newer database contaier HOT 1
- RabbitMQ in docker compose file is very out of date
- Can't backup Zulip the way it is documented HOT 1
- Memcached won't start - can't create /home/memcached/memcached.conf in nonexistent directory HOT 1
- noreply invite emails sending HOT 1
- /json/messages endpoint returns 500
- Wrong database tables for docker with Zulip 7.0
- sudo zulip_volume_sync() causes SIGBUS error and read-only filesystem
- exec /sbin/entrypoint.sh: exec format error
- "exec /sbin/entrypoint.sh: exec format error" HOT 4
- 8.3 upgrade issue HOT 3
- Dependency issues on upgrade to 8.3
- Expecting "SOCIAL_AUTH_GITHUB_KEY", type "integer" HOT 7
- Using External host for dependencies in Kubernetes Helm Chart HOT 1
- Rocket.Chat migration error 'list index out of range' during data convertation
- docker-zulip behind "docker Caddy" as reverse proxy has problems with CSS and scripts HOT 7
- build failed because of timeout (curl command)
- Allow setting SCIM_CONFIG via env var HOT 1
- Dockerfile no longer builds on Zulip `main` due to outdated Python
- issue with searching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-zulip.