Cheers
--
Brian Schlining
> --
> You received this message because you are subscribed to the Google Groups "mbari-vars" group.
> To post to this group, send email to mbari...@googlegroups.com (mailto:mbari...@googlegroups.com).
> To unsubscribe from this group, send email to mbari-vars+...@googlegroups.com (mailto:mbari-vars+...@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/mbari-vars?hl=en.
If you're a little more patient, You can wait for a proper fix from me. I need to change the way property files are resolved so that they aren't looked up by locale.
--
Brian Schlining
Thanks
--
Brian Schlining
On Friday, June 3, 2011 at 8:23 AM, Brian Schlining wrote:
When you first run VARS, you need to run the 'bin/knowledgebase' app first. It should prompt you to create a root node if none is found. I'm surprised it's not prompting you as I just tested it on postgresql not very long ago. Anyway, you can also run the "root node check" from the command line as:
bin/gsh -e "def t = new vars.ToolBox();def tb = t.injector.getInstance(vars.knowledgebase.ui.ToolBelt.class);new vars.knowledgebase.ui.actions.PopulateDatabaseAction(tb).doAction()"
Alternatively, the SQL for inserting the root node should be the following
INSERT INTO Concept(id) VALUES (25)
INSERT INTO ConceptName(id, ConceptName, ConceptID_FK, NameType) VALUES (25, 'object', 25, 'primary')
NOTE: I haven't run a test on this, so if it complains about missing values or null values not allowed just modifiy the insert to put in the need parameters. Also, I'm using 25 as a value for the primary key but the value isn't important as long as it's less than the values in the rows for Concept and ConceptName in the UniqueID table.
Cheers
-- B
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Brian Schlining
MBARI
Software Engineer
br...@mbari.org (mailto:br...@mbari.org)
(831)775-1855
http://www.mbari.org/staff/brian
> I run "bin/annotation" and get this exception (added some context):
>
> I tried "bin/knowledgebase" and I get this:
>
> Do I need to initialize the knowledgebase somehow?
>
> Thanks,
On Monday, June 6, 2011 at 8:40 PM, Ambrose Bonnaire-Sergeant wrote:
> Also
>
> I tried upgrading to Postgres 9.0, as you said you tried VARS with that version.
>
> Funny, that SQL file didn't import properly on 9.0 either
> http://code.google.com/p/vars-redux/source/browse/vars-jpa/src/main/sql/vars-insertInitialUniqueID.sql
WHOOPS! I changed the SQL on the link above to use ';' instead of 'GO'.
>
> Is that because it's specific to Aquafold?
Yes, Aqua Data Studio seems to be smart about converting the various flavors of SQL to something that a particular database likes.
--
You received this message because you are subscribed to the Google Groups "mbari-vars" group.
To post to this group, send email to mbari...@googlegroups.com.
To unsubscribe from this group, send email to mbari-vars+...@googlegroups.com.
The gsh call didn't work but the raw SQL did. I've successfully set up an administrator account, and I think we're up and running.