Exit 255 error when running gettweets.php

47 views
Skip to first unread message

dR.Oakin

unread,
Jun 27, 2017, 9:39:25 AM6/27/17
to 140dev Twitter Framework
Hello,

I am running 140Dev on a Ubuntu box. When I nohup the gettweets.php script, it bombs out and throws: Exit 255 error.

Here is my stack
  • PHP 7.0.15-0ubuntu0.16.04.4
  •  "ufw" firewall is enabled.
  • All ports except for 22, 80, and 443 are BLOCKED
  • *laterst version of Phirehose lib from Github

I am getting a connection issue with Phirehose, see below.  Wondering if anyone can shed some light on this issue?

Contents of nohup.out
============================================
 Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 1 of 20 connecting to stream:  (0). Sleeping for 1 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure 2 of 20 connecting to stream:  (0). Sleeping for 2 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 3 of 20 connecting to stream:  (0). Sleeping for 4 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 4 of 20 connecting to stream:  (0). Sleeping for 8 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure 5 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 6 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 7 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 8 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 9 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 10 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure 11 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 12 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 13 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 14 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 15 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 16 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure 17 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.20
Phirehose: Connecting to ssl://199.16.156.20, port=443, connectTimeout=5
Phirehose: TCP failure 18 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure 19 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure 20 of 20 connecting to stream:  (0). Sleeping for 16 seconds.
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'pizza',)
Phirehose: Resolved host stream.twitter.com to 199.16.156.217
Phirehose: Connecting to ssl://199.16.156.217, port=443, connectTimeout=5
Phirehose: TCP failure limit exceeded with 21 failures. Last error:
PHP Fatal error:  Uncaught PhirehoseConnectLimitExceeded: TCP failure limit exceeded with 21 failures. Last error:  in /var/www/html/140dev/libraries/phirehose/Phirehose.php:659
Stack trace:
#0 /var/www/html/140dev/libraries/phirehose/Phirehose.php(836): Phirehose->connect()
#1 /var/www/html/140dev/libraries/phirehose/Phirehose.php(411): Phirehose->reconnect()
#2 /var/www/html/140dev/db/get_tweets.php(57): Phirehose->consume()
#3 {main}
  thrown in /var/www/html/140dev/libraries/phirehose/Phirehose.php on line 659
Reply all
Reply to author
Forward
Message has been deleted
0 new messages