Both answers are VERY helpful, and point out how unhelpful my original
question was stated.

Karen, I admit to being a knucklehead. Thanks for reminding me :-)

Shamail Tayyab, I'm not running via command line, using manage.py.
I've created my own script, following instructions found in the docs
provided with the source:
file:///work/django-trunk/docs/_build/html/howto/deployment/fastcgi.html

So, running from the command line, I get essentially the same error I
get when running via http.

Here's a snippet of my code. I was walking thru with the debugger, but
it was not helpful, yet. I'll put some breakpoints inside fastcgi.py,
perhaps.
try:
    socketPath = basePath + "/djgosite2/mysite2.sock"
    errLogFilePath = basePath + "/djgosite2/mysite2.err"
    # pdb.set_trace()
    runfastcgi(method ="threaded", protocol ="fcgi", daemonize =
"false", socket = socketPath, errlog = errLogFilePath, debug = True)
    djLogger.debug("right after calling runfastcgi (in try block)")
except Exception as excpt:
    djLogger.debug("Exception raised because of something...")
    djLogger.debug(excpt)
except:
    djLogger.debug("unexpected error")
    djLogger.debug( sys.exc_info()[0])
    print "Unexpected error:", sys.exc_info()[0]

Here's the error:
Unexpected error: <type 'exceptions.SystemExit'>

I think I need to call the hosting service to see if they can send me
their error logs. I can only look at access logs. My own logger might
be helpful if I add some logging to fastcgi.py.

In any case, THANKS VERY MUCH for the help!


On Dec 23, 12:55 am, Shamail Tayyab <[email protected]> wrote:
> You may want to try running your fastcgi daemon via command line,
>
> This is the exact command that I am using at production:
> python manage.py runfcgi daemonize=false method=threaded
> host=127.0.0.1 port=9001
>
> Tx
>
> --
> Shamail Tayyab
> Blog:http://shamail.in/blog
>
> On Dec 22, 6:52 pm, Richard Brosnahan <[email protected]> wrote:
>
>
>
> > Hi all,
>
> > I'm new to django but not new to Python. My goal is to build a web site 
> > using django, replacing an old, tired php framework.
>
> > The django 1.2.3 tutorials were fine. I got the basics of my site working 
> > locally, after going thru the entire tutorial. Before going any further, I 
> > wanted to see if I could get that same basic tutorial site going on my 
> > 1and1 host. If I can't, I may have to go with drupal.
>
> > The django 1and1 site is a no go.
>
> > I've installed my own Python 2.7.1, since the default version on 1and1 is 
> > extremely old.
>
> > 1and1 does provide fcgi, by default. Indeed, my .htaccess file and 
> > mysite.fcgi work to a point. The script is using my version of python. The 
> > .fcgi script runs until I get to the line where I try to execute runfastcgi.
>
> > from django.core.servers.fastcgi import runfastcgi
> > runfastcgi(method="threaded", daemonize="false")
>
> > I'm using the docs provided with the svn version of django. In particular, 
> > this page:
> > file:///work/django-trunk/docs/_build/html/howto/deployment/fastcgi.html
>
> > These docs are those issued with the version of django I'm using, and 
> > that's up to date as of yesterday (via svn checkout).
>
> > What's the problem?
>
> > I get an error saying "method" is not defined, and "daemonize" is not 
> > defined. Further, those parameters don't match the method in the source:
>
> > fastcgi.py:89:
> > def runfastcgi(argset=[], **kwargs):
>
> > So, I'm trying to pass (method="threaded", daemonize="false") to a method 
> > which expects (argset=[], **kwargs). No wonder it 'splodes.
>
> > Can anyone direct me to a way to get this to work? What am I missing?
>
> > Thanks in advance
>
> > --
> > Richard Brosnahan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to