Quantcast
Channel: PirateBox Forum - PirateBox OpenWrt
Viewing all articles
Browse latest Browse all 3254

MR3040 fresh install. Possibly broken Shoutbox and droopy

$
0
0
Fresh install of piratebox has lost most of the major functionality of the device, neither the upload capability, nor the chat function work. In the chat window I see "Redirect" constantly flashing, and in the upload it says "cannot connect"
I will attach more shortly.

root@piratebox:~# ls -la /mnt/
drwxr-xr-x 1 root root 0 Jan 1 00:01 .
drwxr-xr-x 1 root root 0 Jan 1 00:04 ..
drwxr-xr-x 7 root root 1024 Jan 1 00:03 ext
drwxrwxrwx 11 root root 16384 Jan 1 00:00 usb
root@piratebox:~# ls -la /mnt/usb
drwxrwxrwx 11 root root 16384 Jan 1 00:00 .
drwxr-xr-x 1 root root 0 Jan 1 00:01 ..
drwxrwxrwx 4 root root 16384 Jan 25 2015 .Spotlight-V100
drwxrwxrwx 3 root root 16384 Jan 26 2015 .TemporaryItems
drwxrwxrwx 2 root root 16384 Jan 25 2015 .Trashes
-rwxrwxrwx 1 root root 4096 Jan 26 2015 ._.TemporaryItems
-rwxrwxrwx 1 root root 4096 Jan 25 2015 ._.Trashes
-rwxrwxrwx 1 root root 4096 Jan 26 2015 ._install
-rwxrwxrwx 1 root root 4096 Jan 25 2015 ._install_piratebox.zip
drwxrwxrwx 2 root root 16384 Jan 26 2015 .fseventsd
drwxrwxrwx 5 root root 16384 Jan 1 1980 PirateBox
drwxrwxrwx 2 root root 16384 Oct 10 2013 SanDiskSecureAccessV2.0
-rwxrwxrwx 1 root root 7409688 Oct 9 2013 SanDiskSecureAccessV2_win.exe
drwxrwxrwx 2 root root 16384 Jan 1 1980 external_fs
drwxrwxrwx 3 root root 16384 Jan 1 1980 install
-rwxrwxrwx 1 root root 307049 Jan 1 1980 install.log
drwxrwxrwx 2 root root 16384 Jan 1 1980 installOld
-rwxrwxrwx 1 root root 11331873 Jan 25 2015 install_piratebox.zip
root@piratebox:~# ls -la /mnt/usb/PirateBox
drwxrwxrwx 5 root root 16384 Jan 1 1980 .
drwxrwxrwx 11 root root 16384 Jan 1 00:00 ..
drwxrwxrwx 2 root root 16384 Jan 1 1980 Shared
drwxrwxrwx 11 root root 16384 Jan 1 1980 board
-rwxrwxrwx 1 root root 52428800 Jan 1 00:03 pbIMG_ws.img
drwxrwxrwx 2 root root 16384 Jan 1 1980 tmp
root@piratebox:~# ls -la /opt/piratebox/
drwxr-xr-x 10 root root 1024 Jan 1 00:04 .
drwxr-xr-x 3 root root 0 Jan 1 00:04 ..
drwxr-xr-x 3 root root 1024 Dec 26 2014 bin
drwxr-xr-x 3 root root 1024 Jan 1 00:04 conf
drwxr-xr-x 2 root root 1024 Dec 26 2014 init.d
drwx------ 2 root root 12288 Jan 16 2014 lost+found
drwxr-xr-x 2 root root 1024 Dec 26 2014 python_lib
lrwxrwxrwx 1 root root 18 Jan 1 00:04 share -> /mnt/usb/PirateBox
drwxr-xr-x 2 root root 1024 Dec 26 2014 src
drwxr-xr-x 2 nobody nogroup 1024 Jan 1 00:00 tmp
-rw-r--r-- 1 root root 19 Dec 26 2014 version
drwxr-xr-x 4 nobody nogroup 1024 Jan 1 00:04 www
root@piratebox:~# ls -la /opt/piratebox/www
drwxr-xr-x 4 nobody nogroup 1024 Jan 1 00:04 .
drwxr-xr-x 10 root root 1024 Jan 1 00:04 ..
-rwxr-xr-x 1 nobody nogroup 1458 Dec 26 2014 .READ.ME.htm
lrwxrwxrwx 1 root root 27 Jan 1 00:04 Shared -> /opt/piratebox/share/Shared
lrwxrwxrwx 1 root root 26 Jan 1 00:04 board -> /opt/piratebox/share/board
drwxr-xr-x 2 nobody nogroup 1024 Dec 26 2014 cgi-bin
-rwxr-xr-x 1 nobody nogroup 1406 Dec 26 2014 favicon.ico
-rw-r--r-- 1 nobody nogroup 0 Jan 1 00:04 forban_link.html
-rwxr-xr-x 1 root root 254 Jan 1 00:04 forum.html
-rw-r--r-- 1 nobody nogroup 3776 Dec 26 2014 index.html
-rwxr-xr-x 1 nobody nogroup 94840 Dec 26 2014 jquery.min.js
drwxr-xr-x 3 nobody nogroup 1024 Dec 26 2014 library
-rw-r--r-- 1 nobody nogroup 2992 Dec 26 2014 menu.png
-rw-r--r-- 1 nobody nogroup 15 Dec 26 2014 ncsi.txt
-rw-r--r-- 1 nobody nogroup 6607 Dec 26 2014 piratebox-logo-horizontal-white.png
-rwxr-xr-x 1 nobody nogroup 12637 Dec 26 2014 piratebox-logo-small.png
-rwxr-xr-x 1 nobody nogroup 201 Dec 26 2014 redirect.html
-rwxr-xr-x 1 nobody nogroup 3715 Dec 26 2014 scripts.js
-rw-r--r-- 1 nobody nogroup 0 Dec 26 2014 station_cnt.txt
-rw-r--r-- 1 nobody nogroup 5040 Dec 26 2014 style.css
root@piratebox:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.2
root@piratebox:~# 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.2.1"
root@piratebox:~# cat /opt/piratebox/version
piratebox-ws_1.0.2
root@piratebox:~# 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'
root@piratebox:~# cat /etc/config/wireless

