Veracity Q&A home login about faq

When I attempt to view all repositories on my server ("..." option), I get an internal server error popup:

alt text

The log file contains:

SourceGear Veracity
Version 1.5.1.10659 (e208c4df69) [32-bit]
server/files = "C:\Program Files\SourceGear\Veracity\server_files"
server/cache = <default>
server/session_storage = <default>
server/readonly = <default>

[2012/01/17 14:43:07.109 -0500] [PID:   5852, Thread:   4788] Error: onDispatch callback threw exception during request to /repos.json:
Error: Error 47 (sglib): vhash key could not be found: recid
    c:\work\s\sprawl\public\src\libraries\ut\sg_vhash.c:1237
    c:\work\s\sprawl\public\src\libraries\ut\sg_audit.c:73
    c:\work\s\sprawl\public\src\libraries\ut\sg_audit.c:94
    c:\work\s\sprawl\public\src\libraries\ut\sg_vc_branches.c:349
    c:\work\s\sprawl\public\src\libraries\ut\sg_vc_branches.c:440
    c:\work\s\sprawl\public\src\libraries\ut\sg_vc_branches.c:213
    c:\work\s\sprawl\public\src\libraries\ut\sg_jsglue.c:7828

What should I try?

asked Jan 17 '12 at 13:55

Jace%20Browning's gravatar image

Jace Browning
1.8k556982

edited Jan 17 '12 at 16:13

Ian%20Olsen's gravatar image

Ian Olsen ♦♦
4.3k124672

I'm staring at the code, but I see nothing obvious. We need to dig a bit deeper.

Could you run the following script using the 'vscript' program? You'll need to replace "WHATEVER" with the name of your repo:

repo = sg.open_repo("WHATEVER"); db = new zingdb(repo, sg.dagnum.USERS); recs = db.query('user', ['*']); repo.close(); print(sg.to_json__pretty_print(recs));

I'd like to see the output. It will contain the names of all the users in your repo, so for the sake of privacy, you may wish to email it to me instead of posting it here.

eric@sourcegear.com

(Jan 17 '12 at 14:59) Eric Sink ♦♦

@Eric Sink I have a dozen repos. I'm getting this error when I attempt to view the list of all repositories on the web interface. As far as I know, I can view each repo's page individually if I manually enter its URL. Should I just pick one repo and send you that vscript output?

(Jan 17 '12 at 16:46) Jace Browning

Hmm. Yeah, that's probably the way to go. Just pick a repo. Something weird is happening with the user list, and that user list should be the same across all your repos. We'll see.

(Jan 18 '12 at 09:37) Eric Sink ♦♦

After a bit of investigation, this problem was resolved.

The problem happened when attempting to run the vv server on a machine which had two repositories that were created with a pre-1.0 version of Veracity. It appears those repos were never actually being used. Anyway, the problem was eliminated by removing them.

And by the way, somewhat coincidentally, the code which was stumbling over those ancient repos does not exist in post-1.5 versions of Veracity currently under development.

link

answered Jan 19 '12 at 10:50

Eric%20Sink's gravatar image

Eric Sink ♦♦
6381814

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×31
×30
×6

Asked: Jan 17 '12 at 13:55

Seen: 1,148 times

Last updated: Jan 19 '12 at 10:50

powered by OSQA