conradjohnathan17 / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

用..\snova-gae-jserver-0.14.0下的install.bat部署GAE不成功,出现如下问题,请问如何解决? (没有搜索到类似错误) #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Win7环境,AppEngine Appcfg GUI Wrapper options中的SDK 
Location用的是..\appengine-java-sdk-1.7.3,AppLocation中选的是..\snova-gae
-jserver-0.14.0,重新打开后会变成..\snova-gae-jserver-0.14.0\\war。

直接点Deploy或点Add之后再点Deploy都无法成功部署服务器端。��
�Add之后再点Deploy的日志如下:

Reading application configuration data...
十月 27, 2012 12:33:24 上午 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed 
../snova-gae-jserver-0.14.0/war\WEB-INF/appengine-web.xml
十月 27, 2012 12:33:24 上午 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed ../snova-gae-jserver-0.14.0/war\WEB-INF/web.xml
十月 27, 2012 12:33:24 上午 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed ../snova-gae-jserver-0.14.0/war\WEB-INF/cron.xml
十月 27, 2012 12:33:24 上午 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed 
../snova-gae-jserver-0.14.0/war\WEB-INF/backends.xml
Beginning server interaction for ..snova015...

com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
http://appengine.google.com/api/appversion/getresourcelimits?app_id=..snova015&v
ersion=1&
502 Bad Gateway
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 502 (Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>502.</b> <ins>That鈥檚 an error.</ins>
  <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That鈥檚 all we know.</ins>

Unable to update app: Error posting to URL: 
http://appengine.google.com/api/appversion/getresourcelimits?app_id=..snova015&v
ersion=1&
502 Bad Gateway
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 502 (Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>502.</b> <ins>That鈥檚 an error.</ins>
  <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That鈥檚 all we know.</ins>

Please see the logs 
[C:\Users\..\AppData\Local\Temp\appcfg7958548815849684892.log] for further 
information.
AppCfgTask finished.
==================================

还有时Deploy的日志如下:
Reading application configuration data...
十月 27, 2012 12:49:38 上午 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed 
../snova-gae-jserver-0.14.0/war\WEB-INF/appengine-web.xml
十月 27, 2012 12:49:38 上午 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed ../snova-gae-jserver-0.14.0/war\WEB-INF/web.xml
十月 27, 2012 12:49:38 上午 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed ../snova-gae-jserver-0.14.0/war\WEB-INF/cron.xml
十月 27, 2012 12:49:38 上午 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed 
../snova-gae-jserver-0.14.0/war\WEB-INF/backends.xml
Beginning server interaction for ..snova015...

com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
http://appengine.google.com/api/appversion/getresourcelimits?app_id=..snova015&v
ersion=1&
302 Found

Unable to update app: Error posting to URL: 
http://appengine.google.com/api/appversion/getresourcelimits?app_id=..snova015&v
ersion=1&
302 Found

Please see the logs 
[C:\Users\..\AppData\Local\Temp\appcfg3381588900531365000.log] for further 
information.
AppCfgTask finished.
==================================

Original issue reported on code.google.com by amoyy...@gmail.com on 26 Oct 2012 at 4:53

GoogleCodeExporter commented 9 years ago
尝试了OpenShift的C4不成功,结果现在GAE方式的java版snova客户(0.
15)端也都不能用了,这是什么问题导致的?

错误日志如下或见附件:

[11-02 11:48:30.309][INFO]Load plugin:C4 ...   Success
[11-02 11:48:30.343][INFO]Load plugin:GAE ...   Success
[11-02 11:48:30.352][INFO]Load plugin:SPAC ...   Success
[11-02 11:48:30.381][INFO]Active plugin:GAE ...   Success
[11-02 11:48:30.401][INFO]Active plugin:C4 ...   Success
[11-02 11:48:30.625][INFO]Active plugin:SPAC ...   Success
[11-02 11:48:40.773][ERROR]Failed to connect google server.
[11-02 11:48:40.773][ERROR]Failed to auth connetion for appid:..snova..
[11-02 11:48:40.775][ERROR]Failed to connect remote GAE 
server:[anonymouse:anonymouse@..snova..]
[11-02 11:48:40.777][ERROR]exceptionCaught in HttpResponseHandler
java.net.ConnectException: connection timed out
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:371)
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:283)
    at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:526)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

[11-02 11:48:40.784][ERROR]Failed to connect remote c4 server:[]
[11-02 11:49:17.584][INFO]Load plugin:C4 ...   Success
[11-02 11:49:17.608][INFO]Load plugin:GAE ...   Success
[11-02 11:49:17.615][INFO]Load plugin:SPAC ...   Success
[11-02 11:49:17.632][INFO]Active plugin:GAE ...   Success
[11-02 11:49:17.646][INFO]Active plugin:C4 ...   Success
[11-02 11:49:17.816][INFO]Active plugin:SPAC ...   Success
[11-02 11:50:24.232][ERROR]Received error response:DefaultHttpResponse(chunked: 
false)
HTTP/1.1 502 Bad Gateway
Content-Type: text/html; charset=UTF-8
Content-Length: 983
Date: Fri, 02 Nov 2012 03:50:29 GMT
Server: GFE/2.0
[11-02 11:51:24.223][ERROR]Failed to auth connetion for appid:..snova..
[11-02 11:51:24.224][ERROR]Failed to connect remote GAE 
server:[anonymouse:anonymouse@..snova..]
[11-02 11:51:24.235][ERROR]Failed to connect remote c4 server:[]

而且现在OpenShift的部署也和教程里的不一样了,还要自己下��
�安装git,命令也有一些不同,提示也不同。从最后全部执行�
��来的命令行提示看不出有什么错误,openshift网页上也可以看
到部署了相应的应用。但就是没法使用,而且打开(application 
name)-(domain name 
space).rhcloud.com的网页就是一空白,看不到任何关于snova 
server的提示。这里也没人问相关的问题,没找到解决办法。

Original comment by amoyy...@gmail.com on 2 Nov 2012 at 4:02

Attachments:

GoogleCodeExporter commented 9 years ago
1部署服务,可能是appengine此刻不稳定;可以用Go版本的服务端�
��替(功能一致),里面自带一个稍稳定的deployer
    snova-gae-gserver-0.17.2.zip 

2. 
连不上GAE参考首页的“重要”一节,需要修改plugins/gae/conf/gae
-client.conf

3. openshift的部署参考issue151

Original comment by yinqiwen@gmail.com on 2 Nov 2012 at 4:54

GoogleCodeExporter commented 9 years ago
1. 上传app到GAE出现问题的原因: 
"com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
http://appengine.google.com/api/appversion/getresourcelimits?app_id=..snova015&v
ersion=1&
502 Bad Gateway"

2. "app_id=..snova015" 
说明你的app_id是"..snova015",而"..snova015"不是有效的app_id。"Sorr
y, "..snova015" is invalid. Application Identifier must be between 6 and 30 
characters. Lowercase letters, digits, and hyphens are acceptable characters. 
Leading and trailing hyphens are prohibited."

3. 解决方法: 
在snova-gae-jserver配置文件的相应位置规范填写valid 
app_id。(抱歉,实在太忙,就不帮你找具体在哪里如何填写��
�的。)

4. TO yinqi...

"1部署服务,可能是appengine此刻不稳定;"  
amoyy...在GAE部署snova出现的问题,不怎么像是因为不稳定导致�
��,按我上面的所说,应该能解决问题的。

Original comment by goknmuse on 2 Nov 2012 at 9:46

GoogleCodeExporter commented 9 years ago
@goknmuse

谢谢你的解答。java服务器端部署的问题我后来通过cmd模式已�
��实现了。另外..snova015并不是我的真实appid,真实的appid我没�
��用到"."符号。

不过现在还有个挺奇怪的情况。我的sonva和gsonva的文件夹底下
的相关conf文件都按issue128和issue145改好了。现在snova客户端在�
��狐浏览器环境中上youtbue,facebook和twitter都没问题。同样的浏�
��器和配置gsnova客户端现在提示已经正常连上服务器,上youtub
e没问题,但facebook和twitter却是打开空白网页。日志记录参见�
��件。

之前@yinqiwen提过可能是证书的问题,但我现在snova目录下的hyk
证书已经导入了,没法再导入gsnova目录下的证书。因此无法��
�认是不是因为这个证书的问题,也还不知道如何解决。

* 目前问题状态如下:

1. 
部署服务,可能是appengine此刻不稳定;可以用Go版本的服务端��
�替(功能一致),里面自带一个稍稳定的deployer: 
snova-gae-gserver-0.17.2.zip

-已解决 

2. 
连不上GAE参考首页的“重要”一节,需要修改plugins/gae/conf/gae
-client.conf

-部分解决

3. openshift的部署参考issue151

-还未尝试,不过确实和我之前方式不同。

Original comment by amoyy...@gmail.com on 2 Nov 2012 at 10:09

Attachments:

GoogleCodeExporter commented 9 years ago
1. gsnova和snova的证书是一样的
2. 
gsnova对https的站点默认会尝试直连,可能这个实现还有些问题
;关闭这个尝试需要将Hosts下的Enable改为0

Original comment by yinqiwen@gmail.com on 2 Nov 2012 at 10:36

GoogleCodeExporter commented 9 years ago
在..\gsnova-0.17.2下的gsnova.conf文件中改成:
[Hosts]
#0:Disable 1:Only for HTTPS 2:All Protocols
Enable=0

用gsnova访问facebook和twitter还是会有同样打不开的问题。

Chrome会提示: 
服务器错误
网站在检索 
https://twitter.com/search/%7BsearchTerms%7D?source=desktop-search 
时遇到错误。 该网站可能关闭进行维护或配置不正确。
以下是一些建议:
请稍后重新加载此网页。
HTTP 错误 500(Internal Server 
Error):服务器尝试执行请求时遇到了意外情况。

日志记录见附件。

谢谢。

Original comment by amoyy...@gmail.com on 4 Nov 2012 at 2:40

Attachments:

GoogleCodeExporter commented 9 years ago
试下0.18.1,不用修改Hosts下的Enable