config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11ng'
option macaddr 'c4:6e:1f:39:59:40'
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'
option disabled '0'

config wifi-iface
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'none'
option ssid 'PirateBox - Share Freely'
root@piratebox:~# dmesg | tail -n 20
[ 35.470000] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities
[ 35.480000] EXT4-fs (loop1): couldn't mount as ext2 due to feature incompatibilities
[ 35.540000] EXT4-fs (loop1): recovery complete
[ 35.540000] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null)
[ 36.900000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 36.910000] device eth0 entered promiscuous mode
[ 36.910000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 37.420000] eth0: link up (100Mbps/Full duplex)
[ 37.420000] br-lan: port 1(eth0) entered forwarding state
[ 37.430000] br-lan: port 1(eth0) entered forwarding state
[ 37.430000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 37.440000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 39.430000] br-lan: port 1(eth0) entered forwarding state
[ 43.930000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 43.960000] device wlan0 entered promiscuous mode
[ 43.970000] br-lan: port 2(wlan0) entered forwarding state
[ 43.970000] br-lan: port 2(wlan0) entered forwarding state
[ 43.980000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 45.970000] br-lan: port 2(wlan0) entered forwarding state
[ 47.520000] Adding 32764k swap on /mnt/usb/external_fs/OpenWRT.swap. Priority:-1 extents:1 across:32764k root@piratebox:~# ps
PID USER VSZ STAT COMMAND
1 root 1504 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0: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 SW [kworker/0:1]
439 root 0 SWN [jffs2_gcd_mtd3]
469 root 0 SW [khubd]
478 root 0 SW [scsi_eh_0]
479 root 0 SW [usb-storage]
481 root 0 SW [kworker/u:2]
505 root 1504 S init
539 root 0 SW< [cfg80211]
614 root 0 SW< [bat_events]
641 root 1508 S /sbin/syslogd -C16
643 root 1488 S /sbin/klogd
645 root 868 S /sbin/hotplug2 --override --persistent --set-rules-file /etc/hotplug2.rules --set-coldplug-cmd /sbin/udevtrigger --max-children 1
653 root 872 S /sbin/ubusd
728 root 0 SW< [loop0]
733 root 0 SW [jbd2/loop0-8]
734 root 0 SW< [ext4-dio-unwrit]
755 root 0 SW< [loop1]
759 root 0 SW [jbd2/loop1-8]
760 root 0 SW< [ext4-dio-unwrit]
768 root 1468 S /sbin/netifd
1240 root 1640 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
1351 root 1500 S /sbin/watchdog -t 5 /dev/watchdog
1470 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1476 root 9160 S /usr/bin/minidlna -f /tmp/minidlna.conf
1510 nobody 952 S /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf
1525 nobody 3892 S /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf
1542 root 1500 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
1543 root 1220 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1544 root 1504 S -ash
1564 root 0 SW [flush-7:1]
1565 root 0 SW [flush-8:0]
1577 root 1496 R ps
root@piratebox:~# cat /opt/piratebox/conf/piratebox.conf
#########
## Config for pirate-box WWW Release
## written by Matthias Strubel (matthias.strubel@aod-rpg.de) 2011-02-22
## licenced by gpl ; feel free to improve or send me feedback
##
## 2012-04-12 Created
## 2012-06-08 Changed IP Stuff to generating dnsmasq.conf stuff
## ADDed SubConfig for IPV6 config
## Changed Order of config
## 2013-08-14 Added timesave url
##
########

