I fixed the permissions errors by completely wiping and reinstalling Apache and
FastCGI. All I can think is that when I had both FastCGI and FCGID installed,
they somehow stepped on Apache's configuration files. I still get "reparenting
widget" errors when my app starts up but they seem to be harmless, and my app
works perfectly with enableUpdates(false).
If I set enableUpdates(true), when the app runs it shows the greyed-out loading
message for 30 seconds followed by the first error message below: "comm with
server aborted". Then every 3 seconds, which is my WTimer interval, I see the
"incomplete headers (0 bytes) received from server" error message.
My WTimer slot function is empty right now. I have no threads and do no fork
statements up to this point. So enableUpdates(true) definitely does not work
on my system (Ubuntu 9.04+Apache2+FastCGI).
What could I be doing to cause this behavior? Anything? I need
enableUpdates(true) to work.
=Shawn
[Wed Sep 23 16:53:42 2009] [error] [client 192.168.1.254] FastCGI: comm with
(dynamic) server "/var/www/app/app.wt" aborted: (first read) idle timeout (30
sec), referer: http://x.x.x.x:80/app/app.wt
[Wed Sep 23 16:53:42 2009] [error] [client 192.168.1.254] FastCGI: incomplete
headers (0 bytes) received from server "/var/www/app/app.wt", referer:
http://x.x.x.x:80/app/app.wt
[2009-Sep-23 16:53:42.461722] 8039 - [error] "Error reading from web server"
[Wed Sep 23 16:53:45 2009] [error] [client 192.168.1.254] FastCGI: incomplete
headers (0 bytes) received from server "/var/www/app/app.wt", referer:
http://x.x.x.x:80/app/app.wt
[Wed Sep 23 16:53:49 2009] [error] [client 192.168.1.254] FastCGI: incomplete
headers (0 bytes) received from server "/var/www/app/app.wt", referer:
http://x.x.x.x:80/app/app.wt
[Wed Sep 23 16:53:52 2009] [error] [client 192.168.1.254] FastCGI: incomplete
headers (0 bytes) received from server "/var/www/app/app.wt", referer:
http://x.x.x.x:80/app/app.wt
[Wed Sep 23 16:53:55 2009] [error] [client 192.168.1.254] FastCGI: incomplete
headers (0 bytes) received from server "/var/www/app/app.wt", referer:
http://x.x.x.x:80/app/app.wt
________________________________
From: Shawn Yarbrough <[email protected]>
To: [email protected]
Sent: Wednesday, September 23, 2009 3:02:13 PM
Subject: [Wt-interest] more fastCGI
I seem to be having FastCGI problems with Witty. I disabled enableUpdate for
the following test.
At 14:46 I stopped and started Apache.
At 14:47 I opened my Witty app.
At 14:48 I pressed the button in my Witty app that kicks off a fork()+system()
process. The first thing the fork does is close all (ALL) open file
descriptors and then reopen 0=/dev/null, 1=log.txt, 2=dup2 from 1.
At 14:50 (the last line below) the fork+shell process completed, and the Witty
app detected completion and reacted by forwarding to an HTML file containing
output from the process.
Why is it complaining about execute permissions? The UID 33 is www-data and
all the files and directories involved are owned, readable, and writable by
www-data. What are all the reparenting messages about? Has anyone seen
messages like this before?
[Wed Sep 23 14:46:04 2009] [notice] caught SIGTERM, shutting down
[Wed Sep 23 14:46:16 2009] [notice] FastCGI: process manager initialized (pid
29253)
[Wed Sep 23 14:46:16 2009] [notice] Apache/2.2.11 (Ubuntu) mod_fastcgi/2.4.6
configured -- resuming normal operations
[Wed Sep 23 14:47:13 2009] [warn] FastCGI: (dynamic) server
"/var/www/app/app.wt" started (pid 29383)
[2009-Sep-23 14:47:13.912076] 29383 - [notice] "Wt: initializing FastCGI
session process manager"
[2009-Sep-23 14:47:13.912292] 29383 - [notice] "Reading Wt config file:
/etc/wt/wt_config.xml (location = '/var/www/app/app.wt')"
[2009-Sep-23 14:47:13.912658] 29383 - [notice] "Reading FastCGI stream from
stdin"
[2009-Sep-23 14:47:14.403494] 29383 - [notice] "Spawned dedicated process for
xWmoyEJo4vZp5NJ9: pid=29386"
[2009-Sep-23 14:47:14.418120] 29386 - [notice] "Wt: initializing session
process"
[2009-Sep-23 14:47:14.418327] 29386 - [notice] "Reading Wt config file:
/etc/wt/wt_config.xml (location = '/var/www/app/app.wt')"
[2009-Sep-23 14:47:14.509094] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [notice]
"Session created (#sessions = 1)"
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009090217
Ubuntu/9.04 (jaunty) Firefox/3.0.14
[2009-Sep-23 14:47:14.539171] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539538] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539620] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539669] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539753] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539792] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539913] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539963] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.539996] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540067] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540131] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540270] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540334] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540388] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540504] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540542] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[2009-Sep-23 14:47:14.540574] 29386 [/app/app.wt xWmoyEJo4vZp5NJ9] [warn]
"WContainerWidget::addWidget(): reparenting widget"
[Wed Sep 23 14:47:14 2009] [error] [client 192.168.1.254] FastCGI: invalid
(dynamic) server "/var/www/app/resources/ajax-loading.gif": access for server
(uid 33, gid 33) not allowed: execute not allowed, referer:
http://x.x.x.x:80/app/app.wt
[Wed Sep 23 14:50:24 2009] [error] [client 192.168.1.254] FastCGI: invalid
(dynamic) server "/var/www/app/session/xWmoyEJo4vZp5NJ9/index.html": access for
server (uid 33, gid 33) not allowed: execute not allowed by owner, referer:
http://x.x.x.x:80/app/app.wt
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest