Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#7295 closed defect (invalid)

Custom Query crashes with Postgres setup

Reported by: hobbesc7@… Owned by: Matthew Good
Priority: normal Milestone:
Component: report system Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Every time I click on Custom Query I get the following server error (from my apache error log):

I'm using a postgres:// database so why is it looking for the MySQLd module?

[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] Traceback (most recent call last):, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] File "/usr/local/viewvc/bin/cgi/query.cgi", line 53, in ?, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] import query, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] File "/usr/local/viewvc-1.0.4/lib/query.py", line 26, in ?, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] import cvsdb, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] File "/usr/local/viewvc-1.0.4/lib/cvsdb.py", line 20, in ?, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] import dbi, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] File "/usr/local/viewvc-1.0.4/lib/dbi.py", line 18, in ?, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] import MySQLdb, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] ImportError: No module named MySQLdb, referer: http://trac.test.com/report/1 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] Premature end of script headers: query.cgi, referer: http://trac.test.com/report/1

Attachments (0)

Change History (3)

comment:1 by anonymous, 16 years ago

Sorry for the bad formatting, hope this fixes it:

[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] Traceback (most recent call last):, referer: http://trac.test.com/report/1                                                                                                                                          [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]   File "/usr/local/viewvc/bin/cgi/query.cgi", line 53, in ?, referer: http://trac.test.com/report/1                                                                                                                 [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]     import query, referer: http://trac.test.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]   File "/usr/local/viewvc-1.0.4/lib/query.py", line 26, in ?, referer: http://trac.test.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]     import cvsdb, referer: http://trac.test.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]   File "/usr/local/viewvc-1.0.4/lib/cvsdb.py", line 20, in ?, referer: http://trac.test.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]     import dbi, referer: http://trac.test.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]   File "/usr/local/viewvc-1.0.4/lib/dbi.py", line 18, in ?, referer: http://trac.test.com/report/1                                                                                                                  [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210]     import MySQLdb, referer: http://trac.test.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] ImportError: No module named MySQLdb, referer: http://trac.test.com/report/1                                                                                                                                        [Mon Jun 02 14:36:23 2008] [error] [client 192.168.1.210] Premature end of script headers: query.cgi, referer: http://trac.test.com/report/1    

comment:2 by anonymous, 16 years ago

One more time:

[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210]     import cvsdb, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210]   File "/usr/local/viewvc-1.0.4/lib/cvsdb.py", line 20, in ?, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210]     import dbi, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210]   File "/usr/local/viewvc-1.0.4/lib/dbi.py", line 18, in ?, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210]     import MySQLdb, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210] ImportError: No module named MySQLdb, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:31:56 2008] [error] [client 68.179.122.210] Premature end of script headers: query.cgi, referer: http://trac.gandinnovations.com/report/15?action=edit
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210] Traceback (most recent call last):, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]   File "/usr/local/viewvc/bin/cgi/query.cgi", line 53, in ?, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]     import query, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]   File "/usr/local/viewvc-1.0.4/lib/query.py", line 26, in ?, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]     import cvsdb, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]   File "/usr/local/viewvc-1.0.4/lib/cvsdb.py", line 20, in ?, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]     import dbi, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]   File "/usr/local/viewvc-1.0.4/lib/dbi.py", line 18, in ?, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210]     import MySQLdb, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210] ImportError: No module named MySQLdb, referer: http://trac.gandinnovations.com/report/1
[Mon Jun 02 14:36:23 2008] [error] [client 68.179.122.210] Premature end of script headers: query.cgi, referer: http://trac.gandinnovations.com/report/1

comment:3 by Jonas Borgström, 16 years ago

Resolution: invalid
Status: newclosed

This traceback is from viewvc and not Trac.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.