[Archivesspace_Users_Group] Mysql connector issues with a source build

Brian Hoffman brianjhoffman at gmail.com
Thu Jul 23 16:12:39 EDT 2015


I think you still need to fill out the _prefix params. Also, you should probably use ProxyPass and ProxyPassReverse rather than mod_rewrite: http://httpd.apache.org/docs/2.4/rewrite/avoid.html

If you open up a Javascript console in the frontend application, and type APP_PATH, you should see “/frontend/“

Brian


On Jul 23, 2015, at 8:39 AM, David Hietpas <hietpasd at uwosh.edu> wrote:

> Also I should note, all the hrefs and forms are not picking up the prefix either.
> 
> On Wed, Jul 22, 2015 at 1:27 PM, David Hietpas <hietpasd at uwosh.edu> wrote:
> Thanks Chris.  I saw the version number and assumed it would work from 1.0.2 and up.
> 
> I tried what you suggested yesterday without success.  I've attached a screenshot with what is happening with my config information with the setup you suggested.
> 
> config.rb:
> AppConfig[:backend_url] = "http://localhost:8092"
> AppConfig[:frontend_url] = "http://localhost:8090"
> AppConfig[:solr_url] = "http://localhost:8093"
> AppConfig[:public_url] = "http://localhost:8091"
> 
> AppConfig[:frontend_proxy_url] = "http://localhost/archivesspace/frontend"
> AppConfig[:public_proxy_url] = "http://localhost/archivesspace/public"
> 
> 
> Apache:
>     RewriteRule ^/archivesspace/frontend$ http://localhost:8090/ [L,P]
>     RewriteRule ^/archivesspace/frontend/(.*)$ http://localhost:8090/$1 [L,P]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Wed, Jul 22, 2015 at 12:06 PM, Chris Fitzpatrick <Chris.Fitzpatrick at lyrasis.org> wrote:
> 
> 
> 
> 
> Hi David,
> 
> 
> 
> Wow, this documentation is extremely outdated ( from v1.0.2 ). 
> 
> 
> 
> I'll update this. 
> 
> 
> 
> But the new way for adding this is to use the proxy_url settings in the config.rb file: 
> 
> https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L156-L157
> 
> 
> 
> Change your url that you're proxying here, like 
> 
> AppConfig[:public_proxy_url] = "http://my.aspace.edu/public"
> 
> AppConfig[:frontend_proxy_url] = "http://my.aspace.edu/staff"
> 
> 
> 
> 
> 
> 
> Does that make sense? No need to compile from source for this...
> 
> b,chris. 
> 
> 
> 
> Chris Fitzpatrick | Developer, ArchivesSpace
> Skype: chrisfitzpat  | Phone: 918.236.6048
> http://archivesspace.org/
> 
> 
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org<archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of David Hietpas <hietpasd at uwosh.edu>
> Sent: Wednesday, July 22, 2015 6:34 PM
> To: Archivesspace Users Group
> Subject: Re: [Archivesspace_Users_Group] Mysql connector issues with a source build
>  
> Hi Brian,
> 
> As I mentioned in the original email, I'm following the instructions posted from ArchivesSpace Github to setup a installation with prefixes (https://github.com/archivesspace/archivesspace/blob/master/README_PREFIX.md).  I have to use prefixes at our institute, I can't use sub-domains due to policies.
> 
> When I start with the original zip file, I don't run into this problem and the app starts up fine.  However, I'm plagued with url issues (css, js, assets, etc...) from the app when setting up the application with prefixes through Apache.
> 
> Thanks.
> 
> 
> On Wed, Jul 22, 2015 at 11:24 AM, Brian Hoffman<brianjhoffman at gmail.com> wrote:
> Hi David,
> 
> Why are you building the application from source rather than just downloading the zip and starting there? Can you confirm that you have the same problem when you start from the ZIP file?
> 
> Brian
> 
> 
> On Jul 22, 2015, at 11:07 AM, David Hietpas <hietpasd at uwosh.edu> wrote:
> 
>> Due to Archon migrations, I installed Aspace v1.0.4 (https://github.com/archivesspace/archivesspace/releases/tag/v1.0.4) without issue but our University will not allow sub-domains so I have to use the Prefix method explained here (https://github.com/archivesspace/archivesspace/blob/master/README_PREFIX.md)
>> 
>> So I reinstalled using the 1.0.4 from the source code adding the config/config.rb with the proper prefixes just as instructed.  I ran "build/run dist".  Unzipped the compiled code.  I put the mysql-connector-java.jar in the archivesspace/lib directory like I had in the working version above.  I've attached a screenshot.
>> 
>> It can't find the mysql-connector-java though it is in the lib directory of Archivesspace.  I've drop the exact version 5.1.13 as well as the newest.  It works perfectly fine in the non-source version but not the source build version.
>> 
>> Error: http://pastebin.com/FQVJEjEi
>> 
>> Please advise.  Thanks.
>> 
>> -- 
>> David Hietpas
>> University of Wisconsin Oshkosh
>> hietpasd at uwosh.edu | 920-424-0291
>> <lib-jar-example.jpg>_______________________________________________
>> 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
> 
> 
> 
> 
> -- 
> David Hietpas
> University of Wisconsin Oshkosh
> hietpasd at uwosh.edu | 920-424-0291
> 
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
> 
> 
> 
> 
> -- 
> David Hietpas
> University of Wisconsin Oshkosh
> hietpasd at uwosh.edu | 920-424-0291
> 
> 
> 
> -- 
> David Hietpas
> University of Wisconsin Oshkosh
> hietpasd at uwosh.edu | 920-424-0291
> _______________________________________________
> Archivesspace_Users_Group mailing list
> 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/20150723/f7853ae8/attachment.html>


More information about the Archivesspace_Users_Group mailing list