iOs redirect

Posted by wassilychair 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
iOs redirect
April 23, 2018 05:17PM
Hi everybody, smiling bouncing smiley
It's my first experience with PirateBox so sorry in advance if my questions seem stupid:

1) I created a Captive Portal with NoDogSplash and it works on laptops but I have problems with the redirect when I use it on iOs devices!
Any suggestions?

2) Is it possible to redirect directly on a file in the content page? if yes, HOW?


Thank you very much :*

S()fia
Re: iOs redirect
April 24, 2018 06:00PM
Hi,
sorry, I am not fully clear about your setup.
What did you configure? Did you use our image and put nodogsplash ontop of it?
What are the redirecting problems?

best regards Matthias
Re: iOs redirect
April 25, 2018 04:03PM
Hi Matthias,

thanks for your quick answer!
I followed the DIY instructions to build the piratebox and then I followed this [piratebox.aod-rpg.de] for the captive portal to reach automatically the piratebox main page.

When I use an ios device the captive portal works but when I click on the link to go to the page it doesn't connect and says that there is an error opening the page and the login to the hotspot can't open the page because can't connect to the server.

Thanks ,
Re: iOs redirect
April 26, 2018 04:43AM
Hi,
I never tested it on PirateBox, I guess confused smiley

I need a copy of the output of the following commands to analyze if everything is setup properly:
cat /opt/piratebox/conf/dnsmasq_captive.conf
grep dnsmasq /opt/piratebox/init.d/piratebox_alt
grep bind /opt/piratebox/conf/lighttpd/lighttpd.conf
ls -l /mnt/usb/PirateBox
ls -l /mnt/usb/PirateBox/captive_portal/
cat /etc/nodogsplash/nodogsplash.conf

Matthias
Re: iOs redirect
April 26, 2018 09:41PM
Hi Matthias

root@UFnA7G5E:~# cat /opt/piratebox/conf/dnsmasq_captive.conf
#dont use resolv.conf
no-resolv
#dont recheck resolv.conf for changes
no-poll


# If you don't want dnsmasq to read /etc/hosts, uncomment the
# following line.
no-hosts

dhcp-leasefile=/tmp/lease.file
addn-hosts=/opt/piratebox/conf/hosts_generated
addn-hosts=/opt/piratebox/conf/hosts_mesh

### normal network
dhcp-range=br-lan,192.168.1.10,192.168.1.250,12h
address=/#/192.168.1.1

#### Captive network
dhcp-range=br-captive,10.10.15.10,10.10.15.250,1h

root@UFnA7G5E:~# grep dnsmasq /opt/piratebox/init.d/piratebox_alt
PIDFILE_DNSMASQ=/var/run/piratebox_dnsmasq.pid
#Some extra config files for dnsmasq
CONF_DNSMASQ=$PIRATEBOX/conf/dnsmasq_captive.conf
    # Generate hosts & dnsmasq file
         echo  "Starting dnsmasq... "
   # pidfile is written by dnsmasq
         start-stop-daemon -S -q -x /usr/sbin/dnsmasq  --  $CMD_DNSMASQ
       echo "Stopping dnsmasq..."
root@UFnA7G5E:~# grep bind /opt/piratebox/conf/lighttpd/lighttpd.conf
server.bind = "192.168.1.1i"
root@UFnA7G5E:~# ls -l /mnt/usb/PirateBox
drwxrwxrwx    3 root     root          8192 Jan  1  1980 Shared
drwxrwxrwx   11 root     root          8192 Apr 19 19:08 board
drwxrwxrwx    3 root     root          8192 Apr 19 19:22 captive_portal
drwxrwxrwx    6 root     root          8192 Jan  1  1980 content
drwxrwxrwx    2 root     root          8192 Apr 19 17:43 minidlna
-rwxrwxrwx    1 root     root      52428800 Apr 19 22:29 pbIMG_ws.img
-rwxrwxrwx    1 root     root            13 Apr 19 22:25 timesave_file
drwxrwxrwx    2 root     root          8192 Jan  1  1980 tmp
root@UFnA7G5E:~# ls -l /mnt/usb/PirateBox/captive_portal/
drwxrwxrwx    2 root     root          8192 Apr 19 19:22 images
-rwxrwxrwx    1 root     root          1387 Sep 18  2007 infoskel.html
-rwxrwxrwx    1 root     root           813 Jan 28  2009 splash.html
root@UFnA7G5E:~# cat /etc/nodogsplash/nodogsplash.conf
GatewayInterface br-captive

FirewallRuleSet authenticated-users {
	 FirewallRule allow all
}

FirewallRuleSet preauthenticated-users {
    FirewallRule allow tcp port 53
    FirewallRule allow udp port 53
}


FirewallRuleSet users-to-router {
    FirewallRule allow udp port 53
    FirewallRule allow tcp port 53
    FirewallRule allow udp port 67
    FirewallRule allow tcp port 80
}

## Open that URL after clicking in the browser
RedirectURL [piratebox.lan]

# Set to yes (or true or 1), to immediately authenticate users        
# who make a http port 80 request on the GatewayInterface (that is,        
# do not serve a splash page, just redirect to the user's request,    
# or to RedirectURL if set).                                          
#                                                                     
AuthenticateImmediately no
Re: iOs redirect
May 07, 2018 07:15PM
Mh, looks like there is a typo in the captive portal mod-package.
try the following:

run
sed -i 's|192.168.1.1i|192.168.1.1|' /opt/piratebox/conf/lighttpd/lighttpd.conf
sync && reboot

After the box finished reboot, please try again.

best regards Matthias
Re: iOs redirect
May 08, 2018 08:58PM
Hi Matthias,
I did as you told me, but since I still had problem with the captive I tried to install it again. But Suddenly now my PirateBox is not working anymore. I tried to install everything again with auto_flash instructions but now when I try to reach the piratebox website appears "This site can't be reached 192.168.1.1 refused to connect".

What did I do? :/ Is not the first time that i tried to reinstall everything again but usually worked!

Thanks

S()fia
Re: iOs redirect
May 09, 2018 05:00AM
Hi,
ok. Can you give me a pastebin copy these commands listed here: [piratebox.cc]

best regards Matthias
Re: iOs redirect
May 09, 2018 07:32AM
Hi Matthias,

