Phirehose no longer working

155 views
Skip to first unread message

ferran...@gmail.com

unread,
Feb 28, 2015, 8:44:44 AM2/28/15
to phireho...@googlegroups.com
Hello, I have been using the phirehose Framework for the lasts months without any problems. Yesterday I was trying to use it and i could not get it work.
This is what I got on the error log:


[28-Feb-2015 14:25:10 Europe/Madrid] PHP Warning:  stream_select(): unable to select [4]: Interrupted system call (max_fd=5) in /home/pieappsd/public_html/tfg-ferran/libraries/phirehose/Phirehose.php on line 407
[28-Feb-2015 14:25:10 Europe/Madrid] Phirehose: Phirehose connection error occured: Socket disconnected
[28-Feb-2015 14:25:10 Europe/Madrid] Phirehose: Closing Phirehose connection.
[28-Feb-2015 14:25:10 Europe/Madrid] Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array (  'track' => 'radar',)
[28-Feb-2015 14:25:10 Europe/Madrid] Phirehose: Connecting to ssl://stream.twitter.com, port=443, connectTimeout=5
[28-Feb-2015 14:25:11 Europe/Madrid] Phirehose: Connection established to stream.twitter.com
[28-Feb-2015 14:25:11 Europe/Madrid] Phirehose: POST /1.1/statuses/filter.json HTTP/1.1
Host: stream.twitter.com:443
Connection: Close
Content-type: application/x-www-form-urlencoded
Content-length: 11
Accept: */*
Authorization: OAuth realm="",oauth_consumer_key="UyLTuoC1zGmD6aNuV4mEsP3RP",oauth_nonce="e8dca38688a3075ebbd16d49481d6c5b",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1425129911",oauth_version="1.0A",oauth_token="813131413-pXBMldWU95Wk8WKVX7D5avg8t9O436Pe9sjJMxP6",oauth_signature="lnQaIqOmpeyomUsi5BzhWxguXJk%3D"
User-Agent: Phirehose/1.0RC +https://github.com/fennb/phirehose

my line 407 is:

 while ($this->conn !== NULL && !feof($this->conn) &&
        ($numChanged = stream_select($this->fdrPool, $fdw, $fde, $this->readTimeout)) !== FALSE) {
        
I have spent so many hours trying to solve this error without results.

Hope anyone can help me. Thanks in advance :)

Ferran.

Rafael Gonzalez

unread,
Mar 1, 2015, 12:08:22 AM3/1/15
to phireho...@googlegroups.com
My first step when any HTTPS/SSL thing fails and I know it worked before is to check the date and timezone on the machine. Usually that is the problem. 
If that does not work, we would need one of the wizards of this code to pitch in.



--

---
You received this message because you are subscribed to the Google Groups "Phirehose Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phirehose-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karthik Murugan

unread,
Mar 1, 2015, 4:15:06 AM3/1/15
to phireho...@googlegroups.com
If server clock is out of sync, I'd do this on my CentOS box to fix it: 

yum install ntp

chkconfig ntpd on

ntpdate pool.ntp.org

service ntpd start

Reply all
Reply to author
Forward
0 new messages