Original comment by yinqiwen@gmail.com on 4 Nov 2012 at 2:43

GoogleCodeExporter commented 9 years ago
新版本比以前好用了。偶尔会出现一些facebook功能使用错误和
youtube视频播放错误的问题,但目前都是可解决的。

另外http://www.williamlong.info/archives/3270.html这个上面提到的方法�
��和sonva代理有冲突吗?

而且我已经使用Google SSL Privacy Real Link的user script了。

我只想正常访问所有网站并使用它们的功能,不想因为做了��
�些设置(而且以后可能会忘)变成一部分网站可以访问,另�
��部分网站又从正常访问变成无法访问的状态。

谢谢你的更新

Original comment by amoyy...@gmail.com on 5 Nov 2012 at 2:14

GoogleCodeExporter commented 9 years ago
目前通过gsnova访问google,即使是http类型也会通过ssl连接走, 
所以无上面的问题

Original comment by yinqiwen@gmail.com on 5 Nov 2012 at 2:34

GoogleCodeExporter commented 9 years ago
问一个比较笨的问题,如果config文件里面同时保留GAE 
server和C4 server 
(且不止一个,配了多个workernode)连接后会是什么情况,自动��
�择最快的,随机选择,还是默认总是先用GAE,再根据worknode��
�面数字从小到大的顺序使用?

谢谢。

Original comment by amoyy...@gmail.com on 6 Nov 2012 at 10:36

GoogleCodeExporter commented 9 years ago
多个proxy是需要编辑SPAC规则来选择配合使用的。默认只用GAE��
�

Original comment by yinqiwen@gmail.com on 6 Nov 2012 at 10:39

GoogleCodeExporter commented 9 years ago
(1)
现在gsnova.conf中的部分设置如下

[C4]
Enable=1
WorkerNode[0]=xxx.rhcloud.com
WorkerNode[1]=xxx.herokuapp.com
WorkerNode[2]=xxx.jelastic.tsukaeru.net
WorkerNode[3]=xxx.cloudfoundry.com

[SPAC]
Enable=1
Default=Auto

现在也不知道哪个更快,另外想如果GAE与上面某1个或某n个C4 
server配合使用。gsnova.conf文件还要修改吗? 
user_spac.json的内容是要修改成下面这样吗?

[
  {
    "Protocol" : "https",
    "Proxy": ["C4"]
  },
  {
    "Protocol":"https",
    "Host" : ["Target https domain patterns for socks5 proxy"],
    "Proxy":["socks://127.0.0.1:7070"]
  },
  {
    "Host" : ["Target domain patterns for 3rd http proxy"],
    "Proxy":["http://127.0.0.1:8080"]
  },
  {
    "Host" : ["Configure direct access sites, like *.qq.com*"],
    "Proxy":["Direct"]
  }
]

(2)
snova的SPAC设置是修改snova.conf中ProxyService=SPAC并修改spad.td文件�
��容如下吗?

##Third proxy client
$TOR="127.0.0.1:9050";
$SSHD="socks5:127.0.0.1:7070";

##Reserved proxy implementation
$GAE="GAE";
$DIRECT="DIRECT";
$SEATTLE="SeattleGENI";
$GOOGLE="Google";
$C4="C4";

#defined selected proxy

def OnInit()
{
  ##Do your business
}

def OnRoutine()
{
   #Do your routine business here
   #eg: $output=System("./mysh.sh");
   #    Log($output);
   #Tell the script engine to invoke this method 10s later
   return 10;
}

def SelectProxy(protocol, method, url, headers)
{
     #Set your https proxy here
     if $protocol=="https"
    {
        return $C4; 
    } 
     $host = GetHeader($headers, "Host");
     if $host~=".google" || $host~="ytimg."|| $host~="gstatic."|| $host~="developer.android.com" || $host~=".appspot.com"  
        || $host~="www.youtube.com" || $host~="golang.org" 
     { 
        return $GOOGLE;
     }

     $contentLength = Int(GetHeader($headers, "Content-Length"));
     if $contentLength > 10240000
     {
         return $C4;
     }

     ##Only "GET/POST/PUT/DELETE/HEAD" supported in GAE
     if $method != "GET" && $method != "POST" 
        && $method != "PUT" && $method != "DELETE"
        && $method != "HEAD"
     {
        return $C4;
     }

     ##Request with body not allowed in GAE if it's not POST/PUT
     if $contentLength > 0
     {
        if $method != "POST" && $method != "PUT" 
        {
           return $C4;
        }
     }  
     return $GAE;
}

(3)
这里我发出的已经解决的issue也没法改变状态?

Original comment by amoyy...@gmail.com on 14 Nov 2012 at 8:02

GoogleCodeExporter commented 9 years ago
1. gsnova的配置是对的
2. 
snova的spac脚本也是对的,另外需要配置C4目录下的conf/c4.conf,
格式和gsnova.conf类似
3. 
一般不改状态;只有一个人的项目,只需要问题记录,不需��
�那么正式的问题跟踪系统

Original comment by yinqiwen@gmail.com on 14 Nov 2012 at 8:10