[Archivesspace_Users_Group] 2.5 install issue

Neal, Rick rneal at richmond.edu
Tue Nov 13 13:49:57 EST 2018


Thanks to everyone.  It is up and working.  The oai/sample is working, at least on campus.

We have 2 repositories.  One for our Special Collections and one for the Law School.

https://archives.richmond.edu/repositories/4
https://archives.richmond.edu/repositories/5

I have never worked with setting up oai before and I am wondering how the ‘scraper’ determines which repository to scrape?  Do I need to set up 2 sets (1 for each repository)?

Would setting up 2 sets look something like this?:

AppConfig[:oai_sets] = {
    'repository_set' => {
     :repo_codes => ['4'],
     :description => "Special Collections Repository",
   },
   'repository_set' => {
     :repo_codes => ['5'],
     :description => "Law School Repository",
   },
}

Thanks!

Rick Neal

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# OAI configuration options
AppConfig[:oai_repository_name] = 'ArchivesSpace OAI Provider'
AppConfig[:oai_proxy_url] = 'http://aspace.richmond.edu:8082/'
AppConfig[:oai_record_prefix] = 'oai:archivesspace'
AppConfig[:oai_admin_email] = 'admin at example.com'
# In addition to the sets based on level of description, you can define OAI Sets
# based on repository codes and/or sponsors as follows
#
# AppConfig[:oai_sets] = {
#   'repository_set' => {
#     :repo_codes => ['hello626'],
#     :description => "A set of one or more repositories",
#   },
#
#   'sponsor_set' => {
#     :sponsors => ['The_Sponsor'],
#     :description => "A set of one or more sponsors",
#   },
# }
AppConfig[:oai_ead_options] = {}
# alternate example:  AppConfig[:oai_ead_options] = { :include_daos => true, :use_numbered_c_tags => true }

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rick Neal
Library Applications and Systems Administrator
Boatwright Memorial Library
University of Richmond, VA 23173

rneal at richmond.edu

From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Majewski, Steven Dennis (sdm7g)
Sent: Monday, November 12, 2018 3:01 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] 2.5 install issue


Oops. My error. 8082 is OAI port, not PUI.
Not sure how far back OAI support was initially added.


On Nov 12, 2018, at 2:02 PM, Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu<mailto:sdm7g at virginia.edu>> wrote:


The default ports haven’t changed.
Blake transposed digits in his email to 8028, but the error message says 8082, which is the default port for public webapp.
Default port numbers are in common/config/config-defaults.rb:

https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L22-L48


AppConfig[:backend_url] = "http://localhost:8089<http://localhost:8089/>"
AppConfig[:frontend_url] = "http://localhost:8080<http://localhost:8080/>"
AppConfig[:public_url] = "http://localhost:8081<http://localhost:8081/>"
AppConfig[:oai_url] = "http://localhost:8082<http://localhost:8082/>"
AppConfig[:solr_url] = "http://localhost:8090<http://localhost:8090/>"
AppConfig[:indexer_url] = "http://localhost:8091<http://localhost:8091/>"
AppConfig[:docs_url] = "http://localhost:8888<http://localhost:8888/>"




On Nov 12, 2018, at 1:53 PM, Neal, Rick <rneal at richmond.edu<mailto:rneal at richmond.edu>> wrote:

Blake,

What port did it run on before 2.5?

Rick

Sent from my iPhone

On Nov 12, 2018, at 11:39 AM, Blake Carver <blake.carver at lyrasis.org<mailto:blake.carver at lyrasis.org>> wrote:


WARNING: FAILED SelectChannelConnector at 0.0.0.0<mailto:SelectChannelConnector at 0.0.0.0>:8082: java.net.BindException: Address already in use

Something is running on port 8028 already so ArchivesSpace can't start up since that's being used now.



________________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Neal, Rick <rneal at richmond.edu<mailto:rneal at richmond.edu>>
Sent: Monday, November 12, 2018 11:30:07 AM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] 2.5 install issue

Good morning,

I successfully upgraded our version of ArchiveSpace on my test server to version 2.5 with no issues.

I am now trying to replicate it on my production server.

After my upgrade I restarted the service and the staff and public interfaces won’t display in a browser although the backend does:

