The first if statement shows a simple page #if(~ $SERVER_NAME 172.27.0.67){ # PATH_INFO=$location # FS_ROOT=/usr/www/werc/sites/172.27.0.67 # exec static-or-index #} But this block below does nothing. I swapped out the IP named directory with other directories including the samples such as werc.cat-v.org etc...Nothing gets displayed. Mothra display error "Unknown file type" if(~ $SERVER_NAME 172.27.0.67){ PATH_INFO=$location FS_ROOT=/usr/www/werc/sites/172.27.0.67 exec static-or-cgi /usr/www/werc/bin/werc.rc } if not error 503 tail /sys/log/www ./etc/initrc:21: null list in concatenation Sat Jan 15 00:58:29 PST 2022 :: 172.27.0.67 :: GET / HTTP/1.1 :: Mozilla/5.0 (compatible; hjdicks) :: 200 ::
On Sat, Jan 15, 2022 at 01:07:40AM -0800, thinktankworkspaces@gmail.com wrote:
> The first if statement shows a simple page
>
> #if(~ $SERVER_NAME 172.27.0.67){
> # PATH_INFO=$location
> # FS_ROOT=/usr/www/werc/sites/172.27.0.67
> # exec static-or-index
> #}
>
>
> But this block below does nothing. I swapped out the IP named directory with other
> directories including the samples such as werc.cat-v.org etc...Nothing gets
> displayed. Mothra display error "Unknown file type"
>
> if(~ $SERVER_NAME 172.27.0.67){
> PATH_INFO=$location
> FS_ROOT=/usr/www/werc/sites/172.27.0.67
> exec static-or-cgi /usr/www/werc/bin/werc.rc
> }
> if not
> error 503
>
>
> tail /sys/log/www
>
> ./etc/initrc:21: null list in concatenation
> Sat Jan 15 00:58:29 PST 2022 :: 172.27.0.67 :: GET / HTTP/1.1 :: Mozilla/5.0 (compatible; hjdicks) :: 200 ::
>
>
we're gonna need a hell of a lot more information. start with "which
line of ./etc/initrc is line 21 and why does rc think there's a null
list in that concatenation?"
khm
On January 15, 2022 9:07:40 AM UTC, thinktankworkspaces@gmail.com wrote:
>The first if statement shows a simple page
>
>#if(~ $SERVER_NAME 172.27.0.67){
># PATH_INFO=$location
># FS_ROOT=/usr/www/werc/sites/172.27.0.67
># exec static-or-index
>#}
>
>
>But this block below does nothing. I swapped out the IP named directory with other
>directories including the samples such as werc.cat-v.org etc...Nothing gets
>displayed. Mothra display error "Unknown file type"
>
>if(~ $SERVER_NAME 172.27.0.67){
> PATH_INFO=$location
> FS_ROOT=/usr/www/werc/sites/172.27.0.67
> exec static-or-cgi /usr/www/werc/bin/werc.rc
>}
>if not
> error 503
>
>
>tail /sys/log/www
>
>./etc/initrc:21: null list in concatenation
>Sat Jan 15 00:58:29 PST 2022 :: 172.27.0.67 :: GET / HTTP/1.1 :: Mozilla/5.0 (compatible; hjdicks) :: 200 ::
>
>
>
make sure your system is fully updated. recent changes in rc temporarily broke werc.
sl
[-- Attachment #1: Type: text/plain, Size: 239 bytes --] Okay inside /usr/www/werc/etc/initrc:21 path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin) But honestly I don't know what this means. I"m not running linux or debian. What is poan9port and why do I need it if I"m running 9front? [-- Attachment #2: Type: message/rfc822, Size: 5135 bytes --] From: Kurt H Maier <khm@sciops.net> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 01:46:05 -0800 Message-ID: <YeKX3eudQOq/IDe3@wopr> On Sat, Jan 15, 2022 at 01:07:40AM -0800, thinktankworkspaces@gmail.com wrote: > The first if statement shows a simple page > > #if(~ $SERVER_NAME 172.27.0.67){ > # PATH_INFO=$location > # FS_ROOT=/usr/www/werc/sites/172.27.0.67 > # exec static-or-index > #} > > > But this block below does nothing. I swapped out the IP named directory with other > directories including the samples such as werc.cat-v.org etc...Nothing gets > displayed. Mothra display error "Unknown file type" > > if(~ $SERVER_NAME 172.27.0.67){ > PATH_INFO=$location > FS_ROOT=/usr/www/werc/sites/172.27.0.67 > exec static-or-cgi /usr/www/werc/bin/werc.rc > } > if not > error 503 > > > tail /sys/log/www > > ./etc/initrc:21: null list in concatenation > Sat Jan 15 00:58:29 PST 2022 :: 172.27.0.67 :: GET / HTTP/1.1 :: Mozilla/5.0 (compatible; hjdicks) :: 200 :: > > we're gonna need a hell of a lot more information. start with "which line of ./etc/initrc is line 21 and why does rc think there's a null list in that concatenation?" khm
[-- Attachment #1: Type: text/plain, Size: 145 bytes --] sure I did a sysupdate and mk on everything like two days ago. I moved /usr/www/werc/etc/initrc.local then changled line 21 to the following. [-- Attachment #2: Type: message/rfc822, Size: 4142 bytes --] From: Stanley Lieber <sl@stanleylieber.com> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 14:18:44 +0000 Message-ID: <EF5867BE-5C78-4A19-85DC-227FF492DDDF@stanleylieber.com> On January 15, 2022 9:07:40 AM UTC, thinktankworkspaces@gmail.com wrote: >The first if statement shows a simple page > >#if(~ $SERVER_NAME 172.27.0.67){ ># PATH_INFO=$location ># FS_ROOT=/usr/www/werc/sites/172.27.0.67 ># exec static-or-index >#} > > >But this block below does nothing. I swapped out the IP named directory with other >directories including the samples such as werc.cat-v.org etc...Nothing gets >displayed. Mothra display error "Unknown file type" > >if(~ $SERVER_NAME 172.27.0.67){ > PATH_INFO=$location > FS_ROOT=/usr/www/werc/sites/172.27.0.67 > exec static-or-cgi /usr/www/werc/bin/werc.rc >} >if not > error 503 > > >tail /sys/log/www > >./etc/initrc:21: null list in concatenation >Sat Jan 15 00:58:29 PST 2022 :: 172.27.0.67 :: GET / HTTP/1.1 :: Mozilla/5.0 (compatible; hjdicks) :: 200 :: > > > make sure your system is fully updated. recent changes in rc temporarily broke werc. sl
[-- Attachment #1: Type: text/plain, Size: 315 bytes --] I changed line 21 in /usr/www/werc/etc/initrd.local to the following path=(/usr/www/werc/bin . ./bin ./usr/www/werc/bin/contrib /bin /usr/bin) when I run mothra http://172.27.0.67/index.md the page comes up but nothing is bein translated It just shows markdown code and not the translated web page for bullets. [-- Attachment #2: Type: message/rfc822, Size: 5135 bytes --] From: Kurt H Maier <khm@sciops.net> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 01:46:05 -0800 Message-ID: <YeKX3eudQOq/IDe3@wopr> On Sat, Jan 15, 2022 at 01:07:40AM -0800, thinktankworkspaces@gmail.com wrote: > The first if statement shows a simple page > > #if(~ $SERVER_NAME 172.27.0.67){ > # PATH_INFO=$location > # FS_ROOT=/usr/www/werc/sites/172.27.0.67 > # exec static-or-index > #} > > > But this block below does nothing. I swapped out the IP named directory with other > directories including the samples such as werc.cat-v.org etc...Nothing gets > displayed. Mothra display error "Unknown file type" > > if(~ $SERVER_NAME 172.27.0.67){ > PATH_INFO=$location > FS_ROOT=/usr/www/werc/sites/172.27.0.67 > exec static-or-cgi /usr/www/werc/bin/werc.rc > } > if not > error 503 > > > tail /sys/log/www > > ./etc/initrc:21: null list in concatenation > Sat Jan 15 00:58:29 PST 2022 :: 172.27.0.67 :: GET / HTTP/1.1 :: Mozilla/5.0 (compatible; hjdicks) :: 200 :: > > we're gonna need a hell of a lot more information. start with "which line of ./etc/initrc is line 21 and why does rc think there's a null list in that concatenation?" khm
On January 15, 2022 5:18:15 PM UTC, thinktankworkspaces@gmail.com wrote:
>sure I did a sysupdate and mk on everything like two days ago.
>
>I moved /usr/www/werc/etc/initrc.local then changled line 21 to the following.
your message was truncated.
sl
On January 15, 2022 5:01:25 PM UTC, thinktankworkspaces@gmail.com wrote:
>Okay inside /usr/www/werc/etc/initrc:21
>
>path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin)
>
>But honestly I don't know what this means. I"m not running linux or
>debian. What is poan9port and why do I need it if I"m running 9front?
werc ships that way so it doesn't need modification on plan 9 or unix.
the bug you're encountering is the result of recent rc changes. i ran into the same thing, but it was fixed after i complained.
you need to make sure you have the latest rc, and that it's actually installed in /bin/rc.
sl
[-- Attachment #1: Type: text/plain, Size: 202 bytes --] Yes sorry. I guess I wanted to write that its a new install with sysupdate, and I create a new user called www because why not. I can rcpu to that user and I can point /rc/bin/rc-httpd/select-handler [-- Attachment #2: Type: message/rfc822, Size: 3445 bytes --] From: Stanley Lieber <sl@stanleylieber.com> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 18:22:42 +0000 Message-ID: <CEF0BEE0-BE7A-49AA-B862-76D0DD46BE5F@stanleylieber.com> On January 15, 2022 5:18:15 PM UTC, thinktankworkspaces@gmail.com wrote: >sure I did a sysupdate and mk on everything like two days ago. > >I moved /usr/www/werc/etc/initrc.local then changled line 21 to the following. your message was truncated. sl
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --] Yes sorry. I guess I wanted to write that its a new install with sysupdate, and I create a new user called www because why not. I can rcpu to that user and I can point /rc/bin/rc-httpd/select-handler if(~ $SERVER_NAME 172.27.0.67){ # PATH_INFO=$location # FS_ROOT=/usr/www/werc/sites/172.27.0.67 # exec static-or-index #} The above works fine and I have a simple index.html also an index.md not that it matters because it doesn't work when I change select-handler to the following if(~ $SERVER_NAME 172.27.0.67){ PATH_INFO=$location FS_ROOT=/usr/www/werc/sites/werc.cat-v.org exec static-or-cgi /usr/www/werc/bin/werc.rc } if not error 503 I don't exactly understand the purpose of intirc while In plan9 because I'm not running debian. /usr/www/werc contains the following: README bin/ lib/ sites/ apps/ etc/ pub/ tpl/ /usr/www/werc/etc contains initrc /users/ initrc.local initrc.local has the following line 21 and 22 #path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin) path=(/usr/www/werc/bin . ./bin ./usr/www/werc/bin/contrib /bin /usr/bin) not sure what plan9port is but I suspect its the werc package I guess I have both werc-1.5.0.tar.gz and the one from hg pull. Makes no difference at first I was getting an unknown file. But when I'm more explicit I get some data with the following: mothra http://172.27.0.67/index.md But this only shows the raw index.md. It does not show anything translated into a web format with actual bullets I see nothing in logs other than 200 codes And yes sorry for sending two more messages that were concat. [-- Attachment #2: Type: message/rfc822, Size: 3445 bytes --] From: Stanley Lieber <sl@stanleylieber.com> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 18:22:42 +0000 Message-ID: <CEF0BEE0-BE7A-49AA-B862-76D0DD46BE5F@stanleylieber.com> On January 15, 2022 5:18:15 PM UTC, thinktankworkspaces@gmail.com wrote: >sure I did a sysupdate and mk on everything like two days ago. > >I moved /usr/www/werc/etc/initrc.local then changled line 21 to the following. your message was truncated. sl
[-- Attachment #1: Type: text/plain, Size: 776 bytes --] How do I get the latest rc. I thought I could log into 9front cpu% 9fs 9front !Adding key: dom=yoyodyne proto=dp9ik user[glenda]: password: ! srv 9front.org: mount failed: authrpc botch bind: /n/9front.org/9front: '/n/9front.org/9front' does not exist bind: /n/9front.org/extra: '/n/9front.org/extra' does not exist bind: /n/9front.org/fqa: '/n/9front.org/fqa' does not exist bind: /n/9front.org/hardware: '/n/9front.org/hardware' does not exist bind: /n/9front.org/iso: '/n/9front.org/iso' does not exist bind: /n/9front.org/lists: '/n/9front.org/lists' does not exist bind: /n/9front.org/pkg: '/n/9front.org/pkg' does not exist bind: /n/9front.org/sites: '/n/9front.org/sites' does not exist I guess I need to be a user on 9front? Did something change its been a while [-- Attachment #2: Type: message/rfc822, Size: 3797 bytes --] From: Stanley Lieber <sl@stanleylieber.com> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 18:26:58 +0000 Message-ID: <30CAB641-6BB4-42FA-9E5B-7B5C556A59EC@stanleylieber.com> On January 15, 2022 5:01:25 PM UTC, thinktankworkspaces@gmail.com wrote: >Okay inside /usr/www/werc/etc/initrc:21 > >path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin) > >But honestly I don't know what this means. I"m not running linux or >debian. What is poan9port and why do I need it if I"m running 9front? werc ships that way so it doesn't need modification on plan 9 or unix. the bug you're encountering is the result of recent rc changes. i ran into the same thing, but it was fixed after i complained. you need to make sure you have the latest rc, and that it's actually installed in /bin/rc. sl
On January 15, 2022 7:40:35 PM UTC, thinktankworkspaces@gmail.com wrote:
>How do I get the latest rc. I thought I could log into 9front
>
>cpu% 9fs 9front
>
>!Adding key: dom=yoyodyne proto=dp9ik
>user[glenda]:
>password:
>!
>srv 9front.org: mount failed: authrpc botch
>bind: /n/9front.org/9front: '/n/9front.org/9front' does not exist
>bind: /n/9front.org/extra: '/n/9front.org/extra' does not exist
>bind: /n/9front.org/fqa: '/n/9front.org/fqa' does not exist
>bind: /n/9front.org/hardware: '/n/9front.org/hardware' does not exist
>bind: /n/9front.org/iso: '/n/9front.org/iso' does not exist
>bind: /n/9front.org/lists: '/n/9front.org/lists' does not exist
>bind: /n/9front.org/pkg: '/n/9front.org/pkg' does not exist
>bind: /n/9front.org/sites: '/n/9front.org/sites' does not exist
>
>I guess I need to be a user on 9front? Did something change its been a while
; webfs
; sysupdate
; cd /sys/src/cmd/rc
; mk install
sl
Quoth thinktankworkspaces@gmail.com:
> Yes sorry. I guess I wanted to write that its a new install with sysupdate, and I create
> a new user called www because why not. I can rcpu to that user and I can point
>
> /rc/bin/rc-httpd/select-handler
>
Make sure that you actually installed the new rc
(cd /sys/src && mk install).
The bug was in how rc handled exporting environments
to subshells, and was fixed in:
Hash: 11d573d7f9a3163224195f312f53322e9076a8fe
Author: cinap_lenrek <cinap_lenrek@felloff.net>
Date: Sat Jan 1 22:33:34 -0500 2022
rc: rstr() shouldnt skip trailing NUL bytes (thanks ori)
[-- Attachment #1: Type: text/plain, Size: 45 bytes --] made no difference. Still shows raw markdown [-- Attachment #2: Type: message/rfc822, Size: 4116 bytes --] From: Stanley Lieber <sl@stanleylieber.com> To: 9front@9front.org Subject: Re: [9front] werc noob Date: Sat, 15 Jan 2022 19:47:38 +0000 Message-ID: <517776EF-73E5-4D85-A41B-852BBB57FC59@stanleylieber.com> On January 15, 2022 7:40:35 PM UTC, thinktankworkspaces@gmail.com wrote: >How do I get the latest rc. I thought I could log into 9front > >cpu% 9fs 9front > >!Adding key: dom=yoyodyne proto=dp9ik >user[glenda]: >password: >! >srv 9front.org: mount failed: authrpc botch >bind: /n/9front.org/9front: '/n/9front.org/9front' does not exist >bind: /n/9front.org/extra: '/n/9front.org/extra' does not exist >bind: /n/9front.org/fqa: '/n/9front.org/fqa' does not exist >bind: /n/9front.org/hardware: '/n/9front.org/hardware' does not exist >bind: /n/9front.org/iso: '/n/9front.org/iso' does not exist >bind: /n/9front.org/lists: '/n/9front.org/lists' does not exist >bind: /n/9front.org/pkg: '/n/9front.org/pkg' does not exist >bind: /n/9front.org/sites: '/n/9front.org/sites' does not exist > >I guess I need to be a user on 9front? Did something change its been a while ; webfs ; sysupdate ; cd /sys/src/cmd/rc ; mk install sl
On January 15, 2022 5:01:25 PM UTC, thinktankworkspaces@gmail.com wrote:
>Okay inside /usr/www/werc/etc/initrc:21
>
>path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin)
>
>But honestly I don't know what this means. I"m not running linux or
>debian. What is poan9port and why do I need it if I"m running 9front?
werc ships that way so it doesn't need modification on plan 9 or unix.
the bug you're encountering is the result of recent rc changes. i ran into the same thing, but it was fixed after i complained.
you need to make sure you have the latest rc, and that it's actually installed in /bin/rc.
sl
Its working now I had to exit connect again via drawterm. I shouldn't of needed to do that
and yes I needed to change initrc line 21
path=(/usr/www/werc/bin . ./bin ./bin/contrib /bin /usr/bin)
Thanks!!!!!!!