Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

#10288 closed defect (duplicate)

TypeError: int() argument must be a string or a number

Reported by: josa01 Owned by:
Priority: normal Milestone:
Component: general Version: 0.12
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /changeset/11224, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'new': u'11224'}

User agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

System Information

Trac 0.12
Genshi 0.6
MySQL server: "5.0.77", client: "5.0.77", thread-safe: 1
MySQLdb 1.2.1
Python 2.4.3 (#1, May 5 2011, 16:39:09)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
setuptools 0.6c5
Subversion 1.6.11 (r934486)
jQuery 1.4.2

Enabled Plugins

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 513, in _dispatch_request
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 235, in dispatch
  File "build/bdist.linux-i686/egg/trac/versioncontrol/web_ui/changeset.py", line 352, in process_request
  File "build/bdist.linux-i686/egg/trac/versioncontrol/web_ui/changeset.py", line 445, in _render_html
  File "build/bdist.linux-i686/egg/trac/versioncontrol/cache.py", line 342, in previous_rev
  File "build/bdist.linux-i686/egg/trac/versioncontrol/cache.py", line 378, in _next_prev_rev
TypeError: int() argument must be a string or a number

Attachments (0)

Change History (3)

comment:1 by Remy Blank, 13 years ago

Keywords: needinfo added

I'm pretty sure you have a NULL revision in the node_change table. Can you please try the following query on your database:

SELECT rev FROM node_change WHERE rev IS NULL;

Normally, a "trac-admin $ENV repository resync" should fix the issue.

comment:2 by Christian Boos, 13 years ago

Or it's due to the too old MySqlDb package (see #9983).

comment:3 by Remy Blank, 13 years ago

Resolution: duplicate
Status: newclosed

Oh, right, for some reason I overlooked that ticket. Closing as a duplicate, then.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.