Lighttpd has 404 error on ShoutBox

Posted by ulzii 
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
Lighttpd has 404 error on ShoutBox
December 17, 2012 05:56AM
404 not found - when send new chat message. Chat is ok, when replaced reset() call to refresh call in the POST form (chat.html file). Is the any bug in the reset javascript function?
Thanks



Edited 1 time(s). Last edit at 12/17/2012 05:58AM by ulzii.
Re: Lighttpd has 404 error on ShoutBox
December 17, 2012 06:31AM
Hi,

can you please post the output of the following commands, so I can check what is messed up:

 mount
 ls -la /mnt/ 
 ls -la /mnt/usb 
 ls -la /mnt/usb/PirateBox 
 ls -la /opt/piratebox 
 ls -la /opt/piratebox/www
Re: Lighttpd has 404 error on ShoutBox
December 17, 2012 09:30AM
Dear Matthias,
It might be, remember about Nadia board. I talked about installing PB on the SDCard.
I'm on the way to installing PB on the SD Card.
PB functions pretty good (Only chat works now).

root@PirateBox:/# ls -la www1
drwxr-xr-x 3 root root 1024 Dec 15 05:21 .
drwxr-xr-x 11 root root 1024 Dec 15 05:21 ..
drwxr-xr-x 2 root root 1024 Dec 15 05:21 cgi-bin
-rwxr-xr-x 1 root root 1496 Dec 17 06:46 chat.html
-rwxr-xr-x 1 root root 1406 Dec 15 05:21 favicon.ico
-rwxr-xr-x 1 root root 3255 Dec 15 05:21 index.html
-rwxr-xr-x 1 root root 94840 Dec 15 05:21 jquery.min.js
-rwxr-xr-x 1 root root 3387 Dec 15 05:21 main.css
-rwxr-xr-x 1 root root 2769 Dec 15 05:21 mindex.html
-rwxr-xr-x 1 root root 2220 Dec 15 05:21 mobile.css
-rwxr-xr-x 1 root root 107268 Dec 15 05:21 piratebox-logo_large.png

root@PirateBox:/#ls -la
drwxr-xr-x 11 root root 1024 Dec 15 05:21 .
drwxr-xr-x 11 root root 1024 Dec 15 05:21 ..
drwxr-xr-x 2 root root 641 Mar 10 2012 bin
drwxr-xr-x 4 root root 1000 Jan 1 1970 dev
drwxr-xr-x 10 root root 1024 Dec 12 05:27 etc
drwxr-xr-x 4 root root 4096 Sep 8 2011 home
drwxr-xr-x 3 root root 1024 Dec 12 05:23 lib
drwx------ 2 root root 12288 Oct 13 06:56 lost+found
drwxr-xr-x 4 root root 1024 Dec 13 07:27 mnt
drwxr-xr-x 11 root root 1024 Dec 15 05:21 overlay
dr-xr-xr-x 50 root root 0 Jan 1 1970 proc
drwxr-xr-x 16 root root 211 Mar 10 2012 rom
drwxr-xr-x 2 root root 3 Mar 10 2012 root
drwxr-xr-x 2 root root 633 Mar 10 2012 sbin
drwxr-xr-x 4 root root 1024 Dec 13 07:28 sda2
drwxr-xr-x 11 root root 0 Jan 1 1970 sys
drwxrwxrwt 8 root root 300 Dec 17 07:29 tmp
drwxr-xr-x 6 root root 1024 Nov 16 2011 usr
lrwxrwxrwx 1 root root 4 Mar 10 2012 var -> /tmp
drwxr-xr-x 4 root root 67 Mar 10 2012 www
drwxr-xr-x 3 root root 1024 Dec 15 05:21 www1

root@PirateBox:/#ps
PID USER VSZ STAT COMMAND
1 root 1384 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [events/0]
5 root 0 SW [khelper]
8 root 0 SW [async/mgr]
23 root 0 SW [sync_supers]
25 root 0 SW [bdi-default]
27 root 0 SW [kblockd/0]
59 root 0 SW [kswapd0]
60 root 0 SW [aio/0]
61 root 0 SW [crypto/0]
76 root 0 SW [mtdblockd]
279 root 0 SW [khubd]
295 root 0 SW [scsi_eh_0]
296 root 0 SW [usb-storage]
318 root 0 SW [kjournald]
345 root 1384 S init
366 root 1388 S syslogd -C16
368 root 1368 S klogd
383 root 784 S /sbin/hotplug2 --override --persistent --set-worker /
498 root 0 SW [events_nrt]
509 root 0 SW [cfg80211]
643 root 0 SW [phy0]
776 root 0 SW [kjournald]
1003 root 1388 S udhcpc -t 0 -i eth0.1 -b -p /var/run/dhcp-eth0.1.pid
1019 root 0 SW [irq/5-b43]
1054 root 1440 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd
1423 root 1132 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1428 root 1380 S telnetd -l /bin/login.sh
1454 nobody 920 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
1460 root 1380 S /bin/ash --login
1481 root 1368 S watchdog -t 5 /dev/watchdog
1485 root 1380 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.open
1502 nobody 3672 S lighttpd -f /etc/lighttpd/lighttpd.conf
2878 root 1380 S /bin/ash --login
3157 nobody 0 Z [python]


Folder is www1, website supports only chat. For step by step installation.

Thanks
Re: Lighttpd has 404 error on ShoutBox
December 17, 2012 09:38AM
But sometimes chat works normaly. It shows 404 error, whent testing with several messages.
Replaced with refresh() function - chat works allways fine, except without clean message and no focus on
message box of course. So Reset function makes someting wrong.
Re: Lighttpd has 404 error on ShoutBox
December 17, 2012 02:56PM
Interesting, you changed alot ... In my opinion a bit too much. Can you describe what you've done?

does this problem occurs on chat.html or at the index-page?
Re: Lighttpd has 404 error on ShoutBox
December 17, 2012 03:37PM
Hello,
since current file system is pivot overlay on the SD card, only needed to configure dnsmasq for redirection and opkg of
lighttpd and python. setup lighttpd.conf accordding to PB configuration. Used web page from Nagren with only chat facility.
404 not found appears in the chat frame.
Thanks
Ulzii
Re: Lighttpd has 404 error on ShoutBox
December 17, 2012 09:07PM
Quote
ulzii
404 not found appears in the chat frame
If you copied all the files, the chat should work.
Are you sure you have the chat python scripts in your piratebox folder?