Comments (10)
Hi, just run a short test with rroemhild/ejabberd:latest
and the erlang cookie file could be written. What version/tag do you use?
from docker-ejabberd.
I'm using latest, this seems to be exclusive to docker containers running debian jessie and aufs, closing as I don't believe is wrong with this image in particular
from docker-ejabberd.
well nevermind I can duplicate on ubuntu trusty upgraded to 3.19.0-59-generic and using overlayfs, with this:
docker run -d \
--name "ejabberd" \
--cidfile="ejabberdCID" \
-p 5222:5222 \
--link freeipa:freeipa \
-p 5269:5269 \
--restart=always \
-p 5280:5280 \
-p 5443:5443 \
-p 4369:4369 \
-h ds01.example.com \
-e "XMPP_DOMAIN=example.com" \
-e "ERLANG_NODE=ejabberd" \
-e "TZ=America/Chicago" \
-e "[email protected]" \
-e "EJABBERD_AUTH_METHOD=ldap" \
-e "EJABBERD_WEB_ADMIN_SSL=true" \
-e "EJABBERD_STARTTLS=true" \
-e "EJABBERD_S2S_SSL=true" \
-e "EJABBERD_LDAP_SERVERS=freeipa" \
-e "EJABBERD_LDAP_ROOTDN=uid=ejabberd,cn=sysaccounts,cn=etc,dc=example,dc=com" \
-e "EJABBERD_LDAP_PASSWORD=RANDOMPASS" \
-e "EJABBERD_LDAP_DEREF_ALIASES=always" \
-e "EJABBERD_LDAP_BASE=ou=jabber_users,dc=example,dc=com" \
-e "EJABBERD_LDAP_FILTER=" \
-e "EJABBERD_LDAP_UIDS=uid" \
-e "ERLANG_COOKIE=T5TggmN5VPlReSqtl9x0" \
rroemhild/ejabberd
any clue what I might be doing wrong? the whole setup can be near duplicated using:
https://github.com/joshuacox/mkFreeIPA
given that you have PTR records set
from docker-ejabberd.
This could be a kernel Problem. I found something similar but with different Kernel version https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1555997.
Did you download the image before switching to overlayFS? Then maybe you have to remove the image and pull again.
from docker-ejabberd.
I have no System with Ubuntu and Kernel 3.19 to reproduce this but you can try https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1555997/comments/3 to test overlayFS with chmod.
from docker-ejabberd.
I tried the little test without issue.
$ mkdir /tmp/lower /tmp/upper /tmp/work /tmp/merged
$ sudo mount -t overlay overlay -olowerdir=/tmp/lower,upperdir=/tmp/upper,workdir=/tmp/work /tmp/merged
$ sudo touch /tmp/merged/testfile
$ sudo chown $USER:$USER /tmp/merged/testfile
$ $ chmod +x /tmp/merged/testfile
When upgrading to overlay I rm -Rf /var/lib/docker/*
while the docker daemon is stopped.
Out of curiosity on which distro do you run your containers?
from docker-ejabberd.
Okay I also duplicated on centos7:
uname -a
Linux ds01.example.com 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Containers: 2
Running: 1
Paused: 0
Stopped: 1
Images: 3
Server Version: 1.11.1
Storage Driver: devicemapper
Pool Name: docker-253:1-302025371-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 1.597 GB
Data Space Total: 107.4 GB
Data Space Available: 57.78 GB
Metadata Space Used: 2.847 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.145 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2015-12-01)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null
Kernel Version: 3.10.0-327.18.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 1.796 GiB
Name: ds01.example.com
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
from docker-ejabberd.
looking through that docker info I realized my cloud instance was provisioned with XFS, this might very well be the root of the issue here
EDIT: looking back at the debian and ubuntu instances they are ext4
from docker-ejabberd.
I'm curious about it. I've tested on Fedora 23 (Kernel 4.4.9, ext4), Ubuntu 12.02 with (Kernel 3.13.0, ext4) and CoreOS stable.
from docker-ejabberd.
ok I've tested this on a completely different cloud provider (codero) and everything works fine in terms of the cookie (I do still have some issues working out the LDAP server stuff but its unrelated). I'll not embarass the other provider publicly. So I'm closing this issue. Thanks for the sanity check
from docker-ejabberd.
Related Issues (20)
- 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
- Easy, one-click deployment of ejabberd using Cloudron 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.