kenydey / snova

0 stars 0 forks source link

Cloud-Foundry是不是不支持C4了? #259

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Cloud-Foundry是不是不支持C4了? 
我上传后,在浏览器中访问服务页面正常。当启动客户端,��
�置代理后,访问网页时不能访问,报中下错误: 

<code>
  [12-12 09:28:06.235][ERROR]exceptionCaught in HttpResponseHandler
java.io.IOException: ??????????????????????????????????
        at sun.nio.ch.SocketDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(Unknown Source)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
        at sun.nio.ch.IOUtil.read(Unknown Source)
        at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202)
        at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPool
Executor.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)

</code>

Original issue reported on code.google.com by kevin...@gmail.com on 12 Dec 2012 at 1:49

GoogleCodeExporter commented 9 years ago
client配置错了

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 2:05

GoogleCodeExporter commented 9 years ago
我也出现这问题了,确定不是client配置错

Original comment by youyouti...@gmail.com on 12 Dec 2012 at 2:38

GoogleCodeExporter commented 9 years ago
配置是怎样的? client和server的版本?

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 2:40

GoogleCodeExporter commented 9 years ago
Success to connect 1 GAE server
Start plugin:GAE ...   Success
Success to found 1 c4 server
Start plugin:C4 ...   Success
Start plugin:SPAC ...   Success
Local HTTP(S) Server Running...
at localhost:48100
[12-12 10:44:32.984][ERROR]exceptionCaught in HttpResponseHandler
java.io.IOException: ??????????????????????????????????
        at sun.nio.ch.SocketDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
        at sun.nio.ch.IOUtil.read(IOUtil.java:166)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioW
orker.java:282)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202)
        at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$Memor
yAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:526)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:662)

Original comment by youyouti...@gmail.com on 12 Dec 2012 at 2:46

GoogleCodeExporter commented 9 years ago
client和server版本要求一致

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 2:48

GoogleCodeExporter commented 9 years ago
Server 是用 vmc 部署到CF上的,可以正常访问http,如图

Original comment by kevin...@gmail.com on 12 Dec 2012 at 2:51

Attachments:

GoogleCodeExporter commented 9 years ago
这是Client的配置。

Original comment by kevin...@gmail.com on 12 Dec 2012 at 2:52

Attachments:

GoogleCodeExporter commented 9 years ago
这是Client的配置。

Original comment by kevin...@gmail.com on 12 Dec 2012 at 2:52

Attachments:

GoogleCodeExporter commented 9 years ago
这是Client的配置。

Original comment by kevin...@gmail.com on 12 Dec 2012 at 2:52

Attachments:

GoogleCodeExporter commented 9 years ago
这是Client的配置。

Original comment by kevin...@gmail.com on 12 Dec 2012 at 2:53

Attachments:

GoogleCodeExporter commented 9 years ago
snova Client的版本不是0.19.0? 

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 2:57

GoogleCodeExporter commented 9 years ago
服务器的版本:snova-c4-server-0.19.3.war
客户端的版本:snova-0.19.0.zip

主配置:
[Framework]
LocalHost=localhost
LocalPort=48100
##The thread pool size of local server
ThreadPoolSize=30
##Can choose in plugins, default is GAE
ProxyService=c4
TrsutedDNS=8.8.8.8|208.67.222.222|8.8.4.4|208.67.220.220
PluginRepository=http://snova.googlecode.com/svn/trunk/repository/plugins.xml

C4的配置:
[C4]
#WorkerNode[0]=xyz.herokuapp.com
#WorkerNode[1]=xyz.cloudfoundry.com
WorkerNode[0]=xxx.cloudfoundry.com 

Original comment by youyouti...@gmail.com on 12 Dec 2012 at 3:01

GoogleCodeExporter commented 9 years ago
试下gsnova0.19.3,这个是确保兼容server 0.19.3的

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 3:03

GoogleCodeExporter commented 9 years ago
 Comment 13 by project member yinqiwen@gmail.com, Today (6 minutes ago)

试下gsnova0.19.3,这个是确保兼容server 0.19.3的

o了,赞个

Original comment by youyouti...@gmail.com on 12 Dec 2012 at 3:10

GoogleCodeExporter commented 9 years ago
重新测了java的0.19.0,也是ok的

youyoutianbulao的java的配置里ProxyService=c4这个要改成ProxyService=C4

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 3:15

GoogleCodeExporter commented 9 years ago
我是: 服务器的版本:snova-c4-server-0.19.3.war
客户端的版本:snova-0.19.0.zip

Original comment by kevin...@gmail.com on 12 Dec 2012 at 3:39

GoogleCodeExporter commented 9 years ago
 kevintop的问题就是java进程无法直接访问C4服务端。
浏览器必须设置代理才能访问C4服务端web页面?

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 3:42

GoogleCodeExporter commented 9 years ago
不是啊,不用代理也可以访问C4服务端的web页面的。 

-------------------------------------------------- 
kevintop的问题就是java进程无法直接访问C4服务端。
浏览器必须设置代理才能访问C4服务端web页面?

Original comment by kevin...@gmail.com on 12 Dec 2012 at 3:51

GoogleCodeExporter commented 9 years ago
我用snova-0.19.0作为客户端不行。当是我用 gsnova-0.19.3 
作为客户端 ,没有问题。twitter可以正常访问。

Original comment by kevin...@gmail.com on 12 Dec 2012 at 3:53

GoogleCodeExporter commented 9 years ago
看来只可能是C4的地址在client配置错了

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 3:55

GoogleCodeExporter commented 9 years ago
也可能是os的防火墙的原因

Original comment by yinqiwen@gmail.com on 12 Dec 2012 at 3:56

GoogleCodeExporter commented 9 years ago
可,问题是, 用 gsnova-0.19.3 作为客户端就可以。

Original comment by kevin...@gmail.com on 12 Dec 2012 at 5:06

GoogleCodeExporter commented 9 years ago
似乎是C4和CLient的连通有些问题。我之前用SNova 
0.19是可以用Cloudfoundry的,今天就不行了。
在浏览器里访问appida.cloudfoundry.com是不需要代理的。

Original comment by fay...@gmail.com on 12 Dec 2012 at 11:15

GoogleCodeExporter commented 9 years ago
把Snova里的C4 Conf 的HTTPS换成HTTP就可以了。

Original comment by fay...@gmail.com on 12 Dec 2012 at 11:23