Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  [py-transports] freebsd ports version problem

Guest
Posted: Thu Oct 12, 2006 9:00 pm Reply with quote
Guest
> Try using the "poll" reactor instead of the "kqueue"
> reactor in twisted

please be specific where to hack it?

> And share your transport configuration file??

back in thread. but, since you asked, appended

randy

---


<pyaimt>
<!-- The JabberID of the transport. -->
<jid>aim.psg.com</jid>

<!-- The JabberID of the conference room handler. -->
<!-- GROUPCHAT IS NOT STABLE YET -->
<confjid>conference.psg.com</confjid>

<!-- The component JID of the transport. Unless you're doing
clustering, leave this alone -->
<!-- <compjid>aim1</compjid> -->

<!-- The location of the spool directory.. if relative,
relative to -->
<!-- the src dir. Do not include the jid of the transport. -->
<spooldir>/var/spool/jabberd</spooldir>

<!-- The location of the PID file.. if relative, relative to
the src dir. -->
<!-- Comment out if you do not want a PID file -->
<pid>/var/run/PyAIMt.pid</pid>

<!-- The IP address of the main Jabber server -->
<mainServer>147.28.0.35</mainServer>

<!-- The JID of the main Jabber server -->
<mainServerJID>jabber.psg.com</mainServerJID>

<!-- The website of the Jabber service -->
<website>http://psg.com/</website>

<!-- The TCP port to connect to the Jabber server on -->
<!-- (this is the default for Jabberd2) -->
<port>5347</port>

<!-- The TCP port that the web admin interface will answer on -->
<!-- (uncomment to enable) -->
<!-- <webport>12345</webport> -->

<!-- The authentication token to use when connecting to the
Jabber server -->
<secret>don't be silly</secret>

<!-- The default language to use (for error/status messages) -->
<lang>en</lang>

<!-- The hostname of the AOL login server you wish to connect
to -->
<aimServer>login.oscar.aol.com</aimServer>

<!-- The port of the AOL server you wish to connect to -->
<aimPort>5190</aimPort>

<!-- The name of Socks Proxy if connecting thru a proxy -->
<!-- <socksProxyServer>im-proxy2</socksProxyServer> -->

<!-- The Socks Proxy port to use when connecting thru a proxy -->
<!-- <socksProxyPort>1080</socksProxyPort> -->

<!-- Send greeting on login (enter text to be sent to users
here) -->
<!-- <sessionGreeting>enter message here</sessionGreeting> -->

<!-- Send message on successful registration -->
<!-- <registerMessage>You have successfully registered with
PyAIMt</registerMessage> -->

<!-- Allow users of AIM gateway to chat with ICQ users -->
<!-- (uncomment to enable) -->
<!-- <crossChat/> -->

<!-- Disable registration with the transport -->
<!-- (uncomment to disable) -->
<!-- <disableRegister/> -->

<!-- Enable automatic invitation to reconnect on restart -->
<!-- (uncomment to enable) -->
<!-- <enableAutoInvite/> -->

<!-- Disable xhtml support (messages with fonts and colors) -->
<!-- (uncomment to disable) -->
<!-- <disableXHTML/> -->

<!-- Disable mail notifications -->
<!-- (uncomment to disable) -->
<!-- <disableMailNotifications/> -->

<!-- Disable use of default avatar if none is specified -->
<!-- (uncomment to disable) -->
<!-- <disableDefaultAvatar/> -->

<!-- You can choose which users you wish to have as
administrators. These users can perform some tasks with Ad-Hoc commands
that others cannot -->
<admins>
<jid>randy@jabber.psg.com</jid>-->
</admins>


<!-- You can select which event loop PyAIMt will use. It's
probably safe to leave this as the default -->

<!-- Use epoll for high-load Linux servers running kernel 2.6
or above -->
<!--<reactor>epoll</reactor>-->

<!-- Use kqueue for high-load FreeBSD servers -->
<!--<reactor>kqueue</reactor>-->
<reactor>kqueue</reactor>

<!-- Use poll for high-load Unix servers -->
<!--<reactor>poll</reactor>-->