#######
## Configuration help
## If you plan to use one laptop as the piratebox:
## Set DO_IFCONFIG , USE_APN, USE_DNSMASQ to yes
## If you plan to run a two component setup (one router and one providing the storage+website)
## connected with ethernet:
## Set DO_IFCONFIG , USE_APN, USE_DNSMASQ to no
## Configure your ethernet eth0 (or whatever) to a static IP
## force your router to publish the HOST Option with your static IP; in case of dnsmasq add the /etc/hosts entrys
## Have a look at [wiki.daviddarts.com] for futher instructions
##
## You may deactivated severall option as needed. It's flexible.


#----------------- Folder Configuration -------------------#

PIRATEBOX_FOLDER="/opt/piratebox"
WWW_FOLDER="/opt/piratebox/www"

#Do not change untill really needed.
PIRATEBOX_PYTHONPATH="$PIRATEBOX_FOLDER/python_lib"


#Datafolder , where is you usb-stick // drive mounted
SHARE_FOLDER="$PIRATEBOX_FOLDER/share"

#Upload Folder
# Change this if you want to user uploaded data in a subfolder
# Make sure the folder exists
# UPLOADFOLDER="$SHARE_FOLDER/Upload"
UPLOADFOLDER="$SHARE_FOLDER/Shared"

#----------------- Startup Configuration -------------------#
# Which Steps has to be done

#Do network config
DO_IFCONFIG="no"

#Do IW config - setting up a wlan0 interface with iw
# for some wifi-cards required
DO_IW="no"
#Iw physical interface
PHY_IF="phy0"

# Check if interface exists
# should be set to yes if you use a USB wifi card
PROBE_INTERFACE="no"
# wait how many seconds until throw an error
PROBE_TIME=10

#Start services...
# act like a apn / <yes|no>
# please have a look @ hostapd.conf ; you may need to change some options, regarding wifi-card
USE_APN="no"
# act like dns&dhcp (dnsmasq)
USE_DNSMASQ="yes"

#HOSTNAME ... if you really want to change it, plz change:
# bin/droopy
# conf/hosts
HOST="piratebox.lan"

#----------------- Configuration for DNSMASQ & IF-Setup -------------------#
# Name of the wlan interface
INTERFACE="wlan0"
# On which interface DNSMASQ should listen. -i is the parameter for dnsmasq
# Make it empty to disable
DNSMASQ_INTERFACE="br-lan"

#Brdige add interfacce (setr yes to enable bridging)
DO_BRIDGE="no"
BRIDGE="br-lan"

#Network
NET=192.168.1

