When I refer to the error, there is no senceable error in the apache
log.
It exclusively occurs on the web client on login. It's a TG generated
error by the way.
I am using the preset db, or trying to.

The debug setting is false in the production.ini

I am capable to publish the virtual machine directly so as
communicate
clearly.

I have the apache error.log.
It contains all the mod_wsgi actions including loging in as editor/
editpass.

Debian5:/home/james# tail -f /var/log/apache2/error.log
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3343): Starting thread 8 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3345): Starting thread 6 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3344): Starting thread 9 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3343): Starting thread 9 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3345): Starting thread 7 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3344): Starting thread 10 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3343): Starting thread 10 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3345): Starting thread 8 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3345): Starting thread 9 in daemon process 'myapp'.
[Tue Aug 17 22:00:12 2010] [debug] mod_wsgi.c(8673): mod_wsgi
(pid=3345): Starting thread 10 in daemon process 'myapp'.
[Tue Aug 17 22:02:26 2010] [info] mod_wsgi (pid=3344): Create
interpreter '192.168.149.128|/myapp'.
[Tue Aug 17 22:02:26 2010] [info] mod_wsgi (pid=3344): Adding '/usr/
local/turbogears/BASELINE/lib/python2.5/site-packages' to path.
[Tue Aug 17 22:02:26 2010] [info] [client 127.0.0.1] mod_wsgi
(pid=3344, process='myapp', application='192.168.149.128|/myapp'):
Loading WSGI script '/usr/local/turbogears/myapp/apache/myapp.wsgi'.
[Tue Aug 17 22:02:26 2010] [info] mod_wsgi (pid=3541): Attach
interpreter ''.
[Tue Aug 17 22:02:39 2010] [debug] mod_deflate.c(615): [client
127.0.0.1] Zlib: Compressed 430 to 223 : URL /myapp
[Tue Aug 17 22:02:39 2010] [info] mod_wsgi (pid=3345): Create
interpreter '192.168.149.128|/myapp'.
[Tue Aug 17 22:02:39 2010] [info] mod_wsgi (pid=3345): Adding '/usr/
local/turbogears/BASELINE/lib/python2.5/site-packages' to path.
[Tue Aug 17 22:02:39 2010] [info] [client 127.0.0.1] mod_wsgi
(pid=3345, process='myapp', application='192.168.149.128|/myapp'):
Loading WSGI script '/usr/local/turbogears/myapp/apache/myapp.wsgi'.
[Tue Aug 17 22:02:41 2010] [debug] mod_deflate.c(615): [client
127.0.0.1] Zlib: Compressed 3002 to 1257 : URL /myapp/
[Tue Aug 17 22:02:44 2010] [error] [client 127.0.0.1] File does not
exist: /var/www/favicon.ico
[Tue Aug 17 22:02:44 2010] [debug] mod_deflate.c(615): [client
127.0.0.1] Zlib: Compressed 404 to 295 : URL /favicon.ico
[Tue Aug 17 22:02:51 2010] [debug] mod_deflate.c(615): [client
127.0.0.1] Zlib: Compressed 1813 to 832 : URL /myapp/login, referer:
http://localhost/myapp/
[Tue Aug 17 22:02:51 2010] [info] mod_wsgi (pid=3545): Attach
interpreter ''.
[Tue Aug 17 22:03:04 2010] [error] /usr/local/turbogears/BASELINE/lib/
python2.5/site-packages/SQLAlchemy-0.5.1-py2.5.egg/sqlalchemy/engine/
default.py:229: SAWarning: Unicode type received non-unicode bind
param value 'editor'
[Tue Aug 17 22:03:04 2010] [error]   param.append(processors[key]
(compiled_params[key]))
[Tue Aug 17 22:03:04 2010] [debug] mod_deflate.c(615): [client
127.0.0.1] Zlib: Compressed 372 to 224 : URL /myapp/login_handler,
referer: http://localhost/myapp/login
[Tue Aug 17 22:03:04 2010] [error] /usr/local/turbogears/BASELINE/lib/
python2.5/site-packages/SQLAlchemy-0.5.1-py2.5.egg/sqlalchemy/engine/
default.py:229: SAWarning: Unicode type received non-unicode bind
param value 'editor'
[Tue Aug 17 22:03:04 2010] [error]   param.append(processors[key]
(compiled_params[key]))
[Tue Aug 17 22:03:05 2010] [error] [client 127.0.0.1] Error - <type
'exceptions.AttributeError'>: 'module' object has no attribute 'dumps'
[Tue Aug 17 22:03:05 2010] [debug] mod_deflate.c(615): [client
127.0.0.1] Zlib: Compressed 1507 to 722 : URL /myapp/post_login,
referer: http://localhost/myapp/login

On Aug 17, 9:14 pm, Michael Pedersen <[email protected]> wrote:
> On Tue, Aug 17, 2010 at 6:55 PM, James Durham <[email protected]>wrote:
>
> > Well the error is that when I login on I get a 500 error,
> > but I successfully log in as the user.
> > (remember I am trying to deploy an unmodified
> > quickstarted app.)
>
> Unfortunately, this is not the error you are getting. This is the error that
> you are being shown in your browser. The error you are getting will be
> displayed, in full, in your Apache error log. Since you have not provided
> this error message, everything here will be conjecture.
>
> Based on this statement:
>
> > If run under paster serve, the behavior is right.
>
> I expect one of two things. Either your file system permissions are borked,
> or you are running with the default development.ini as your ini file. That
> default ini file has "debug = true" in it, which is not supported in
> production mode, and will produce those sorts of errors in your display.
> Considering this statement:
>
> >  config the app with a production.ini and run paster setup-app
>
> I rather strongly suspect that you are using the default database, which is
> a sqlite database named "devdata.db". This can (and does) work, but only if
> your permissions are set correctly on the file. Make sure that the Apache
> user has the capacity to read/write that file. I do not suspect that you
> have "debug = true" in your ini file based on what you've said, but that
> could be worth checking out.
>
> Now, if neither of those turns out to be the issue at hand, please tell us
> the exact error message (from your Apache's error log) so that we can help
> you diagnose the problem.
>
> Oh, one last detail: I have deployed TG2 using Apache and mod_wsgi on
> FreeBSD 8, Ubuntu 10.04, Ubuntu 8.04, and some version of CentOS
> (5.something, though I don't remember which version, since it's been a
> while). As I've said in my IRC: the only issues I've had with this were the
> usual "deploy to production" type issues of file permissions and package
> versions that were incompatible with the local Python installation. It
> works, and it's quite unfair to say that it doesn't before you've actually
> told us what the specific issue you're experiencing is. And no, you have not
> done that, since you have not shown us the problem. Log snippets and
> backtraces show the problem, saying that the browser shows a 500 error tells
> us nothing.
>
> --
> Michael J. Pedersen
> My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
>           Yahoo/pedermj2002, MSN/[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to