Home
ejabberd
ejabberd@conference.jabber.ru
Понедельник, 28 марта 2011< ^ >
badlop установил(а) тему: www.ejabberd.im english room | March releases: exmpp 0.9.6, ejabberd 3.0.0-alpha-2, and Erlang/OTP R14B02
Конфигурация комнаты
Участники комнаты

GMT+4
[00:03:49] MBR вошёл(а) в комнату
[00:40:45] Holger вышел(а) из комнаты: leaving
[00:47:42] Holger вошёл(а) в комнату
[02:16:59] pankaj.visitme вышел(а) из комнаты
[02:18:47] pankaj.visitme вошёл(а) в комнату
[02:21:36] pankaj.visitme вышел(а) из комнаты
[02:23:17] pankaj.visitme вошёл(а) в комнату
[02:54:23] MBR вышел(а) из комнаты
[02:55:50] pankaj.visitme вышел(а) из комнаты
[08:42:52] alext вошёл(а) в комнату
[10:58:36] lemenkov вошёл(а) в комнату
[11:00:44] Jonas вошёл(а) в комнату
[11:16:28] pankaj.visitme вошёл(а) в комнату
[11:23:36] alext вышел(а) из комнаты
[11:24:51] <pankaj.visitme> hello
[11:24:53] <pankaj.visitme> hello
[11:24:56] <pankaj.visitme> hello
[11:27:09] <pankaj.visitme> I need some help please
[12:17:30] scippio вышел(а) из комнаты: Replaced by new connection
[12:17:33] scippio вошёл(а) в комнату
[12:43:52] pankaj.visitme вышел(а) из комнаты
[12:46:22] pankaj.visitme вошёл(а) в комнату
[12:48:11] pankaj.visitme вышел(а) из комнаты: offline
[12:48:33] pankaj.visitme вошёл(а) в комнату
[13:18:15] MBR вошёл(а) в комнату
[13:25:52] pankaj.visitme вышел(а) из комнаты
[13:29:11] pankaj.visitme вошёл(а) в комнату
[13:32:46] <pankaj.visitme> Hi Holger
[13:36:35] <pankaj.visitme> Has anyone worked on extauth for php/mysql in 2.1.6?
[13:38:41] <Holger> pankaj.visitme: So http://www.ejabberd.im/check_mysql_php doesn't work?
[13:44:41] <Holger> pankaj.visitme: Anyway, why do you want it to be written in PHP?  Won't internal authentication against MySQL (http://www.process-one.net/docs/ejabberd/guide_en.html#mysql) or one of the other external scripts do the trick?
[13:45:56] <MBR> Holger he wants to authenticate users from another database
[13:46:03] <pankaj.visitme> is sorry i was off
[13:46:11] <pankaj.visitme> internal auth is working
[13:46:41] <pankaj.visitme> but i want to integrate with another db with existing users
[13:46:48] <pankaj.visitme> say eg. joomla
[13:46:57] <pankaj.visitme> let me check the link you sent
[13:47:43] <pankaj.visitme> for the first link check_mysql_php, it is for ejabberd v.1 and processone support says that it is wrong
[13:48:55] <pankaj.visitme> the other link again sends me back to the first :)
[13:49:40] <Holger> MBR: So ejabberd's built-in MySQL support won't allow using another database?
[13:49:50] Holger never used it.
[13:51:16] <MBR> no i think *MBR is not 100% sure* but pankaj.visitme wants to authenticate with the user in another mysql database that is not an ejabberd database - for example a joomla database - so that the users there
[13:51:28] <MBR> can login using the same username and passwd
[13:51:38] <MBR> pankaj.visitme-  confirm the above ?
[13:51:55] <pankaj.visitme> yes exactly
[13:52:05] <Holger> It wasn't clear to me that I cannot configure ejabberd to do just that.
[13:52:10] <pankaj.visitme> there is another db and table
[13:52:28] <pankaj.visitme> so i want to use that for authentication
[13:52:36] <pankaj.visitme> all else is fine as it is
[13:52:54] <MBR> well Holger the "joomla" database wont have all the other ejabberd tables
[13:53:06] <pankaj.visitme> with extauth it should be easy to do anything, provided it works for me :)
[13:53:29] <Holger> MBR: I thought ejabberd could be configured to use MySQL only for authentication.
[13:53:38] <Holger> I may well be wrong.
[13:53:54] <pankaj.visitme> yes Holger, extauth is the way to do that :)
[13:54:01] <Holger> I guess I _am_ wrong, actually.  Sorry.
[13:54:09] badlop вошёл(а) в комнату
[13:54:19] <MBR> can it be configured to use 2 different db's
1 for auth and 1 for everything else (i.e. rosters and settings)?
[13:54:31] <Holger> pankaj.visitme: And the other extauth scripts won't work, either?
[13:54:33] <MBR> ahhh Badlop
[13:54:36] <Holger> pankaj.visitme: http://www.ejabberd.im/extauth
[13:54:59] <MBR> how do we make http://www.ejabberd.im/check_mysql_php work in ejabberd 2.1.x
[13:55:00] <pankaj.visitme> i dont know, didnt try, i am not good at other scripts
[13:55:56] pankaj.visitme вышел(а) из комнаты
[13:57:06] pankaj.visitme вошёл(а) в комнату
[13:57:43] <pankaj.visitme> ahh network problem, did i miss something after my last msg
[13:59:00] <pankaj.visitme> great badlop looks green now
[13:59:25] <pankaj.visitme> hello badlop can you help please
[14:00:39] <badlop> what problem?
[14:01:07] <pankaj.visitme> extauth with 2.1.6
[14:01:20] <pankaj.visitme> for php/mysql
[14:01:37] <pankaj.visitme> the script your wrote is for ver 1
[14:01:47] <pankaj.visitme> and its not working for 2.1.6
[14:02:08] <pankaj.visitme> processone support says that there is problem in the script
[14:02:40] <pankaj.visitme> should i paste the error log?
[14:05:05] <badlop> your error has:
** Reason for termination =
** {badarg,[{extauth,call_port,2},
            {ejabberd_auth_external,check_password_extauth,3},
            {ejabberd_auth,check_password_loop,2},
..
[14:05:23] <badlop> i think the script isn't running when users try to login
[14:07:06] <pankaj.visitme> ohhk
[14:07:17] <pankaj.visitme> so do i have to run it manually
[14:07:32] <pankaj.visitme> or ejabberd runs it by itself
[14:08:07] <badlop> ejabberd starts the script at first, and the script must keep running always
[14:08:19] <pankaj.visitme> ohhk
[14:09:03] <badlop> loop (always) {
  receive question from ejabberd {
     send response to ejabberd
  }
}
[14:10:19] <pankaj.visitme> hmm
[14:10:30] <pankaj.visitme> how can i check if the script is running
[14:10:49] <pankaj.visitme> the loop is already there in the script that you have made
[14:13:14] <pankaj.visitme> yes i can see it is running
[14:14:23] <pankaj.visitme> ohhh probably it worked this time
[14:14:34] <pankaj.visitme> i have to verify thoroughly
[14:15:30] <pankaj.visitme> does this make a difference:
{extauth_cache, 600}.
[14:16:03] <pankaj.visitme> i added it from the guide, it was not there in the .cfg file earlier
[14:16:32] <pankaj.visitme> whereare as if i add this on, ejabberd doesnt start: {extauth_instances, 3}.
[14:16:35] <badlop> whle testing yor script, set that to 'false'
[14:16:55] <pankaj.visitme> set what to false?
[14:17:03] <badlop> RTFM
[14:17:11] <pankaj.visitme> where is that
[14:17:32] <badlop> ejabberd Guide
[14:17:50] <pankaj.visitme> ok
[14:17:59] <pankaj.visitme> what does it do
[14:18:05] <badlop> RTFM
[14:19:04] <pankaj.visitme> ok
[14:20:17] <pankaj.visitme> nothing called RTFM there
[14:20:22] <pankaj.visitme> :)
[14:20:55] <pankaj.visitme> anyway i hope the problem is solved by the cache
[14:22:10] <badlop> http://en.wikipedia.org/wiki/RTFM
[14:22:53] <Holger> Caches are usually not all that great at solving problems which aren't related to performance.
[14:23:17] <pankaj.visitme> :D
[14:23:52] <pankaj.visitme> but the Manual itself is not that great for this part
[14:23:59] <pankaj.visitme> almost no info
[14:24:31] <Holger> Huh?  There's a longish paragraph explaining the extauth_cache setting.
[14:25:36] <pankaj.visitme> ohhk
[14:26:40] <pankaj.visitme> ok i will try with false
[14:27:01] <pankaj.visitme> my brain has ceased working
[14:28:57] <pankaj.visitme> i take my words back ;)
[14:29:56] <Holger> pankaj.visitme: So everything looks fine now?
[14:31:41] <pankaj.visitme> yes false works
[14:31:57] <pankaj.visitme> i have bypassed the db, so i will do that after a while
[14:47:53] pankaj.visitme вышел(а) из комнаты
[14:49:57] pankaj.visitme вошёл(а) в комнату
[14:50:16] pankaj.visitme вышел(а) из комнаты
[14:50:45] pankaj.visitme вошёл(а) в комнату
[15:06:51] pankaj.visitme вышел(а) из комнаты
[15:09:29] pankaj.visitme вошёл(а) в комнату
[15:21:37] pankaj.visitme вышел(а) из комнаты
[16:03:29] pankaj.visitme вошёл(а) в комнату
[16:29:30] theozaurus вошёл(а) в комнату
[16:30:49] <theozaurus> Hi Guys, just deploying a new server and noticed svn.process-one.net is down. Is it undergoing maintenance or has it moved?
[16:40:41] <theozaurus> I see ejabberd has moved to github, but I can't see the ejabberd-modules repo anywhere!
[16:47:15] scippio вышел(а) из комнаты
[16:48:17] <Holger> theozaurus: Yes, the ejabberd-modules repo is still in SVN.
[16:48:31] <Holger> Dunno whether the svn.process-one.net downtime is planned.
[16:48:47] scippio вошёл(а) в комнату
[16:49:32] <theozaurus> Holger: Do you know if any mirrors exist?
[16:52:32] <Holger> theozaurus: No idea, sorry.
[16:53:04] <Holger> theozaurus: If you're in a hurry, I could give you my checkout from December 2010.
[16:54:36] <Jonas> I aswell has a checkout, though from October 21st 2010, so I guess that doesn't help
[16:54:58] <theozaurus> Holger: Thanks, I think I have a copy knocking around that I can use. Might have to rethink my deployment strategy a little bit though
[17:35:27] JasperHartong вошёл(а) в комнату
[17:37:42] valera вошёл(а) в комнату
[17:40:33] <valera> hello, guys ! I am updating users roster with ejabberdctl push_roster /usr/lib/ejabberd/ebin/merged_roster  - it appears on the user's side - but everyone is offline in ejabberd http admin interface I see Subcription column for that roster - it has both in it  - ejabberd 2.1.5. am I missing something ?
[17:41:17] deryni вышел(а) из комнаты
[17:43:17] JasperHartong вышел(а) из комнаты
[17:44:28] pankaj.visitme вышел(а) из комнаты
[17:45:41] pankaj.visitme вошёл(а) в комнату
[17:47:51] <valera> isit related to using sql database instead mnesia somehow ?
[17:52:16] <pankaj.visitme> hi, is it possible to get the friends list from another exisitng db as the authentiction using extauth
[17:58:06] JasperHartong вошёл(а) в комнату
[18:01:08] JasperHartong вышел(а) из комнаты
[18:25:39] pankaj.visitme вышел(а) из комнаты
[18:28:03] Sérgio вошёл(а) в комнату
[18:29:03] deryni вошёл(а) в комнату
[18:33:37] scippio вышел(а) из комнаты: Replaced by new connection
[18:34:00] scippio вошёл(а) в комнату
[18:37:52] pankaj.visitme вошёл(а) в комнату
[18:46:35] pankaj.visitme вышел(а) из комнаты
[18:52:51] pankaj.visitme вошёл(а) в комнату
[18:59:03] pankaj.visitme вышел(а) из комнаты
[19:00:17] pankaj.visitme вошёл(а) в комнату
[19:10:52] lemenkov вышел(а) из комнаты
[19:35:34] Jonas вышел(а) из комнаты
[20:08:52] <badlop> pankaj.visitme: mod_roster_odbc
[20:11:17] <badlop> theozaurus: right, several services from process-one are down all the day due to some problem with the provider
[20:15:52] <theozaurus> badlop: Are there any plans to move the ejabberd-modules to github as well?
[20:16:40] <badlop> yes, but not yet
[20:20:25] <theozaurus> cool
[20:22:07] <pankaj.visitme> ok i will try to study more on mod_roster_odbc and ask you if i dont understand
[20:22:37] MBR вышел(а) из комнаты
[20:23:26] <badlop> get the friends list from another exisitng db <-- soory, not from an existing table; it must be a table formatted as ejabberd wants
[20:23:56] <badlop> if your question is "Does ejabberd support some extroster script?", the answer is "No"
[20:55:35] BcTpe4HbIu вошёл(а) в комнату
[21:02:31] <pankaj.visitme> ohhh
[21:06:59] <pankaj.visitme> and will the extauth and _odbc work together
[21:07:26] <pankaj.visitme> ejabberd didt start when i tried that
[21:14:07] pankaj.visitme вышел(а) из комнаты
[21:16:06] pankaj.visitme вошёл(а) в комнату
[21:16:11] pankaj.visitme вышел(а) из комнаты
[21:16:35] pankaj.visitme вошёл(а) в комнату
[21:21:21] MBR вошёл(а) в комнату
[21:37:39] pankaj.visitme вышел(а) из комнаты
[21:38:09] pankaj.visitme вошёл(а) в комнату
[22:05:44] <badlop> it should work
[22:07:03] <pankaj.visitme> i tried many times but if auth method for extauth is enabled it wont let ejabberd to start if odbc_server setting is defined
[22:07:14] <valera> badlop: good evening - I am trying to figure out why, after push_roster - to user a and b - they dont have subscripiton and see each other offline (in web interface it shows that both of them have Both in responding column) - where should I start checking from ?
[22:07:23] <valera> 2.1.5 + sql backend
[22:15:20] <badlop> pankaj.visitme: put in pasetbin your cfg
[22:15:27] <badlop> * pastebin.com
[22:16:10] <pankaj.visitme> ok
[22:16:54] <badlop> valera: register another account, and add it as friend of the first 2 accounts
[22:16:59] <badlop> check if presence works
[22:17:14] <badlop> then see in webadmin if there's any difference in the roster elements
[22:18:53] <valera> yes, it does work that way - I am getting auth requests confirming them and everything is fine. but I wrote some scripts for generating rosters for each group of ~200  users in total - and thought that I would be able to operate with their rosters using push_roster
[22:19:06] <valera> badlop: in webadmin its the same
[22:21:04] <pankaj.visitme> http://pastebin.com/wVc3P7EG
[22:25:18] <badlop> valera: what cfg did you paste?
[22:25:23] <badlop> i mean
[22:25:32] <badlop> pankaj.visitme: what cfg did you paste?
[22:26:29] <badlop> the one that you used before, or the the one that doesn't start?
[22:27:03] <pankaj.visitme> the one i used with extauth, that starts
[22:27:36] <badlop> if that starts, then how could it be useful to find the problem?
[22:28:57] <pankaj.visitme> sorry this one doesnt start
[22:29:21] <badlop> any error in ejabberd.log ?
[22:29:29] <pankaj.visitme> i need to comment {odbc_server, {mysql, "keptinbondage.com", 3306, "ejabberd", "ejabberd", "ejabberd@123!!"}}.
[22:29:33] <pankaj.visitme> to make it start
[22:29:40] <pankaj.visitme> let me check if there is error
[22:30:36] <pankaj.visitme> no error there but actually there are crash dumps
[22:30:45] <pankaj.visitme> caused by this
[22:31:48] <badlop> stop ejabberd, kill beam or beam.smp, remove the logs and crash dumps, use the problematic cfg, then start ejabberd, wait 1 minute, then read logs or dumps
[22:32:14] <badlop> does it still produce only a crash dump, no ejabberd.log?
[22:32:49] <pankaj.visitme> ok i will check and tell you
[22:33:23] <badlop> valera: do you have access to "ejabberdctl debug" ?
[22:50:07] <valera> badlop: yes I do
[22:50:14] <valera> actually log is at pretty high level
[22:50:21] <valera> can paste any specific bit
[22:50:26] <valera> to pastebin
[22:50:33] <valera> just give me an idea what to search for
[22:50:58] <valera> e.g. I see roster being pushed and retrieved by the clients
[22:52:07] <valera> pankaj.visitme: ehm probably offtopic but are you running ejabberd on multihome host ?
[22:52:50] <valera> pankaj.visitme: had plenty of problems myself, before setted proper dns entries for all ip's
[22:53:11] <valera> but from what I understand its not ejabberd but erlang vm specific
[22:55:06] <badlop> <valera> badlop: in webadmin its the same
<--- with queries like this you can check if the roster of "badlop" has "badlop2" as contact, and exactly the subscription and other details:
mnesia:dirty_read(roster, {"badlop", "localhost", {"badlop2", "localhost", ""}}).
[{roster,{"badlop","localhost",{"badlop2","localhost",[]}},
         {"badlop","localhost"},
         {"badlop2","localhost",[]},
         "apodo de badlop2 string",both,none,[],<<>>,[]}]
