[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 2 Guest(s)
Post Reply 
[200] Region Count Clear / Reset app
12-06-2010, 02:28 PM (This post was last modified: 12-06-2010 02:32 PM by lundman.)
Post: #31
RE: Region Count Clear / Reset app
Well

Code:
# pids=""
# for p in `pidof httpd`; do  pids="$pids -p $p"; done

Those two are supposed to get a list of the httpd pids to use, with -p. Like for me:

Code:
# pidof httpd
1621 882 881 880 879 878 874
# pids=""
# for p in `pidof httpd`; do  pids="$pids -p $p"; done
# echo $pids
-p 1621 -p 882 -p 881 -p 880 -p 879 -p 878 -p 874

the numbers will be different for you.
Oh and I assume you cut'n'paste the lines, since in Unix there is a large difference between ticks '', and backticks ``
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:36 PM (This post was last modified: 12-06-2010 02:38 PM by Adrgha.)
Post: #32
RE: Region Count Clear / Reset app
Yeah, but that's the thing, I'm not getting anything:

Code:
sh-3.00# pidof httpd
sh-3.00# pids=""
sh-3.00# for p in `pidof httpd`; do  pids="$pids -p $p"; done
sh-3.00# echo $pids

sh-3.00#

I'm probably missing something quite fundamental somewhere.

@arikmi: We're attempting to find out why the region clear app doesn't work from the web services shortcut on my unit.

17TB WHS 2011 w/FlexRaid -> PCH C200: Hitachi 2,5" 160GB & LG CH08 BD-ROM -> Onkyo TX-SR507B -> Pioneer KURO PDP-LX5090
[Image: watched-fanart.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:40 PM
Post: #33
RE: Region Count Clear / Reset app
That would be a problem.

Run "ps -w" for me? Why would you not be having any httpd processes?
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:45 PM
Post: #34
RE: Region Count Clear / Reset app
Sure:

Code:
sh-3.00# ps -w
  PID USER       VSZ STAT COMMAND
    1 root      3360 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SWN  [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
   35 root         0 SW   [kblockd/0]
   36 root         0 SW   [ata/0]
   37 root         0 SW   [ata_aux]
   40 root         0 SW   [khubd]
   42 root         0 SW   [kseriod]
   54 root         0 SW   [pdflush]
   56 root         0 SW<  [kswapd0]
   57 root         0 SWN  [kprefetchd]
   58 root         0 SW   [aio/0]
   59 root         0 SW   [cifsoplockd]
   60 root         0 SW   [cifsdnotifyd]
  662 root         0 SW   [scsi_eh_0]
  670 root         0 SW   [scsi_eh_1]
  715 root         0 SW   [scsi_eh_2]
  716 root         0 SW   [usb-storage]
  719 root         0 SW   [scsi_eh_3]
  720 root         0 SW   [usb-storage]
  744 root      2128 S <  udevd
  745 root         0 SW   [sigmblockd]
  832 root         0 SW   [sigm_write_cach]
  835 root         0 SW   [kjournald]
  837 root         0 SW   [kjournald]
  885 root      2672 S    mounter
  886 root      2688 S    cdstatus
  927 root      9008 S    /upnp/upnpapp
  928 root         0 SW   [kjournald]
  943 root      2288 S    mDNSNetMonitor
  944 root      4144 S    /opt/sybhttpd/sybhttpd /opt/sybhttpd
  946 root      7984 S    /upnp/upnpapp
1160 root         0 SW   [kjournald]
1237 root      3344 S    /bin/sh ./appcontrol
1239 root      367m S    syb_framework
1244 root      5088 S    nmt_scannerd
1246 root      2432 S    ipmonitor
1250 root      3856 S    crond -l 20
1263 root      3920 R    telnetd -l /bin/sh
1279 root         0 SW   [kjournald]
1296 root         0 SW   [kjournald]
1554 root         0 SW   [cifsd]
1655 root      3120 S    ./llink start
1657 root      3120 S    ./llink start
1980 nobody    4992 S    sbin/lighttpd -f etc/lighttpd.conf -m lib/lighttpd/
1981 nobody       0 Z    [php-cgi]
2119 root      2432 S    ./nmtdaemon
2126 root      2528 S    pure-ftpd (SERVER)

2144 root      4848 S    /nmt/apps/bin/nmbd -D
2147 root      7792 S    /nmt/apps/bin/smbd -D
2153 root      7792 S    /nmt/apps/bin/smbd -D
2181 root         0 SW   [kjournald]
2214 root         0 SW   [kjournald]
4374 root      9552 S    /nmt/apps/bin/smbd -D
14273 root         0 SW   [pdflush]
27405 root      3840 S    /bin/sh
28771 root      3904 S    /bin/sh
31093 root      3904 S    /bin/sh
32263 root      3920 R    ps -w
sh-3.00#

17TB WHS 2011 w/FlexRaid -> PCH C200: Hitachi 2,5" 160GB & LG CH08 BD-ROM -> Onkyo TX-SR507B -> Pioneer KURO PDP-LX5090
[Image: watched-fanart.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:47 PM
Post: #35
RE: Region Count Clear / Reset app
Huh yeah, so you don't have apache's httpd, but something called "lighthttpd". I'm guessing the lighthttpd does not do CGIs and will not work with patcher.

I do not know how to uninstall lighthttp and get apache back.
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:52 PM
Post: #36
RE: Region Count Clear / Reset app
Yes, that was installed through CSI:
Quote: A fast replacement webserver for the default one in CSI. Some of the apps on the C200 will get a speedup after installing this application.

Just install and enjoy the free speedup!

So removing it from the installed apps in CSI wouldn't remove it?

17TB WHS 2011 w/FlexRaid -> PCH C200: Hitachi 2,5" 160GB & LG CH08 BD-ROM -> Onkyo TX-SR507B -> Pioneer KURO PDP-LX5090
[Image: watched-fanart.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:54 PM
Post: #37
RE: Region Count Clear / Reset app
I would not have thought so, but easy for you to check, just run "ps -w" again. I suspect you will have to install the nmt.app again from maintenance,
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:56 PM (This post was last modified: 12-06-2010 02:58 PM by Adrgha.)
Post: #38
RE: Region Count Clear / Reset app
Code:
sh-3.00# ps -w
  PID USER       VSZ STAT COMMAND
    1 root      3360 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SWN  [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
   35 root         0 SW   [kblockd/0]
   36 root         0 SW   [ata/0]
   37 root         0 SW   [ata_aux]
   40 root         0 SW   [khubd]
   42 root         0 SW   [kseriod]
   54 root         0 SW   [pdflush]
   56 root         0 SW<  [kswapd0]
   57 root         0 SWN  [kprefetchd]
   58 root         0 SW   [aio/0]
   59 root         0 SW   [cifsoplockd]
   60 root         0 SW   [cifsdnotifyd]
  662 root         0 SW   [scsi_eh_0]
  670 root         0 SW   [scsi_eh_1]
  715 root         0 SW   [scsi_eh_2]
  716 root         0 SW   [usb-storage]
  719 root         0 SW   [scsi_eh_3]
  720 root         0 SW   [usb-storage]
  744 root      2128 S <  udevd
  745 root         0 SW   [sigmblockd]
  832 root         0 SW   [sigm_write_cach]
  835 root         0 SW   [kjournald]
  837 root         0 SW   [kjournald]
  885 root      2672 S    mounter
  886 root      2688 S    cdstatus
  927 root      9008 S    /upnp/upnpapp
  928 root         0 SW   [kjournald]
  943 root      2288 S    mDNSNetMonitor
  944 root      4144 S    /opt/sybhttpd/sybhttpd /opt/sybhttpd
  946 root      7984 S    /upnp/upnpapp
1160 root         0 SW   [kjournald]
1237 root      3344 S    /bin/sh ./appcontrol
1239 root      367m S    syb_framework
1244 root      5088 S    nmt_scannerd
1246 root      2432 S    ipmonitor
1250 root      3856 S    crond -l 20
1263 root      3920 R    telnetd -l /bin/sh
1279 root         0 SW   [kjournald]
1296 root         0 SW   [kjournald]
1554 root         0 SW   [cifsd]
1655 root      3120 S    ./llink start
1657 root      3120 S    ./llink start
2119 root      2432 S    ./nmtdaemon
2126 root      2528 S    pure-ftpd (SERVER)

2144 root      4848 S    /nmt/apps/bin/nmbd -D
2147 root      7792 S    /nmt/apps/bin/smbd -D
2153 root      7792 S    /nmt/apps/bin/smbd -D
2166 root      3920 R    ps -w
2181 root         0 SW   [kjournald]
2214 root         0 SW   [kjournald]
4374 root      9552 S    /nmt/apps/bin/smbd -D
14273 root         0 SW   [pdflush]
27405 root      3840 S    /bin/sh
28771 root      3904 S    /bin/sh
31093 root      3904 S    /bin/sh

Seems to be gone, no? Though I guess the default one isn't running either. Bah.

17TB WHS 2011 w/FlexRaid -> PCH C200: Hitachi 2,5" 160GB & LG CH08 BD-ROM -> Onkyo TX-SR507B -> Pioneer KURO PDP-LX5090
[Image: watched-fanart.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 02:59 PM (This post was last modified: 12-06-2010 03:00 PM by lundman.)
Post: #39
RE: Region Count Clear / Reset app
Sure its gone, but no default. So I would be surprised if even sysinfo ran now.

Although if sysinfo can do something which makes it work with both, I should check what it is..
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 03:01 PM (This post was last modified: 12-06-2010 03:38 PM by Adrgha.)
Post: #40
RE: Region Count Clear / Reset app
You are of course right.

Hmmm... I'm not sure it will let me install the apps again... it only lets me update them I think?
Success! I had forgotten to update the apps to the newest version anyway, so that went fine. I'm getting response from the pidof commands now so the default webserver seems to be working again:

Code:
sh-3.00# pidof httpd
6054 2740 2739 2738 2737 2736 2331
sh-3.00# pids=""
sh-3.00# for p in `pidof httpd`; do  pids="$pids -p $p"; done
sh-3.00# echo $pids
-p 6054 -p 2740 -p 2739 -p 2738 -p 2737 -p 2736 -p 2331

Anyway, I ran the original chain of commands you listed, and I got the results uploaded to a .txt file:

Code:
6054  accept(16,  <unfinished ...>
2740  accept(16,  <unfinished ...>
2739  accept(16,  <unfinished ...>
2738  accept(16,  <unfinished ...>
2737  accept(16,  <unfinished ...>
2736  accept(16,  <unfinished ...>
2331  _newselect(0, NULL, NULL, NULL, {0, 830000})                                                                                                                                                      = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645965
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645966
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645967
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645968
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645969
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645970
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645971
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645972
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
6054  <... accept resumed> {sa_family=AF_INET, sin_port=htons(37893), sin_addr=inet_addr("127.0.0.1")}, [16])                                                                                           = 3
6054  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDSTOP}, {0x20000000, [], SA_NOCLDWAIT|0x6a8cb0}, 16)                                                                                                = 0
6054  fcntl64(3, F_SETFD, FD_CLOEXEC)                                                                                                                                                                   = 0
6054  getsockname(3, {sa_family=AF_INET, sin_port=htons(9999), sin_addr=inet_addr("127.0.0.1")}, [16])                                                                                                  = 0
6054  setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4)                                                                                                                                                       = 0
6054  read(3, "GET /region_clear%20gaya HTTP/1.0\r\nUser-Agent: Syabas/02-04-101203-21-POP-408-000/00-000 Firefox/0.8.0+ (gaya2 TV Res1920x1280; Browser Res1100x656-32bits;  Res1280x720;  mac_addr=00.06.dc.81.d1.74)\r\nA"..., 4096) = 309
6054  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDSTOP}, {0x20000000, [], SA_NOCLDSTOP}, 16)                                                                                                         = 0
6054  time(NULL)                                                                                                                                                                                        = 1291645973
6054  stat64(0x934470, 0x933a70)                                                                                                                                                                        = -1 ENOENT (No such file or directory)
6054  stat64(0x934470, 0x933a70)                                                                                                                                                                        = 0
6054  open("/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                                          = -1 ENOENT (No such file or directory)
6054  open("/share/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                                    = -1 ENOENT (No such file or directory)
6054  open("/share/Apps/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                               = -1 ENOENT (No such file or directory)
6054  open("/share/Apps/AppInit/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                       = -1 ENOENT (No such file or directory)
6054  open("/share/Apps/AppInit/websites/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                              = -1 ENOENT (No such file or directory)
6054  time(NULL)                                                                                                                                                                                        = 1291645973
6054  stat64(0x2ad1b254, 0x7fc37200)                                                                                                                                                                    = 0
6054  write(15, "[Mon Dec  6 15:32:53 2010] [error] [client 127.0.0.1] File does not exist: /share/Apps/AppInit/websites/region_clear gaya\n"..., 122)                                                  = 122
6054  write(3, "HTTP/1.1 404 Not Found\r\nDate: Mon, 06 Dec 2010 14:32:53 GMT\r\nServer: Apache/1.3.33 (Unix) PHP/4.3.8\r\nConnection: close\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DT"..., 448) = 448
6054  shutdown(3, 1 /* send */)                                                                                                                                                                         = -1 ENOTCONN (Transport endpoint is not connected)
6054  close(3)                                                                                                                                                                                          = 0
6054  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDWAIT|0x6a8cb0}, {0x20000000, [], SA_NOCLDSTOP}, 16)                                                                                                = 0
6054  accept(16,  <unfinished ...>
2331  <... _newselect resumed> )                                                                                                                                                                        = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645973
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
2740  <... accept resumed> {sa_family=AF_INET, sin_port=htons(37894), sin_addr=inet_addr("127.0.0.1")}, [16])                                                                                           = 3
2740  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDSTOP}, {0x20000000, [], SA_NOCLDWAIT|0x6a8cb0}, 16)                                                                                                = 0
2740  fcntl64(3, F_SETFD, FD_CLOEXEC)                                                                                                                                                                   = 0
2740  getsockname(3, {sa_family=AF_INET, sin_port=htons(9999), sin_addr=inet_addr("127.0.0.1")}, [16])                                                                                                  = 0
2740  setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4)                                                                                                                                                       = 0
2740  read(3, "GET /region_clear%20gaya HTTP/1.0\r\nUser-Agent: Syabas/02-04-101203-21-POP-408-000/00-000 Firefox/0.8.0+ (gaya2 TV Res1920x1280; Browser Res1100x656-32bits;  Res1280x720;  mac_addr=00.06.dc.81.d1.74)\r\nA"..., 4096) = 309
2740  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDSTOP}, {0x20000000, [], SA_NOCLDSTOP}, 16)                                                                                                         = 0
2740  time(NULL)                                                                                                                                                                                        = 1291645974
2740  stat64(0x934470, 0x933a70)                                                                                                                                                                        = -1 ENOENT (No such file or directory)
2740  stat64(0x934470, 0x933a70)                                                                                                                                                                        = 0
2740  open("/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                                          = -1 ENOENT (No such file or directory)
2740  open("/share/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                                    = -1 ENOENT (No such file or directory)
2740  open("/share/Apps/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                               = -1 ENOENT (No such file or directory)
2740  open("/share/Apps/AppInit/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                       = -1 ENOENT (No such file or directory)
2740  open("/share/Apps/AppInit/websites/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                              = -1 ENOENT (No such file or directory)
2740  time(NULL)                                                                                                                                                                                        = 1291645974
2740  stat64(0x2ad1b254, 0x7fc372b0)                                                                                                                                                                    = 0
2740  write(15, "[Mon Dec  6 15:32:54 2010] [error] [client 127.0.0.1] File does not exist: /share/Apps/AppInit/websites/region_clear gaya\n"..., 122)                                                  = 122
2740  write(3, "HTTP/1.1 404 Not Found\r\nDate: Mon, 06 Dec 2010 14:32:54 GMT\r\nServer: Apache/1.3.33 (Unix) PHP/4.3.8\r\nConnection: close\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DT"..., 448) = 448
2740  shutdown(3, 1 /* send */)                                                                                                                                                                         = -1 ENOTCONN (Transport endpoint is not connected)
2740  close(3)                                                                                                                                                                                          = 0
2740  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDWAIT|0x6a8cb0}, {0x20000000, [], SA_NOCLDSTOP}, 16)                                                                                                = 0
2740  accept(16,  <unfinished ...>
2331  <... _newselect resumed> )                                                                                                                                                                        = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645974
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
2739  <... accept resumed> {sa_family=AF_INET, sin_port=htons(37895), sin_addr=inet_addr("127.0.0.1")}, [16])                                                                                           = 3
2739  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDSTOP}, {0x20000000, [], SA_NOCLDWAIT|0x6a8cb0}, 16)                                                                                                = 0
2739  fcntl64(3, F_SETFD, FD_CLOEXEC)                                                                                                                                                                   = 0
2739  getsockname(3, {sa_family=AF_INET, sin_port=htons(9999), sin_addr=inet_addr("127.0.0.1")}, [16])                                                                                                  = 0
2739  setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4)                                                                                                                                                       = 0
2739  read(3, "GET /region_clear%20gaya HTTP/1.0\r\nUser-Agent: Syabas/02-04-101203-21-POP-408-000/00-000 Firefox/0.8.0+ (gaya2 TV Res1920x1280; Browser Res1100x656-32bits;  Res1280x720;  mac_addr=00.06.dc.81.d1.74)\r\nA"..., 4096) = 309
2739  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDSTOP}, {0x20000000, [], SA_NOCLDSTOP}, 16)                                                                                                         = 0
2739  time(NULL)                                                                                                                                                                                        = 1291645975
2739  stat64(0x934470, 0x933a70)                                                                                                                                                                        = -1 ENOENT (No such file or directory)
2739  stat64(0x934470, 0x933a70)                                                                                                                                                                        = 0
2739  open("/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                                          = -1 ENOENT (No such file or directory)
2739  open("/share/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                                    = -1 ENOENT (No such file or directory)
2739  open("/share/Apps/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                               = -1 ENOENT (No such file or directory)
2739  open("/share/Apps/AppInit/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                                       = -1 ENOENT (No such file or directory)
2739  open("/share/Apps/AppInit/websites/.htaccess", O_RDONLY|O_LARGEFILE)                                                                                                                              = -1 ENOENT (No such file or directory)
2739  time(NULL)                                                                                                                                                                                        = 1291645975
2739  stat64(0x2ad1b254, 0x7fc372b0)                                                                                                                                                                    = 0
2739  write(15, "[Mon Dec  6 15:32:55 2010] [error] [client 127.0.0.1] File does not exist: /share/Apps/AppInit/websites/region_clear gaya\n"..., 122)                                                  = 122
2739  write(3, "HTTP/1.1 404 Not Found\r\nDate: Mon, 06 Dec 2010 14:32:55 GMT\r\nServer: Apache/1.3.33 (Unix) PHP/4.3.8\r\nConnection: close\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DT"..., 448) = 448
2739  shutdown(3, 1 /* send */)                                                                                                                                                                         = -1 ENOTCONN (Transport endpoint is not connected)
2739  close(3)                                                                                                                                                                                          = 0
2739  rt_sigaction(SIGUSR1, {0x20000000, [], SA_NOCLDWAIT|0x6a8cb0}, {0x20000000, [], SA_NOCLDSTOP}, 16)                                                                                                = 0
2739  accept(16,  <unfinished ...>
2331  <... _newselect resumed> )                                                                                                                                                                        = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645975
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645976
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645977
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645978
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645979
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645980
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645981
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645982
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645983
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645984
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645985
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645986
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645987
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0})                                                                                                                                                           = 0 (Timeout)
2331  time(NULL)                                                                                                                                                                                        = 1291645988
2331  waitpid(-1, 0x7fc3b704, WNOHANG)                                                                                                                                                                  = 0
2331  _newselect(0, NULL, NULL, NULL, {1, 0} <unfinished ...>

Dunno if you can make any sense out of that. I might add that returning to the original web server did nothing for the region clear app alone - it still doesn't work.

17TB WHS 2011 w/FlexRaid -> PCH C200: Hitachi 2,5" 160GB & LG CH08 BD-ROM -> Onkyo TX-SR507B -> Pioneer KURO PDP-LX5090
[Image: watched-fanart.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 04:53 PM (This post was last modified: 12-06-2010 04:58 PM by Adrgha.)
Post: #41
RE: Region Count Clear / Reset app
Well, I figured it out myself from that log, lol.

"write(15, "[Mon Dec 6 15:32:53 2010] [error] [client 127.0.0.1] File does not exist: /share/Apps/AppInit/websites/region_clear gaya\n"..., 122) "

That one stuck out like a sore thumb. Turns out I had forgotten an underscore in region_clear_gaya when I was trying some things with the shortcut yesterday.

It works perfectly now! So, lighthttpd was the real cause of the problem in the first place.

Thank you for your help, Lundman. It's been most educational!

17TB WHS 2011 w/FlexRaid -> PCH C200: Hitachi 2,5" 160GB & LG CH08 BD-ROM -> Onkyo TX-SR507B -> Pioneer KURO PDP-LX5090
[Image: watched-fanart.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 09:17 PM
Post: #42
RE: Region Count Clear / Reset app
Ok great, I will mention it in the install text then. But it is curious that Sysinfo works with lighthttpd? So it should be possible to get it to work maybe...
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
12-06-2010, 09:49 PM (This post was last modified: 12-06-2010 09:50 PM by nuke12.)
Post: #43
RE: Region Count Clear / Reset app
It's great that we have all the stuff in CSI and now in ipkg but there is really not a good dependencies system setup here. It's kind of like "user beware". I see the way things are going and I think people have to be careful of what ever they install because some things are going to screwup (can/maybe) other things. I suggest to install the "most necessary" things first and as you install more, check that the "most necessary" are still working. JMHO

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
Add Thank You Quote this message in a reply
12-07-2010, 01:33 PM (This post was last modified: 12-07-2010 01:35 PM by dc11ab.)
Post: #44
RE: Region Count Clear / Reset app
Adrgha;

I saw lundman posting the the lighttpd thread and that inspired me to an idea of a workaround.

Add a file "index.php" to the region_clear Apps package, next to the index.cgi file, containing this:
PHP Code:
<html><head><title>region_clear installation</title></head><body>
<?
php
$return_var 
0;
exec('`pwd`/index.cgi'$output = array(), $return_var);
    if ( 
$return_var == ){
        echo 
"<h1>Success.</h1>";
    } else {
        echo 
"<h1>Installation failed.</h1>";
    } 

// debug
// echo "<h1>Result: ".$return_var."</h1>";
// echo "<h2>Output:</h2>"; 
// var_dump($output);

?>
</body></html> 
You may need to to chmod +x on index.php before running.
Oh, and the code above is written on free hand so it might not be entirely correct. And I don't have the lighttpd package myself. Hopefully it works as intended.

(Btw: If the index.cgi is not executable, i.e. not chmod:ed 755, then the return error should be 126)


EDIT: come to think about it, it probably should execute the installation shellscript directly, not the index.cgi!? I'm at work and cannot dig deeper atm.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-07-2010, 02:20 PM
Post: #45
RE: Region Count Clear / Reset app
Am I the only one who thinks that:

c-program (http) executes: c-program (php): executes php (index.php) executes: c-program (bash) executes: bash script: executes c-program (region_clear)

as crazy? Just because you want "faster php". Huh Smile
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Heart [200] NMT remote iPhone native app for C-200 vise_guy 237 73,490 05-10-2013 09:57 AM
Last Post: DAVE1971
  [400] App User Template marcolivier 0 251 04-26-2013 08:50 PM
Last Post: marcolivier
  [300/400] iMediaShare App Request teslafied 0 331 03-18-2013 04:12 PM
Last Post: teslafied
  [200] PopCornHour mobile RC app for android twicefooled 15 6,752 03-12-2013 03:21 PM
Last Post: Na Multimedia Support Team
  [200] best and simple android app tushma 3 1,179 10-06-2012 01:26 PM
Last Post: Alice Laquisha
  [300] App available: PopcornHour Remote - Windows Phone 7 - [12 Jun 2012] v.1. released m.savazzi 16 4,798 06-30-2012 06:35 PM
Last Post: m.savazzi
  [300] A300: Is there an ipad app for my music library ? Hendershot 6 3,390 01-19-2012 06:20 AM
Last Post: excal
  [200] can sombody make svtplay app? Skaven 10 4,297 01-03-2012 02:03 PM
Last Post: jimkaws
  [300] How to mount multiple drives, no start-app.sh pedro75 4 3,000 12-19-2011 06:18 PM
Last Post: werner
Lightning [200] starting BD-J java app marmotamarmota 1 1,235 10-11-2011 09:36 AM
Last Post: marmotamarmota

Forum Jump: