Twitter Bridge Woes

edited July 2010 in Plugins
I'm trying to get the Twitter Bridge working, but I'm seeing some odd behaviour.

I can post on StatusNet and have the post also go to Twitter - that works fine.

However, the sync twitter friends script doesn't seem to work. Everyone is removed and then added. For example:

2010-07-22 15:19:16 LOG_INFO: [statusnet.swan.ac.uk:synctwitterfriends.php:1881] Twitter bridge - removed old Twitter user: devpodcasts (23052791).
2010-07-22 15:19:16 LOG_INFO: [statusnet.swan.ac.uk:synctwitterfriends.php:1881] Twitter bridge - Added new Twitter user: devpodcasts (23052791).

I'm following over 150 people on Twitter, and this is running every minute or so, so it's not great. I only turned this on yesterday, and my log file is already over 50Mb. If other users start connecting their Twitter accounts, then the problem could get dramatically worse.

Also, I'm expecting to see my friends Tweets show up in my personal time line on StatusNet. I can see new Tweets in Twitter, but nothing in StatusNet:

2010-07-22 15:20:58 LOG_DEBUG: [statusnet.swan.ac.uk:queuedaemon.php:1862] Waiting up to 60 seconds for socket data...
2010-07-22 15:20:58 LOG_INFO: [statusnet.swan.ac.uk:twitterstatusfetcher.php:1869] nothing to sync


I'm running StatusNet 0.9.3 on a dedicated Ubuntu host. The configuration inforamation is at http://pastebin.org/413015.

Comments

  • edited July 2010
    queue enabled false

    needs to be set to true.

    if that doesnt help, paste your config.php here

    is everything else working as expected? (like ostatus sending and receiving?)

    (so short answer)
    php setconfig.php queue enabled 1
    /scripts/startdaemons.php
  • edit: also i think that
    queue queue_basename '/queue/'
    if you are using apachemq, it gets mad if you set it to something else. but you are using db queuing (default) so that doesnt matter.
  • Hi Aric. Thanks for your response.

    As you suggested, I tried the setconfig command, and restarted the daemons, but I still see the same behaviour:

    2010-07-27 08:16:47 LOG_INFO: [XXXX:synctwitterfriends.php:17457] Twitter bridge - removed old Twitter user: devpodcasts (23052791).
    2010-07-27 08:16:47 LOG_INFO: [XXXX:synctwitterfriends.php:17457] Twitter bridge - Added new Twitter user: devpodcasts (23052791).
    2010-07-27 08:16:47 LOG_INFO: [XXXX:synctwitterfriends.php:17457] Twitter bridge - removed old Twitter user: pupunzi (31692354).
    2010-07-27 08:16:47 LOG_INFO: [XXXX:synctwitterfriends.php:17457] Twitter bridge - Added new Twitter user: pupunzi (31692354).

    As regards OStatus, I have been able to subscribe to @evan@identi.ca, and I see posts - that all works fine.

    I have also tried subscribing to a couple of Google Buzz users, without success. The subscription process (apparently) goes OK, and I can see the avatar of the Buzz user in the list of my subscriptions. However, I never see any new posts. I have an account on identi.ca, and there I /can/ see new posts from the same Buzz user.

    FWIW, I'm using the frequently updated http://www.google.com/profiles/mashable to test this.

    Here's my config.php (with sensitive information X'd out):

    <?php
    if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }

    $config['site']['name'] = 'XXXX';

    $config['site']['server'] = 'XXXX';
    $config['site']['path'] = '';

    $config['db']['database'] = 'mysqli://XXXX:XXXX@XXXX/XXXX';

    $config['db']['type'] = 'mysql';

    /*
    * Added configuration after install
    */
    $config['site']['fancy'] = true;

    $config['site']['logfile'] = '/var/log/apache2/statusnet.log';

    // turing off Geonames after reading http://forum.status.net/discussion/408/php-issue-with-code-in-0.90/
    unset($config['plugins']['default']['Geonames']);

    addPlugin(
    'TwitterBridge',
    array(
    'consumer_key' => 'XXXX',
    'consumer_secret' => 'XXXX'
    )
    );

    $config['admin']['panels'][] = 'twitter';

    $config['twitterimport']['enabled'] = true;

    $config['integration']['source'] = 'XXXX'';
  • Actually, now I check again, perhaps OStatus isn't working after all.

    I just tried sending a @reply from my local account to my identi.ca account - it doesn't show up. The reverse didn't work, either.

    I guess my incoming subscription evan@identi.ca might just be dropping back to Atom..?

    When I originally subscribed to evan, this got logged:

    2010-07-22 13:28:30 LOG_INFO: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] HTTPClient: HTTP GET http://identi.ca/api/statuses/user_timeline/1.atom - 200 OK
    2010-07-22 13:28:31 LOG_INFO: [statusnet.xxx.xxx:1454.2b2544ff GET /main/push/callback/1?hub.mode=subscribe&hub.topic=http%3A%2F%2Fidenti.ca%2Fapi%2Fstatuses%2Fuser_timeline%2F1.atom&hub.challenge=4f210c701d133eff92addefd446458d80b414fc0f0c9457431fc08a15fa380f5&hub.verify_token=d1fadf4a7e61e6112e57bf485acb720c] PushCallbackAction::handleGet: sub confirmed
    2010-07-22 13:28:32 LOG_INFO: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] HTTPClient: HTTP POST http://identi.ca/main/push/hub - 204 No Content
    2010-07-22 13:28:32 LOG_INFO: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] FeedSub::doSubscribe: sub req ok and verified
    2010-07-22 13:28:41 LOG_DEBUG: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] Adding public key: (XXX)
    2010-07-22 13:28:41 LOG_DEBUG: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] Adding private key: (XXX)
    2010-07-22 13:29:34 LOG_ERR: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] HTTPClient: HTTP POST http://identi.ca/main/salmon/user/1 - 400 Bad Request
    2010-07-22 13:29:34 LOG_ERR: [statusnet.xxx.xxx:1443.6c66a2cf POST /main/ostatussub] Salmon at http://identi.ca/main/salmon/user/1 returned status 400:
    Salmon signature verification failed.


    It looks like there some issue with Salmon.

    I am nevertheless seeing entries like this in the Apache logs:

    x.x.x.x - - [26/Jul/2010:23:13:12 +0100] "POST /main/push/callback/1 HTTP/1.1" 200 256 "-" "StatusNet/0.9.3 (Half a World Away)"
    x.x.x.x - - [26/Jul/2010:23:14:28 +0100] "POST /main/push/callback/5 HTTP/1.1" 200 256 "-" "AppEngine-Google; (+http://code.google.com/appengine; appid: pubsubhubbub)"

    ... so Apache is at least receiving POSTs to the callback.

    This should probably be in a different discussion, though, right?
  • Correction - the @reply posted from identi.ca has now shown up on my local server.

    However, the @reply posted from my local server has _not_ shown up on identi.ca (yet, at least).

    Looks like incoming @replies work, but outgoing @replies do not.
  • okay, so i suspect the queudaemon is not running as it would be sending those out.

    "I tried the setconfig command, and restarted the daemons, but I still see the same behaviour:"

    what is the output of php /scripts/getvaliddaemons.php
    run the daemons it outputs by hand, and see if they spit anything to stdout



  • Hi Aric.

    Thanks for you help on this.

    root:/var/www# php scripts/getvaliddaemons.php
    /var/www/scripts/queuedaemon.php /var/www/plugins/TwitterBridge/daemons/synctwitterfriends.php /var/www/plugins/TwitterBridge/daemons/twitterstatusfetcher.php

    As you suggested, I ran the queue daemon manually:

    root:/var/www# php scripts/queuedaemon.php
    root:/var/www#

    Nothing has come out on stdout. I looked in the StatusNet log and I see

    2010-07-27 15:10:15 LOG_DEBUG: [statusnet.xxx.xxx:queuedaemon.php:1862] Waiting up to 60 seconds for socket data...
    2010-07-27 15:11:14 LOG_INFO: [statusnet.xxx.xxx:queuedaemon.php:17893] queuedaemon.generic already running. Exiting.
    2010-07-27 15:11:15 LOG_DEBUG: [statusnet.xxx.xxx:queuedaemon.php:1862] Waiting up to 60 seconds for socket data...

    Looks like it was already running...

    We'll try monitoring outgoing ports tommorow to see if its a firewall issue or similar.
  • edited July 2010
    @gsjhywel if queuedaemon.php is not spit out as one of the valid daemons, than there is a problem

    can I see the results of

    scripts/setconfig.php -a

  • can anyone write how the config.php file should look like if i want to use twitter both ways? i see too many errors with this and not one definite answer.

    pleas guys...
  • edited April 2011
    @paulc take a look at the README in the TwitterBridge folder first, it covers pretty much all you need to know.
    What specific errors are you seeing?
    EDIT: Also only ask in one thread please.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID