Skip to content

Instantly share code, notes, and snippets.

View mark-dce's full-sized avatar

Mark Bussey mark-dce

  • Data Curation Experts
  • Minneapolis, MN
View GitHub Profile
@mark-dce
mark-dce / Gemfile.lock
Last active March 1, 2017 03:51
Fedora 500 exception - catalina log + rails stack dump
GIT
remote: https://github.com/curationexperts/oargun.git
revision: 8d4b556107ca4c042380acb918cffd5b21baaeac
ref: 8d4b556
specs:
oargun (0.0.1)
active-fedora (~> 9.0)
active-triples (>= 0.7.5)
activesupport (~> 4.0)
linked_vocabs (~> 0.2)
> fs = FileSet.new
Same predicate (http://purl.org/dc/elements/1.1/creator) used for properties file_author and creator
Same predicate (http://purl.org/dc/elements/1.1/language) used for properties file_language and language
=> #<FileSet id: nil, head: [], tail: [], filename: nil, format_label: [], file_size: [], well_formed: [], valid: [], date_created: [], last_modified: [], fits_version: [], exif_version: [], original_checksum: [], mime_type: nil, byte_order: nil, compression: nil, height: [], width: [], color_space: nil, profile_name: [], profile_version: [], orientation: nil, color_map: [], image_producer: [], capture_device: [], scanning_software: [], gps_timestamp: [], latitude: [], longitude: [], bit_depth: [], channels: [], data_format: [], frame_rate: [], duration: [], sample_rate: [], file_title: [], file_author: [], page_count: [], file_language: [], word_count: [], character_count: [], line_count: [], character_set: [], markup_basis: [], markup_language: [], paragraph_count: [], table_count: [],
@mark-dce
mark-dce / gist:79f9962462ed76376cd780de27fca38c
Created April 21, 2016 15:46
Showing hydra derivatives truncation - on path '/Users/mark/...' tires to create directory '/mark'
2.3.0 :032 > input_file_name = '/Users/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria/sample-audio.wav'
=> "/Users/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria/sample-audio.wav"
2.3.0 :033 > ouput_url = 'file://Users/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria/sample-audio.mp3'
=> "file://Users/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria/sample-audio.mp3"
2.3.0 :034 > Hydra::Derivatives::AudioDerivatives.create(input_file_name, outputs: [{ label: 'mp3', format: 'mp3', url: ouput_url }])
file://Users/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria/sample-audio.mp3
file://Users/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria/sample-audio.mp3
/mark/Documents/workspace/_no_backup/RubymineProjects/alexandria
Errno::EACCES: Permission denied @ dir_s_mkdir - /mark
from /Users/mark/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir'
@mark-dce
mark-dce / gist:4d55e4a528e7a76accef1849320122d7
Created April 13, 2016 21:17
Wrappers running on my system
MARKs-MB:heliotrope mark$ ps au | grep jetty
mark 67833 0.7 1.4 4506148 237548 s011 S+ 4:15PM 0:08.56 /usr/bin/java -server -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:/var/folders/12/m76brh4n2cqc8mxmz99sw6w80000gn/T/solr-5.4.1/server/logs/solr_gc.log -Djetty.port=8985 -DSTOP.PORT=7985 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/var/folders/12/m76brh4n2cqc8mxmz99sw6w80000gn/T/solr-5.4.1/server -Dsolr.solr.home=/var/folders/12/m76brh4n2cqc8mxmz99sw6w800
@mark-dce
mark-dce / Steps taken
Created March 16, 2016 15:34
Error displaying sections in heliotrope
Created a new monograph
Refreshed monograph
Created new section associated with monograph
Tried to view mongraph
@mark-dce
mark-dce / production.log
Created March 16, 2016 15:14
heliotrope production.log error loading .mcsz file
I, [2016-03-16T11:12:04.795241 #24932] INFO -- : Started POST "/concern/container/h702q636h/file_sets" for 96.93.247.174 at 2016-03-16 11:12:04 -0400
I, [2016-03-16T11:12:04.796712 #24932] INFO -- : Processing by CurationConcerns::FileSetsController#create as JSON
I, [2016-03-16T11:12:04.796807 #24932] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"htowGDL1RyKONrYonxMXW0nK5jXwRpXY/H2qK4HQ9yib9u0+n99820kUyCCJ5vnX+XC7h4iKjfkw+y6aYp9tpg==", "total_upload_size"=>"34353", "relative_path"=>"", "upload_set_id"=>"1831cj92z", "file_coming_from"=>"local", "file_set"=>{"files"=>[#<ActionDispatch::Http::UploadedFile:0x007fe8cf01f6e8 @tempfile=#<Tempfile:/tmp/RackMultipart20160316-24932-1ougef6.mscz>, @original_filename="Ojos Brujos.mscz", @content_type="application/x-musescore", @headers="Content-Disposition: form-data; name=\"file_set[files][]\"; filename=\"Ojos Brujos.mscz\"\r\nContent-Type: application/x-musescore\r\n">]}, "parent_id"=>"h702q636h"}
D, [2016-03-16T11:12:04.805452 #24932] DEBUG -- : U
@mark-dce
mark-dce / gist:3c0c461bc5b1af59dad1
Created January 19, 2016 20:46
rake spec - output from master branch on Mark's laptop
342 examples, 18 failures
Failed examples:
rspec ./spec/controllers/catalog_controller_spec.rb:42 # CatalogController show page view a restricted file logged in as an admin user is successful
rspec ./spec/controllers/catalog_controller_spec.rb:51 # CatalogController show page view a restricted file logged in as a UCSB user access is denied
rspec ./spec/controllers/collections_controller_spec.rb:42 # CollectionsController#show shows nothing
rspec ./spec/controllers/downloads_controller_spec.rb:42 # DownloadsController#show a metadata admin user downloads a restricted object is successful
rspec ./spec/controllers/downloads_controller_spec.rb:58 # DownloadsController#show not logged in downloads a restricted object denies access
rspec ./spec/features/collection_search_spec.rb:20 # Collection search page with collections Search for a collection
Importing record 3 of 6 : ksl:spcboh00041
WARNING: Rights assertion for ksl:spcboh00041 was not in the expected list.
Copying datastream: KSL-COPYRIGHT
Handling datastream Untitled.tif:
ERROR: Failed to import object: ksl:spcboh00041
See logger for details
/Users/mark/.rvm/gems/ruby-2.2.3@absolute/gems/rubydora-1.8.1/lib/rubydora/rest_api_client.rb:28:in `block (2 levels) in <module:RestApiClient>'
/Users/mark/.rvm/gems/ruby-2.2.3@absolute/gems/activesupport-4.1.11/lib/active_support/rescuable.rb:114:in `instance_exec'
/Users/mark/.rvm/gems/ruby-2.2.3@absolute/gems/activesupport-4.1.11/lib/active_support/rescuable.rb:114:in `block in handler_for_rescue'
/Users/mark/.rvm/gems/ruby-2.2.3@absolute/gems/activesupport-4.1.11/lib/active_support/rescuable.rb:80:in `call'
@mark-dce
mark-dce / production.log
Created December 21, 2015 16:50
WUSTL Server Production Log excerpt - DELETE "/concern/texts/5m60qs44g"
I, [2015-12-21T16:41:24.194790 #24437] INFO -- : Started DELETE "/concern/texts/5m60qs44g" for 67.220.20.131 at 2015-12-21 16:41:24 +0000
I, [2015-12-21T16:41:24.196092 #24437] INFO -- : Processing by CurationConcerns::TextsController#destroy as HTML
I, [2015-12-21T16:41:24.196144 #24437] INFO -- : Parameters: {"authenticity_token"=>"LjapcqwDLaq6m9NZ8z9UReFlxlr7cmge2nj3ZNLmbws8NOWOKxQZ15G4AmzC3zXWol+nnLPhNGJitVYWUXClqA==", "id"=>"5m60qs44g"}
D, [2015-12-21T16:41:24.492438 #24437] DEBUG -- : Load LDP (287.1ms) http://127.0.0.1:8080/fedora/rest/prod/5m/60/qs/44/5m60qs44g Service: 17794540
D, [2015-12-21T16:41:24.694338 #24437] DEBUG -- : User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
D, [2015-12-21T16:41:24.695180 #24437] DEBUG -- : Usergroups are ["public", "admin", "registered"]
D, [2015-12-21T16:41:24.734192 #24437] DEBUG -- : Load LDP (24.4ms) http://127.0.0.1:8080/fedora/rest/prod/7h/14/9q/43/7h149q43m Service: 17794540
D
@mark-dce
mark-dce / gist:6ba250882fd6cdc8d5c6
Created October 22, 2015 14:57
Start of import after Trey's updates - 2015-10-22
14:49:11 Parsing lew1864.0001.001.xml
14:49:12 attaching file: lew1864.0001.001.xml
14:49:13 attaching file: letz_01_0001_unm.tif
14:49:15 attaching file: letz_01_0002_ttl.tif
14:49:18 attaching file: letz_01_0003_bln.tif
14:49:24 attaching file: letz_01_0004_003.tif
14:49:30 attaching file: letz_01_0005_004.tif
14:49:35 attaching file: letz_01_0006_005.tif
14:49:41 attaching file: letz_01_0007_006.tif
14:49:47 attaching file: letz_01_0008_007.tif