First of all thank you for the reply.

Secondly there is no permission issue.  As the user cherokee runs as www-data 
in my case.  I can run any of the commands discussed with no issue:

/usr/local/bin/nanoki
/usr/local/bin/nanoki &
screen -dmS nanoki /usr/local/bin/nanoki
nohup /usr/local/bin/nanoki &

All of these are successful manually.

None of them when placed in the source interpreter field spawn the process...  
I really wish I knew to say more.  I am willing to try anything anyone through 
at me.  I think at this point that Cherokee is not even trying to spawn the 
process.  I'm using Cherokee version 99.20 for reference sake.

OK I can confirm Cherokee is not trying to spawn the process.  I changed the 
/usr/local/bin/nanoki script to:

#!/bin/dash
touch /tmp/HELLOWORLD
cd /var/wiki
exec /usr/local/bin/lua Nanoki.lua . localhost 9454 forwarded secure


HELLOWORLD is never created using any of these methods in the source 
interpreter field:

/usr/local/bin/nanoki
/usr/local/bin/nanoki &
screen -dmS nanoki /usr/local/bin/nanoki
nohup /usr/local/bin/nanoki &

The only thing I can find that seems strange is in the error log I see this:

fdpoll-epoll.c:140 - epoll_ctl(18, EPOLL_CTL_DEL, -1): 'Operation not
permitted'

This is not on every access though and infact after 20 tries is just in the log 
twice.  I'm not sure if its reflated or not.

I'm calling this a bug.  Time to file???  Or does someone have something else I 
should try?

Thanks

Frederick



On Wed, 5 Aug 2009 01:30:31 +0200
Jędrzej Nowak <[email protected]> wrote:

> Try to define your source interpreter as:
> 
> "nohup /usr/local/bin/nanoki &"
> 
> (without quotes)
> 
> If it doesn't help check:
> Your launching script has correct permissions ? ( chmod ).
>  If you run that script by hand, everything works fine ?
> 
> Greetings
> Jędrzej Nowak
> 
> 
> 
> On Wed, Aug 5, 2009 at 12:46 AM, Frederick Reeve<[email protected]> wrote:
> > Hello All,
> >
> > I am using Nanoki (http://alt.textdrive.com/nanoki/) as a simple wiki and 
> > for various reasons am putting it behind Cherokee using reverse proxy.
> >
> > This works great except one thing.  Cherokee doesn't seem to spawn it 
> > correctly or even try to spawn it.  If I start it manually all is well.  
> > The script that is starting Nanoki is this:
> >
> > #!/bin/dash
> > cd /var/wiki
> > exec /usr/local/bin/lua Nanoki.lua . localhost 9454 forwarded secure
> >
> >
> > This is located at /usr/local/bin/nanoki. Not much to it really.  It starts 
> > nanoki's web server on 127.0.0.1:9454. I then put this in the interpreter 
> > section of my information source:
> >
> > /usr/bin/screen -dmS nanoki /usr/local/bin/nanoki
> >
> > The sreen command is just used because nanoki doesn't demonize at all so I 
> > use screen to force it (maybe I don't need to do this???).  I did also try 
> > it just using the script so the interpreter section of the information 
> > source was:
> >
> > /usr/local/bin/nanoki
> >
> > This made no difference.  The web server just returns a 502 when I attempt 
> > to view proxied page.  I would really like to see Cherokee spawning this 
> > automatically is there something I am missing.  Like I said above if I 
> > start nanoki manually it works great so the rest of the config is right.  
> > You can look at the pertinate config sections here:
> >
> > (information source)
> > source!1!host = 127.0.0.1:9454
> > source!1!interpreter = /usr/bin/screen -dmS nanoki /usr/local/bin/nanoki
> > source!1!nick = nanoki
> > source!1!timeout = 4
> > source!1!type = interpreter
> >
> > (virtual server)
> > vserver!20!document_root = /var/www
> > vserver!20!keepalive = 1
> > vserver!20!logger!x_real_ip_access_all = 0
> > vserver!20!logger!x_real_ip_enabled = 0
> > vserver!20!match = wildcard
> > vserver!20!match!domain!1 = aaa.solace.info
> > vserver!20!nick = aaa
> > vserver!20!rule!200!auth = htdigest
> > vserver!20!rule!200!auth!methods = digest
> > vserver!20!rule!200!auth!passwdfile = /etc/cherokee/auth.htdigest
> > vserver!20!rule!200!auth!realm = aaa
> > vserver!20!rule!200!encoder!deflate = 0
> > vserver!20!rule!200!encoder!gzip = 0
> > vserver!20!rule!200!handler = proxy
> > vserver!20!rule!200!handler!balancer = round_robin
> > vserver!20!rule!200!handler!balancer!source!1 = 1
> > vserver!20!rule!200!handler!in_allow_keepalive = 1
> > vserver!20!rule!200!handler!in_preserve_host = 1
> > vserver!20!rule!200!match = directory
> > vserver!20!rule!200!match!directory = /
> > vserver!20!rule!200!no_log = 0
> > vserver!20!rule!200!only_secure = 1
> > vserver!20!rule!100!auth = htdigest
> > vserver!20!rule!100!auth!methods = digest
> > vserver!20!rule!100!auth!passwdfile = /etc/cherokee/auth.htdigest
> > vserver!20!rule!100!auth!realm = aaa
> > vserver!20!rule!100!encoder!deflate = 0
> > vserver!20!rule!100!encoder!gzip = 0
> > vserver!20!rule!100!handler = common
> > vserver!20!rule!100!handler!allow_dirlist = 0
> > vserver!20!rule!100!handler!allow_pathinfo = 0
> > vserver!20!rule!100!handler!backup = 0
> > vserver!20!rule!100!handler!date = 1
> > vserver!20!rule!100!handler!group = 0
> > vserver!20!rule!100!handler!hidden = 0
> > vserver!20!rule!100!handler!iocache = 1
> > vserver!20!rule!100!handler!size = 1
> > vserver!20!rule!100!handler!symlinks = 1
> > vserver!20!rule!100!handler!theme = plain
> > vserver!20!rule!100!handler!user = 0
> > vserver!20!rule!100!match = default
> > vserver!20!rule!100!match!final = 1
> > vserver!20!rule!100!no_log = 0
> > vserver!20!rule!100!only_secure = 0
> > vserver!20!ssl_certificate_file = /etc/cherokee/ca/server.pem
> > vserver!20!ssl_certificate_key_file = /etc/cherokee/ca/server.pem
> >
> > Thanks so much.
> >
> > Frederick
> >
> > _______________________________________________
> > Cherokee mailing list
> > [email protected]
> > http://lists.octality.com/listinfo/cherokee
> >
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to