goagent报错。。。。救命。。。一直搞不好。

上网、浏览、聊天、下载等
回复
Eason_Chan
帖子: 7
注册时间: 2014-10-21 22:10
系统: mint

goagent报错。。。。救命。。。一直搞不好。

#1

帖子 Eason_Chan » 2014-10-21 22:20

alex@alex-K45VD ~/goagent/local $ sudo python proxy.py
------------------------------------------------------
GoAgent Version : 3.2.0 (python/2.7.6 gevent/1.0 pyopenssl/0.13)
Listen Address : 127.0.0.1:8087
GAE Mode : https
GAE APPID : greatwall
Pac Server : http://192.168.1.101:8086/proxy.pac
Pac File : file:///home/alex/goagent/local/proxy.pac
------------------------------------------------------
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
WARNING - [Oct 21 22:17:59] install root certificate failed, Please run as administrator/root/sudo

^CKeyboardInterrupt
Traceback (most recent call last):
File "proxy.py", line 1673, in <module>
main()
File "proxy.py", line 1668, in main
gae_server.serve_forever()
File "/usr/lib/python2.7/SocketServer.py", line 236, in serve_forever
poll_interval)
File "/usr/lib/python2.7/SocketServer.py", line 155, in _eintr_retry
return func(*args)
File "/usr/lib/python2.7/dist-packages/gevent/select.py", line 69, in select
result.event.wait(timeout=timeout)
File "/usr/lib/python2.7/dist-packages/gevent/event.py", line 77, in wait
result = self.hub.switch()
File "/usr/lib/python2.7/dist-packages/gevent/hub.py", line 331, in switch
return greenlet.switch(self)
KeyboardInterrupt
alex@alex-K45VD ~/goagent/local $
头像
cikekid
帖子: 628
注册时间: 2008-11-28 13:57
系统: OSX/CentOS

Re: goagent报错。。。。救命。。。一直搞不好。

#2

帖子 cikekid » 2014-10-22 1:59

试试用python2.7
sudo python2.7 proxy.py

代码: 全选

sudo mount /dev/sda* /mnt/
sudo mount -t proc none /mnt/proc
sudo mount -o bind /dev /mnt/dev
sudo chroot /mnt/ /bin/bash
sudo apt-get install grub
sudo grub-install --no-floppy /dev/sda
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: goagent报错。。。。救命。。。一直搞不好。

#3

帖子 taohunter » 2014-10-22 13:32

Eason_Chan 写了:alex@alex-K45VD ~/goagent/local $ sudo python proxy.py
------------------------------------------------------
GoAgent Version : 3.2.0 (python/2.7.6 gevent/1.0 pyopenssl/0.13)
Listen Address : 127.0.0.1:8087
GAE Mode : https
GAE APPID : greatwall
Pac Server : http://192.168.1.101:8086/proxy.pac
Pac File : file:///home/alex/goagent/local/proxy.pac
------------------------------------------------------
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
WARNING - [Oct 21 22:17:59] install root certificate failed, Please run as administrator/root/sudo

^CKeyboardInterrupt
Traceback (most recent call last):
File "proxy.py", line 1673, in <module>
main()
File "proxy.py", line 1668, in main
gae_server.serve_forever()
File "/usr/lib/python2.7/SocketServer.py", line 236, in serve_forever
poll_interval)
File "/usr/lib/python2.7/SocketServer.py", line 155, in _eintr_retry
return func(*args)
File "/usr/lib/python2.7/dist-packages/gevent/select.py", line 69, in select
result.event.wait(timeout=timeout)
File "/usr/lib/python2.7/dist-packages/gevent/event.py", line 77, in wait
result = self.hub.switch()
File "/usr/lib/python2.7/dist-packages/gevent/hub.py", line 331, in switch
return greenlet.switch(self)
KeyboardInterrupt
alex@alex-K45VD ~/goagent/local $
参考:
http://www.itwhy.org/linux/linux%E8%BF% ... abase.html
三年后终于回到16.04--稳定了!
头像
iorikyox
帖子: 92
注册时间: 2010-04-02 16:16

Re: goagent报错。。。。救命。。。一直搞不好。

#4

帖子 iorikyox » 2014-10-25 21:47

你再次运行时,加上管理员权限执行。

提示信息说,证书导入需要管理员权限
回复