Hi,
egal welches Browser ich probiere - heute bekomme ich immer folgende Meldung:
Gru? Morgaine (S27
PHP Error
fsockopen(): unable to connect to 127.0.0.1:1464 (Connection refused)
/data/api/common/extensions/dc/phpscribe/transport/TSocket.php(220)
208 209 if ($this->persist_) { 210 $this->handle_ = pfsockopen($this->host_, 211 $this->port_, 212 $errno, 213 $errstr, 214 $this->sendTimeoutSec_ + ($this->sendTimeoutUsec_ / 1000000)); 215 } else { 216 $this->handle_ = fsockopen($this->host_, 217 $this->port_, 218 $errno, 219 $errstr, 220 $this->sendTimeoutSec_ + ($this->sendTimeoutUsec_ / 1000000)); 221 } 222 223 return $this->handle_; 224 // Connect failed? 225 /* 2012/6/11 zhouct ???????????? 226 if ($this->handle_ === FALSE) { 227 $error = 'TSocket: Could not connect to '.$this->host_.':'.$this->port_.' ('.$errstr.' ['.$errno.'])'; 228 if ($this->debug_) { 229 call_user_func($this->debugHandler_, $error); 230 } 231 232 }else{
Stack Trace
2017-12-22 02:50:54 nginx/1.2.6 Yii Framework/1.1.8
Warning: fclose() expects parameter 1 to be resource, null given in /data/api/common/extensions/dc/phpscribe/transport/TSocket.php on line 242
egal welches Browser ich probiere - heute bekomme ich immer folgende Meldung:
Gru? Morgaine (S27
PHP Error
fsockopen(): unable to connect to 127.0.0.1:1464 (Connection refused)
/data/api/common/extensions/dc/phpscribe/transport/TSocket.php(220)
208 209 if ($this->persist_) { 210 $this->handle_ = pfsockopen($this->host_, 211 $this->port_, 212 $errno, 213 $errstr, 214 $this->sendTimeoutSec_ + ($this->sendTimeoutUsec_ / 1000000)); 215 } else { 216 $this->handle_ = fsockopen($this->host_, 217 $this->port_, 218 $errno, 219 $errstr, 220 $this->sendTimeoutSec_ + ($this->sendTimeoutUsec_ / 1000000)); 221 } 222 223 return $this->handle_; 224 // Connect failed? 225 /* 2012/6/11 zhouct ???????????? 226 if ($this->handle_ === FALSE) { 227 $error = 'TSocket: Could not connect to '.$this->host_.':'.$this->port_.' ('.$errstr.' ['.$errno.'])'; 228 if ($this->debug_) { 229 call_user_func($this->debugHandler_, $error); 230 } 231 232 }else{
Stack Trace
#0 | + ? /data/api/common/extensions/dc/phpscribe/transport/TSocket.php(220): fsockopen("127.0.0.1", 1464, 0, "", ...) 215 } else { 216 $this->handle_ = fsockopen($this->host_, 217 $this->port_, 218 $errno, 219 $errstr, 220 $this->sendTimeoutSec_ + ($this->sendTimeoutUsec_ / 1000000)); 221 } 222 223 return $this->handle_; 224 // Connect failed? 225 /* 2012/6/11 zhouct ???????????? |
#1 | + ? /data/api/common/extensions/dc/phpscribe/transport/TFramedTransport.php(83): TSocket->open() 78 public function isOpen() { 79 return $this->transport_->isOpen(); 80 } 81 82 public function open() { 83 return $this->transport_->open(); 84 } 85 86 public function close() { 87 $this->transport_->close(); 88 } |
#2 | + ? /data/api/common/extensions/dc/DcLog.php(148): TFramedTransport->open() 143 public function send_log($category, $message){ 144 145 $log['category'] = $category; 146 $log['message'] = $this->key.__LOG_SEPARATOR__.$this->server_id.__LOG_SEPARATOR__.implode(__LOG_SEPARAT OR__,$message)."\n"; 147 if(FALSE === $this->transport_opened){ 148 $this->transport_opened = $this->transport->open(); 149 #var_dump($this->transport_opened); 150 } 151 152 //??scribe????????? 153 // /etc/init.d/scribed ??????????????php????php?????????????????scribe |
#3 | + ? /data/api/common/components/URedis.php(60): DcLog->send_log("RedisErr", array("Redis Error Info|ServerIP:192.168.1.224|connect Redis Error; hos...", 1513929054)) 55 Yii::import('common.extensions.dc.DcLog'); 56 $serverId = 'sid'; 57 $key = "key"; 58 $dc = DcLog::getInstance($key, $serverId); 59 $message = array('Redis Error Info|ServerIP:'.$_SERVER['SERVER_ADDR'].'|'.$e->getMessage().'|port:'.$this->port.'|timeout:'.$this->timeOut.'|time:'.date("Y-m-d H:i:s"),time()); 60 $dc->send_log('RedisErr',$message); 61 //send log end 62 return null; 63 } 64 } 65 return $this->_handler; |
#4 | + ? /data/api/framework/base/CComponent.php(112): URedis->getHandler() 107 */ 108 public function __get($name) 109 { 110 $getter='get'.$name; 111 if(method_exists($this,$getter)) 112 return $this->$getter(); 113 else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 114 { 115 // duplicating getEventHandlers() here for performance 116 $name=strtolower($name); 117 if(!isset($this->_e[$name])) |
#5 | + ? /data/api/common/components/URedis.php(74): CComponent->__get("handler") 69 return $this->_error; 70 } 71 72 public function __call($method, $arg_array){ 73 try{ 74 if($this->handler==null) return false; 75 return call_user_func_array(array($this->handler,$method), $arg_array); 76 }catch(Exception $e){ 77 $this->_error = $e->getMessage(); 78 return false; 79 } |
#6 | + ? /data/api/common/components/BasicData.php(550): URedis->__call("hmget", array("manage_opgame:631@w:46@w", array("op_id", "game_id", "allow_ip", "old_op_id", ...))) 545 return $this->request($url,array('op_id'=>$op_id, 'game_id'=>$game_id)); 546 } 547 548 public function getOpgameInfo($op_id=0, $game_id=0) 549 { 550 return $this->hmget($this->getKey("manage_opgame:".$op_id.":".$game_id), array('op_id', 'game_id', 'allow_ip', 'old_op_id', 'op_key', 'addtime')); 551 } 552 553 public function changeListServerId($opId, $gameId, $serverId) 554 { 555 $serverIds = $this->zrevrange($this->getKey("manage_opmix_list:".$opId.":".$gameId), 0, -1); |
#7 | + ? /data/api/common/components/BasicData.php(550): BasicData->hmget("manage_opgame:631@w:46@w", array("op_id", "game_id", "allow_ip", "old_op_id", ...)) 545 return $this->request($url,array('op_id'=>$op_id, 'game_id'=>$game_id)); 546 } 547 548 public function getOpgameInfo($op_id=0, $game_id=0) 549 { 550 return $this->hmget($this->getKey("manage_opgame:".$op_id.":".$game_id), array('op_id', 'game_id', 'allow_ip', 'old_op_id', 'op_key', 'addtime')); 551 } 552 553 public function changeListServerId($opId, $gameId, $serverId) 554 { 555 $serverIds = $this->zrevrange($this->getKey("manage_opmix_list:".$opId.":".$gameId), 0, -1); |
#8 | + ? /data/api/deloa/protected/helpers/ServerDataHelper.php(92): BasicData->getOpgameInfo("631@w", "46@w") 87 * @return mix 88 * @throws CException 89 */ 90 public static function redisOpGame($op_id, $game_id) 91 { 92 $info = Yii::app()->basicData->getOpgameInfo(self::w2id($op_id),self::w2id($game _id)); 93 return $info; 94 } 95 96 /** 97 * ???????????? |
#9 | + ? /data/api/deloa/protected/modules/api/controllers/APIGeneralController.php(93): ServerDataHelper::redisOpGame("631", "46") 88 } 89 90 public function getGameServerInfo($op_id, $serverId, $gameId) 91 { 92 $gameServer = array(); 93 $OpGame = ServerDataHelper::redisOpGame($op_id, $gameId); 94 if (empty($OpGame) || $OpGame['op_id'] == false) { 95 return 1; 96 } else { 97 $server = ServerDataHelper::getServerInfo($gameId, $serverId, $op_id); 98 if (empty($server) || $server['server_id'] == false) { |
#10 | + ? /data/api/deloa/protected/modules/api/controllers/CommonController.php(45): APIGeneralController->getGameServerInfo("631", "46006310000027", "46") 40 } 41 } else { 42 $this->showResult(5); 43 } 44 $this->validateCommon(); 45 $gameServerInfo = $this->getGameServerInfo($this->data['op_id'], $this->data['sid'], $this->data['game_id']); 46 if ($gameServerInfo == 1) { 47 $this->showResult(1); 48 } elseif ($gameServerInfo == 2 || !$gameServerInfo) { 49 $this->showResult(2); 50 } else { |
#11 | + ? /data/api/framework/web/CWebApplication.php(276): CommonController->init() 271 if(($ca=$this->createController($route))!==null) 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#12 | + ? /data/api/framework/web/CWebApplication.php(136): CWebApplication->runController("api/common/login") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#13 | + ? /data/api/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#14 | + ? /data/api/deloa/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |
Warning: fclose() expects parameter 1 to be resource, null given in /data/api/common/extensions/dc/phpscribe/transport/TSocket.php on line 242
Kommentar