asteroidman / wallproxy-plus

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

内网使用 17 版本的 WP+ 出现错误 #312

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Traceback (most recent call last):
  File "<string>", line 1400, in _39
  File "<string>", line 1366, in ___
  File "D:\WallProxy\local\src.zip\make_config.py", line 649, in make_config
  File "D:\WallProxy\local\src.zip\make_config.py", line 20, in __init__
  File "D:\WallProxy\local\python.exe\ConfigParser.py", line 305, in read
  File "D:\WallProxy\local\python.exe\ConfigParser.py", line 512, in _read
MissingSectionHeaderError: File contains no section headers.
file: D:\WallProxy\local\proxy.ini, line: 1
'\xef\xbb\xbf[listen]\n'
------------------------------------------------------------------------------
Welcome to use wallproxy, Copyright (C) 2009-2012 HustMoon Studio
Version: wallproxy/2.0.17 (python/2.7.3, gevent/1.0b3)
Listen : 0.0.0.0:8086
------------------------------------------------------------------------------
Initializing fake CA for https2http:
  Please make sure you have imported "D:\WallProxy\local\cert\CA.crt" to the Trusted root CA list for your browser.
  CA Information: WallProxy CA (2012-10-23 00:21:56 - 2032-10-23 00:21:56)
  Wildcard Certificate: YES
Initializing UrlFetch for url fetch:
  Debug level: 0
  Global timeout: 20.0
  Use keep alive: YES
Initializing Utility for proxy-auth, hosts, forward.
  Forward timeout: 20.0
Initializing PAAS for proxy based on cloud service.
  Init GAE with appids: ************
  max_threads when range fetch: 10
  GAE listen on: 0.0.0.0:8087
Initializing PAC for proxy auto-config.
  RuleList: k0|0|0+h0:0|4:4|4:5+r0|0|0=9 rules from string.
  RuleList: k0|0|0+h0:0|0:0|7:8+r0|0|1=9 rules from string.
  RuleList: k0|0|0+h0:0|0:0|1:1+r0|0|0=1 rules from string.
  RuleList: k0|0|0+h0:0|0:0|2:4+r0|0|0=4 rules from string.
  RuleList: k0|0|0+h0:0|0:0|6:8+r0|0|0=8 rules from string.
  RuleList: schedule to load rules from "https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt, userlist.ini".
------------------------------------------------------------------------------
10.124.48.47 - - [2012-11-05 08:21:21] "POST 
http://iphone-wu.apple.com/dgw?imei=B7693A01-F383-4327-8771-501ABD85B5C1&apptype
=weather&t=3 HTTP/1.1" 502 -
Forward https://m.facebook.com: [Errno 10049] 
在其上下文中,该请求的地址无效。, try http_failed_handler.
Reconfig hosts for autoproxy-gfwlist.googlecode.com
PAC RuleList result:
  https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt: k0|0|1199+h0:0|98:103|1255:1693+r0|0|33=3028, Fri, 03 Aug 2012 21:17:33 GMT
  userlist.ini: k0|0|0+h0:0|0:0|12:15+r0|0|1=16, Sun, 04 Nov 2012 03:03:28 GMT
  Total: k0|0|1199+h0:0|98:103|1264:1708+r0|0|34=3044
Forward https://configuration.apple.com: timed out, try http_failed_handler.
Forward http://ax.init.itunes.apple.com/bag.xml?ix=2: timed out, try 
http_failed_handler.
Reconfig hosts for ******.appspot.com
Reconfig hosts for ******.appspot.com
Forward http://ax.init.itunes.apple.com/bag.xml?ix=2: timed out, try 
http_failed_handler.
Reconfig hosts for ******.appspot.com
Reconfig hosts for ******.appspot.com
Forward http://ax.init.itunes.apple.com/bag.xml?ix=2: timed out, try 
http_failed_handler.
Reconfig hosts for ******.appspot.com
Reconfig hosts for ******.appspot.com
Reconfig hosts for ******.appspot.com

Original issue reported on code.google.com by heeroyuyj on 5 Nov 2012 at 12:24

GoogleCodeExporter commented 9 years ago
!! Open config file "D:\WallProxy\local\config.py" failed, try 
"D:\WallProxy\local\proxy.ini".
Traceback (most recent call last):
  File "<string>", line 1391, in _39
  File "<string>", line 1366, in ___
  File "D:\WallProxy\local\src.zip\make_config.py", line 649, in make_config
  File "D:\WallProxy\local\src.zip\make_config.py", line 20, in __init__
  File "D:\WallProxy\local\python.exe\ConfigParser.py", line 305, in read
  File "D:\WallProxy\local\python.exe\ConfigParser.py", line 512, in _read
MissingSectionHeaderError: File contains no section headers.
file: D:\WallProxy\local\proxy.ini, line: 1
'\xef\xbb\xbf[listen]\n'
!! Warning: You forgot to define a `config()` function in 
"D:\WallProxy\local\config.py".
------------------------------------------------------------------------------
Welcome to use wallproxy, Copyright (C) 2009-2012 HustMoon Studio
Version: wallproxy/2.0.17 (python/2.7.3, gevent/1.0b3)
Listen : 0.0.0.0:8086
------------------------------------------------------------------------------
Initializing fake CA for https2http:
  Please make sure you have imported "D:\WallProxy\local\cert\CA.crt" to the Trusted root CA list for your browser.
  CA Information: WallProxy CA (2012-10-23 00:21:56 - 2032-10-23 00:21:56)
  Wildcard Certificate: YES
Initializing UrlFetch for url fetch:
  Global timeout: 60.0
  Use keep alive: YES
------------------------------------------------------------------------------

Original comment by heeroyuyj on 5 Nov 2012 at 12:25

GoogleCodeExporter commented 9 years ago
MissingSectionHeaderError: File contains no section headers.
file: D:\WallProxy\local\proxy.ini, line: 1
'\xef\xbb\xbf[listen]\n'
这说明配置文件无效嘛,不应该带BOM的,最好别用MS 
Notepad保存,如果找不到其他编辑器,可以用WEB界面保存。

timed out:把[urlfetch]timeout改大吧,20秒有点小。

Original comment by HUSTPub...@gmail.com on 5 Nov 2012 at 6:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
我之前在公司用 WallProxy 时, notepad 修改 proxy.ini 再启动 
WallProxy 都没出此错误

但是我也觉的应该是 notepad 给 UTF-8 加上了签名导致的问题

明天到上班的地方再研究看看

Original comment by heeroyuyj on 5 Nov 2012 at 10:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
是不是改动了 autorange 里的 waitsize,不能把waitsize值改太小。 

Original comment by y20...@gmail.com on 5 Nov 2012 at 12:35

GoogleCodeExporter commented 9 years ago
@6

no, 与此无关

这个是配置文件有问题的反馈, 启动就出错

Original comment by heeroyuyj on 5 Nov 2012 at 12:40

GoogleCodeExporter commented 9 years ago
\xef\xbb\xbf很明显就是UTF-8的BOM,通过web界面保存不会有这个bom
;
通过GUI保存原来有就有,原来没有就没有。

Original comment by www.eh...@gmail.com on 5 Nov 2012 at 3:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
确定是 UTF8 的签名导致的

Original comment by heeroyuyj on 6 Nov 2012 at 2:20

GoogleCodeExporter commented 9 years ago
Moved to: Issue wallproxy:366

Original comment by heeroyuyj on 2 Dec 2012 at 4:40