[22:55:06] <pankaj.visitme> no it is on one server
[22:56:46] <badlop> valera: and with several queries, compare precisely the roster items of contacts that share their presence and contacts that don't share it
[22:56:54] <valera> ok
[22:57:11] <valera> badlop: how to properly connect to mnesia db with erlang shell ?
[22:57:25] <badlop> any change may be relevant, like lacking "", or having <<"">>
[22:57:33] <valera> ok
[22:57:50] <valera> hm can I just dump mnesia tables with dump ?
[22:57:54] <valera> and check them ?
[22:57:59] <badlop> yes
[22:58:02] <valera> ok
[22:58:08] <badlop> dump to a big text file
[23:02:44] <pankaj.visitme> another serious problem :( the auth script runs all the time, but its taking 99.9% of processor
[23:09:51] <valera> badlop: http://pastebin.com/uNnhTF1r
[23:13:02] <valera> badlop: I am pretty sure in my roster file which I am pushing (no errors imporsfine)
[23:13:56] <badlop> i modified items in my table to look like your ERROR example, and presence is shared
[23:14:23] <badlop> DOMAIN is the same for proper and error contacts, right?
[23:14:36] <valera> yes
[23:14:45] <badlop> ok, then i ran out of ideas
[23:15:03] <badlop> basically, i expected that the push_roster command was producing incorrect table items
[23:15:53] <valera> badlop: the funny thing is that it worked previously when I had the global shared groupwith @all@
[23:16:07] <valera> e.g. global group - then rosters pushed with push_roster
[23:16:12] <badlop> my last attempt: show a minimal txt, i'll customize it and push in my test server
[23:16:39] <valera> ok
[23:19:32] <valera> badlop: in pm
[23:42:31] MBR вышел(а) из комнаты
[23:47:59] MBR вошёл(а) в комнату
[23:56:16] theozaurus вышел(а) из комнаты
[23:56:55] scippio вышел(а) из комнаты
[23:58:24] scippio вошёл(а) в комнату
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!