root@654kRk9V:~# 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,size=14592k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda1 on /mnt/usb type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/loop0 on /mnt/ext type ext4 (rw,sync,relatime,user_xattr,barrier=1,data=ordered)
/dev/loop1 on /opt/piratebox type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
none on /proc/bus/usb type usbfs (rw,relatime)
root@654kRk9V:~# ls -la /mnt/ 
drwxr-xr-x    1 root     root             0 Jan  1  1970 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
drwxr-xr-x    7 root     root          1024 Jan  1  1970 ext
drwxrwxrwx    9 root     root          8192 Jan  1  1970 usb
root@654kRk9V:~# ls -la /mnt/usb
drwxrwxrwx    9 root     root          8192 Jan  1  1970 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
drwxrwxrwx    4 root     root          8192 Apr  1 13:58 .Spotlight-V100
drwxrwxrwx    3 root     root          8192 Apr 19 18:47 .TemporaryItems
drwxrwxrwx    3 root     root          8192 Apr  1 13:58 .Trashes
-rwxrwxrwx    1 root     root          4096 Apr  1 13:58 ._.Trashes
-rwxrwxrwx    1 root     root          4096 May  8 22:12 ._install
drwxrwxrwx    7 root     root          8192 Apr 19 19:22 PirateBox
drwxrwxrwx    2 root     root          8192 Jan  1  1980 auto_flash
drwxrwxrwx    2 root     root          8192 Jan  1  1980 external_fs
drwxrwxrwx    3 root     root          8192 Jan  1  1980 install
-rwxrwxrwx    1 root     root         98268 Jan  1  1980 install.log
root@654kRk9V:~# ls -la /mnt/usb/PirateBox
drwxrwxrwx    7 root     root          8192 Apr 19 19:22 .
drwxrwxrwx    9 root     root          8192 Jan  1  1970 ..
drwxrwxrwx    3 root     root          8192 Jan  1  1980 Shared
drwxrwxrwx   11 root     root          8192 May  8 22:43 board
drwxrwxrwx    3 root     root          8192 Apr 20 04:09 content
drwxrwxrwx    2 root     root          8192 Apr 19 17:43 minidlna
-rwxrwxrwx    1 root     root      52428800 May  8 22:46 pbIMG_ws.img
-rwxrwxrwx    1 root     root            13 May  8 22:50 timesave_file
drwxrwxrwx    2 root     root          8192 Jan  1  1980 tmp
root@654kRk9V:~# ls -la /mnt/usb/install
drwxrwxrwx    3 root     root          8192 Jan  1  1980 .
drwxrwxrwx    9 root     root          8192 Jan  1  1970 ..
-rwxrwxrwx    1 root     root          4096 May  8 22:12 ._OpenWRT.img.gz
-rwxrwxrwx    1 root     root          4096 May  8 22:12 ._auto_package
-rwxrwxrwx    1 root     root          4096 May  8 22:12 ._cache
-rwxrwxrwx    1 root     root          4096 May  8 22:12 ._kareha_3.1.4.zip
-rwxrwxrwx    1 root     root          4096 May  8 22:12 ._piratebox_ws_1.1_img.tar.gz
-rwxrwxrwx    1 root     root        108526 Feb 27 22:58 OpenWRT.img.gz
-rwxrwxrwx    1 root     root            99 Jan  1  1980 auto_package_done
drwxrwxrwx    2 root     root         32768 May  8 22:12 cache
-rwxrwxrwx    1 root     root        222185 Feb 27 22:58 kareha_3.1.4.zip
-rwxrwxrwx    1 root     root        239589 Feb 27 22:58 piratebox_ws_1.1_img.tar.gz
root@654kRk9V:~# ls -la /opt/piratebox
drwxr-xr-x   13 root     root          1024 Jan  1  1970 .
drwxr-xr-x    3 root     root             0 Jan  1  1970 ..
drwxr-xr-x    3 root     root          1024 Feb 27 21:57 bin
drwxr-xr-x    5 root     root          1024 Jan  1  1970 conf
drwxr-xr-x    2 root     root          1024 Feb 27 21:57 init.d
drwxr-xr-x    2 root     root          1024 Feb 27 21:57 lib
drwx------    2 root     root         12288 Jan 16  2014 lost+found
drwxr-xr-x    2 root     root          1024 Jan  1  1970 python_lib
drwxr-xr-x    5 root     root          1024 Feb 27 21:57 rpi
lrwxrwxrwx    1 root     root            18 Jan  1  1970 share -> /mnt/usb/PirateBox
drwxr-xr-x    2 root     root          1024 Feb 27 21:57 src
drwxr-xr-x    2 nobody   nogroup       1024 Jan  1  1970 tmp
-rw-r--r--    1 root     root            98 Feb 27 21:57 version
drwxr-xr-x    5 nobody   nogroup       1024 Jan  1  1970 www
drwxr-xr-x    6 root     root          1024 Feb 27 21:57 www_content
root@654kRk9V:~# ls -la /opt/piratebox/www
drwxr-xr-x    5 nobody   nogroup       1024 Jan  1  1970 .
drwxr-xr-x   13 root     root          1024 Jan  1  1970 ..
-rwxr-xr-x    1 nobody   nogroup       1453 Feb 27 21:57 .READ.ME.htm
lrwxrwxrwx    1 root     root            27 Jan  1  1970 Shared -> /opt/piratebox/share/Shared
lrwxrwxrwx    1 root     root            26 Jan  1  1970 board -> /opt/piratebox/share/board
drwxr-xr-x    2 nobody   nogroup       1024 Feb 27 21:57 cgi-bin
-rw-rw-r--    1 nobody   nogroup        289 May  8 22:45 chat_content.html
lrwxrwxrwx    1 root     root            28 Jan  1  1970 content -> /opt/piratebox/share/content
-rw-rw-r--    1 nobody   nogroup        353 Jan  1  1970 diskusage.html
-rw-r--r--    1 nobody   nogroup        111 Feb 27 21:57 generate_204
-rwxr-xr-x    1 nobody   nogroup        327 Feb 27 21:57 index.html
drwxr-xr-x    3 nobody   nogroup       1024 Feb 27 21:57 library
-rw-r--r--    1 nobody   nogroup         15 Feb 27 21:57 ncsi.txt
-rw-r--r--    1 root     root           382 Jan  1  1970 piratebox_config.json
-rw-r--r--    1 nobody   nogroup          0 Feb 27 21:57 station_cnt.txt
drwxr-xr-x    3 nobody   nogroup       1024 Feb 27 21:57 upload_handler
root@654kRk9V:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.4
root@654kRk9V:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r42647"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.3-MaStr"
root@654kRk9V:~# cat /opt/piratebox/version
piratebox-ws_1.1.4
## hotfix-1.1.4...origin/hotfix-1.1.4
759f6cd CHANGELOG: Update latest changes
root@654kRk9V:~# cat /opt/piratebox/tmp/error.log
cat: can't open '/opt/piratebox/tmp/error.log': No such file or directory
root@654kRk9V:~# cat /opt/piratebox/tmp/break.log
cat: can't open '/opt/piratebox/tmp/break.log': No such file or directory
root@654kRk9V:~# cat /etc/config/network

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config interface 'lan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6addr 'fdc0:ffea::1/64'

config alias
	option interface 'lan'
	option ip6addr 'fdc0:ffea::7173:ace0:120d:5ada/64'
	option proto 'static'

root@654kRk9V:~# cat /etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option channel '11'
	option hwmode '11ng'
	option macaddr 'd4:6e:0e:23:20:4c'
	option htmode 'HT20'
	list ht_capab 'SHORT-GI-20'
	list ht_capab 'SHORT-GI-40'
	list ht_capab 'RX-STBC1'
	list ht_capab 'DSSS_CCK-40'

