1703011 / autoddvpn

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

I'm aborted. Fix me. #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
root@DD-WRT:~# tail -f /tmp/autoddvpn.log
[INFO#17678] 09/Nov/2010:17:27:40 got /tmp/autoddvpn.lock , sleep 10 secs. #4/6
[INFO#17760] 09/Nov/2010:17:27:42 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6
[INFO#17678] 09/Nov/2010:17:27:50 got /tmp/autoddvpn.lock , sleep 10 secs. #5/6
[INFO#17760] 09/Nov/2010:17:27:52 got /tmp/autoddvpn.lock , sleep 10 secs. #3/6
[INFO#17678] 09/Nov/2010:17:28:00 got /tmp/autoddvpn.lock , sleep 10 secs. #6/6
[INFO#17760] 09/Nov/2010:17:28:02 got /tmp/autoddvpn.lock , sleep 10 secs. #4/6
[ERROR#17678] 09/Nov/2010:17:28:10 still got /tmp/autoddvpn.lock , I'm aborted. 
Fix me.
[INFO#17760] 09/Nov/2010:17:28:12 got /tmp/autoddvpn.lock , sleep 10 secs. #5/6
[INFO#17760] 09/Nov/2010:17:28:22 got /tmp/autoddvpn.lock , sleep 10 secs. #6/6
[ERROR#17760] 09/Nov/2010:17:28:32 still got /tmp/autoddvpn.lock , I'm aborted. 
Fix me.

有时候会出现这样的error。只能reboot路由器。 
这个的原因?能否自动reboot路由器?

Original issue reported on code.google.com by jno...@gmail.com on 9 Nov 2010 at 9:47

GoogleCodeExporter commented 9 years ago
/tmp/autoddvpn.lock 這個file是在執行vpnup.sh 
或vpndown.sh的時候產生的,用來避免同時間有相同的腳本被執�
��,一旦執行完成之後會刪除掉這個lock file

正常情況下應該是不會看到這訊息才對。

我需要知道你是什麼運行模式(pptp or openvpn? wget or jffs? )
以及你的rc_startup rc_firewall的內容。

我猜你有地方設置錯誤了。

Original comment by pahud...@gmail.com on 9 Nov 2010 at 5:50

GoogleCodeExporter commented 9 years ago
pptp & jffs
rc_startup='/jffs/pptp/run.sh'
rc_firewall 没设置

Original comment by jno...@gmail.com on 10 Nov 2010 at 1:06

GoogleCodeExporter commented 9 years ago
從log看,有兩個process分別是17678 and 17760在搶著vpnup or vpndown, 
正常情況這應該不會發生,除非一連上之後馬上就斷掉,這��
�vpnup還沒執行完vpndown就緊接著要執行了。

你ifconfig 
-a觀察一下出現這個狀況的時候是不是pptp已經斷線了。

另外你pptp主機名稱設置是IP,不是FQDN對吧?

Original comment by pahud...@gmail.com on 10 Nov 2010 at 1:34

GoogleCodeExporter commented 9 years ago
pptp的主机是ip
下次出现这种情况我跟一下吧,现在没出现这种情况

Original comment by jno...@gmail.com on 10 Nov 2010 at 1:42

GoogleCodeExporter commented 9 years ago
root@DD-WRT:~# tail -f /tmp/autoddvpn.log
[INFO#26621] 11/Nov/2010:13:53:29 exceptional routes disabled.
[INFO#26621] 11/Nov/2010:13:53:29 exceptional routes features detail:  
http://goo.gl/fYfJ
[INFO#27734] 11/Nov/2010:13:53:45 vpnup.sh started
[INFO#27734] 11/Nov/2010:13:53:45 got /tmp/autoddvpn.lock , sleep 10 secs. #1/6
[INFO#27734] 11/Nov/2010:13:53:55 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6
[INFO#27734] 11/Nov/2010:13:54:05 got /tmp/autoddvpn.lock , sleep 10 secs. #3/6
[INFO#27734] 11/Nov/2010:13:54:15 got /tmp/autoddvpn.lock , sleep 10 secs. #4/6
[INFO#27734] 11/Nov/2010:13:54:26 got /tmp/autoddvpn.lock , sleep 10 secs. #5/6
[INFO#27734] 11/Nov/2010:13:54:36 got /tmp/autoddvpn.lock , sleep 10 secs. #6/6
[ERROR#27734] 11/Nov/2010:13:54:46 still got /tmp/autoddvpn.lock , I'm aborted. 
Fix me.

root@DD-WRT:~# ifconfig -a
br0       Link encap:Ethernet  HWaddr 00:1C:10:18:85:【隐去】  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2513567 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2434219 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1665664959 (1.5 GiB)  TX bytes:1886117147 (1.7 GiB)

br0:0     Link encap:Ethernet  HWaddr 00:1C:10:18:85:【隐去】  
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:1C:10:18:85:【隐去】  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12566 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:3081602 (2.9 MiB)
          Interrupt:4 

eth1      Link encap:Ethernet  HWaddr 00:1C:10:18:85:【隐去】  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3024488 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2731168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2181220144 (2.0 GiB)  TX bytes:1807503984 (1.6 GiB)
          Interrupt:5 

eth2      Link encap:Ethernet  HWaddr 00:1C:10:18:85:【隐去】  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2513268 errors:12 dropped:0 overruns:0 frame:5799502
          TX packets:2440177 errors:103 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1700848469 (1.5 GiB)  TX bytes:1906143384 (1.7 GiB)
          Interrupt:2 Base address:0x4000 

etherip0  Link encap:Ethernet  HWaddr 6A:64:E7:99:01:【隐去】  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:125.37.112.【隐去】  P-t-P:125.37.112.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:2988841 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2698343 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:2094032462 (1.9 GiB)  TX bytes:1734435560 (1.6 GiB)

ppp1      Link encap:Point-to-Point Protocol     【pptp大概是这个?】
          inet addr:172.23.1.15  P-t-P:172.23.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1450  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:94 (94.0 B)  TX bytes:112 (112.0 B)

teql0     Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@DD-WRT:~# 

Original comment by jno...@gmail.com on 11 Nov 2010 at 6:17

GoogleCodeExporter commented 9 years ago
看起來pptp vpn沒有斷掉。

你可以把發生問題的時候,打ps的所有process輸出,以及nvram 
show的內容貼上來嗎?

 nvram show的內容會包含pppoe and pptp的密碼,那邊你再mask一下即可。

這樣可能可以看出來。

Original comment by pahud...@gmail.com on 11 Nov 2010 at 6:21

GoogleCodeExporter commented 9 years ago
另外你的路由器型號,CPU 內存多少,DDWRT版本多少?

Original comment by pahud...@gmail.com on 11 Nov 2010 at 6:23

GoogleCodeExporter commented 9 years ago
Linksys WRT150N v1

cpu Broadcom BCM4704 chip rev 9 

DD-WRT v24-sp2 (10/26/10) mega - build 15508M NEWD-2 Eko

Comment 6 需要的命令是什么?有点儿不清楚。

已经reboot了,下次再出现再试

Original comment by jno...@gmail.com on 11 Nov 2010 at 6:29

GoogleCodeExporter commented 9 years ago
>Comment 6 需要的命令是什么?
兩個命令:

1. # ps
這會列出目前正在運行的process

2. # nvram show
這會列出所有設置變數內容

Original comment by pahud...@gmail.com on 11 Nov 2010 at 7:12

GoogleCodeExporter commented 9 years ago
>DD-WRT v24-sp2 (10/26/10) mega - build 15508M NEWD-2 Eko
155xx 
build在mega下可能會有一些問題,也許14xxx版本會好一些,不妨
試試看。

Original comment by pahud...@gmail.com on 11 Nov 2010 at 7:13

GoogleCodeExporter commented 9 years ago
Comment is too long 
都写在文件里了

Original comment by jno...@gmail.com on 13 Nov 2010 at 7:48

Attachments:

GoogleCodeExporter commented 9 years ago
issue #34 和 #50 
都属于我在使用pptp+jffs时候出现的问题,换成openvpn就没有出�
��了。如果没有其它人回报这个问题,建议close

Original comment by jno...@gmail.com on 20 Mar 2011 at 1:38

GoogleCodeExporter commented 9 years ago
我也有相同的问题,只能reboot

Original comment by gob...@gmail.com on 26 Aug 2012 at 7:46

GoogleCodeExporter commented 9 years ago
我也有此问题。

Original comment by i...@uceng.com on 13 Oct 2012 at 10:37

GoogleCodeExporter commented 9 years ago
我也有此问题出现。

Original comment by e...@uceng.com on 5 Nov 2012 at 6:34