send direct invitation not working on MUC [ejabberd mod muc admin] - ejabberd

i have no problem to create MUC room. But when i want to add participant and use below command :
ejabberdctl send_direct_invitation testRoom#localhost localhost "" "hi" msg_test1#localhost
it return me error like this :
Problem 'error function_clause' occurred executing the command.
Stacktrace: [{jid,to_string,[error],[{file,"src/jid.erl"},{line,134}]},
{mod_muc_admin,send_direct_invitation,5,
[{file,"src/mod_muc_admin.erl"},{line,695}]},
{ejabberd_commands,execute_command2,2,
[{file,"src/ejabberd_commands.erl"},
{line,407}]},
{ejabberd_ctl,call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,295}]},
{ejabberd_ctl,try_call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,271}]},
{ejabberd_ctl,process2,3,
[{file,"src/ejabberd_ctl.erl"},{line,220}]},
{ejabberd_ctl,process,1,
[{file,"src/ejabberd_ctl.erl"},{line,205}]},
{rpc,'-handle_call_call/6-fun-0-',5,
[{file,"rpc.erl"},{line,206}]}]
i dont know what is wrong with my command .. so is it any way to use the command?

I can see issue with the first two parameters of your command. first parameter should be room name without #hostname and second paramater should be the name of muc service e.g. muc.localhost (you can check this in config file)
So try below:
ejabberdctl send_direct_invitation testRoom muc.localhost "" "hi" msg_test1#localhost

Related

Why I am always getting "inexistent-host" error?

I installed ejabberd 20.07 on Ubuntu and set domain name as faiqkhan-VirtualBox and set user-admin name as admin and password to 123456. I also check install.log file it shows
User admin#faiqkhan-VirtualBox successfully registered. I also checked using command ./ejabberctl registered_users faiqkhan-VirtualBox it returns my user name admin. I don't know why it always giving error Access of <<"admin#faiqkhan-VirtualBox">> from <<"::ffff:127.0.0.1">> failed with error: <<"inexistent-host">> while logging in.
After changing the given URL http://localhost:5280/admin/ to my host http://faiqkhan-VirtualBox:5280/admin/ I successfully logged in.
As the error message states the host (#domain) is non-existent.
You will need to add it to your ejabberd.yml under hosts e.g. for localhost:
hosts:
- "faiqkhan-VirtualBox"
- "localhost"
Or for admin#faiqkhan.com (username admin and hostname faiqkhan.com)
hosts:
- "faiqkhan-VirtualBox"
- "faiqkhan.com"
Cheers

Carthage error "Bad credentials"

Instructions: https://github.com/watson-developer-cloud/ios-sdk
Errors:
*** Skipped downloading ios-sdk.framework binary due to the error:
"Bad credentials"
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
I got the solution in response to a Carthage issue willhains raised:
Edit ~/.gitconfig and add the following:
[credential]
helper = osxkeychain
[credential "https://github.com"]
username = willhains
Replace willhains with your GitHub user ID.
Clone a private repo via HTTPS.
OSX will prompt for your GitHub password.
Run Carthage update.
OR
You can delete the GitHub credential form you Keychain access and use..
Hope this will help
For in my case:
I changed my Github username and forgot to change local credentials(only username) stored in Keychain Access.
Do change the username to your new one and voila!

Authentication error in freeradius server

I have installed freeradius server on Ubuntu-14.04, when I try take radtest on server using, radtest -x bob root123 127.0.0.1 1812 testing123
I get following error when I run freeradius -X,
[sql] User bob not found
++[sql] returns notfound >++[expiration] returns noop >++[logintime] returns noop >[pap] WARNING! No "known good" password found for the user. >Authentication may fail because of this. >++[pap] returns noop >ERROR: No authenticate method (Auth-Type) found for the request: >Rejecting the user >Failed to authenticate the user >Using Post-Auth-Type Reject
I have added user in users file, bob Cleartext-Password := "root123"
In eap.conf file, default_eap_type = peap
Still getting an error, can anyone help me to resolve my issue?
Have you enabled the text-file as a valid source for your users?
The error message seems like you just enabled sql but not the
#
# Read the 'users' file
files
in the sites-enabled/default (and innter-tunnel)
Hopefully this fixes your problem

How to use eventbus messaging in vertx?

I followed the instructions in sample and ran:
vertx run eventbus_pointtopoint/receiver.rb -cluster
vertx run eventbus_pointtopoint/sender.rb -cluster
Then I only got:
➜ ruby vertx run eventbus_pointtopoint/receiver.rb -cluster
Starting clustering...
No cluster-host specified so using address 192.168.56.1
Succeeded in deploying verticle
➜ ruby vertx run eventbus_pointtopoint/sender.rb -cluster
Starting clustering...
No cluster-host specified so using address 192.168.56.1
Succeeded in deploying verticle
But no message received. What am I doing wrong?
If you just want to see how event bus messaging works you can just move both pieces of code into the one file and run it.
require "vertx"
include Vertx
EventBus.register_handler('ping-address') do |msg|
puts "Received message: #{msg.body}"
# Now reply to it
msg.reply('pong!')
end
Vertx::set_periodic(1000) do
EventBus.send('ping-address', 'ping') do |reply|
puts "Received reply: #{reply.body}"
end
end
To run clustered
If you want to run the example specified with clustering you may need to change your cluster.xml config file, it is in the conf folder of your vertx install. I had to change two lines, first change
<multicast enabled="true">
to false:
<multicast enabled="false">
then change
<tcp-ip enabled="false">
to true
<tcp-ip enabled="true">
and make sure the interface tag has the correct IP address. Then the commands you specified above should run.

Not Able to stop Mysql

I want to stop mysql inorder to start it in rescue mode to retrieve my mysql password but its showing my me an error message and won't stop.
service mysql stop
OUTPUT:
stop: Rejected send message, 1 matched rules; type="method_call",
sender=":1.131" (uid=1000 pid=7640 comm="stop mysql ")
interface="com.ubuntu.Upstart0_6.Job" member="Stop" error
name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init")
output of
etc/init.d/mysql stop
Rather than invoking init scripts through /etc/init.d, use the
service(8) utility, e.g. service mysql stop
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop mysql
stop: Rejected send message, 1 matched rules; type="method_call",
sender=":1.129" (uid=1000 pid=7246 comm="stop mysql ")
interface="com.ubuntu.Upstart0_6.Job" member="Stop" error
name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init") subhransu#subhransu-Inspiron-1545:~$
service mysql stop stop: Rejected send message, 1 matched rules;
type="method_call", sender=":1.130" (uid=1000 pid=7400 comm="stop
mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error
name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init")
Try:
sudo service mysql stop
You have to be root to start and stop mysql server.
If you are not root, you must be a sudo-able user, you must use the command sudo and you must know your sudo-password.