1

Temat: Transfer-Encoding: chunked 0

Mam taki problem, że przy wykonywaniu moich skryptów przez przeglądarkę wyskakuje w przeglądarce błąd:
"Transfer-Encoding: chunked 0"
W skryptach mam:

#!/usr/bin/haserl
<?
echo "Location: przemek/skrypt-wykonano.html"
?>

Dodatkowo po podłączeniu do internetu router restartuje się po jakiejś chwili... Te problemy zaczęły się tak nagle, do południa wszystko było OK włącznie z wywoływaniem moich skryptów.
Jakiś pomysł, czym to może być spowodowane? Może tą nieszczęsną zmianą czasu?

Info o moim urządzeniu:

TL-MR3420
Wersja Gargoyle:1.5.11.5 (r38863), by obsy
Model:TP-Link TL-MR3420 v1

Mam extroota.

Mam cichą nadzieję, że ktoś jeszcze ma ten problem, bo nie mam czasu na update i konfigurację wszystkiego sad

2

Odp: Transfer-Encoding: chunked 0

Sprawdź czy nie zadziała

#!/usr/bin/haserl
<?
    echo "HTTP/1.1 301 Moved Permanently" 
    echo "Location: /przemek/skrypt-wykonano.html"
    exit
?>
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Transfer-Encoding: chunked 0

Po uruchomieniu routera bez extroota - działa normalnie (nie restartuje się).
Postanowiłem sprawdzić system plików na extroocie... ale:

root@Gargoyle:~# mount | grep sd
/dev/sdb1 on /overlay type ext2 (rw,noatime,user_xattr,barrier=1)
root@Gargoyle:~# /tmp/usr/sbin/e2fsck -y /dev/sdb1
e2fsck 1.42.4 (12-June-2012)
/dev/sdb1 is mounted.
e2fsck: Cannot continue, aborting.

Zaraz spróbuję jeszcze raz uruchomić system z extrootem to dam znać czy "echo 'HTTP/1.1..." pomogło, tylko martwi mnie że tuż po podłączeniu do internetu router się restartuje sad

4

Odp: Transfer-Encoding: chunked 0

Ok, a więc:
#!/usr/bin/haserl
<?
    echo "HTTP/1.1 301 Moved Permanently"
    echo "Location: /przemek/skrypt-wykonano.html"
    exit
?>

przesuwa do overview.sh

Router nadal się restartuje, ale w logs.sh udało mi się złapać:

1

Mar     30    12:00:11    TL-MR3420 user.info sysinit: ERROR: No valid dynamic DNS service configurations defined

2

Mar     30    12:00:11    TL-MR3420 user.info sysinit: (Did you specify correct configuration file path?)

3

Mar     30    12:00:11    TL-MR3420 user.info sysinit: setting up led USB

4

Mar     30    19:28:48    TL-MR3420 daemon.info hostapd: wlan0: STA f0:7b:cb:5f:1e:47 WPA: group key handshake completed (RSN)

5

Mar     30    19:28:52    TL-MR3420 user.notice firewall: Reloading firewall due to ifup of wan (wwan0)

6

Mar     30    19:29:01    TL-MR3420 lpr.info cupsd[1822]: Saving printers.conf...

7

Mar     30    19:29:03    TL-MR3420 authpriv.info dropbear[2603]: Child connection from 192.168.1.100:11998

8

Mar     30    19:29:06    TL-MR3420 authpriv.notice dropbear[2603]: Password auth succeeded for 'root' from 192.168.1.100:11998

9

Mar     30    19:29:20    TL-MR3420 daemon.notice netifd: wan (2703): Trying to set mode

10

Mar     30    19:29:24    TL-MR3420 daemon.notice netifd: wan (1807): Sending renew...

11

Mar     30    19:29:24    TL-MR3420 daemon.notice netifd: wan (1807): Received SIGTERM

12

Mar     30    19:29:24    TL-MR3420 daemon.notice netifd: Interface 'wan' is now down

13

Mar     30    19:29:24    TL-MR3420 daemon.info dnsmasq[2052]: reading /tmp/resolv.conf.auto

14

Mar     30    19:29:24    TL-MR3420 daemon.warn dnsmasq[2052]: ignoring nameserver 192.168.1.1 - local interface

15

Mar     30    19:29:24    TL-MR3420 daemon.info dnsmasq[2052]: using local addresses only for domain lan

16

Mar     30    19:29:25    TL-MR3420 daemon.notice netifd: wan (2726): SIM ready

17

Mar     30    19:29:25    TL-MR3420 daemon.notice netifd: wan (2726): PIN set successfully

18

Mar     30    19:29:25    TL-MR3420 daemon.notice netifd: wan (2726): Trying to set mode

19

Mar     30    19:29:29    TL-MR3420 daemon.notice netifd: wan (2726): Trying to set mode

20

Mar     30    19:29:30    TL-MR3420 cron.err crond[1812]: time disparity of 449 minutes detected

21

Mar     30    19:29:33    TL-MR3420 daemon.notice netifd: wan (2943): udhcpc (v1.19.4) started

22

Mar     30    19:29:33    TL-MR3420 daemon.notice netifd: wan (2943): Sending discover...

23

Mar     30    19:29:33    TL-MR3420 daemon.notice netifd: wan (2943): Sending select for 37.108.60.197...

24

Mar     30    19:29:33    TL-MR3420 daemon.notice netifd: wan (2943): Lease of 37.108.60.197 obtained, lease time 7200

25

Mar     30    19:29:33    TL-MR3420 daemon.notice netifd: Interface 'wan' is now up

Da się coś z tego odczytać smile ?

5

Odp: Transfer-Encoding: chunked 0

Nic tu nie ma ciekawego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Transfer-Encoding: chunked 0

Dziękuję za sprawdzenie, Cezary.
Skończyło się na upgrade systemu i ponownej konfiguracji wszystkiego smile Ale przynajmniej mam nowszą wersję gargoyle smile

Dziwny błąd to był, coś mi się zdaje że miał związek ze zmianą czasu, bo tylko jak router połączył się z Internetem, to po ~1 minucie następował restart (prawdopodobnie po pobraniu daty z serwera)... Dziwne, ale nie miałem sił już dokładnie sprawdzać.