Skip to content

Instantly share code, notes, and snippets.

View lloydwatkin's full-sized avatar

Lloyd Watkin lloydwatkin

View GitHub Profile
@lloydwatkin
lloydwatkin / gist:4476672
Last active December 10, 2015 18:48
Authentication issues buddycloud API server and Tigase Server: ip-10-66-2-93 Username: romeo@ip-10-66-2-93 Password: romeo "INCOMING"/"OUTGOING" logs from api server, everything else is coming from tigase with full logging switched on. Note: System is up and working using old strophe.js based webclient. Config: // Default settings (apply to all …
Request: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5"/>, conn: user_jid=null, connectioId=c2s@ip-10-66-2-93/127.0.0.1_5222_127.0.0.1_49388
2013-01-07 16:53:45 SessionManager.processPacket() FINEST: Packet processed by: [urn:ietf:params:xml:ns:xmpp-sasl]
2013-01-07 16:53:45 UserAuthRepositoryImpl.saslAuth() FINEST: response:
2013-01-07 16:53:45 UserAuthRepositoryImpl.saslAuth() FINEST: challenge: realm="ip-10-66-2-93",nonce="xMN7Xh9l9XZgadq5mTSBi5QmHBtPo53EZV2cPy1y",qop="auth",charset=utf-8,algorithm=md5-sess
2013-01-07 16:53:45 DomainFilter.getDomains() FINEST: domains read from user session: null
2013-01-07 16:53:45 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@ip-10-66-2-93, to=c2s@ip-10-66-2-93/127.0.0.1_5222_127.0.0.1_49388, data=<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">CData size: 152</challenge>, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, priority=NORMAL
2013-01-07 16:53:45 MessageRouter.processPacket()
@lloydwatkin
lloydwatkin / gist:4147568
Created November 26, 2012 10:31
buddycloud-http-api install issues
npm http GET https://registry.npmjs.org/iso8601/1.1.1
npm http GET https://registry.npmjs.org/mocha/1.0.3
npm http GET https://registry.npmjs.org/jwt-simple
npm http GET https://registry.npmjs.org/should/0.6.3
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/libxmljs
npm http GET https://registry.npmjs.org/ltx
npm http GET https://registry.npmjs.org/node-stringprep
npm http GET https://registry.npmjs.org/node-xmpp
@lloydwatkin
lloydwatkin / gist:3772172
Created September 23, 2012 16:14
Mongo and Meteor, forEach issue
Using a Fedora 15 x86_64 system
[lloyd@desktop leaderboard]$ meteor --version
Meteor version 0.4.0 (8f4045c1b9)
[lloyd@desktop leaderboard]$ mongo --version
MongoDB shell version: 2.0.7
[lloyd@desktop leaderboard]$ nvm ls
current: v0.8.5
@lloydwatkin
lloydwatkin / gist:3674670
Created September 8, 2012 12:55
Owner fix
[lloyd@desktop buddycloud-server]$ psql -d buddycloud-server -c "update affiliations set \"user\" = 'memememme' where node = '/user/[email protected]/posts' and affiliation = 'owner';"UPDATE 1
[lloyd@desktop buddycloud-server]$ psql -d buddycloud-server -c "select * from affiliations where node IN (select node from node_config where key = 'channelType' and value = 'personal') and affiliation = 'owner';" node | user | affiliation | updated
------------------------------------------+------------------------------+-------------+---------
/user/[email protected]/posts | memememme | owner |
/user/[email protected]/posts | [email protected] | owner |
/user/[email protected]/posts | [email protected] | owner |
/user/[email protected]/posts | [email protected] | owner |
/user/[email protected]/posts | cookie@evi
@lloydwatkin
lloydwatkin / gist:3302529
Created August 9, 2012 09:08
Buddycloud server error
e@my-server: channels.my-server
[Wed, 08 Aug 2012 14:31:58 GMT] DEBUG [local/operations] operations.run: { iq:
{ name: 'iq',
parent: null,
attrs:
{ to: 'channels.my-server',
id: 'sHXjv-4',
from: 'twinkle@my-server/BC_TEST_CLIENT',
type: 'set',
xmlns: 'jabber:client',