Temat: Gargoyle+extroot+restart gdy łączy z aero2
Witam
Jakiś czas temu walczyłem z extroot (posty http://eko.one.pl/forum/viewtopic.php?id=5618 i http://eko.one.pl/forum/viewtopic.php?id=5596). Udało mi się to odpalić i działało. Jako że kolega zabrał kartę aero to rozłączyłem całość.
Wczoraj dostałem swoją kartę aero i podłączyłem: ruter tplink 3420 v2, modem e3131s-2, hub aktywny i karta pamięci na extroot poprzez adapter.
Wszystko działało aż do dzisiaj...
Na dzień dzisiejszy gdy uruchomię bez modemu ruter z extrootem, czy bez to ładnie działa. Przy uruchomieniu z modem, gdy połączy się z siecią aero następuje restart systemu. I tak w kółko...
Logi, które pewnie nic nie wniosą:
root@gargulec:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/sda1 on /overlay type ext4 (rw,noatime,user_xattr,barrier=1)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
root@gargulec:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 3.5G 140.3M 3.4G 4% /
/dev/root 2.8M 2.8M 0 100% /rom
tmpfs 14.3M 96.0K 14.2M 1% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 3.5G 140.3M 3.4G 4% /overlay
overlayfs:/overlay 3.5G 140.3M 3.4G 4% /
root@gargulec:~# Podłączenie modemu:
Apr 16 00:03:29 gargulec kern.info kernel: [ 255.790000] usb 1-1.4: new high-speed USB device number 4 using ehci-platform
Apr 16 00:03:29 gargulec kern.info kernel: [ 255.920000] scsi1 : usb-storage 1-1.4:1.0
Apr 16 00:03:29 gargulec kern.info kernel: [ 255.920000] scsi2 : usb-storage 1-1.4:1.1
Apr 16 00:03:29 gargulec user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Apr 16 00:03:29 gargulec user.notice usb-modeswitch: 1-1.4:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching
Apr 16 00:03:30 gargulec syslog.notice usb_modeswitch: switching device 12d1:14fe on 001/004
Apr 16 00:03:30 gargulec kern.info kernel: [ 256.570000] usb 1-1.4: USB disconnect, device number 4
Apr 16 00:03:35 gargulec kern.info kernel: [ 261.930000] usb 1-1.4: new high-speed USB device number 5 using ehci-platform
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.060000] option 1-1.4:1.0: GSM modem (1-port) converter detected
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.060000] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.080000] usb 1-1.4: MAC-Address: 0x58:0x2c:0x80:0x13:0x92:0x63
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.080000] cdc_ncm 1-1.4:1.1: wwan0: register 'cdc_ncm' at usb-ehci-platform-1.4, Mobile Broadband Network Device, 58:2c:80:13:92:63
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.100000] option 1-1.4:1.2: GSM modem (1-port) converter detected
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.100000] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.110000] option 1-1.4:1.3: GSM modem (1-port) converter detected
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.120000] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
Apr 16 00:03:35 gargulec kern.info kernel: [ 262.130000] scsi3 : usb-storage 1-1.4:1.4
Apr 16 00:03:36 gargulec kern.notice kernel: [ 263.130000] scsi 3:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Apr 16 00:03:36 gargulec kern.notice kernel: [ 263.140000] sd 3:0:0:0: [sdb] Attached SCSI removable disk
Apr 16 00:03:39 gargulec local7.err syslog: Couldn't resolve host tic.sixxs.net, service 3874
Apr 16 00:03:39 gargulec local7.err syslog: Couldn't connect to the TIC server tic.sixxs.net
Apr 16 00:03:39 gargulec local7.err syslog: Couldn't retrieve first tunnel for the above reason, aborting
Apr 16 00:03:49 gargulec daemon.err transmission-daemon[2216]: DHT dht.transmissionbt.com:6881: Name or service not known (tr-dht.c:125)
Apr 16 00:04:00 gargulec user.notice usb-modeswitch: 1-1.4:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Apr 16 00:04:01 gargulec user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Apr 16 00:04:04 gargulec user.notice usb-modeswitch: 1-1.4:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Apr 16 00:04:04 gargulec local7.err syslog: Couldn't resolve host tic.sixxs.net, service 3874
Apr 16 00:04:04 gargulec local7.err syslog: Couldn't connect to the TIC server tic.sixxs.net
Apr 16 00:04:04 gargulec local7.err syslog: Couldn't retrieve first tunnel for the above reason, aborting
Apr 16 00:04:04 gargulec user.notice usb-modeswitch: 1-1.4:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Apr 16 00:04:04 gargulec user.notice usb-modeswitch: 1-1.4:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Apr 16 00:04:05 gargulec user.notice usb-modeswitch: 1-1.4:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?Łączenie się modemu z siecią aero i nawiązanie połączenia i później restart:
Apr 16 00:04:08 gargulec daemon.notice pppd[3436]: pppd 2.4.5 started by root, uid 0
Apr 16 00:04:10 gargulec local2.info chat[3439]: abort on (BUSY)
Apr 16 00:04:10 gargulec local2.info chat[3439]: abort on (NO CARRIER)
Apr 16 00:04:10 gargulec local2.info chat[3439]: abort on (ERROR)
Apr 16 00:04:10 gargulec local2.info chat[3439]: report (CONNECT)
Apr 16 00:04:10 gargulec local2.info chat[3439]: timeout set to 10 seconds
Apr 16 00:04:10 gargulec local2.info chat[3439]: send (AT&F^M)
Apr 16 00:04:10 gargulec local2.info chat[3439]: expect (OK)
Apr 16 00:04:10 gargulec local2.info chat[3439]: AT&F^M^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: OK
Apr 16 00:04:10 gargulec local2.info chat[3439]: -- got it
Apr 16 00:04:10 gargulec local2.info chat[3439]: send (ATE1^M)
Apr 16 00:04:10 gargulec local2.info chat[3439]: expect (OK)
Apr 16 00:04:10 gargulec local2.info chat[3439]: ^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: ATE1^M^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: OK
Apr 16 00:04:10 gargulec local2.info chat[3439]: -- got it
Apr 16 00:04:10 gargulec local2.info chat[3439]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Apr 16 00:04:10 gargulec local2.info chat[3439]: timeout set to 30 seconds
Apr 16 00:04:10 gargulec local2.info chat[3439]: expect (OK)
Apr 16 00:04:10 gargulec local2.info chat[3439]: ^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: AT+CGDCONT=1,"IP","darmowy"^M^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: OK
Apr 16 00:04:10 gargulec local2.info chat[3439]: -- got it
Apr 16 00:04:10 gargulec local2.info chat[3439]: send (ATD*99***1#^M)
Apr 16 00:04:10 gargulec local2.info chat[3439]: expect (CONNECT)
Apr 16 00:04:10 gargulec local2.info chat[3439]: ^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: ATD*99***1#^M^M
Apr 16 00:04:10 gargulec local2.info chat[3439]: CONNECT
Apr 16 00:04:10 gargulec local2.info chat[3439]: -- got it
Apr 16 00:04:10 gargulec local2.info chat[3439]: send ( ^M)
Apr 16 00:04:10 gargulec daemon.info pppd[3436]: Serial connection established.
Apr 16 00:04:10 gargulec daemon.info pppd[3436]: Using interface 3g-wan
Apr 16 00:04:10 gargulec daemon.notice pppd[3436]: Connect: 3g-wan <--> /dev/ttyUSB0
Apr 16 00:04:13 gargulec daemon.warn pppd[3436]: Could not determine remote IP address: defaulting to 10.64.64.64
Apr 16 00:04:13 gargulec daemon.notice pppd[3436]: local IP address 93.154.133.2
Apr 16 00:04:13 gargulec daemon.notice pppd[3436]: remote IP address 10.64.64.64
Apr 16 00:04:13 gargulec daemon.notice pppd[3436]: primary DNS address 193.41.112.14
Apr 16 00:04:13 gargulec daemon.notice pppd[3436]: secondary DNS address 193.41.112.18
Apr 16 00:04:13 gargulec daemon.notice netifd: Interface 'wan' is now up
Apr 16 00:04:14 gargulec user.notice ifup: Enabling Router Solicitations on wan (3g-wan)
Apr 16 00:04:15 gargulec user.info firewall: adding wan (3g-wan) to zone wan
Apr 16 00:04:18 gargulec daemon.info dnsmasq[1908]: reading /tmp/resolv.conf.auto
Apr 16 00:04:18 gargulec daemon.info dnsmasq[1908]: using nameserver 193.41.112.14#53
Apr 16 00:04:18 gargulec daemon.info dnsmasq[1908]: using nameserver 193.41.112.18#53
Apr 16 00:04:18 gargulec daemon.warn dnsmasq[1908]: ignoring nameserver 192.168.254.2 - local interface
Apr 16 00:04:18 gargulec daemon.info dnsmasq[1908]: using local addresses only for domain lan
Apr 16 00:04:20 gargulec kern.warn kernel: [ 307.140000] ipt_bandwidth: timezone shift of 120 minutes detected, adjusting
Apr 16 00:04:20 gargulec kern.warn kernel: [ 307.150000] old minutes west=0, new minutes west=-120
root@gargulec:~# i tu już prompt nie odpowiada bo się system restartuje.
Czy ktoś wie o co chodzi? Dlaczego nagle przestało bez żadnej przyczyny działać?
Zapomniałem dodać że bez podłączenia extroota, a tylko samego modemu działa. Czyżby restarty powodowane były poprzez przełączanie modemu? Bezsens bo z logu wynika że przełącza się i później normalnie działa bo zdążyłem zebrać inne logi...
Hmmm... sprawdziłem jeszcze raz bez extroota. Po podłączeniu do sieci aero następuje takie jakby rozłączenie ssh (wykonuje komendę "logread"):
Mar 18 12:01:07 gargulec daemon.info dnsmasq[1314]: reading /tmp/resolv.conf.auto
Mar 18 12:01:07 gargulec daemon.info dnsmasq[1314]: using nameserver 193.41.112.14#53
Mar 18 12:01:07 gargulec daemon.info dnsmasq[1314]: using nameserver 193.41.112.18#53
Mar 18 12:01:07 gargulec daemon.warn dnsmasq[1314]: ignoring nameserver 192.168.254.2 - local interface
Mar 18 12:01:07 gargulec daemon.info dnsmasq[1314]: using local addresses only for domain lan
Mar 18 12:01:12 gargulec kern.warn kernel: [ 119.140000] ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
Mar 18 12:01:12 gargulec kern.warn kernel: [ 119.150000] old minutes west=0, new minutes west=-60
root@gargulec:~# logreaddebug1: SSH2_MSG_KEXINIT received
debug1: SSH2_MSG_KEXINIT sent
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA 3a:20:06:0b:e9:75:6d:84:73:7c:3f:f4:e0:06:67:c0
debug1: Host '192.168.254.2' is known and matches the RSA host key.
debug1: Found key in /home/plesken/.ssh/known_hosts:9
debug1: ssh_rsa_verify: signature correct
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: set_newkeys: rekeying
debug1: SSH2_MSG_NEWKEYS received
Jan 1 01:00:37 gargulec kern.info kernel: [ 15.270000] scsi0 : usb-storage 1-1.4:1.0
Jan 1 01:00:37 gargulec kern.info kernel: [ 15.280000] scsi1 : usb-storage 1-1.4:1.1
Jan 1 01:00:37 gargulec kern.notice kernel: [ 16.270000] scsi 0:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Jan 1 01:00:37 gargulec kern.notice kernel: [ 16.280000] scsi 1:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Jan 1 01:00:37 gargulec kern.notice kernel: [ 16.300000] sd 1:0:0:0: [sda] Attached SCSI removable diskCzym to jest spowodowane? Czemu tak się dzieje? Podejrzewam że coś z tym jest nie tak.