# Empty pages served from Lighttpd + SCGI?

**URL:** <https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209>\
**Category:** Rails\
**Created:** [December 14, 2005, 8:25am UTC](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209 "2005-12-14T08:25:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 14, 2005, 8:25am UTC](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209/1 "2005-12-14T08:25:48Z")

</div>

Hi !

I bought myself a server at RimuHosting. I am now setting things up  
on it. I have two sites. The first one is working fine - pages get  
served, Rails is up and running.

The second one, though, I can’t run. I can serve static content, but  
dynamic content is a no-no. I’d need some help here - just a pointer  
to how to enable more debugging information would help.

Here’s the server’s error log

T:20: (request.c.293) fd: 9 request-len: 465  
GET /account/login HTTP/1.1  
Host: sms-gateway.teksol.info  
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8)  
Gecko/20051107 Firefox/1.5  
Accept:  
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,_/_;q=0.5  
Accept-Language: fr-ca,fr;q=0.8,en-us;q=0.5,en;q=0.3

```auto
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0

T:20: (response.c.174) -- splitting Request-URI
T:20: (response.c.175) Request-URI : /account/login
T:20: (response.c.176) URI-scheme : http
T:20: (response.c.177) URI-authority: sms-gateway.teksol.info
T:20: (response.c.178) URI-path : /account/login
T:20: (response.c.179) URI-query :
T:20: (response.c.229) -- sanatising URI
T:20: (response.c.230) URI-path : /account/login
T:20: (response.c.302) -- before doc_root
T:20: (response.c.303) Doc-Root : 
/var/www/sms-gateway.teksol.info/public
T:20: (response.c.304) Rel-Path : /account/login
T:20: (response.c.305) Path :
T:20: (response.c.353) -- after doc_root
T:20: (response.c.354) Doc-Root : 
/var/www/sms-gateway.teksol.info/public
T:20: (response.c.355) Rel-Path : /account/login
T:20: (response.c.356) Path :
/var/www/sms-gateway.teksol.info/public/account/login
T:20: (response.c.373) -- logical -> physical
T:20: (response.c.374) Doc-Root : 
/var/www/sms-gateway.teksol.info/public
T:20: (response.c.375) Rel-Path : /account/login
T:20: (response.c.376) Path :
/var/www/sms-gateway.teksol.info/public/account/login
T:20: (response.c.393) -- handling physical path
T:20: (response.c.394) Path :
/var/www/sms-gateway.teksol.info/public/account/login
T:20: (response.c.434) -- file not found
T:20: (response.c.435) Path :
/var/www/sms-gateway.teksol.info/public/account/login
T:20: (response.c.174) -- splitting Request-URI
T:20: (response.c.175) Request-URI : /dispatch.scgi
T:20: (response.c.176) URI-scheme : http
T:20: (response.c.177) URI-authority: sms-gateway.teksol.info
T:20: (response.c.178) URI-path : /dispatch.scgi
T:20: (response.c.179) URI-query :
T:20: (response.c.229) -- sanatising URI
T:20: (response.c.230) URI-path : /dispatch.scgi
T:20: (mod_scgi.c.2761) handling it in mod_scgi
T:20: (response.c.302) -- before doc_root
T:20: (response.c.303) Doc-Root : 
/var/www/sms-gateway.teksol.info/public
T:20: (response.c.304) Rel-Path : /dispatch.scgi
T:20: (response.c.305) Path :
T:20: (response.c.353) -- after doc_root
T:20: (response.c.354) Doc-Root : 
/var/www/sms-gateway.teksol.info/public
T:20: (response.c.355) Rel-Path : /dispatch.scgi
T:20: (response.c.356) Path :
/var/www/sms-gateway.teksol.info/public/dispatch.scgi
T:20: (response.c.373) -- logical -> physical
T:20: (response.c.374) Doc-Root : 
/var/www/sms-gateway.teksol.info/public
T:20: (response.c.375) Rel-Path : /dispatch.scgi
T:20: (response.c.376) Path :
/var/www/sms-gateway.teksol.info/public/dispatch.scgi
T:20: (response.c.101) Response-Header:
HTTP/1.1 200 OK
Date: Wed, 14 Dec 2005 05:57:20 GMT
Content-Length: 0
Server: lighttpd/1.4.7

Looking at the log, we can see that mod_scgi is handling the request.
The SCGI process is started and running (scgi_cluster status reports
one process, as configured).

Lighty's config file is thus (much abridged):
server.modules = ( "mod_rewrite", "mod_redirect", 
"mod_access",
                                "mod_scgi", "mod_compress", 
"mod_accesslog" )

$HTTP["host"] == "sms-gateway.teksol.info" {
  accesslog.filename = "/var/www/sms-gateway.teksol.info/log/access.log"
  server.document-root = "/var/www/sms-gateway.teksol.info/public"
  server.error-handler-404 = "/dispatch.scgi"
  scgi.server = ( "dispatch.scgi" => (
    "server1" =>
      ( "host" => "127.0.0.1", "port" => 10400, "check-local" => 
"disable")))}

If you want to see the file served from the process, look at this:
http://sms-gateway.teksol.info/account/login

Static files work fine:
http://sms-gateway.teksol.info/stylesheets/scaffold.css

I am really at a loss to explain what the problem is...

Thanks !
```

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 16, 2005, 9:44pm UTC](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209/2 "2005-12-16T21:44:08Z")

</div>

Hi !

Any takers for this ? I’m really at my wit’s end…  
[http://thread.gmane.org/gmane.comp.lang.ruby.rails/34845](http://thread.gmane.org/gmane.comp.lang.ruby.rails/34845)

2005/12/14, Francois B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 17, 2005, 7:24pm UTC](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209/3 "2005-12-17T19:24:59Z")

</div>

Hello everyone,

2005/12/16, Francois B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Any takers for this ? I’m really at my wit’s end…  
> [http://thread.gmane.org/gmane.comp.lang.ruby.rails/34845](http://thread.gmane.org/gmane.comp.lang.ruby.rails/34845)

I finally found what the problem was. Bad user experience, though.

Anyway, I configured an ActiveRecord session store. Unfortunately, I  
had forgotten to add myself a migration that would add the sessions  
table. I stumbled upon that after I tried going back to basics: rails  
test, script/generate controller Test - works, accept cookie.  
Checkout from repository, try using script/server - fail, but see a  
500 error. _Nothing in the logs_. Notice active\_record store  
configuration, check DB schema, no sessions table. Run rake  
create\_sessions\_table, try again, SUCCESS.

Rails should have complained, and LOUDLY that the sessions table did not  
exist.

Bye !

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 18, 2005, 7:36am UTC](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209/4 "2005-12-18T07:36:05Z")

</div>

Ooh, that’s not good at all. I’ll mention this to the important folks.

Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

On Sat, 17 Dec 2005 11:36:53 -0500
