I'm just installing (another) node and working through the current Linux
Installation Guide.
I can't tag or checkout the LR code:
learningregistry@alpha:~/gitrepos$ git clone
https://github.com/LearningRegistry/LearningRegistry.git
Initialized empty Git repository in
/home/learningregistry/gitrepos/LearningRegistry/.git/
remote: Counting objects: 6986, done.
remote: Compressing objects: 100% (1977/1977), done.
remote: Total 6986 (delta 4897), reused 6835 (delta 4751)
Receiving objects: 100% (6986/6986), 31.53 MiB | 490 KiB/s, done.
Resolving deltas: 100% (4897/4897), done.
learningregistry@alpha:~/gitrepos$
learningregistry@alpha:~/gitrepos$ git tag -l
fatal: Not a git repository (or any of the parent directories): .git
learningregistry@alpha:~/gitrepos$
learningregistry@alpha:~/gitrepos$
learningregistry@alpha:~/gitrepos$ git checkout 0.23.4
fatal: Not a git repository (or any of the parent directories): .git
learningregistry@alpha:~/gitrepos$
----------------------------------------
I suspect it's something very simple.......
Cheers, Nick
--
N Syrotiuk | Mimas | University of Manchester | Manchester
I just spoke with Lou who has been working on the installation guides
and it sounds like Lou sent you guidance to change directories into
the LearningRegistry directory after issuing the git clone command.
(Hopefully we'll figure out why Lou couldn't respond back to the whole
group.)
I'm not a Git expert, so I hope others will chime in, but I think I
successfully checked out the code using the alternative sequence below
a couple days ago:
cd ~/gitrepos
git clone -b 0.23.4 https://github.com/LearningRegistry/LearningRegistry.git
So it sounds like there are two approaches that should work to check
out the code:
1. Slight modification to what you read in the guide:
cd ~/gitrepos
git clone https://github.com/LearningRegistry/LearningRegistry.git
[add] --> cd LearningRegistry
git tag -l
git checkout [latest tag version]
2. The approach I think I successfully used:
cd ~/gitrepos
git clone -b 0.23.4 https://github.com/LearningRegistry/LearningRegistry.git
Hopefully, we'll get an authoritative answer from the experts soon and
get you up and running one way or another.
Best Regards,
Damon
I followed the first approach. I knew it was something simple! Thanks
very much..........Nick
commit f05f7bddc3d47456dc6ac414be86b29d49c6d653
Merge: 6446ab1 1f5b919
Author: John Poyau <john....@lmco.com>
Date: Thu Dec 8 15:13:42 2011 -0800
I seem to be having the same problem as Joe Hobson. I have two nodes
running on Ubuntu; one uses version 0.23.3 (I think!) of the LR code and
the other uses version 0.23.4.
Here's the problem as I see it:
$ curl http://alpha.mimas.ac.uk/status
{"node_name": "JLeRN alpha node", "node_id":
"989e14689205447aa0483e72620fccdd", "active": true, "timestamp":
"2012-01-22T00:04:34.940108Z", "start_time":
"2012-01-21T15:10:27.211390Z", "install_time":
"2012-01-21T15:10:27.211390Z", "earliestDatestamp": null, "doc_count": 0}$
$
$
$ curl -X POST -H "Content-Type:application/json"
"http://alpha.mimas.ac.uk/publish" -d @test_data.json
{"document_results": [{"doc_ID": "b5c5449a8783453c8f041640c92d07c9",
"OK": true}], "OK": true}
$
[Time passes. Overnight actually. Joe mentioned the need to wait one
hour or to publish 100 docs. Just wondering where this is documented as
I seem to have missed it?]
$
$ curl http://alpha.mimas.ac.uk/obtain
{"documents":[]}
$
$
$ curl http://alpha.mimas.ac.uk/slice?from=2012-01-22
{"documents":[
], "resultCount":0}
$
$
$ curl http://alpha.mimas.ac.uk/status
{"node_name": "JLeRN alpha node", "node_id":
"989e14689205447aa0483e72620fccdd", "active": true, "timestamp":
"2012-01-22T00:07:38.848501Z", "start_time":
"2012-01-21T15:10:27.211390Z", "install_time":
"2012-01-21T15:10:27.211390Z", "earliestDatestamp": null, "doc_count": 0}$
$
--------------------------------------
If I were to log in to the server, open firefox, browse to Couchdb, and
run some views on "resource_data", the document I published would be there.
If I then were to execute this command again:
$ curl http://alpha.mimas.ac.uk/status
the doc_count would increase to 1, and obtain and slice would retrieve
the doc successfully. [I tested this on the other node.]
I should add that I'm using the default development.ini config file when
I start uwsgi. This file looks completely different from the config
file here: https://gist.github.com/1584446. Do you think I need to use
a different config file?
Cheers, Nick
--
Are you still experiencing the problem? It sounds like John's fix for
the view update handler did the trick for Joe. John's fix is
currently in master. We plan to release a new version that will
include this soon, but in the meantime we recommend pulling from
master, which should give you an easy upgrade path.
It's a two step process to upgrade your node to master:
1. Pull the most recent tag from git
cd <your path to git repository>/LearningRegistry
git checkout master
git pull
2. Run the setup node python script
python setup_node.py -d
It is important to re-run the setup node python script as
configuration changes take place during updates. We hope to have an
update script soon.
Best Regards,
Damon
Yes, that was definitely the fix. I think the indexes are getting
updated (instantly!) and contain the correct data now. :)
Thanks to everyone who attended the developer call on Thursday, and
thanks especially for your patience!
I greatly look forward to meeting Walt in Nottingham at the Cetis
conference next month.
Cheers, Nick