Ejabberd: mod_roster_odbc not starting - ejabberd
After enabling mod_roster_odbc module, when I try to restart my server I see the below in my log.
2015-02-26 14:07:03.725 [critical] <0.836.0>#gen_mod:start_module:94 Problem starting the module mod_roster_odbc for host <<"localhost">>
options: []
error: undef
[{mod_roster_odbc,start,[<<"localhost">>,[]],[]},
{gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,83}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},
{ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,69}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,272}]}]
2015-02-26 14:07:03.726 [critical] <0.836.0>#gen_mod:start_module:99 ejabberd initialization was aborted because a module start failed.
The trace is [{mod_roster_odbc,start,[<<"localhost">>,[]],[]}, {gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,83}]},{lists,foreach,2, [{file,"lists.erl"},{line,1336}]},{ejabberd_app,start,2, [{file,"src/ejabberd_app.erl"},{line,69}]},{application_master,start_it_old,4, [{file,"application_master.erl"},{line,272}]}].
(END)
How to fix this?
You have a problem with your install. Error mean that some modules / functions are not found.
Related
Cannot set configuration in Elastic Beanstalk
I have 4 Elastic Beanstalk deployments: 3 are Corretto 8 and the other one is Corretto 11. On the Corretto 8 deployments, I can set new configuration without issue. On the Corretto 11 instance, however, any attempt to set a new configuration fails and causes a rollback. The Corretto versions might not be the problem, but it's the only difference I can see. All 4 apps are Spring Boot apps that run as web servers (i.e embedded tomcat with exposed web ports). I am trying to set the exact same configuration name and value, and it only fails on the one instance. The configuration I'm trying to set is pretty simple: VALIDATE_RENEWALS = true Even just trying to set DEBUG = true causes a failure and rollback. I don't see a lot of information from the console about what's failing. Here is the event log: 2020-03-16 13:55:17 UTC-0600 INFO The environment was reverted to the previous configuration setting. 2020-03-16 13:54:45 UTC-0600 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. 2020-03-16 13:54:45 UTC-0600 ERROR Failed to deploy configuration. 2020-03-16 13:54:45 UTC-0600 ERROR Unsuccessful command execution on instance id(s) 'i-00553f4ac36afd327'. Aborting the operation. 2020-03-16 13:54:45 UTC-0600 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. 2020-03-16 13:54:45 UTC-0600 ERROR [Instance: i-00553f4ac36afd327] Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001]. 2020-03-16 13:54:20 UTC-0600 INFO Updating environment XXX's configuration settings. 2020-03-16 13:54:15 UTC-0600 INFO Environment update is starting. I've also downloaded the full set of logs for the instance and don't see anything obvious. The app stdout doesn't have any errors or exceptions, it just starts normally and then gets terminated. None of the other log files have messages around the times above, so I'm really not sure what else I can look at. Edit The times don't line up but I do see this in eb-engine.log file: 2020/03/16 17:54:38.508634 [INFO] checking whether command is applicable to this instance... 2020/03/16 17:54:38.508658 [INFO] this command is applicable to the instance, thus instance should execute command 2020/03/16 17:54:38.508665 [INFO] check whether this is an enhanced env... 2020/03/16 17:54:38.508794 [INFO] Executing instruction: StageJavaApplication 2020/03/16 17:54:38.508858 [ERROR] GetArchivedFileType with file /opt/elasticbeanstalk/deployment/app_source_bundle failed with error open /opt/elasticbeanstalk/deployment/app_source_bundle: no such file or directory 2020/03/16 17:54:38.508868 [ERROR] An error occurred during execution of command [config-deploy] - [StageJavaApplication]. Stop running the command. Error: staging java app failed with error GetArchivedFileType with file /opt/elasticbeanstalk/deployment/app_source_bundle failed with error open /opt/elasticbeanstalk/deployment/app_source_bundle: no such file or directory
Intrusion Detection System OSSEC
I configured the OSSEC by following the procedure from https://blog.rapid7.com/2017/06/30/how-to-install-and-configure-ossec-on-ubuntu-linux/ this site. but after configuration, when I tried /var/ossec/bin/ossec-control restart I got ossec-monitord not running .. ossec-logcollector not running .. ossec-remoted not running .. ossec-syscheckd not running .. ossec-analysisd not running .. ossec-maild not running .. ossec-execd not running .. OSSEC HIDS v2.9.0 Stopped Starting OSSEC HIDS v2.9.0 (by Trend Micro Inc.)... OSSEC analysisd: Testing rules failed. Configuration error. Exiting. In logtest, I got Error reading XML file '/var/ossec/etc/ossec.conf': XMLERR: Element 'syscheck' not closed. (line 252). 2018/05/22 15:20:59 ossec-testrule(1202): ERROR: Configuration error at '/var/ossec/etc/ossec.conf'. Exiting. where can I solve the problem?
You have to close the tag in your config file, Edit ossec.conf : Type <\syscheck> where you opend it.
Oozie 4.3.0 build failed on Hadoop 2.9.0
I ran the build with commands like this: ./mkdistro.sh -DskipTests and this: ./mkdistro.sh -DskipTests -D hadoop.version=2.3.0 -P uber -P hadoop-2 But all failed with error messages: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /root/oozie-4.3.0/hadooplibs/hadoop-utils-2/src/main/java/org/apache/oozie/action/hadoop/LauncherMainHadoopUtils.java:[31,49] error: cannot find symbol [ERROR] package org.apache.hadoop.yarn.api.protocolrecords /root/oozie-4.3.0/hadooplibs/hadoop-utils-2/src/main/java/org/apache/oozie/action/hadoop/LauncherMainHadoopUtils.java:[70,21] error: cannot find symbol [ERROR] class LauncherMainHadoopUtils /root/oozie-4.3.0/hadooplibs/hadoop-utils-2/src/main/java/org/apache/oozie/action/hadoop/LauncherMainHadoopUtils.java:[71,11] error: cannot find symbol [INFO] 3 errors ... I also tried to export HADOOP_CLASSPATH and CLASSPATH variables to point to the Hadoop libraries but all failed with same error. I am not sure if it is failed because the build command can't find hadoop libraries or it does not support Hadoop version 2.9.0. Any idea?
watch it my newly created blog to install oozie-4.3.0 on combination of hadoop-2.9.0 step by step, Installing apache oozie-4.3.0 on existing apache hadoop-2.9.0 hope this will help you.
ejabberd stops when I am adding mod_http_offline to ejabberd.cfg
I am using ejabberd 2.1.10 for implementing the mod_http_offline mod for IOS push notification. I tried to do this using two solutions like http://jasonrowe.com/2011/12/30/ejabberd-offline-messages/ & https://github.com/adamvduke/mod_interact But both the time when I am adding Modules to the ejabberd configuration file It stops the server and return the below error in the log ERROR REPORT==== 2014-01-28 15:09:13 === C(<0.41.0>:gen_mod:75) : Problem starting the module mod_http_offline for host "23.23.191.229" options: [] error: function_clause
Getting error in ejabberd when add any module in ODBC mod
I have installed ejabberd to implement my chat application, I have also successfully installed Mysql module and using mysql database in place of mnesia(default of ejabberd).Everything is working fine,Now i am trying to some module for ODBC mod, like mod_muc to mod_muc_odbc, then i am getting error like, =ERROR REPORT==== 2014-01-20 11:39:08 === C(<0.37.0>:gen_mod:75) : Problem starting the module mod_muc_odbc for host "localhost" options: [{host,"conference.#HOST#"}, {access,muc}, {access_create,muc}, {access_persistent,muc}, {access_admin,muc_admin}, {max_users,500}] error: undef =ERROR REPORT==== 2014-01-20 11:39:08 === C(<0.37.0>:gen_mod:80) : ejabberd initialization was aborted because a module start failed. How to fix it ? Another question related with ejabberd is that , Can i see the whole chat record in mysql database, if yes then how ?
I had a same problem. Just another module. This part of log: {max_users,500}] error: undef means that you ejabbered was not compiled with that specific module support. I am using gentoo linux so it was easy to me to add USE="mymodule" emerge -av ejabered and compile ejjabered with mymodule that was missing. In your post I can not see what linux distro are you using? But you get a picture from my answer.