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 (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

What should I try?

asked Jan 17 '12 at 13:55

Jace%20Browning's gravatar image

Jace Browning

edited Jan 17 '12 at 16:13

Ian%20Olsen's gravatar image

Ian Olsen ♦♦

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.

(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.


answered Jan 19 '12 at 10:50

Eric%20Sink's gravatar image

Eric Sink ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text]( "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



Asked: Jan 17 '12 at 13:55

Seen: 1,195 times

Last updated: Jan 19 '12 at 10:50

powered by OSQA