LisaKear / wallproxy-plugins

Automatically exported from code.google.com/p/wallproxy-plugins
0 stars 0 forks source link

非常郁闷闹心的一个502错误,求解决方法!! #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
不设置密码和加密一切正常,只要设置密码和加密(AES-CBC-32�
��就出现以下错误,郁闷死了。

Error response

Error code 502.

Message: ['Data format not 
match(http://XXXX(我的用户吗用X代替).appspot.com/simple.py:Hello 
World!)', 'Data format not 
match(http://XXXX(我的用户吗用X代替).appspot.com/simple.py:Hello 
World!)'].

Error code explanation: 502 = Invalid responses from another server/proxy.. 

Original issue reported on code.google.com by fanmli...@gmail.com on 6 Jun 2011 at 1:07

GoogleCodeExporter commented 9 years ago
不知道你服务器端和本地端的设置是否匹配,如果匹配的话��
�建议改完服务器端的配置后先把APP关了,再开一次

Original comment by bibup...@gmail.com on 6 Jun 2011 at 1:18

GoogleCodeExporter commented 9 years ago
我的本地端设置如下:
# 指定服务端类型gaeproxy/forold/goagent/simple
server_type = 'simple'

# 
指定你申请的appid,例如'myappid',想要使用公共的(看不了You
Tube)就保持为''
appid = 'XXXX(我的用户名)'
#appid = 'appid1|appid2|appid3'

# 
如果你修改了密码,在下一行指定,例如'123456',多个app用|��
�隔
password = 'XXXX(密码6位纯数字)'
#password = 'pwd1|pwd2|pwd3'

# 
如果你修改了加密模式,在下一行指定,例如'AES-CBC-32',多��
�app用|分隔
crypto = 'AES-CBC-32'
#crypto = 'XOR--32|XOR--32|XOR--32
服务器端设置如下:
cacheTime
    value: 86400
    type: int
cfgCacheTime
    value: 300
    type: int
cryptoMode
    value: AES-CBC-32
    type: string
maxSize
    value: 9000000
    type: int
siteKey
    value: XXXX(密码6位纯数字)
    type: string
version
    value: 1.0.2
    type: string

如果匹配的话我建议改完服务器端的配置后先把APP关了,再��
�一次
请问APP在那里如何关我不知道这个。

Original comment by fanmli...@gmail.com on 6 Jun 2011 at 2:36

GoogleCodeExporter commented 9 years ago
修改服务端与本地端加密模式与密码后可能会提示Data format 
not match...Hello 
World!,属正常情况,可等待约15分钟后再尝试使用。
或者参考这里进行密码设置:http://code.google.com/p/wallproxy-plugin
s/issues/detail?id=38#c10

Original comment by dtma...@163.com on 6 Jun 2011 at 2:57

GoogleCodeExporter commented 9 years ago
我晕还要等15分钟郁闷,请问这是服务器端问题还是软件开发
的问题,谢谢您热情及时的帮助,好吧15分钟等待中...........O
(∩_∩)O哈哈~

Original comment by fanmli...@gmail.com on 6 Jun 2011 at 3:50

GoogleCodeExporter commented 9 years ago
不是设计问题
由于缓存原因(主要是GAE强制的实例缓存)以及在DataStore 
Viewer中修改加密模式与密码并没有执行任何代码,如果直接��
�新密码访问,实例(即服务端被加载的脚本)中的密码还是�
��密码

可以通过用旧密码访问http://wallproxy/cache/reset 
清空缓存后再设置新密码的方式解决

Original comment by dtma...@163.com on 6 Jun 2011 at 4:10

GoogleCodeExporter commented 9 years ago
我等了20多分钟还是不行呀,我设置代理访问http://wallproxy/cach
e/reset出现如下错误:

Error response

Error code 502.

Message: ['Urlfetch error: ApplicationError: 2 ', 'Urlfetch error: 
ApplicationError: 2 ', 'Urlfetch error: ApplicationError: 2 '].

Error code explanation: 502 = Invalid responses from another server/proxy.. 

我用全局代理出现如下错误:
The requested URL could not be retrieved

While trying to retrieve the URL: http://wallproxy/cache/reset

The following error was encountered:

    Unable to determine IP address from host name for wallproxy 

The dnsserver returned:

    Name Error: The domain name does not exist. 

This means that:

 The cache was not able to resolve the hostname presented in the URL. 
 Check if the address is correct. 

Your cache administrator is webmaster.
Generated Mon, 06 Jun 2011 04:59:40 GMT by google.com (squid/2.7.STABLE7) 
还是不能用呀不设置密码和加密就能用

Original comment by fanmli...@gmail.com on 6 Jun 2011 at 5:03

GoogleCodeExporter commented 9 years ago
你用的不是wallproxy,wallproxy只会尝试两遍,你的Message显示尝�
��了3遍
访问http://wallproxy/cache/reset 
需要wallproxy设置正确的加密模式和密码,即如果新密码和加��
�模式还没有生效,要用旧的

Original comment by dtma...@163.com on 6 Jun 2011 at 6:00

GoogleCodeExporter commented 9 years ago
这是个BUG来的,在Administration,Application Settings里面选Disable 
Application,然后继续Disable Application Now,等一会,再Re-enable 
Application,第一次访问的时候可能会继续提示502,但再刷一下
就没事了

Original comment by bibup...@gmail.com on 6 Jun 2011 at 6:03

GoogleCodeExporter commented 9 years ago
说了不是bug,是你们没有按顺序操作
DataStore 
Viewer改密码因为没有任何代码操作,所以无法使已经存在的��
�例消亡,也不能清空缓存
正确的顺序是 服务端改后 本地端用旧密码清空缓存 
本地端再改为与服务端相同

Original comment by dtma...@163.com on 6 Jun 2011 at 7:25

GoogleCodeExporter commented 9 years ago
问题算是彻底解决了,再次感谢各位给予的帮助!!!祝大��
�翻的开心
                    /^\/^\
                  _|__|  O|
         \/     /~     \_/ \
          \____|__________/  \
                 \_______      \
                         `\     \                 \
                           |     |                  \
                          /      /                    \
                         /     /                       \\
                       /      /                         \ \
                      /     /                            \  \
                    /     /             _----_            \   \
                   /     /           _-~      ~-_         |   |
                  (      (        _-~    _--_    ~-_     _/   |
                   \      ~-____-~    _-~    ~-_    ~-_-~    /
                     ~-_           _-~          ~-_       _-~   
                        ~--______-~                ~-___-~

Original comment by fanmli...@gmail.com on 6 Jun 2011 at 7:33