{ "databaseProductName": "MySQL", "databaseProductVersion": "5.1.73", "ruby_version": "2.3.0", "host_os": "linux", "host_cpu": "x86_64", "build": "java1.7", "archivesSpaceVersion": "v2.5.0" }


The archivesspace.out log had this in it:  A trace file has been written to the following location: /tmp/aspace_diagnostic_1542039282.txt

That file mentions that an address is already in use.  (I append it to the bottom).

I did not use the new config.rb file because I use virtualhosts to give unique urls for ArchivesSpace to use.  The only thing in my config.rb file that is uncommented is the line for database access.  I have been using it this way for years now and there was no issue with the recent  test server upgrade.

I appreciate whatever advice you have.

Rick

~~~~~~~~~~~~~~~~~~~~~~~

I see this in the archivesspace.out file

Nov 12, 2018 11:14:42 AM org.eclipse.jetty.server.handler.ContextHandler callContextInitialized
INFO: started o.e.j.w.WebAppContext{/,file:/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8082-oai.war-_-any-/webapp/},/usr/local/archivesspace/wars/oai.war
Nov 12, 2018 11:14:42 AM org.eclipse.jetty.util.component.AbstractLifeCycle setFailed
WARNING: FAILED SelectChannelConnector at 0.0.0.0<mailto:SelectChannelConnector at 0.0.0.0>:8082: java.net.BindException: Address already in use

This is the complete aspace_diagnostic_1542032577.txt file

"cpu_count": 2,
"exception": {
  "msg": "Address already in use",
  "backtrace": [
    "sun.nio.ch.Net.bind0(Native Method)",
    "sun.nio.ch.Net.bind(sun/nio/ch/Net.java:463)",
    "sun.nio.ch.Net.bind(sun/nio/ch/Net.java:455)",
    "sun.nio.ch.ServerSocketChannelImpl.bind(sun/nio/ch/ServerSocketChannelImpl.java:223)",
    "sun.nio.ch.ServerSocketAdaptor.bind(sun/nio/ch/ServerSocketAdaptor.java:74)",
    "org.eclipse.jetty.server.nio.SelectChannelConnector.open(org/eclipse/jetty/server/nio/SelectChannelConnector.java:182)",
    "org.eclipse.jetty.server.AbstractConnector.doStart(org/eclipse/jetty/server/AbstractConnector.java:311)",
    "org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(org/eclipse/jetty/server/nio/SelectChannelConnector.java:260)",
    "org.eclipse.jetty.util.component.AbstractLifeCycle.start(org/eclipse/jetty/util/component/AbstractLifeCycle.java:59)",
    "org.eclipse.jetty.server.Server.doStart(org/eclipse/jetty/server/Server.java:283)",
    "org.eclipse.jetty.util.component.AbstractLifeCycle.start(org/eclipse/jetty/util/component/AbstractLifeCycle.java:59)",
    "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:606)",
    "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:438)",
    "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:302)",
    "launcher.launcher.invokeOther148:start(launcher/launcher.rb:92)",
    "launcher.launcher.start_server(launcher/launcher.rb:92)",
    "launcher.launcher.invokeOther341:start_server(launcher/launcher.rb:179)",
    "launcher.launcher.main(launcher/launcher.rb:179)",
    "launcher.launcher.invokeOther454:main(launcher/launcher.rb:261)",
    "launcher.launcher.<main>(launcher/launcher.rb:261)",
    "java.lang.invoke.MethodHandle.invokeWithArguments(java/lang/invoke/MethodHandle.java:599)",
    "org.jruby.Ruby.runScript(org/jruby/Ruby.java:827)",
    "org.jruby.Ruby.runNormally(org/jruby/Ruby.java:746)",
    "org.jruby.Ruby.runNormally(org/jruby/Ruby.java:764)",
    "org.jruby.Ruby.runFromMain(org/jruby/Ruby.java:577)",
    "org.jruby.Main.doRunFromMain(org/jruby/Main.java:417)",
    "org.jruby.Main.internalRun(org/jruby/Main.java:305)",
    "org.jruby.Main.run(org/jruby/Main.java:232)",
    "org.jruby.Main.main(org/jruby/Main.java:204)"
  ]
}
}
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20181113/6ec1d33a/attachment.html>


More information about the Archivesspace_Users_Group mailing list