<!-- You can select which spool storage method you wish to use -->
<!-- Available methods are: -->
<!-- xmlfiles: single xml files in the spool directory in
hashed dirs (default)-->
<!-- legacyaimtransport: compatible with c-based aim transport,
less functionality -->
<!-- mysql: registration information stored in a MySQL database -->
<!--<xdbDriver>xmlfiles</xdbDriver>-->

<!-- For MySQL -->
<!--<xdbDriver>mysql</xdbDriver>-->
<!--<xdbDriver_mysql>-->
<!--<username>pyaimt</username>-->
<!--<password>pyaimt</password>-->
<!--<database>pyaimt</database>-->
<!--<server>localhost</server>-->
<!--</xdbDriver_mysql>-->

<!-- For XMLFiles -->
<!--<xdbDriver>xmlfiles</xdbDriver>-->
<!--<xdbDriver_xmlfiles>-->
<!--<format>encrypted</format>--> <!-- Enable encryption of
passwords -->
<!--</xdbDriver_xmlfiles>-->

<xdbDriver>legacyaimtransport</xdbDriver>

<!-- Only grab avatars when a chat is initiated. -->
<!-- NOT IMPLEMENTED YET -->
<!-- <avatarsOnlyOnChat/> -->

<!-- Disable all avatar functionality. Might be necessary if
you -->
<!-- do not have PIL installed. -->
<!-- <disableAvatars/> -->

<!-- Use Jabber.com's XCP component protocol extensions. -->
<!-- <useXCP/> -->

<!-- SASL username used to bind to Jabber server. -->
<!-- secret, above, is used for sasl password -->
<!-- <saslUsername/> -->

<!-- Use Jabberd 2's component protocol extensions. -->
<!-- Requires saslUsername to work. -->
<!-- <useJ2Component/> -->
</pyaimt>
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Thu Oct 12, 2006 9:45 pm Reply with quote
Guest
> - > Try using the "poll" reactor instead of the "kqueue"
> - > reactor in twisted

significant advance

# /usr/local/etc/rc.d/jabber-pyaim-transport start
Starting jabber_pyaim.
/usr/local/lib/jabber/pyaim/src/tlib/domish.py:434: DeprecationWarning: twisted.protocols.sux has moved to twisted.web.sux. See http://twistedmatrix.com/projects/web.
from twisted.protocols import sux

the following are installed

py25-twistedCore-2.4.0/
py25-twistedWeb-0.6.0_1/
py25-twistedWords-0.4.0/

randy

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Thu Oct 12, 2006 10:22 pm Reply with quote
Guest
> - # /usr/local/etc/rc.d/jabber-pyaim-transport start
> - Starting jabber_pyaim.
> - /usr/local/lib/jabber/pyaim/src/tlib/domish.py:434: DeprecationWarning: twisted.protocols.sux has moved to twisted.web.sux. See http://twistedmatrix.com/projects/web.
> - from twisted.protocols import sux
>
> that's "normal".. The warning doesn't stop the transport
> from starting up and running. (at least, not in my experience.)

well, ps -auxww | grep showed no instance running, and i can not
log on to it.

where the heck is it logging?

randy


_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 13, 2006 12:49 am Reply with quote
Guest
ok. i have it logging

Traceback (most recent call last):
File "/usr/local/lib/jabber/pyaim/PyAIMt.py", line 16, in <module>
main.main()
File "/usr/local/lib/jabber/pyaim/src/main.py", line 473, in main
app = App()
File "/usr/local/lib/jabber/pyaim/src/main.py", line 410, in __init__
pid = int(str(pf.readline().strip()))
ValueError: invalid literal for int() with base 10: ''

randy

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 13, 2006 4:11 am Reply with quote
Guest
> I'd say to stop the daemon (yea, it's not running, I
> know.. Smile, remove the pidfile, and start it running agin.

bingo!!

it is working.

> Sure you don't want to use the package I've built via
> pkgsrc? pkgsrc works very well on FreeBSD.. Smile

never tried that path. but this hack sure tempts me

thank you so much for your help

randy

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum