Skip to content

Instantly share code, notes, and snippets.

@yulgit1
yulgit1 / gist:9652345
Created March 19, 2014 22:00
can't add access roles to node in filesystem connector
curl -X POST -H "Content-Type: application/json" --data-binary "@reader_
role.txt" "http://testadmin:password@localhost:8080/rest/auth/fcr:accessroles"
reader_role.txt
{"testuser":["reader"]}
DEBUG 17:44:49.063 (SessionFactory) Returning an authenticated session in the default workspace
DEBUG 17:44:49.063 (ServletContainerAuthenticationProvider) in authenticate: org.modeshape.jcr.api.ServletCredentials@62d83ce1; FAD: org.fcrepo.auth.roles.basic.BasicRolesAuthorizationDelegate@a5a0ef3
DEBUG 17:44:49.095 (AccessRoles) POST Received request param: (POST /rest/auth/fcr:accessroles)@1896334181 org.eclipse.jetty.server.Request@7107c365
DEBUG 17:44:49.095 (FedoraFileSystemConnector) Getting Federated document: /
@yulgit1
yulgit1 / gist:da2d28450f5585ccf486
Created June 3, 2014 18:52
tomcat 7 fcrepo4 deployment
Jun 03, 2014 2:39:48 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
Jun 03, 2014 2:39:48 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jun 03, 2014 2:39:49 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
Jun 03, 2014 2:39:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Jun 03, 2014 2:39:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
INFO: Pausing ProtocolHandler ["http-apr-8080"]
Jun 04, 2014 3:06:34 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-apr-8009"]
Jun 04, 2014 3:06:34 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 04, 2014 3:06:34 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/fcrepo-webapp-4.0.0-alpha-6-SNAPSHOT] appears to have started a thread named [modeshape-stats-2-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Jun 04, 2014 3:06:34 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/fcrepo-webapp-4.0.0-alpha-6-SNAPSHOT] appears to have started a thread named [TxCleanupService,FedoraRepository,local] but has failed to stop it. This is very likely to create a memory leak.
Jun 04, 2014 3:06:34 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] fcrepo-jms-indexer-pluggable
[INFO] fcrepo-jms-indexer-core
[INFO] fcrepo-jms-indexer-webapp
[INFO] fcrepo-jms-indexer-elasticsearch
[INFO]
[INFO] ------------------------------------------------------------------------
@yulgit1
yulgit1 / gist:8f88771f9fa800b48010
Created June 6, 2014 20:44
indexer solr logs (but nothing in the index)
DEBUG 15:25:26.970 (IndexerGroup) Received message: ID:systems28a-57239-1402080605875-3:1:1:1:202
DEBUG 15:25:26.971 (IndexerGroup) Discovered id: /cityOfHeavenlyFire in message.
DEBUG 15:25:26.971 (IndexerGroup) Discovered event type: http://fedora.info/definitions/v4/repository#NODE_ADDED,http://fedora.info/definitions/v4/repository#PROPERTY_ADDED in message.
DEBUG 15:25:26.971 (IndexerGroup) Discovered baseURL: http://localhost:8080/rest in message.
DEBUG 15:25:26.971 (IndexerGroup) Discovered properties: dc:description,jcr:lastModifiedBy,jcr:created,dc:subject,jcr:createdBy,dc:creator,jcr:uuid,rdf:type,indexing:hasIndexingTransformation,jcr:mixinTypes,dc:title,jcr:lastModified,jcr:primaryType in message.
DEBUG 15:25:26.971 (IndexerGroup) It is false that this is a removal operation.
DEBUG 15:25:26.971 (RdfRetriever) Retrieving RDF content from: http://localhost:8080/rest/cityOfHeavenlyFire...
DEBUG 15:25:26.986 (IndexerGroup) Resource: http://localhost:8080/rest/cityOfHeavenlyFire retrieved with indexable
NoMethodError in Spotlight::Resources::CsvController#template
undefined method `csvs' for #<Spotlight::Exhibit:0x007f90a4152908>
Rails.root: /hydra_store/ermadmix/spotlight/spotlight
Application Trace | Framework Trace | Full Trace
activemodel (4.1.1) lib/active_model/attribute_methods.rb:435:in `method_missing'
activerecord (4.1.1) lib/active_record/attribute_methods.rb:206:in `method_missing'
cancancan (1.8.2) lib/cancan/controller_resource.rb:184:in `resource_base'
cancancan (1.8.2) lib/cancan/controller_resource.rb:77:in `load_collection?'
#!/bin/bash
#note this program requires the setting of three variables:
# 1) the original akubra directory
# 2) the destination akubra directory
# 3) and awkcmd representing the hash structure
time_start=$(date)
orig_dir='/usr/local/fed362/data/objectStore'
@yulgit1
yulgit1 / gist:f196f55d67cee766030d
Created June 27, 2014 21:09
sufia Gemfile.lock 1
GIT
remote: git://github.com/harai/kaminari.git
revision: 384fcb5d11b66a0cc8fad030104bf80f82616355
branch: route_prefix_prototype
specs:
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
GEM
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
@yulgit1
yulgit1 / gist:e75db8375adebd8954d1
Created September 3, 2014 17:33
semantic handle creation with ruby Savon library
the gem:
gem "savon", "~> 2.0"
the basic config:
handles_enabled: false
handle_wsdl: http://linktest.odai.yale.edu/ypls-ws/PersistentLinking?wsdl
handle_prefix: 10079.1/digcoll
handle_group: 10079.1/DIGCOLL
handle_user: 10079.1/DIGCOLL
handle_credential: *