Ejabberd Clustering:
I have set up two Ejabberd servers in two different Digital Ocean Droplets. And i am trying to build clustering on these two servers. I followed the documentation in the Ejabberd official Docs i.e, 'https://docs.ejabberd.im/admin/guide/clustering/'
Copy the /home/ejabberd/.erlang.cookie file from ejabberd01 to ejabberd02.
Made sure my new ejabberd node is properly configured. My ejabberd.yml config file on the new node that on the other cluster nodes have same configs.
Then when i tried to start the clustering with the below command: $ ejabberdctl --no-timeout join_cluster 'ejabberd@ejabberd01'
I get the below Error:
args: []
format: "Error when reading /opt/ejabberd/.erlang.cookie: eacces"
label: {error_logger,error_msg}
Please help me solve this issue.
Thank you in advance
That eacess
thing in the error message is actually the EACCESS
error return code standardized by POSIX:
[EACCES] Permission denied. An attempt was made to access a file in a way forbidden by its file access permissions.
In other words, the credentials which the Erlang BEAM process running your ejabberd node uses, are insufficient to open the Erlang cookie file /opt/ejabberd/.erlang.cookie
.
You can start here to get more background on what Erlang cookies are.