Error when running ejabberdctl

Hi, i have installed ejabberd with binary installer on my ec2 server, i have configured it correctly but when i run ejabberdctl to start or stop the server i get the error

=ERROR REPORT==== 10-Mar-2016::10:02:44 ===
File operation error: eacces. Target: /opt/ejabberd-16.01/lib/xmerl-1.3.7/ebin/ejabberd_ctl.beam. Function: get_file. Process: code_server.

It still runs the command such as stopping or starting the server, but i am wondering why i am getting this error.

Thanks for the help

Syndicate content