Comments (4)
Hey, it seems that the RPC connection breaks some times. I'll look into this and in the meantime you can add the EJABBERD_SKIP_MODULES_UPDATE environment variable to skip updating modules:
docker run -t -i -p 5222 -p 5269 -p 5280 -e "XMPP_DOMAIN=foo.com" -e "EJABBERD_SKIP_MODULES_UPDATE=true" rroemhild/ejabberd
If you want do update the modules specs you can try to do this after ejabberd is up:
docker exec CONTAINER ejabberdctl modules_update_specs
from docker-ejabberd.
Thank you very much for the quick response. I even able to update the modules after a few tries once the container was up. Thank you very much.
from docker-ejabberd.
I have the exactly same issue. I was able to start the ejabberd after adding EJABBERD_SKIP_MODULES_UPDATE=true. However, I'm keeping on receiving the same TIMEOUT error when run "ocker exec CONTAINER ejabberdctl modules_update_specs" after the container up.
Generating` ejabberd config file...
Generating ejabberdctl config file...
Starting ejabberd...
tail: cannot open ‘/var/log/ejabberd/crash.log’ for reading: No such file or directory
tail: cannot open ‘/var/log/ejabberd/error.log’ for reading: No such file or directory
tail: cannot open ‘/var/log/ejabberd/erlang.log’ for reading: No such file or directory
tail: ‘/var/log/ejabberd/crash.log’ has been replaced with a remote file. giving up on this name
tail: ‘/var/log/ejabberd/error.log’ has been replaced with a remote file. giving up on this name
16:10:51.426 [info] Application lager started on node ejabberd@xmpp1
16:10:51.435 [info] Application crypto started on node ejabberd@xmpp1
16:10:51.445 [info] Application sasl started on node ejabberd@xmpp1
16:10:51.458 [info] Application asn1 started on node ejabberd@xmpp1
16:10:51.458 [info] Application public_key started on node ejabberd@xmpp1
16:10:51.469 [info] Application ssl started on node ejabberd@xmpp1
16:10:51.474 [info] Application fast_yaml started on node ejabberd@xmpp1
16:10:51.484 [info] Application fast_tls started on node ejabberd@xmpp1
16:10:51.490 [info] Application fast_xml started on node ejabberd@xmpp1
16:10:51.493 [info] Application stringprep started on node ejabberd@xmpp1
16:10:51.498 [info] Application cache_tab started on node ejabberd@xmpp1
16:10:51.511 [info] Application elixir started on node ejabberd@xmpp1
16:10:51.673 [info] Application mnesia started on node ejabberd@xmpp1
16:10:52.341 [info] Application inets started on node ejabberd@xmpp1
16:10:53.115 [info] FQDN used to check DIGEST-MD5 SASL authentication: <<"xmpp1.example.com">>
16:10:53.117 [info] LDAP connection on xxx.xxx.xxx.xxx:389
16:10:53.118 [info] LDAP connection on xxx.xxx.xxx.xxx:389
16:10:53.139 [info] LDAP connection on xxx.xxx.xxx.xxx:389
16:10:53.206 [info] Application iconv started on node ejabberd@xmpp1
16:10:53.207 [info] Reusing listening port for {4560,{0,0,0,0},tcp}
16:10:53.207 [info] Reusing listening port for {5222,{0,0,0,0},tcp}
16:10:53.207 [info] Reusing listening port for {5269,{0,0,0,0},tcp}
16:10:53.208 [info] Reusing listening port for {5280,{0,0,0,0},tcp}
16:10:53.208 [info] Reusing listening port for {5443,{0,0,0,0},tcp}
16:10:53.208 [info] ejabberd 16.09 is started in the node ejabberd@xmpp1
16:10:53.208 [info] Application ejabberd started on node ejabberd@xmpp1
$ docker exec xmpp1_ejabberd ejabberdctl modules_update_specs
Failed RPC connection to the node ejabberd@xmpp1: timeout
Commands to start an ejabberd node:
start Start an ejabberd node in server mode
debug Attach an interactive Erlang shell to a running ejabberd node
iexdebug Attach an interactive Elixir shell to a running ejabberd node
live Start an ejabberd node in live (interactive) mode
iexlive Start an ejabberd node in live (interactive) mode, within an Elixir shell
foreground Start an ejabberd node in server mode (attached)
Optional parameters when starting an ejabberd node:
--config-dir dir Config ejabberd: //etc/ejabberd
--config file Config ejabberd: //etc/ejabberd/ejabberd.yml
--ctl-config file Config ejabberdctl: //etc/ejabberd/ejabberdctl.cfg
--logs dir Directory for logs: //var/log/ejabberd
--spool dir Database spool dir: /opt/ejabberd/database/ejabberd
--node nodename ejabberd node name: ejabberd
$ docker exec -it xmpp1_ejabberd /bin/bash
ejabberd@xmpp1:$ ejabberdctl status
The node ejabberd@xmpp1 is started with status: started
ejabberd 16.09 is running in that node
ejabberd@xmpp1:$ epmd -names
epmd: up and running on port 4369 with data:
name ejabberd at port 35477
from docker-ejabberd.
My docker-compose.yml file to run ejabberd.
version: '2'
services:
ejabberd:
image: rroemhild/ejabberd
container_name: xmpp1_ejabberd
ports:
- 5222:5222
- 5269:5269
- 5280:5280
- 5443:5443
- 4560:4560
hostname: xmpp1.cn.domain.com
environment:
- XMPP_DOMAIN=cn.domain.com
- ERLANG_NODE=ejabberd
- EJABBERD_AUTH_METHOD=ldap
- EJABBERD_LDAP_SERVERS=ldap_server_ip
- EJABBERD_LDAP_ENCRYPT=none
- EJABBERD_LDAP_PORT=389
- EJABBERD_LDAP_ROOTDN=CN=ldapbind,OU=Users,OU=CNXXX,OU=CN,DC=XXX,DC=XXX,DC=XXX,DC=com
- EJABBERD_LDAP_PASSWORD=ldapbind_password
- EJABBERD_LDAP_BASE=DC=xxx,DC=xxx,DC=xxx,DC=com
- EJABBERD_LDAP_UIDS=mail:%[email protected]
- EJABBERD_LDAP_FILTER=(memberOf=*)
- EJABBERD_SKIP_MODULES_UPDATE=true
- EJABBERD_ADMINS=[email protected]
- TZ=Asia/Shanghai
volumes:
- ./conf:/opt/ejabberd/conf
- ejabberd-ssl:/opt/ejabberd/ssl
- ejabberd-backup:/opt/ejabberd/backup
- ejabberd-upload:/opt/ejabberd/upload
- ejabberd-database:/opt/ejabberd/database
networks:
- docker_ejabberd
networks:
docker_ejabberd:
external: true
volumes:
ejabberd-ssl:
external: true
ejabberd-backup:
external: true
ejabberd-upload:
external: true
ejabberd-database:
external: true
from docker-ejabberd.
Related Issues (20)
- p1_rand is not available (UndefinedFunctionError)
- Custom Module HOT 1
- Can't access admin :5280/admin HOT 2
- Cannot access API with browser show not found HOT 1
- Ejabberd shared roaster group with members @all@ HOT 5
- Kubernetes working example HOT 8
- SSL more env vars
- 18.09 tag HOT 1
- Not listening to any connection HOT 3
- Open relay HOT 5
- Keeping a CHANGELOG would be nice! HOT 2
- Getting issue with file upload HOT 1
- PostgreSQL support for auth script
- Can't connect to web admin
- setting ERLANG_NODE crashes docker container HOT 1
- dotenv and python
- Support for http auth method HOT 1
- How to do a Select on Erlang, Mnesia
- conf/ejabberd.yml.tpl seems to be outdated
- Provide tags for newer ejabberd versions HOT 1
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-ejabberd.