[Re-sending without attachment.]
I have run the Python setup_node script again. (Typescript below.)
There is an error near the end of the typescript but this error doesn't
have anything to do with Slice or does it?
Typescript:
----------
Script started on Thu 17 May 2012 21:41:46 BST
/home/learningregistry/gitrepos/LearningRegistry/config/../LR/development.ini.orig
/home/learningregistry/gitrepos/LearningRegistry/config/../LR/development.ini
/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb
=========================
Node Configuration
Enter the node service endpoint URL [
http://www.example.com]:
http://alpha.mimas.ac.uk
Enter your couchDB server URL [
http://127.0.0.1:5984]:
Enter your node name [Node@
http://alpha.mimas.ac.uk]:
Enter your node description [Node@
http://alpha.mimas.ac.uk]:
Enter node admin indentity [
ad...@learningregistry.org]:
Enter the URLs of nodes that you wish to distribute to []:
Is the node a gateway node" (T/F) [F]:
Is the node "open" (T/F) [T]:
Enter distribute/replication resource_data destination URL
(this is the resource_data URL that another node couchdb will use to
replicate/distribute to this node)
[
http://alpha.mimas.ac.uk/resource_data]:
Does the node want to be the destination for replication (T/F) [T]:
=========================
Node Configuration
nodeUrl:
http://alpha.mimas.ac.uk
couchDBUrl:
http://127.0.0.1:5984
open_connect_source: True
open_connect_dest: True
gateway_node: False
node_description: Node@
http://alpha.mimas.ac.uk
connections: []
distributeResourceDataUrl:
http://alpha.mimas.ac.uk/resource_data
node_admin_identity:
ad...@learningregistry.org
node_name: Node@
http://alpha.mimas.ac.uk
Move existing
/home/learningregistry/gitrepos/LearningRegistry/config/../LR/development.ini
to
/home/learningregistry/gitrepos/LearningRegistry/config/../LR/development.ini.backup
Using existing DB 'resource_data' on '<Server '
http://127.0.0.1:5984'>'
Created DB 'node' on '<Server '
http://127.0.0.1:5984'>'
Created DB 'network' on '<Server '
http://127.0.0.1:5984'>'
Created DB 'community' on '<Server '
http://127.0.0.1:5984'>'
Enable Basic Obtain? [T]:
Enable Basic Obtain Flow Control? [F]: t
Maximum IDs to Return? [100]:
Maximum Docs to Return? [100]:
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "a02657ac28024ce087b03e74dd03cc90",
"service_type": "access",
"service_name": "Basic Obtain",
"service_version": "0.21",
"service_endpoint": "
http://alpha.mimas.ac.uk/obtain",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
},"service_data":{
"spec_kv_only": false,
"flow_control": true,
"id_limit": 100,
"doc_limit": 100
}
}
Added config document 'access:Basic Obtain service' to 'node
Configured Basic Obtain service:
{
"_id": "access:Basic Obtain service",
"_rev": "1-11f0380b87957a96c386f8f46c64de85",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {
"doc_limit": 100,
"flow_control": true,
"id_limit": 100,
"spec_kv_only": false
},
"service_endpoint": "
http://alpha.mimas.ac.uk/obtain",
"service_id": "a02657ac28024ce087b03e74dd03cc90",
"service_name": "Basic Obtain",
"service_type": "access",
"service_version": "0.21"
}
Enable OAI-PMH Harvest? [T]:
Enable OAI-PMH Flow Control? [F]: t
Maximum IDs to Return? [100]:
Maximum Docs to Return? [100]:
Added config document 'access:OAI-PMH service' to 'node
Configured OAI-PMH Harvest service:
{
"_id": "access:OAI-PMH service",
"_rev": "1-27d7dad0e9cf041e52e74d607a4f69ea",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {
"doc_limit": 100,
"flow_control": true,
"granularity": "YYYY-MM-DDThh:mm:ssZ",
"id_limit": 100,
"schemalocation":
"
http://www.learningregistry.org/documents/downloads/OAI-PMH-LR.xsd",
"version": "OAI-PMH 2.0"
},
"service_endpoint": "
http://alpha.mimas.ac.uk/OAI-PMH",
"service_id": "b4b49153056342368135ccae49bc130a",
"service_name": "OAI-PMH Harvest",
"service_type": "access",
"service_version": "0.10.0"
}
Enable Slice? [T]:
Enable Flow Control for Slice? [F]: t
Maximum IDs to Return? [100]:
Maximum Docs to Return? [100]:
Added config document 'access:slice' to 'node
Configured Slice service:
{
"_id": "access:slice",
"_rev": "1-507f07d3d48e324d399a6702462e062e",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {
"doc_limit": 100,
"flow_control": true,
"id_limit": 100
},
"service_endpoint": "
http://alpha.mimas.ac.uk/slice",
"service_id": "d661357b344b4a2db716cced38e2625b",
"service_name": "Slice",
"service_type": "access",
"service_version": "0.10.0"
}
Enable Basic Harvest? [T]:
Enable Basic Harvest Flow Control? [F]: t
Maximum IDs to Return? [100]:
Maximum Docs to Return? [100]:
Added config document 'access:Basic Harvest service' to 'node
Configured Basic Harvest service:
{
"_id": "access:Basic Harvest service",
"_rev": "1-d526cb18faca79786248b33b5a497c7b",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {
"doc_limit": 100,
"flow_control": true,
"granularity": "YYYY-MM-DDThh:mm:ssZ",
"id_limit": 100,
"metadataformats": [
{
"metadataFormat": {
"metadataPrefix": "LR_JSON_0.10.0"
}
}
],
"setSpec": null
},
"service_endpoint": "
http://alpha.mimas.ac.uk/harvest",
"service_id": "11c2186ed52b4f5ebb471fb0f00cfd1c",
"service_name": "Basic Harvest",
"service_type": "access",
"service_version": "0.10.0"
}
Enable SWORD Service? [T]:
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "c957e18c383c4d058fa708259338f748",
"service_type": "publish",
"service_name": "SWORD APP Publish V1.3",
"service_version": "0.23.0",
"service_endpoint": "
http://alpha.mimas.ac.uk/swordservice",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
},"service_data":{
}
}
Added config document 'publish:SWORD APP Publish V1.3 service' to 'node
Configured SWORD APP Publish service:
{
"_id": "publish:SWORD APP Publish V1.3 service",
"_rev": "1-c33229f1bdd4fbbf8288de4a9d59949e",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {},
"service_endpoint": "
http://alpha.mimas.ac.uk/swordservice",
"service_id": "c957e18c383c4d058fa708259338f748",
"service_name": "SWORD APP Publish V1.3",
"service_type": "publish",
"service_version": "0.23.0"
}
Enable Resource Data Distribution? [T]:
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "4a9e06ff11224e4bb602436ce0d584fb",
"service_type": "distribute",
"service_name": "Resource Data Distribution",
"service_version": "0.23.0",
"service_endpoint": "
http://alpha.mimas.ac.uk/distribute",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
}
}
Added config document 'distribute:Resource Data Distribution service' to
'node
Configured Resource Data Distribution service:
{
"_id": "distribute:Resource Data Distribution service",
"_rev": "1-c2f6d49dd1cb7124edc58a42dc671ccd",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_endpoint": "
http://alpha.mimas.ac.uk/distribute",
"service_id": "4a9e06ff11224e4bb602436ce0d584fb",
"service_name": "Resource Data Distribution",
"service_type": "distribute",
"service_version": "0.23.0"
}
Enable Network Node Description? [T]:
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "f661e849a40941beba83d725532c8e8b",
"service_type": "administrative",
"service_name": "Network Node Description",
"service_version": "0.23.0",
"service_endpoint": "
http://alpha.mimas.ac.uk/description",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
},"service_data":{}
}
Added config document 'administrative:Network Node Description service'
to 'node
Configured Network Node Description service:
{
"_id": "administrative:Network Node Description service",
"_rev": "1-ee7f3272802c1211d052eda8fed23852",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {},
"service_endpoint": "
http://alpha.mimas.ac.uk/description",
"service_id": "f661e849a40941beba83d725532c8e8b",
"service_name": "Network Node Description",
"service_type": "administrative",
"service_version": "0.23.0"
}
Enable Network Node Services? [T]:
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "c4608a466d2f417a92962a4ee2089b9f",
"service_type": "administrative",
"service_name": "Network Node Services",
"service_version": "0.23.0",
"service_endpoint": "
http://alpha.mimas.ac.uk/services",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
},"service_data":{}
}
Added config document 'administrative:Network Node Services service' to
'node
Configured Network Node Services service:
{
"_id": "administrative:Network Node Services service",
"_rev": "1-bec3c5fdd29003b83b4ce7bd03168c19",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {},
"service_endpoint": "
http://alpha.mimas.ac.uk/services",
"service_id": "c4608a466d2f417a92962a4ee2089b9f",
"service_name": "Network Node Services",
"service_type": "administrative",
"service_version": "0.23.0"
}
Enable Network Node Status? [T]:
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "7a5cd54cda05477987c4814e2d3a16fc",
"service_type": "administrative",
"service_name": "Network Node Status",
"service_version": "0.23.0",
"service_endpoint": "
http://alpha.mimas.ac.uk/status",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
},"service_data":{}
}
Added config document 'administrative:Network Node Status service' to 'node
Configured Network Node Status service:
{
"_id": "administrative:Network Node Status service",
"_rev": "1-0a54e2eba6153d16ce9c4e1a8e45fd9f",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {},
"service_endpoint": "
http://alpha.mimas.ac.uk/status",
"service_id": "7a5cd54cda05477987c4814e2d3a16fc",
"service_name": "Network Node Status",
"service_type": "administrative",
"service_version": "0.23.0"
}
Enable Resource Data Distribution Policy? [T]:
ERROR:Error occurred with Resource Distribution Network Policy plugin.
Traceback (most recent call last):
File "setup_node.py", line 97, in publishNodeServices
plugin.install(server, _NODE, nodeSetup)
File
"/home/learningregistry/gitrepos/LearningRegistry/config/services/Resource_Distribution_Network_Policy.py",
line 20, in install
AttributeError: '__ResourceDataDistributionPolicyServiceTemplate' object
has no attribute 'install'
Added config document 'administrative:Resource Distribution Network
Policy service' to 'node
Enable Basic Publish? [T]:
Maximum documents the node will accepts? [1000]: 200000
Enter message size limit in octet.
This should the maximum data size the the node will accept: 24000000
{
"doc_type": "service_description",
"doc_version": "0.20.0",
"doc_scope": "node",
"active": true,
"service_id": "3bd8d235db6f494eb78cb7834ca2601a",
"service_type": "publish",
"service_name": "Basic Publish",
"service_version": "0.23.0",
"service_endpoint": "
http://alpha.mimas.ac.uk/publish",
"service_auth": {
"service_authz": [
"none"
],
"service_key": false,
"service_https": false
},"service_data":{
"msg_size_limit": 24000000,
"doc_limit": 200000
}
}
Added config document 'publish:Basic Publish service' to 'node
Configured Basic Publish service:
{
"_id": "publish:Basic Publish service",
"_rev": "1-f66086bc89bee5a07f54e941dda106bc",
"active": true,
"doc_scope": "node",
"doc_type": "service_description",
"doc_version": "0.20.0",
"service_auth": {
"service_authz": [
"none"
],
"service_https": false,
"service_key": false
},
"service_data": {
"doc_limit": 200000,
"msg_size_limit": 24000000
},
"service_endpoint": "
http://alpha.mimas.ac.uk/publish",
"service_id": "3bd8d235db6f494eb78cb7834ca2601a",
"service_name": "Basic Publish",
"service_type": "publish",
"service_version": "0.23.0"
}
Added config document 'community_description' to 'community
Added config document 'network_description' to 'network
Added config document 'network_policy_description' to 'network
Added config document 'node_description' to 'node
============================
Pushing couch apps ...
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/oai-pmh-test-data'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/learningregistry-resources'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/oai-pmh-list-identifiers'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/learningregistry-slice'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/oai-pmh-get-records'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/oai-pmh-list-metadata-formats'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/oai-pmh-identify-timestamp'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/filter'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/learningregistry-by-date'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/filtered-replication'
to '
http://127.0.0.1:5984/resource_data'
WARNING:Deployed CouchApp from
'/home/learningregistry/gitrepos/LearningRegistry/config/../couchdb/resource_data/apps/learningregistry-resource-location'
to '
http://127.0.0.1:5984/resource_data'
All CouchApps Pushed
Script done on Thu 17 May 2012 21:43:36 BST
On 17/05/12 18:10, Grata, Walt wrote:
> <
syro...@manchester.ac.uk <mailto:
syro...@manchester.ac.uk>> wrote:
>
> > Hi there,
> >
> > Our node is still running the 0.23.5 code.
> >
> > We noticed that flow control for the Slice API doesn't seem to be
> working. Instead Slice just returns all matching records. Just
> wanted to let you know......Cheers, Nick
> >
> > --
> > N Syrotiuk | Mimas | University of Manchester | Manchester
> >
> > --
> > ---
> > This message is posted from the Google Groups "Learning Registry
> Developers List" group. To post:
learnin...@googlegroups.com
> --
> ---
> This message is posted from the Google Groups "Learning Registry
> Developers List" group.
> To post:
learnin...@googlegroups.com