config wifi-iface
	option device 'radio0'
	option mode 'ap'
	option network 'lan'
	option ssid 'PirateBox - Share Freely'
	option encryption 'none'
	option isolate '1'

root@654kRk9V:~# dmesg | tail -n 20
[   35.810000] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities
[   35.830000] EXT4-fs (loop1): couldn't mount as ext2 due to feature incompatibilities
[   35.860000] EXT4-fs (loop1): recovery complete
[   35.870000] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null)
[   37.180000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   37.180000] device eth0 entered promiscuous mode
[   37.190000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   44.460000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   44.460000] device wlan0 entered promiscuous mode
[   44.480000] br-lan: port 2(wlan0) entered forwarding state
[   44.490000] br-lan: port 2(wlan0) entered forwarding state
[   44.490000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   44.500000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   46.490000] br-lan: port 2(wlan0) entered forwarding state
[   47.860000] Adding 32760k swap on /mnt/usb/external_fs/OpenWRT.swap.  Priority:-1 extents:1 across:32760k 
[   89.880000] eth0: link up (100Mbps/Full duplex)
[   89.880000] br-lan: port 1(eth0) entered forwarding state
[   89.890000] br-lan: port 1(eth0) entered forwarding state
[   89.890000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   91.890000] br-lan: port 1(eth0) entered forwarding state
root@654kRk9V:~# dmesg | grep sda
[    9.820000] sd 0:0:0:0: [sda] 30351360 512-byte logical blocks: (15.5 GB/14.4 Gicool smiley
[    9.820000] sd 0:0:0:0: [sda] Write Protect is off
[    9.830000] sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00
[    9.830000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   11.590000]  sda: sda1
[   11.590000] sd 0:0:0:0: [sda] Attached SCSI removable disk
root@654kRk9V:~# ls /dev/sd*
/dev/sda   /dev/sda1
root@654kRk9V:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1504 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
   63 root         0 SW   [sync_supers]
   65 root         0 SW   [bdi-default]
   67 root         0 SW<  [kblockd]
   96 root         0 SW   [kswapd0]
  144 root         0 SW   [fsnotify_mark]
  173 root         0 SW<  [ath79-spi]
  184 root         0 SW   [mtdblock0]
  189 root         0 SW   [mtdblock1]
  194 root         0 SW   [mtdblock2]
  199 root         0 SW   [mtdblock3]
  204 root         0 SW   [mtdblock4]
  209 root         0 SW   [mtdblock5]
  250 root         0 RW   [kworker/0:1]
  442 root         0 SWN  [jffs2_gcd_mtd3]
  472 root         0 SW   [khubd]
  481 root         0 SW   [scsi_eh_0]
  482 root         0 SW   [usb-storage]
  483 root         0 SW   [kworker/0:2]
  484 root         0 SW   [kworker/u:2]
  508 root      1504 S    init
  541 root         0 SW<  [cfg80211]
  621 root         0 SW<  [bat_events]
  648 root      1508 S    /sbin/syslogd -C16
  650 root      1488 S    /sbin/klogd
  652 root       872 S    /sbin/hotplug2 --override --persistent --set-rules-f
  660 root       872 S    /sbin/ubusd
  736 root         0 SW<  [loop0]
  741 root         0 SW   [jbd2/loop0-8]
  742 root         0 SW<  [ext4-dio-unwrit]
  763 root         0 SW<  [loop1]
  769 root         0 SW   [jbd2/loop1-8]
  770 root         0 SW<  [ext4-dio-unwrit]
  778 root      1472 S    /sbin/netifd
 1015 root         0 SW   [flush-8:0]
 1017 root         0 SW   [flush-7:0]
 1018 root         0 SW   [flush-7:1]
 1293 root      1640 S    hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
 1375 root      1500 S    /sbin/watchdog -t 5 /dev/watchdog
 1487 root      1512 S    /usr/sbin/crond -c /etc/crontabs -l 5
 1498 root      1152 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1504 root      9108 S    /usr/bin/minidlna -f /tmp/minidlna.conf
 1523 root      1696 S    /usr/sbin/dbus-daemon --system
 1528 nobody    2172 S    avahi-daemon: running [654kRk9V_piratebox_lan.local]
 1561 nobody     952 S    /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid
 1564 root       936 S    /usr/bin/radvd -p /opt/piratebox/tmp/radvd.pid -C /o
 1566 root       940 S    /usr/bin/radvd -p /opt/piratebox/tmp/radvd.pid -C /o
 1571 root      8212 S    python /opt/piratebox/bin/droopy -d /opt/piratebox/s
 1621 root      1500 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
 1623 root      1220 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1636 root      1504 S    -ash
 1660 root      1496 R    ps
root@654kRk9V:~# tail -n 200 /mnt/usb/install.log
Jan  1 00:03:20 OpenWrt user.notice root: Copying /mnt/usb/install/cache/ip_3.3.0-2_ar71xx.ipk.
Jan  1 00:03:22 OpenWrt user.notice root: Installing perl (5.10.0-7) to ext...
Jan  1 00:03:22 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perl_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:32 OpenWrt user.notice root: Installing perlbase-base (5.10.0-7) to ext...
Jan  1 00:03:32 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-base_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:32 OpenWrt user.notice root: Installing perlbase-cgi (5.10.0-7) to ext...
Jan  1 00:03:32 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-cgi_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:33 OpenWrt user.notice root: Installing perlbase-essential (5.10.0-7) to ext...
Jan  1 00:03:33 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-essential_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:35 OpenWrt user.notice root: Installing perlbase-file (5.10.0-7) to ext...
Jan  1 00:03:35 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-file_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:39 OpenWrt user.notice root: Installing perlbase-bytes (5.10.0-7) to ext...
Jan  1 00:03:39 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-bytes_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:39 OpenWrt user.notice root: Installing perlbase-config (5.10.0-7) to ext...
Jan  1 00:03:39 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-config_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:39 OpenWrt user.notice root: Installing perlbase-data (5.10.0-7) to ext...
Jan  1 00:03:39 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-data_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:40 OpenWrt user.notice root: Installing perlbase-db-file (5.10.0-7) to ext...
Jan  1 00:03:40 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-db-file_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:42 OpenWrt user.notice root: Installing libdb47 (4.7.25.NC-6) to ext...
Jan  1 00:03:42 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libdb47_4.7.25.NC-6_ar71xx.ipk.
Jan  1 00:03:48 OpenWrt user.notice root: Installing perlbase-digest (5.10.0-7) to ext...
Jan  1 00:03:48 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-digest_5.10.0-7_ar71xx.ipk.
Jan  1 00:03:50 OpenWrt user.notice root: Installing perlbase-encode (5.10.0-7) to ext...
Jan  1 00:03:50 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-encode_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:28 OpenWrt user.notice root: Installing perlbase-encoding (5.10.0-7) to ext...
Jan  1 00:04:28 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-encoding_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:28 OpenWrt user.notice root: Installing perlbase-fcntl (5.10.0-7) to ext...
Jan  1 00:04:28 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-fcntl_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:28 OpenWrt user.notice root: Installing perlbase-gdbm-file (5.10.0-7) to ext...
Jan  1 00:04:28 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-gdbm-file_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:28 OpenWrt user.notice root: Installing perlbase-integer (5.10.0-7) to ext...
Jan  1 00:04:28 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-integer_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:29 OpenWrt user.notice root: Installing perlbase-socket (5.10.0-7) to ext...
Jan  1 00:04:29 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-socket_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:29 OpenWrt user.notice root: Installing perlbase-time (5.10.0-7) to ext...
Jan  1 00:04:29 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-time_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:31 OpenWrt user.notice root: Installing perlbase-unicode (5.10.0-7) to ext...
Jan  1 00:04:31 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-unicode_5.10.0-7_ar71xx.ipk.
Jan  1 00:04:40 OpenWrt user.notice root: Installing perlbase-unicore (5.10.0-7) to ext...
Jan  1 00:04:40 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-unicore_5.10.0-7_ar71xx.ipk.
Jan  1 00:05:30 OpenWrt user.notice root: Installing perlbase-utf8 (5.10.0-7) to ext...
Jan  1 00:05:30 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-utf8_5.10.0-7_ar71xx.ipk.
Jan  1 00:05:30 OpenWrt user.notice root: Installing perlbase-xsloader (5.10.0-7) to ext...
Jan  1 00:05:30 OpenWrt user.notice root: Copying /mnt/usb/install/cache/perlbase-xsloader_5.10.0-7_ar71xx.ipk.
Jan  1 00:05:30 OpenWrt user.notice root: Installing unzip (5.52-1) to ext...
Jan  1 00:05:30 OpenWrt user.notice root: Copying /mnt/usb/install/cache/unzip_5.52-1_ar71xx.ipk.
Jan  1 00:05:37 OpenWrt user.notice root: /etc/init.d/piratebox: Mesh package detected, generating random hostname
Jan  1 00:05:38 OpenWrt user.notice root: /etc/init.d/piratebox: Generated IPv6 suffix  for br-lan : fdc0:ffea::7173:ace0:120d:5ada 
Jan  1 00:05:38 OpenWrt user.notice root: uci: Entry not found
Jan  1 00:05:38 OpenWrt user.notice root: /etc/init.d/piratebox: Creating config/network entry for dyn. alias fdc0:ffea::7173:ace0:120d:5ada/64
Jan  1 00:05:38 OpenWrt user.notice root: cfg044d8f
Jan  1 00:05:39 OpenWrt user.notice root: cfg053579
Jan  1 00:05:39 OpenWrt user.notice root: cfg163837
Jan  1 00:05:39 OpenWrt user.notice root: cfg173837
Jan  1 00:05:39 OpenWrt user.notice root: /etc/init.d/piratebox: Creating piratebox loop image...
Jan  1 00:05:58 OpenWrt user.notice root: Avahi installation found. Brining our config via link in place
Jan  1 00:05:58 OpenWrt user.notice root: Enabling dbus & avahi services
Jan  1 00:06:00 OpenWrt user.notice root: Moving avahi-daemon beyond the startup of piratebox
Jan  1 00:06:00 OpenWrt user.notice root: Setting static PBx IP fdc0:ffea::1 to depricated
Jan  1 00:06:01 OpenWrt user.notice root: -------------- Initialize PirateBoxScripts -----------
Jan  1 00:06:01 OpenWrt user.notice root: Apply OpenWRT ipv6  config to PirateBox-config..
Jan  1 00:06:03 OpenWrt user.notice root: Starting initialize PirateBox Part2..
Jan  1 00:06:03 OpenWrt user.notice root: Distribute HEADER.txt into /opt/piratebox/share/Shared 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute HEADER.txt into /opt/piratebox/share/Shared/Link Art Center project 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute HEADER.txt into /opt/piratebox/share/Shared/Link Art Center project/ok 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute HEADER.txt into /opt/piratebox/share/Shared/Link Art Center project/ok/linkshot 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute README.txt into /opt/piratebox/share/Shared 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute README.txt into /opt/piratebox/share/Shared/Link Art Center project 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute README.txt into /opt/piratebox/share/Shared/Link Art Center project/ok 
Jan  1 00:06:03 OpenWrt user.notice root: Distribute README.txt into /opt/piratebox/share/Shared/Link Art Center project/ok/linkshot 
Jan  1 00:06:04 OpenWrt user.notice root: chown: /opt/piratebox/share: Operation not permitted
Jan  1 00:06:04 OpenWrt user.notice root: Starting script piratebox 
Jan  1 00:06:04 OpenWrt user.notice root: Generating config for radvd..
Jan  1 00:06:04 OpenWrt user.notice root: Generating hosts file .... 
Jan  1 00:06:04 OpenWrt user.notice root: Generating dnsmasq.conf .....
Jan  1 00:06:04 OpenWrt user.notice root: Generating Environment-config for lighttpd .....
Jan  1 00:06:04 OpenWrt user.notice root: Appending local node-name hosts entry 654kRk9V.piratebox.lan
Jan  1 00:06:04 OpenWrt user.notice root: Empty tmp folder
Jan  1 00:06:04 OpenWrt user.notice root: rm: /opt/piratebox/tmp: is a directory
Jan  1 00:06:04 OpenWrt user.notice root: Copy over directory design files
Jan  1 00:06:04 OpenWrt user.notice root: Generating json configuration file: /opt/piratebox/www/piratebox_config.json
Jan  1 00:06:04 OpenWrt user.notice root: Starting dnsmasq... 
Jan  1 00:06:04 OpenWrt daemon.info dnsmasq[2309]: started, version 2.66 cachesize 150
Jan  1 00:06:04 OpenWrt daemon.info dnsmasq[2309]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Jan  1 00:06:04 OpenWrt daemon.info dnsmasq-dhcp[2309]: DHCP, IP range 192.168.1.10 -- 192.168.1.250, lease time 12h
Jan  1 00:06:04 OpenWrt daemon.info dnsmasq[2309]: read /opt/piratebox/conf/hosts_mesh - 0 addresses
Jan  1 00:06:04 OpenWrt daemon.err dnsmasq[2309]: bad address at /opt/piratebox/conf/hosts_generated line 2
Jan  1 00:06:04 OpenWrt daemon.info dnsmasq[2309]: read /opt/piratebox/conf/hosts_generated - 2 addresses
Jan  1 00:06:04 OpenWrt user.notice root: 0
Jan  1 00:06:04 OpenWrt user.notice root: Setting up firewall rules...
Jan  1 00:06:04 OpenWrt user.notice root: 0
Jan  1 00:06:04 OpenWrt user.notice root: Deploy ugly hack for radvd on PirateBox 1.1
Jan  1 00:06:04 OpenWrt user.notice root: Starting radvd...
Jan  1 00:06:04 OpenWrt daemon.info radvd[2312]: version 1.9.1 started
Jan  1 00:06:05 OpenWrt daemon.err radvd[2312]: no linklocal address configured for br-lan
Jan  1 00:06:05 OpenWrt user.notice root: [Jan 01 00:06:05] radvd: no linklocal address configured for br-lan
Jan  1 00:06:05 OpenWrt user.notice root: 0
Jan  1 00:06:05 OpenWrt user.notice root: Starting droopy...
Jan  1 00:06:05 OpenWrt user.notice root: 0
Jan  1 00:06:33 OpenWrt user.notice root: Generated HTML-Shoutbox File.
Jan  1 00:06:53 OpenWrt user.notice root: Generated HTML-DiskUsage File.
Jan  1 00:06:55 OpenWrt user.notice root: Starting lighttpd...
Jan  1 00:06:55 OpenWrt user.notice root: start-stop-daemon: can't execute '/usr/sbin/lighttpd': No such file or directory
Jan  1 00:06:55 OpenWrt user.notice root: 1
Jan  1 00:06:55 OpenWrt user.notice root: Bringing PirateBox down again and leave image mounted
Jan  1 00:06:55 OpenWrt user.notice root:  for further installation
Jan  1 00:06:56 OpenWrt user.notice root: Stopping script piratebox
Jan  1 00:06:56 OpenWrt user.notice root: Stopping dnsmasq...
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Removing firewall rules...
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Stopping radvd...
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Stopping droopy... 
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Stopping lighttpd...
Jan  1 00:06:56 OpenWrt user.notice root: 1
Jan  1 00:06:56 OpenWrt daemon.warn radvd[2315]: Exiting, sigterm or sigint received.
Jan  1 00:06:56 OpenWrt daemon.info radvd[2315]: sending stop adverts
Jan  1 00:06:56 OpenWrt daemon.info radvd[2315]: removing /opt/piratebox/tmp/radvd.pid
Jan  1 00:06:56 OpenWrt user.notice root: Setup complete!
Jan  1 00:06:56 OpenWrt user.notice root: You can remove the WAN connection now.
Jan  1 00:06:56 OpenWrt user.notice root: Please reboot your PirateBox now: 
Jan  1 00:06:56 OpenWrt user.notice root:    # reboot 
Jan  1 00:06:56 OpenWrt user.notice root: Done
Jan  1 00:06:56 OpenWrt daemon.info dnsmasq[2309]: exiting on receipt of SIGTERM
Jan  1 00:06:56 OpenWrt daemon.err radvd[2313]: Exiting, privsep_read_loop had readn return 0 bytes
Jan  1 00:06:58 OpenWrt user.notice root: /opt/piratebox/share/board/init_done file Found in Kareha folder. Won't reinstall board.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring perl.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring perlbase-data.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring perlbase-encode.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring ip.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring libjpeg.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring libopenssl.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring libpcre.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring lighttpd.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring lighttpd-mod-cgi.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring perlbase-bytes.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring lighttpd-mod-setenv.
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_package_stop
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/trigger: nonexistent directory
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/brightness: nonexistent directory
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : executing exit
Jan  1 00:07:15 OpenWrt user.notice root: /bin/box_installer_start.sh : Multiple line auto_package found. Shifting 1st line to auto_package_done
Jan  1 00:07:15 OpenWrt user.notice root: /bin/box_installer_start.sh : Initiating reboot after installation
---------------------------------------------
Jan  1 00:00:56 654kRk9V syslog.info syslogd started: BusyBox v1.19.4
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : executing run_test_installation_destination
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Testing if installation destination by extendRoot is available.
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Installation destination is available.
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : executing run_fake_opkg_update
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Creating opkg-lists folder, if missing
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Getting main Repository from /etc/opkg.conf
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Doing fake opkg update (copy from cache folder (attitude_adjustment)
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : .. doing it for Piratebox repository (optional)
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : executing run_signaling_package_start
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/trigger: nonexistent directory
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : executing run_install_package
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Fixing paths
Jan  1 00:00:56 654kRk9V user.notice root: /bin/box_installer.sh : Installing packge extendRoot-minidlna 
Jan  1 00:01:09 654kRk9V user.notice root: Installing extendRoot-minidlna (0.10.1-3) to ext...
Jan  1 00:01:09 654kRk9V user.notice root: Copying /mnt/usb/install/cache/extendRoot-minidlna_0.10.1-3_all.ipk.
Jan  1 00:01:09 654kRk9V user.notice root: Installing minidlna (1.0.24-1) to ext...
Jan  1 00:01:09 654kRk9V user.notice root: Copying /mnt/usb/install/cache/minidlna_1.0.24-1_ar71xx.ipk.
Jan  1 00:01:12 654kRk9V user.notice root: Installing libexif (0.6.19-1) to ext...
Jan  1 00:01:12 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libexif_0.6.19-1_ar71xx.ipk.
Jan  1 00:01:16 654kRk9V user.notice root: Installing libffmpeg-mini (0.8.7-2) to ext...
Jan  1 00:01:16 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libffmpeg-mini_0.8.7-2_ar71xx.ipk.
Jan  1 00:01:33 654kRk9V user.notice root: Installing libbz2 (1.0.6-1) to ext...
Jan  1 00:01:33 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libbz2_1.0.6-1_ar71xx.ipk.
Jan  1 00:01:33 654kRk9V user.notice root: Installing libid3tag (0.15.1b-3) to ext...
Jan  1 00:01:33 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libid3tag_0.15.1b-3_ar71xx.ipk.
Jan  1 00:01:34 654kRk9V user.notice root: Installing libflac (1.2.1-1) to ext...
Jan  1 00:01:34 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libflac_1.2.1-1_ar71xx.ipk.
Jan  1 00:01:35 654kRk9V user.notice root: Installing libvorbis (1.2.3-1) to ext...
Jan  1 00:01:35 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libvorbis_1.2.3-1_ar71xx.ipk.
Jan  1 00:01:43 654kRk9V user.notice root: Installing libogg (1.1.4-2) to ext...
Jan  1 00:01:43 654kRk9V user.notice root: Copying /mnt/usb/install/cache/libogg_1.1.4-2_ar71xx.ipk.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libogg.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libexif.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libflac.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libvorbis.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libbz2.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libffmpeg-mini.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring libid3tag.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring minidlna.
Jan  1 00:01:45 654kRk9V user.notice root: Configuring extendRoot-minidlna.
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer.sh : executing run_signaling_package_stop
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/trigger: nonexistent directory
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/brightness: nonexistent directory
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer.sh : executing exit
Jan  1 00:01:45 654kRk9V user.notice root: /bin/box_installer_start.sh : Initiating reboot after installation

thanks,

S()fia
Re: iOs redirect
May 09, 2018 07:39AM
Hi
thanks,
that looks ok beside the fact, that the lighttpd package wasn't installed.
Can you please post the output of the following command?

grep -C 5 lighttpd /mnt/usb/install.log

I guess, You may need to reinstall your box with a fresh copy of install-zip.

best regards
Matthias
Re: iOs redirect
May 09, 2018 07:53AM
Hi,
here the output:

root@654kRk9V:~# grep -C 5 lighttpd /mnt/usb/install.log
Jan  1 00:00:50 OpenWrt user.notice root: /bin/box_installer.sh : executing run_install_package
Jan  1 00:00:50 OpenWrt user.notice root: /bin/box_installer.sh : Fixing paths
Jan  1 00:00:50 OpenWrt user.notice root: /bin/box_installer.sh : Installing packge extendRoot-piratebox 
Jan  1 00:00:51 OpenWrt user.notice root: Installing extendRoot-piratebox (0.10.1-3) to ext...
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/extendRoot-piratebox_0.10.1-3_all.ipk.
Jan  1 00:00:51 OpenWrt user.notice root: Installing extendRoot-lighttpd (0.10.1-3) to ext...
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/extendRoot-lighttpd_0.10.1-3_all.ipk.
Jan  1 00:00:51 OpenWrt user.notice root: Installing lighttpd (1.4.30-2) to ext...
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd_1.4.30-2_ar71xx.ipk.
Jan  1 00:00:52 OpenWrt user.notice root: Installing libopenssl (1.0.1i-1) to ext...
Jan  1 00:00:52 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libopenssl_1.0.1i-1_ar71xx.ipk.
Jan  1 00:01:00 OpenWrt user.notice root: Installing libpcre (8.11-2) to ext...
Jan  1 00:01:00 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libpcre_8.11-2_ar71xx.ipk.
Jan  1 00:01:01 OpenWrt user.notice root: Installing extendRoot-python (0.10.1-3) to ext...
--
Jan  1 00:01:44 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libffi_3.0.10-1_ar71xx.ipk.
Jan  1 00:01:44 OpenWrt user.notice root: Installing python-mini (2.7.3-2) to ext...
Jan  1 00:01:44 OpenWrt user.notice root: Copying /mnt/usb/install/cache/python-mini_2.7.3-2_ar71xx.ipk.
Jan  1 00:02:17 OpenWrt user.notice root: Installing piratebox (1.1.0-4) to ext...
Jan  1 00:02:17 OpenWrt user.notice root: Copying /mnt/usb/install/cache/piratebox_1.1.0-4_all.ipk.
Jan  1 00:02:18 OpenWrt user.notice root: Installing lighttpd-mod-cgi (1.4.30-2) to ext...
Jan  1 00:02:18 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-cgi_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:18 OpenWrt user.notice root: Installing lighttpd-mod-redirect (1.4.30-2) to ext...
Jan  1 00:02:18 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-redirect_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:18 OpenWrt user.notice root: Installing lighttpd-mod-alias (1.4.30-2) to ext...
Jan  1 00:02:18 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-alias_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:18 OpenWrt user.notice root: Installing lighttpd-mod-setenv (1.4.30-2) to ext...
Jan  1 00:02:18 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-setenv_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:19 OpenWrt user.notice root: Installing lighttpd-mod-fastcgi (1.4.30-2) to ext...
Jan  1 00:02:19 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-fastcgi_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:19 OpenWrt user.notice root: Installing php5-cgi (5.4.5-3) to ext...
Jan  1 00:02:19 OpenWrt user.notice root: Copying /mnt/usb/install/cache/php5-cgi_5.4.5-3_ar71xx.ipk.
Jan  1 00:02:35 OpenWrt user.notice root: Installing php5 (5.4.5-3) to ext...
Jan  1 00:02:35 OpenWrt user.notice root: Copying /mnt/usb/install/cache/php5_5.4.5-3_ar71xx.ipk.
Jan  1 00:02:35 OpenWrt user.notice root: Installing libxml2 (2.7.8-2) to ext...
--
Jan  1 00:04:09 OpenWrt user.notice root: chown: /opt/piratebox/share: Operation not permitted
Jan  1 00:04:10 OpenWrt user.notice root: Starting script piratebox 
Jan  1 00:04:10 OpenWrt user.notice root: Generating config for radvd..
Jan  1 00:04:10 OpenWrt user.notice root: Generating hosts file .... 
Jan  1 00:04:10 OpenWrt user.notice root: Generating dnsmasq.conf .....
Jan  1 00:04:10 OpenWrt user.notice root: Generating Environment-config for lighttpd .....
Jan  1 00:04:10 OpenWrt user.notice root: Appending local node-name hosts entry UFnA7G5E.piratebox.lan
Jan  1 00:04:10 OpenWrt user.notice root: Empty tmp folder
Jan  1 00:04:10 OpenWrt user.notice root: rm: /opt/piratebox/tmp: is a directory
Jan  1 00:04:10 OpenWrt user.notice root: Copy over directory design files
Jan  1 00:04:10 OpenWrt user.notice root: Generating json configuration file: /opt/piratebox/www/piratebox_config.json
--
Jan  1 00:04:10 OpenWrt user.notice root: 0
Jan  1 00:04:10 OpenWrt user.notice root: Starting droopy...
Jan  1 00:04:11 OpenWrt user.notice root: 0
Jan  1 00:04:32 OpenWrt user.notice root: Generated HTML-Shoutbox File.
Jan  1 00:04:46 OpenWrt user.notice root: Generated HTML-DiskUsage File.
Jan  1 00:04:46 OpenWrt user.notice root: Starting lighttpd...
Jan  1 00:04:50 OpenWrt user.notice root: 0
Jan  1 00:04:51 OpenWrt user.notice root: Bringing PirateBox down again and leave image mounted
Jan  1 00:04:51 OpenWrt user.notice root:  for further installation
Jan  1 00:04:53 OpenWrt user.notice root: Stopping script piratebox
Jan  1 00:04:53 OpenWrt user.notice root: Stopping dnsmasq...
--
Jan  1 00:04:54 OpenWrt user.notice root: 0
Jan  1 00:04:54 OpenWrt user.notice root: Stopping radvd...
Jan  1 00:04:54 OpenWrt user.notice root: 0
Jan  1 00:04:54 OpenWrt user.notice root: Stopping droopy... 
Jan  1 00:04:54 OpenWrt user.notice root: 0
Jan  1 00:04:54 OpenWrt user.notice root: Stopping lighttpd...
Jan  1 00:04:54 OpenWrt user.notice root: 0
Jan  1 00:04:54 OpenWrt daemon.warn radvd[2291]: Exiting, sigterm or sigint received.
Jan  1 00:04:54 OpenWrt daemon.info radvd[2291]: sending stop adverts
Jan  1 00:04:54 OpenWrt daemon.info radvd[2291]: removing /opt/piratebox/tmp/radvd.pid
Jan  1 00:04:54 OpenWrt user.notice root: Setup complete!
--
Jan  1 00:04:59 OpenWrt user.notice root: Configuring php5.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring php5-mod-dom.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring ip.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring libjpeg.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring libopenssl.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring lighttpd.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring lighttpd-mod-cgi.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring php5-cli.
Jan  1 00:04:59 OpenWrt user.notice root: Configuring libcurl.
Jan  1 00:04:59 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:04:59 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_package_stop
Jan  1 00:04:59 OpenWrt user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/trigger: nonexistent directory
--
Jan  1 00:00:50 OpenWrt user.notice root: /bin/box_installer.sh : executing run_install_package
Jan  1 00:00:50 OpenWrt user.notice root: /bin/box_installer.sh : Fixing paths
Jan  1 00:00:50 OpenWrt user.notice root: /bin/box_installer.sh : Installing packge extendRoot-piratebox 
Jan  1 00:00:51 OpenWrt user.notice root: Installing extendRoot-piratebox (0.10.1-3) to ext...
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/extendRoot-piratebox_0.10.1-3_all.ipk.
Jan  1 00:00:51 OpenWrt user.notice root: Installing extendRoot-lighttpd (0.10.1-3) to ext...
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/extendRoot-lighttpd_0.10.1-3_all.ipk.
Jan  1 00:00:51 OpenWrt user.notice root: Installing lighttpd (1.4.30-2) to ext...
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd_1.4.30-2_ar71xx.ipk.
Jan  1 00:00:52 OpenWrt user.notice root: Installing libopenssl (1.0.1i-1) to ext...
Jan  1 00:00:52 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libopenssl_1.0.1i-1_ar71xx.ipk.
Jan  1 00:01:00 OpenWrt user.notice root: Installing libpcre (8.11-2) to ext...
Jan  1 00:01:00 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libpcre_8.11-2_ar71xx.ipk.
Jan  1 00:01:02 OpenWrt user.notice root: Installing extendRoot-python (0.10.1-3) to ext...
--
Jan  1 00:01:48 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libffi_3.0.10-1_ar71xx.ipk.
Jan  1 00:01:50 OpenWrt user.notice root: Installing python-mini (2.7.3-2) to ext...
Jan  1 00:01:50 OpenWrt user.notice root: Copying /mnt/usb/install/cache/python-mini_2.7.3-2_ar71xx.ipk.
Jan  1 00:02:22 OpenWrt user.notice root: Installing piratebox (1.1.0-4) to ext...
Jan  1 00:02:22 OpenWrt user.notice root: Copying /mnt/usb/install/cache/piratebox_1.1.0-4_all.ipk.
Jan  1 00:02:23 OpenWrt user.notice root: Installing lighttpd-mod-cgi (1.4.30-2) to ext...
Jan  1 00:02:23 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-cgi_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:23 OpenWrt user.notice root: Installing lighttpd-mod-redirect (1.4.30-2) to ext...
Jan  1 00:02:23 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-redirect_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:23 OpenWrt user.notice root: Installing lighttpd-mod-alias (1.4.30-2) to ext...
Jan  1 00:02:23 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-alias_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:23 OpenWrt user.notice root: Installing lighttpd-mod-setenv (1.4.30-2) to ext...
Jan  1 00:02:23 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-setenv_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:23 OpenWrt user.notice root: Installing lighttpd-mod-fastcgi (1.4.30-2) to ext...
Jan  1 00:02:23 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-fastcgi_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:24 OpenWrt user.notice root: Installing php5-cgi (5.4.5-3) to ext...
Jan  1 00:02:24 OpenWrt user.notice root: Copying /mnt/usb/install/cache/php5-cgi_5.4.5-3_ar71xx.ipk.
Jan  1 00:02:38 OpenWrt user.notice root: Installing php5 (5.4.5-3) to ext...
Jan  1 00:02:38 OpenWrt user.notice root: Copying /mnt/usb/install/cache/php5_5.4.5-3_ar71xx.ipk.
Jan  1 00:02:39 OpenWrt user.notice root: Installing libxml2 (2.7.8-2) to ext...
--
Jan  1 00:00:51 OpenWrt user.notice root: Copying /mnt/usb/install/cache/python_2.7.3-2_ar71xx.ipk.
Jan  1 00:01:49 OpenWrt user.notice root: Installing libffi (3.0.10-1) to ext...
Jan  1 00:01:49 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libffi_3.0.10-1_ar71xx.ipk.
Jan  1 00:01:49 OpenWrt user.notice root: Installing python-mini (2.7.3-2) to ext...
Jan  1 00:01:49 OpenWrt user.notice root: Copying /mnt/usb/install/cache/python-mini_2.7.3-2_ar71xx.ipk.
Jan  1 00:02:23 OpenWrt user.notice root: Installing lighttpd (1.4.30-2) to ext...
Jan  1 00:02:23 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:26 OpenWrt user.notice root: Installing libopenssl (1.0.1i-1) to ext...
Jan  1 00:02:26 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libopenssl_1.0.1i-1_ar71xx.ipk.
Jan  1 00:02:34 OpenWrt user.notice root: Installing libpcre (8.11-2) to ext...
Jan  1 00:02:34 OpenWrt user.notice root: Copying /mnt/usb/install/cache/libpcre_8.11-2_ar71xx.ipk.
Jan  1 00:02:35 OpenWrt user.notice root: Installing lighttpd-mod-cgi (1.4.30-2) to ext...
Jan  1 00:02:35 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-cgi_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:35 OpenWrt user.notice root: Installing lighttpd-mod-redirect (1.4.30-2) to ext...
Jan  1 00:02:35 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-redirect_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:36 OpenWrt user.notice root: Installing lighttpd-mod-alias (1.4.30-2) to ext...
Jan  1 00:02:36 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-alias_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:37 OpenWrt user.notice root: Installing lighttpd-mod-setenv (1.4.30-2) to ext...
Jan  1 00:02:37 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-setenv_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:37 OpenWrt user.notice root: Installing lighttpd-mod-fastcgi (1.4.30-2) to ext...
Jan  1 00:02:37 OpenWrt user.notice root: Copying /mnt/usb/install/cache/lighttpd-mod-fastcgi_1.4.30-2_ar71xx.ipk.
Jan  1 00:02:38 OpenWrt user.notice root: Installing php5-cgi (5.4.5-3) to ext...
Jan  1 00:02:38 OpenWrt user.notice root: Copying /mnt/usb/install/cache/php5-cgi_5.4.5-3_ar71xx.ipk.
Jan  1 00:02:52 OpenWrt user.notice root: Installing php5 (5.4.5-3) to ext...
Jan  1 00:02:52 OpenWrt user.notice root: Copying /mnt/usb/install/cache/php5_5.4.5-3_ar71xx.ipk.
Jan  1 00:02:52 OpenWrt user.notice root: Installing libxml2 (2.7.8-2) to ext...
--
Jan  1 00:06:04 OpenWrt user.notice root: chown: /opt/piratebox/share: Operation not permitted
Jan  1 00:06:04 OpenWrt user.notice root: Starting script piratebox 
Jan  1 00:06:04 OpenWrt user.notice root: Generating config for radvd..
Jan  1 00:06:04 OpenWrt user.notice root: Generating hosts file .... 
Jan  1 00:06:04 OpenWrt user.notice root: Generating dnsmasq.conf .....
Jan  1 00:06:04 OpenWrt user.notice root: Generating Environment-config for lighttpd .....
Jan  1 00:06:04 OpenWrt user.notice root: Appending local node-name hosts entry 654kRk9V.piratebox.lan
Jan  1 00:06:04 OpenWrt user.notice root: Empty tmp folder
Jan  1 00:06:04 OpenWrt user.notice root: rm: /opt/piratebox/tmp: is a directory
Jan  1 00:06:04 OpenWrt user.notice root: Copy over directory design files
Jan  1 00:06:04 OpenWrt user.notice root: Generating json configuration file: /opt/piratebox/www/piratebox_config.json
--
Jan  1 00:06:05 OpenWrt user.notice root: 0
Jan  1 00:06:05 OpenWrt user.notice root: Starting droopy...
Jan  1 00:06:05 OpenWrt user.notice root: 0
Jan  1 00:06:33 OpenWrt user.notice root: Generated HTML-Shoutbox File.
Jan  1 00:06:53 OpenWrt user.notice root: Generated HTML-DiskUsage File.
Jan  1 00:06:55 OpenWrt user.notice root: Starting lighttpd...
Jan  1 00:06:55 OpenWrt user.notice root: start-stop-daemon: can't execute '/usr/sbin/lighttpd': No such file or directory
Jan  1 00:06:55 OpenWrt user.notice root: 1
Jan  1 00:06:55 OpenWrt user.notice root: Bringing PirateBox down again and leave image mounted
Jan  1 00:06:55 OpenWrt user.notice root:  for further installation
Jan  1 00:06:56 OpenWrt user.notice root: Stopping script piratebox
Jan  1 00:06:56 OpenWrt user.notice root: Stopping dnsmasq...
--
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Stopping radvd...
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Stopping droopy... 
Jan  1 00:06:56 OpenWrt user.notice root: 0
Jan  1 00:06:56 OpenWrt user.notice root: Stopping lighttpd...
Jan  1 00:06:56 OpenWrt user.notice root: 1
Jan  1 00:06:56 OpenWrt daemon.warn radvd[2315]: Exiting, sigterm or sigint received.
Jan  1 00:06:56 OpenWrt daemon.info radvd[2315]: sending stop adverts
Jan  1 00:06:56 OpenWrt daemon.info radvd[2315]: removing /opt/piratebox/tmp/radvd.pid
Jan  1 00:06:56 OpenWrt user.notice root: Setup complete!
--
Jan  1 00:07:00 OpenWrt user.notice root: Configuring perlbase-encode.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring ip.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring libjpeg.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring libopenssl.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring libpcre.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring lighttpd.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring lighttpd-mod-cgi.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring perlbase-bytes.
Jan  1 00:07:00 OpenWrt user.notice root: Configuring lighttpd-mod-setenv.
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_package_stop
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/trigger: nonexistent directory
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh: line 220: can't create /sys/class/leds/*usb/brightness: nonexistent directory
Jan  1 00:07:00 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step

Thanks,

S()fia
Re: iOs redirect
May 09, 2018 08:13AM
rm -v /usr/sbin/lighttpd
test -e /usr/local/usr/sbin/lighttpd && echo "lighttpd binary available" && \
     ln -s /usr/local/usr/sbin/lighttpd /usr/sbin/lighttpd &&\
     /etc/init.d/piratebox restart

Try the code above . If you do not see "lighttpd binary available", try to reinstall the box using the upgrade path like before (wipe USB stick and try to start with a fresh copy of the zip & bin file)

best regards Matthias
Re: iOs redirect
May 09, 2018 09:45AM
Hi Matthias,
I tried and "lighttpd binary available" appears, but still the PirateBox doesn't work :/

root@654kRk9V:~# rm -v /usr/sbin/lighttpd
root@654kRk9V:~# test -e /usr/local/usr/sbin/lighttpd && echo "lighttpd binary a
vailable" && \
> ln -s /usr/local/usr/sbin/lighttpd /usr/sbin/lighttpd &&\
>  /etc/init.d/piratebox restart
lighttpd binary available
Stopping script piratebox
Stopping dnsmasq...
0
Removing firewall rules...
0
Stopping radvd...
0
Stopping droopy... 
0
Stopping lighttpd...
1
Setting static PBx IP fdc0:ffea::1 to depricated
Starting script piratebox 
Generating config for radvd..
Generating hosts file .... 
Generating dnsmasq.conf .....
Generating Environment-config for lighttpd .....
Appending local node-name hosts entry 654kRk9V.piratebox.lan
Empty tmp folder
rm: /opt/piratebox/tmp: is a directory
Copy over directory design files
Generating json configuration file: /opt/piratebox/www/piratebox_config.json
Starting dnsmasq... 
0
Setting up firewall rules...
0
Starting radvd...
0
Starting droopy...
0
Generated HTML-Shoutbox File.
OK. File last modified 10 minutes ago. Updating now...
Generated HTML-DiskUsage File.
Starting lighttpd...
2018-05-09 00:15:00: (plugin.c.169) dlopen() failed for: /usr/lib/lighttpd/mod_indexfile.so File not found 
2018-05-09 00:15:00: (server.c.657) loading plugins finally failed 
255

Thanks

S()fia
Re: iOs redirect
May 09, 2018 09:54AM
Mh, it seem that the extendRoot-lighttpd package really has some issues.

just to fix that:
ln -s /usr/local/usr/lib/lighttpd  /usr/lib/lighttpd
/etc/init.d/piratebox restart
best regards
Matthias
Re: iOs redirect
May 09, 2018 10:16AM
Hi Matthias,
here the code, I have always the same issue, I started to have problems after I deleted the captive portal, before everything was working good, just the captive portal was not working :/

root@654kRk9V:~# ln -s /usr/local/usr/lib/lighttpd  /usr/lib/lighttpd
root@654kRk9V:~# /etc/init.d/piratebox restart
Stopping script piratebox
Stopping dnsmasq...
0
Removing firewall rules...
0
Stopping radvd...
0
Stopping droopy... 
0
Stopping lighttpd...
1
Setting static PBx IP fdc0:ffea::1 to depricated
Starting script piratebox 
Generating config for radvd..
Generating hosts file .... 
Generating dnsmasq.conf .....
Generating Environment-config for lighttpd .....
Appending local node-name hosts entry 654kRk9V.piratebox.lan
Empty tmp folder
rm: /opt/piratebox/tmp: is a directory
Copy over directory design files
Generating json configuration file: /opt/piratebox/www/piratebox_config.json
Starting dnsmasq... 
0
Setting up firewall rules...
0
Starting radvd...
0
Starting droopy...
0
Generated HTML-Shoutbox File.
OK. File last modified 26 minutes ago. Updating now...
Generated HTML-DiskUsage File.
Starting lighttpd...
0

Thanks for your time,

S()fia
Re: iOs redirect
May 09, 2018 01:21PM
but now, the lighttpd should startup regularily
Re: iOs redirect
May 09, 2018 02:55PM
Ok, so should I try to reinstall it again with a new install and bin file and it should work then?
Cause now still doesn't connect to the website sad smiley
Re: iOs redirect
May 09, 2018 06:45PM
Yes, will be the best solution. If we continue to debug this, it will take longer than a proper reflash.

Best regards Matthias
Re: iOs redirect
May 10, 2018 04:42PM
Hi Matthias,
now it works ! Thank you very much for your help and your patience!

Best,

S()fia