#IP-SHORT (is stringed together)
# Which IP is your Box?? i.e. 1 => 192.168.1.1
IP_SHORT=1

#DHCP LEASE Start
START_LEASE=10
#DHCP LEASE End Range
END_LEASE=250
#Leasetime (When should the client renew it's IP)
LEASE_DURATION=12h

# Where is the leasefile stored to?
LEASE_FILE_LOCATION=/tmp/lease.file


# Define the netmask
NETMASK=255.255.255.0

#SET IP for ifconfig stuff - DON'T CHANGE
IP=$NET.$IP_SHORT

#Load Config about ipv6 stuff - DON'T CHANGE
. $PIRATEBOX_FOLDER/conf/ipv6.conf


#----------------- Configuration for the pure piratebox -------------------#
## droopy, webserver, shoutbox- and forum-server

## Timesave file for non RTC devices
TIMESAVE="$PIRATEBOX_FOLDER/share/timesave_file"

#Start droopy? - Enable upload?
DROOPY_ENABLED="yes"
#Image-SRC
IMAGENAME="piratebox-logo-small.png"
IMAGE="$PIRATEBOX_FOLDER/src/$IMAGENAME"
DROOPY_TXT=""
DROOPY_PORT="8080"
DROOPY_USERDIR=""
# Uncomment line below for adding directory feature
#DROOPY_USERDIR=" -u True "

#Use UserId from lighttpd for droopy (use on ext-filesystems)
DROOPY_USE_USER="no"

#Configuration for chat (If you decide to move the chat folder, you have to change /opt/piratebox/chat/cgi-bin/py* files )
CHATFILE="$WWW_FOLDER/cgi-bin/data.pso"

#Generated File
GEN_CHATFILE="$WWW_FOLDER/chat_content.html"

# Reset Shoutbox on Startup?
RESET_CHAT="no"

#Inititiation Chat-Message
CHATMSG="<div class='message'><date>00:00:00</date> <name>PirateBox:</name> <data class='def'>Chat and share files anonymously!</data></div>"

#Activate Global chat
# Still experimentall!
GLOBAL_CHAT="no"

#On which broadcast address should it send
# Take care on the syntax!!
GLOBAL_DEST="[ #255.255.255.255# , #10.255.255.255# , #$NET.255# ]"

#------------------------ Additional configuration for lighttpd
LIGHTTPD_USER=nobody
LIGHTTPD_GROUP=nogroup


#------------------------ Hook in user-config
. $PIRATEBOX_FOLDER/conf/hook_custom.conf

root@piratebox:~# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 piratebox.lan:ssh [REDACTED]:60925 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 1675 /var/run/hostapd-phy0/wlan0
unix 6 [ ] DGRAM 758 /dev/log
unix 2 [ ] DGRAM 1975
unix 2 [ ] DGRAM 1909
unix 2 [ ] DGRAM 1098
unix 2 [ ] DGRAM 1084
unix 3 [ ] STREAM CONNECTED 1082 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1081
unix 2 [ ] DGRAM 1031
root@piratebox:~# /etc/init.d/piratebox restart
Stopping script piratebox
Stopping dnsmasq...
0
Stopping droopy...
start-stop-daemon: warning: killing process 1515: No such process
1
Stopping lighttpd...
0
Starting script piratebox
Generating hosts file ....
Generating dnsmasq.conf .....
Generating Environment-config for lighttpd .....
Empty tmp folder
rm: /opt/piratebox/tmp: is a directory
Copy over design files
Starting dnsmasq...
0
Starting droopy...
0
Traceback (most recent call last):
File "/usr/local/usr/lib/python2.7/encodings/__init__.py", line 31, in <module>
import codecs
File "/usr/local/usr/lib/python2.7/codecs.py", line 327
SyntaxError: Non-ASCII character '\xff' in file /usr/local/usr/lib/python2.7/codecs.py on line 328, but no encoding declared; see [www.python.org] for details
chown: /opt/piratebox/www/chat_content.html: No such file or directory
chmod: /opt/piratebox/www/chat_content.html: No such file or directory
Starting lighttpd...
0

Viewing all articles
Browse latest Browse all 3254

Trending Articles