ejabberd_ctl.beam not found - Solved

ejabberd_ctl.beam not found - Solved

Hi,

I installed ejabberd ejabberd-16.01-linux-x86_64-installer.run but it is giving following error:

[email protected]:/opt/ejabberd-16.01/bin# ./ejabberdctl available_modules

=ERROR REPORT==== 5-Mar-2016::14:57:32 ===
File operation error: eacces. Target: /opt/ejabberd-16.01/lib/xmerl-1.3.7/ebin/ejabberd_ctl.beam. Function: get_file. Process: code_server.
Error: command "available_modules" not known.
[email protected]:/opt/ejabberd-16.01/bin# ./ejabberdctl modules_available

=ERROR REPORT==== 5-Mar-2016::14:58:04 ===
File operation error: eacces. Target: /opt/ejabberd-16.01/lib/xmerl-1.3.7/ebin/ejabberd_ctl.beam. Function: get_file. Process: code_server.
[email protected]:/opt/ejabberd-16.01/bin# ejabberdctl modules_update_specs
bash: /usr/sbin/ejabberdctl: No such file or directory
[email protected]:/opt/ejabberd-16.01/bin# ./ejabberdctl modules_update_specs

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

How to solve this issue?

Thanks

View Answers

March 5, 2016 at 3:47 AM

Hi,

If you run the following command:

ps aux

You will find the user of the ejabberd process is ejabberd.

ejabberd 11411  0.0  0.0  11652  1584 ?        S    14:12   0:00 /opt/ejabberd-1
ejabberd 11733  0.6  1.9 960396 59412 ?        Sl   14:12   0:24 /opt/ejabberd-1
ejabberd 12558  0.0  0.0  11616   980 ?        Ss   15:02   0:00 inet_gethost 4
ejabberd 12559  0.0  0.0  20004  1980 ?        S    15:02   0:00 inet_gethost 4

To solve the issue you have to change the permission of files to user ejabberd with followign command:

cd /opt/ejabberd-16.01
chown ejabberd:root -R .

We are doing this because the ejabberd run by ejabberd user but the files are root.

Thanks

Ads









Related Tutorials/Questions & Answers:
Path was not found
Path was not found  The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
identifier not found
identifier not found  Getting compilation error " identifier not found " please explain ?   identifier means variable name,,,,make sure it same as declaration
Advertisements
File not found
not found
File not found
not found
File not found
"(specified file not found
File not found
"(specified file not found
File not found
getting an error "emp_code.doc"(specified file not found)  Hi Friend
File not found
not found)  Hi Friend, Visit Here Thanks
Steps not found.
Steps not found.  import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; public class Details1 extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse
mycustomer.hbm.xml not found
(); //Query q=s.createQuery("from mycustomer"); //q.setCacheable(true); //l...; </property> <property name="quality"> <column name="Q"/>...: org.hibernate.MappingNotFoundException: resource: p1.mycustomer.hbm.xml not found
mycustomer.hbm.xml not found
(); org.hibernate.Session s=sf.openSession(); Transaction t=s.beginTransaction(); //Query q...;/property> <property name="quality"> <column name="Q"/> <...: org.hibernate.MappingNotFoundException: resource: p1.mycustomer.hbm.xml not found
class not found exception
class not found exception  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterprint("code sample
javax.servlet not found error
javax.servlet not found error  why iam getting javax.servlet error while running my servlet program...after setting the classpath also i am finding that problem
javascript image not found
javascript image not found  javascript if image not found   <a href='$image'> <img alt='No Image' src='$image' onError="this.parentNode.onclick=function() {return(false);}"> </a>
unrar command not found in linux
unrar command not found in linux  Hi, I am trying to unrar a file in Linux with following command: unrar myfile.rar Here is complete log...' not found, but can be installed with: sudo apt install unrar-free sudo apt install
Resource 'corpora/wordnet' not found.
Resource 'corpora/wordnet' not found.  Hi, I am working on NLTK project for Big Data and while running a program it throws error: Resource 'corpora/wordnet' not found. Complete error log: Resource 'corpora/wordnet' not found
Resource 'corpora/wordnet' not found.
Resource 'corpora/wordnet' not found.  Hi, I am working on NLTK project for Big Data and while running a program it throws error: Resource 'corpora/wordnet' not found. Complete error log: Resource 'corpora/wordnet' not found
Hadoop command not found
Hadoop command not found  Hi, I am trying to put file with the command: hadoop fs -put test.txt /test/ But its saying hadoop command not found. How to resolve this? Thanks   Hi, This error means that you have
pyspark lit function not found
pyspark lit function not found  Hi, I want to use the lit function in PySpark Program. But unable to find it to use in program. How to use pyspark lit function and remove the pyspark lit function not found error? Thanks  
SQLException caught: No data found
SQLException caught: No data found  i m using ms office 2010, n when i run my source code it is giving error SQLException caught:No data found, plz help me why i am getting this exception, thanks alot, my source code
Error:No Class Found Exception:org.postgresql.driver
Error:No Class Found Exception:org.postgresql.driver  Error:No Class Found Exception:org.postgresql.driver while connecting JDBC With PostgreSQL 8.4 I m running My Program with java 6.0
unable to import class com.opensymphony.xwork2.ActionContext not found
unable to import class com.opensymphony.xwork2.ActionContext not found  Imported class com.opensymphony.xwork2.ActionContext not found gettin the above error
incomplete final line found by readTableHeader on
incomplete final line found by readTableHeader on  Hi, I am reading...", fileEncoding="UTF-16", dec="\t") invalid input found on input connection 'Expdesign.txt'incomplete final line found by readTableHeader on 'myfile.txt'> How
incomplete final line found by readTableHeader on
incomplete final line found by readTableHeader on  Hi, I am reading...", fileEncoding="UTF-16", dec="\t") invalid input found on input connection 'Expdesign.txt'incomplete final line found by readTableHeader on 'myfile.txt'> How
Command 'gem' not found, but can be installed with
Command 'gem' not found, but can be installed with  Hi, I am trying to install once software with gem but its giving following error on Ubuntu: Command 'gem' not found, but can be installed with: sudo snap install ruby
Resource 'tokenizers/punkt/english.pickle' not found.
Resource 'tokenizers/punkt/english.pickle' not found.  Hi, I am running a program in nltk and its giving following error: Resource 'tokenizers/punkt/english.pickle' not found. Please use the NLTK Downloader to obtain
Resource 'tokenizers/punkt/english.pickle' not found.
Resource 'tokenizers/punkt/english.pickle' not found.  Hi, I am running a program in nltk and its giving following error: Resource 'tokenizers/punkt/english.pickle' not found. Please use the NLTK Downloader to obtain
MySQL server PID file could not be found! [FAILED]
MySQL server PID file could not be found! [FAILED]  MySQL server PID file could not be found! [FAILED
make: gcc: Command not found ubuntu
make: gcc: Command not found ubuntu  Hi, I am getting following error while installing a program in Ubuntu. Building native extensions. This could take a while... ERROR: Error installing zombie_writer: ERROR: Failed
ubuntu disco Release 404 Not Found
http://in.archive.ubuntu.com/ubuntu disco Release 404 Not Found [IP... Not Found [IP: 43.255.166.254 80] Err:6 http://in.archive.ubuntu.com/ubuntu disco-backports Release 404 Not Found [IP: 43.255.166.254 80] Ign:7 http
SQLException:Column not found? (help me:(
SQLException:Column not found? (help me:(  import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; public class Mini2 extends JFrame implements ActionListener { String userid="data",password="1234

Ads