ejabberd module offline_message_hook crashed - server
I'm trying to implement mod_http_offline from here to send POST request when destination client is offline, but always get the following error message :
2018-06-25 11:16:19.202 [error] <0.542.0>#ejabberd_hooks:safe_apply:383 Hook offline_message_hook crashed when running mod_http_offline_post:create_message/1:
** Reason = {error,undef,[{mod_http_offline_post,create_message,[],[{bounce,{message,<<"1529900178124">>,chat,<<"en">>,{jid,<<"10000537_agent">>,<<"metachat.release">>,<<"862193039807052">>,<<"10000537_agent">>,<<"metachat.release">>,<<"862193039807052">>},{jid,<<"10000091_agent">>,<<"metachat.release">>,<<>>,<<"10000091_agent">>,<<"metachat.release">>,<<>>},[],[{text,<<>>,<<"{\"data\":{\"contactData\":[],\"content\":\"Asdfg\"},\"type\":\"chat\"}">>}],undefined,[{xmlel,<<"request">>,[{<<"xmlns">>,<<"urn:xmpp:receipts">>}],[]}],#{ip => {192,168,100,222}}}}]},{ejabberd_hooks,safe_apply,[{file,"src/ejabberd_hooks.erl"},{line,380}],4},{ejabberd_hooks,run_fold1,[{file,"src/ejabberd_hooks.erl"},{line,364}],4},{ejabberd_sm,route,[{file,"src/ejabberd_sm.erl"},{line,146}],1},{ejabberd_local,route,[{file,"src/ejabberd_local.erl"},{line,101}],1},{ejabberd_router,do_route,[{file,"src/ejabberd_router.erl"},{line,372}],1},{ejabberd_router,route,[{file,"src/ejabberd_router.erl"},{line,93}],1},{ejabberd_c2s,check_privacy_then_route,[{file,"src/ejabberd_c2s.erl"},{line,823}],2}]}
I'm using 18.04, so maybe some of the syntax were outdated, but as I'm new to ejabberd and Erlang in common, I'm unable to find the root of problems. Please help, any answer will be really appreciated.
mod_http_offline.erl was last modified four years ago. You installed that module in a recent ejabberd. The calls that ejabberd makes to the hooks have changed a lot since then, and that module is not compatible as it is.
Related
VS 2013 Web Deployment Failing - Socket Error 10054
I posted on friday regarding this issue and received no response, however since then some updates have occurred which might affect whether people have an answer to my question or not. I'm trying to deploy an MVC website to Azure, and in this particular project the web deploy receives a Socket Error 10054 and gives up after 10 attempts saying it was Unable to write data to the transport connection. It makes varying progress in between the socket failures but never completes within the 10 attempts. I have since had a play around with other projects which are deployed to different url locations within this same Azure Account and they deploy fine! I think this means the problem is not on my end, i.e. port 8172 is open and deployment can be achieved with my current local settings. What are the problems that can cause this socket error 10054? I saw somewhere that I should enable the "Allow untrusted certificate" option when deploying but I can't find that option within VS 2013. Any ideas are welcome please, This issue is driving me mad, it seems there's a real mixed bag of solution ideas which have worked for others but not me. JK
Server logs: Looking for endless redirect Loop
One of my Drupal websites homepage (just the homepage) is constantly redirecting when the site is visited. Tends to happen randomly. Which I don't understand why it would do this. I talked a bit on the Drupal community and it is said to be a server issue. Not Drupal. Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects. I don't currently have CPanel access to check the server logs though. I am somewhat fluent in terminal and I have root SSH access to the server. Where and what commands would I have to run to find and access the logs that could possible help me figure where to start with fixing this? Would they just be located in /var/? What would I be looking for once I get access to the logs, just a steady stream of the duplicated IP address that it keeps being redirected too?
Found out this IS a Drupal Commerce Kickstart core issue. Found follow errors in php logs: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini PHP Fatal error: Unsupported operand types in public_html/dev/profiles/commerce_kickstart/modules/contrib/search_api_db/service.inc on line 970 Got the redirect loop to stop after increasing the max_input_vars to 9000. I feel it's more of a bandaid fix though. So I'm taking this further into the Commerice Kickstart community.
Server configuration error:Fatal error: Cannot redeclare class JDate
everybody, I have this propblem and I don't know how to solve it. I explain: I hired a vps and installed a centos6 template with vhm/cpanel.Itried to configure everything and it seems to be working; The only propblem is that the script that I used on a shared host are no more runing and I get this error "Fatal error: Cannot redeclare class + name of class". This scripts are for example joomla2.5,joomla 3 ,... I have searched on forums and no body seems to understand this problem. Everybody is thinking it's about using "include" instead of "require_once" but that is not the case because I did not touch anything on this scripts and I simply moved them from the former host to the new environment on the new vps. For me I think something is going wrong on this envirnment not the scripts. Does anybody have an idea about what's going on on my new vps? Please?
I have solved the problem! The error was due to a wrong php handler "dso".This handler does not allow you to load or redeclare classes inside one script operations. When I changed to "cgi" everything started running smothly. I think cpanel should not include "dso" php handler as default but set "cgi" or "suPHP" instead. Here is an article about running PHP as a cgi/apache module. http://docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F This other article sugest using cgi on php5 environment and dso on php4. http://blog.servint.net/2011/10/28/the-tech-bench-all-about-php-handlers/ If you have this problem on shared host I don't know any other work around but calling the hosting campany to adress the issue by changing php handlers on the sever. Here is another interesting article about php handlers http://www.webhostingtalk.com/showthread.php?t=679944 Thanks and I hope this will help someone.
problems with Crypt::SSLeay and using HTTPS request?
I'm trying to connect to a website via HTTPS, by sending a WWW::Mechanize get request and whenever I try and run my script I get this error: This Application has faile to start because libeay32_.dll was not found. Re-installing the application may fix this problem And inside the command prompt I get: Error GETing http...: can't load 'C:/strawberry/perl/vendor/lib/auto/Crypt/SSLeay/SSLeay.dll for module Crypt::SSLeay: load_file: The specified module could not be found (Crypt::SSLeay or IO::Socket::SSL no installed) at ... I don't understand the problem because I'm very new to programming with Perl. Crypt::SSLeay is installed, the .dll is in the proper location and IO::Socket::SSL is also installed, or whenever I try to install it via cpan i get the libeay error again. The libeay32_.dll is located in the C:\straberry\c\bin. I don't have full access right to the computer because I am doing this from work. If someone could explain to me the reason for the problem it would be appreciated.
I make an answer out of my comments so you can check this question as answered: Add "C:\straberry\c\bin" to the PATH-environment variable Close the explorer- and/or commandline-windows since running processes aren't notified if the environment changes and thus keep the old environment active (okay, in the command line you could apply the update manually by set PATH=...new path...).
Have you read the README.SSL file that comes with LWP? (WWW::Mechanize uses LWP to make the actual HTTP requests).
Is it actually possible to connect to ActiveMQ via XMPP and query/browse queues using "AciveMQ.Agent chatroom" feature?
I tried what I think are 4 most popular XMPP (aka "Jabber") clients (Spark, Pidgin, Psi, Pandion) to connect to ActiveMQ instance (Apache ActiveMQ ver. 5.3.0) on XMMP connector with an idea to use the "AciveMQ.Agent chatroom" for querying queues/etc and no success at all Some of them fail with 'Unknown error', some don't fail but kind of "hang"... interestingly, some communication does indeed reach the ActiveMQ side, because when I close a client it spits an exception "could not close" or something to that effect... and if I try "register new user" option (present on most clients" the ActiveMQ also spits some most cryptic warning message But I was never able to get to the point when I could see or specify "ActiveMQ.Agent" as chatroom and issue any commands... Before I waste any more time on this curious feature, I would like to hear whether anyone had any success with it? Thank you! PS: BTW, the book "ActiveMQ in Action book" http://www.manning.com/snyder/ shows that it is apparently works and is very easy using some Mac client (AdiumX), but I wanted it on a Windows PC ;)
This is for 2.0.0 linux version: http://www.igniterealtime.org/downloadServlet?filename=spark/spark_2_0_0.tar.gz
Did you try Spark 2.0.0? As far as I remember there was some bug in 2.5.x versions. There's a "Jabber clients compatibility" section here: http://activemq.apache.org/xmpp.html#XMPP-Jabberclientscompatibility It'd be great to document more of them (specify problems and workarounds). I'll try to find some time these days to test on windows. Any help is appreciated.
Topics work perfectly for me following http://activemq.apache.org/xmpp.html with ActiveMQ 5.5 and Spark 2.0. But so far I can't figure out how to connect to queues - maybe not possible.