Pressed ^C during hg push; can't push to IonMonkey repo; IonMonkey TBPL won't load.

RESOLVED FIXED

Status

--
critical
RESOLVED FIXED
7 years ago
5 years ago

People

(Reporter: sstangl, Assigned: mburns)

Tracking

Details

(Reporter)

Description

7 years ago
Repo: http://hg.mozilla.org/projects/ionmonkey/
TBPL: https://tbpl.mozilla.org/?tree=Ionmonkey

I pressed ^C to cancel an hg push which included an erroneous second commit. The log given on the hg.mozilla.org site is correct, but any attempts to push yield the error at the bottom. Additionally, TBPL refuses to load.

>running ssh hg.mozilla.org "hg -R projects/ionmonkey/ serve --stdio"
>searching for changes
>1 changesets found
>remote: adding changesets
>remote: adding manifests
>remote: adding file changes
>remote: added 1 changesets with 2 changes to 2 files
>remote: Trying to insert into pushlog.
>remote: Please do not interrupt...
>remote: error: pretxnchangegroup.z_loghistory hook raised an exception: column >rev is not unique
>remote: transaction abort!
>remote: rollback completed
>remote: ** unknown exception encountered, please report by visiting
>remote: **  http://mercurial.selenic.com/wiki/BugTracker
>remote: ** Python 2.4.3 (#1, Apr 14 2011, 20:42:01) [GCC 4.1.2 20080704 (Red >Hat 4.1.2-50)]
>remote: ** Mercurial Distributed SCM (version 2.0.2)
>remote: ** Extensions loaded: hgwebjson, pushlog-feed, buglink
>remote: Traceback (most recent call last):
>remote:   File "/usr/bin/hg", line 38, in ?
>remote:     mercurial.dispatch.run()
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 27, in run
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 64, in dispatch
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 87, in _runcatch
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 684, in _dispatch
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 466, in runcommand
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 738, in _runcommand
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 692, in checkargs
>remote:   File "usr/lib/python2.4/site-packages/mercurial/dispatch.py", line 681, in <lambda>
>remote:   File "usr/lib/python2.4/site-packages/mercurial/util.py", line 458, in check
>remote:   File "/usr/lib/python2.4/commands.py", line 4954, in serve
>remote:     
>remote:   File "usr/lib/python2.4/site-packages/mercurial/sshserver.py", line 93, in serve_forever
>remote:   File "usr/lib/python2.4/site-packages/mercurial/sshserver.py", line 111, in serve_one
>remote:   File "usr/lib/python2.4/site-packages/mercurial/wireproto.py", line 344, in dispatch
>remote:   File "usr/lib/python2.4/site-packages/mercurial/wireproto.py", line 578, in unbundle
>remote:   File "usr/lib/python2.4/site-packages/mercurial/localrepo.py", line 1944, in addchangegroup
>remote:   File "usr/lib/python2.4/site-packages/mercurial/localrepo.py", line 239, in hook
>remote:   File "/usr/lib/python2.4/site-packages/mercurial/hook.py", line 165, in hook
>remote:     r = _pythonhook(ui, repo, name, hname, hookfn, args, throw) or r
>remote:   File "/usr/lib/python2.4/site-packages/mercurial/hook.py", line 75, in _pythonhook
>remote:     r = obj(ui=ui, repo=repo, hooktype=name, **args)
>remote:   File "/usr/lib/python2.4/site-packages/mozhghooks/pushlog.py", line 79, in log
>remote:     (pushid, ctx.rev(), hex(ctx.node())))
>remote: pysqlite2.dbapi2.IntegrityError: column rev is not unique
>abort: unexpected response: empty string
RelOps/Server Ops, please fix up the pushlog db by removing records for revisions not in the repo (http://hg.mozilla.org/projects/ionmonkey/).
(Assignee)

Updated

7 years ago
Assignee: server-ops-releng → mburns
(Assignee)

Comment 2

7 years ago
[root@dm-svn02 ionmonkey]# sqlite3 .hg/pushlog2.db 
SQLite version 3.3.6
Enter ".help" for instructions
sqlite> select * from pushlog order by id desc limit 10;
568|sean.stangl@gmail.com|1328579567
567|sean.stangl@gmail.com|1328577397
566|danderson@mozilla.com|1328573814
565|danderson@mozilla.com|1328573108
564|danderson@mozilla.com|1328567002
563|jandemooij@gmail.com|1328562462
562|jandemooij@gmail.com|1328560566
561|cleary@mozilla.com|1328494982
560|cleary@mozilla.com|1328493879
559|danderson@mozilla.com|1328408516
sqlite> select * from changesets order by pushid desc limit 10;
568|87142|7ec66435db727db9e4059b8fa26239a4753c0faa
568|87141|10dca90b6d39608ff14b9f2577b8993072a71d8b
567|87140|f46cfb199e77f2cb76b43a145ddc40d895e0dd63
566|87139|142b4500e83226662b41cd4f660a6cb7a92590b0
565|87138|9a96f395af5d3dbc8bdc63894a8bbd129b003b6d
565|87137|d2d82d1ede00a96d77b0d61cdc646b01ea3da567
564|87136|3cfe28eaa62b7050d47e732ab2ba3151a1b0bc4c
564|87135|0ba9ead83ac754d4ee6614579b1fc44836e2da65
564|87134|49b4dee8bbec57c995607c3acc9338db86bda5a7
564|87133|e940401953f80cd43bc418b7d6a89bdc8d7004b7

sqlite> delete from pushlog where id>567;
sqlite> delete from changesets where pushid>567;
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=724876 on fixing the pushlog hook.
Component: Server Operations: RelEng → RelOps
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.