Comments (2)
Maybe there is some error in the documentation. Let's try to solve your problem so we learn what's the problem, and alter fix the documentation.
I tried this:
$ ERLANG_NODE_ARG=aa@main ./bin/ejabberdctl start
$ ERLANG_NODE_ARG=aa@main ./bin/ejabberdctl status
Failed RPC connection to the node aa@main: nodedown
$ epmd -names
epmd: up and running on port 4369 with data:
name aa at port 35265
Then I edit the system file /ets/hosts
to add this line:
127.0.0.1 main
Now this works:
$ ERLANG_NODE_ARG=aa@main ./bin/ejabberdctl status
The node aa@main is started with status: started
ejabberd 23.04.34 is running in that node
value: ejabberd@main
In your case, instead of main
, you can try to set the machine name, or localhost
.
When you solve the problem, please comment how you solved it. Thanks!
from docker-ejabberd.
Thanks for the reply, It seems the appropriate format for the node name is "name@(host_name/machine_name/contiainer_name)"
Then I edit the system file /ets/hosts to add this line:
127.0.0.1 main
I followed your reply and edited "hosts" file and mapped dev.example.com for 127.0.0.1, then I started the ejabberd service in my Ubuntu WSL with the below set of node names.
- ejabberdmain@localhost => ejabberd started with node name as "ejabberdmain@localhost"
- [email protected] => ejabberd started with node name as "[email protected]"
- ejabberdmain => ejabberd started with node name as "ejabberdmain@my_machine_name"
In the case of the example docker-compose file, the container name is defined as "main" and "replica" hence the corresponding node names "ejabberd@main" and "ejabberd@replica" worked.
In GCP Kubernetes, the node name doesn't match with the pod name and hence failed.
In your case, instead of main, you can try to set the machine name, or localhost.
Then I checked in GCP Kubernetes by using the environment variable as "ERLANG_NODE_ARG=ejabberdmain@localhost", Now the ejabberd was accessible in the service with the provided node name. (I tried with a single pod in the )
Then I added 2 deployments with single pods and modified node names and tried to connect them with the initial commands mentioned in the Clustering example , the 2 pods are running, but there is no s2s connection.
Now I followed the example exactly as in the readme and added 2 containers in the GCP Kubernetes deployment, but it doesn't work as well.
I trying this in GCP Kubernetes so that my ejabberd server nodes can autoscale inside the Kubernetes. Can you provide some guidance here?
from docker-ejabberd.
Related Issues (20)
- Ejabberd in GCP Kubernetes: Service not accessible in ingress. HOT 8
- How to format ejabberd nodes and establish s2s to form ejabberd cluster while deploying in GKE HOT 1
- Issues running debugger in DevContainers (CodeServer and VSCode) HOT 3
- After using the ecs Dockerfile to build the image and package it into the server, the following exception information appears HOT 5
- How to configure vhost docker configuration for Ejabberd cluster HOT 14
- After build the docker image unable to run it. Getting ejabberdctl file not found error. HOT 2
- Ejabberd + Postgres in Docker-compose HOT 2
- ** (Mix) The task "distillery.init" could not be found HOT 4
- CTL_ON_CREATE register admin error stopping init in 23.10 HOT 3
- Missing ejabberd version number in ecs 24.02 image HOT 1
- Zombie process HOT 2
- cafile and ca-certificates HOT 1
- ecs: Alpine Linux 3.14 is not newest version HOT 1
- ejabberd arm64 docker image HOT 12
- ejabberd/ecs startup failing in machines where ipv6 is disabled HOT 3
- Cannot mount /conf to the host HOT 2
- Unable to restore from backup HOT 5
- Feature: Let ejabberd startup fail if either CTL_ON_CREATE or CTL_ON_START fail HOT 3
- No Captcha: ImageMagick is not installed inner the Image HOT 3
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.