[Archivesspace_Users_Group] password-reset.sh
Majewski, Steven Dennis (sdm7g)
sdm7g at eservices.virginia.edu
Fri May 27 11:58:58 EDT 2016
I was finding the script in the wrong location in an unpacked distribution, so it’s probably
due to a build bug that it never got added to ./build/target/archivesspace/launcher/scripts.
It may not have been intentional.
Re: colon: Yeah — it just looked wrong to me, but I didn’t actually want to run it and reset my passwords.
— Steve.
> On May 27, 2016, at 11:48 AM, Mayo, Dave <dave_mayo at harvard.edu> wrote:
>
> Blake Carver and I figured out what's going on.
>
> The issue is that the scripts aren't actually where they're meant to be
> run from in the Github directory at all - they only get moved to the
> proper directories by Ant when constructing the release zips. So if you
> check out ArchivesSpace and run it out of the git directory, which is what
> I've been doing locally, none of the scripts work because they can't find
> each other or jruby.
>
> This happens at
> https://github.com/archivesspace/archivesspace/blob/master/build/build.xml#
> L663, for anyone interested.
>
> Your second concern, re: the colon, is a red herring - if you look at
> password-reset.sh, it's set up so that JRUBY will always have a leading
> colon.
>
> Anyway, I'd be interested if anyone knows or can reconstruct the rationale
> for why this is the case - why the scripts aren't just where they need to
> be to run in the github repo. It feels to me like that's a reasonable
> use-case, certainly for development, and the various build/run tasks that
> start devservers certainly run just fine out of a checkout.
>
> - Dave
>
> On 5/27/16, 11:30 AM, "Majewski, Steven Dennis (sdm7g)"
> <sdm7g at eservices.virginia.edu> wrote:
>
>>
>> It looks like that script should have been moved into ./launcher/scripts
>> ( so the find-base command works )
>> and
>>
>>
>> And I think there should be a colon (³:² ) separating the class paths :
>> -cp ³../lib/*:$JRUBY²
>> in the last line:
>>
>> java $JAVA_OPTS -cp "../lib/*$JRUBY" org.jruby.Main --1.9
>> ../launcher/password_reset/lib/password-reset.rb ${1+"$@"}
>>
>>
>> ‹ Steve.
>>
>>
>>> On May 26, 2016, at 7:55 PM, Mayo, Dave <dave_mayo at harvard.edu> wrote:
>>>
>>> Hello all,
>>>
>>> I've set up a local development copy of ArchivesSpace, and it's been
>>> overall working - I run things through build/run, and they work. But
>>> I've been having trouble running any of the scripts; in particular, I
>>> need to do a password reset, and
>>> launcher/password_reset/password-reset.sh fails with the following
>>> errors:
>>>
>>> ./launcher/password_reset/password-reset.sh: line 3:
>>> ./launcher/password_reset/find-base.sh: No such file or directory
>>> ./launcher/password_reset/password-reset.sh: line 5: cd: /scripts: No
>>> such file or directory
>>> Error: Could not find or load main class org.jruby.Main
>>>
>>> I'm running it from the project directory, on OSXŠ
>>>
>>> - Dave
>>> _______________________________________________
>>> Archivesspace_Users_Group mailing list
>>> 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
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
More information about the Archivesspace_Users_Group
mailing list