talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

Re: [Talk] Installation issues....

AR
Aron Roberts
Mon, Aug 27, 2012 11:29 PM

Hi Bryan,

You mentioned that you downloaded and installed the Tomcat folder for
version 2.5 of CollectionSpace.

With that, you'll want to also make sure you have the matched version of
the services layer; you can find it, per the installation wiki page for
v2.5 (
http://wiki.collectionspace.org/display/DOC/Installing+2.5+on+Aptitude+Compatible+Linux+Distributions)
at:

https://github.com/collectionspace/services/tarball/v2.5

And make sure, as well, that you've built that version of the services
layer with 'mvn clean install -DskipTests', as described slightly further
down into that same section of the installation wiki page, "Initialize
database and users and permissions".

That will ensure that all of the necessary v2.5 services layer 'pieces'
will be installed in your local Maven repository, so that you can then run
selected services layer code - such as the code to set up initial users,
roles, and permissions - via the next command listed on that installation
wiki page, 'ant undeploy deploy create_db import'.

Hope this helps!
Aron

On Mon, Aug 27, 2012 at 4:14 PM, Bryan Hooper bryan@northfortyroad.comwrote:

In my effort to create a new tenant, I ran into the following problem
(this is tough, eh?)

I was able to download and deploy both the UI and Application layer, with
the required changes.

I was able to download and modify the Services layer, per the instructions
on the site. However, it would not deploy. The error I keep getting is
(somewhat abridged):

Failed to resolve artifact.

Missing:
1.
org.collectionspace.services:org.collectionspace.services.authentication:jaxb:jar:2.7-SNAPSHOT

Try downloading the file manually.

So - how can I get it manually? Or is there something else I should be
doing?

http://northfortyroad.com/

Bryan Hooper
North Forty Road Web Design, LLC
860 940 0006  -  fax 877 350 1318
www.northfortyroad.com

On Aug 27, 2012, at 5:47 PM, Aron Roberts aron@socrates.berkeley.edu
wrote:

On Mon, Aug 27, 2012 at 12:59 PM, Bryan Hooper bryan@northfortyroad.comwrote:

A million thanks. I was able to login to the default admin database!
Could not have done it without your help.

So, now I'll take a break...and then get to the easy task of importing a
rather larger database from IO currently in Excel spreadsheets.....that's
easy, right?

Very cool, Bryan!

And a big :-) to your next "easy" task.

If you discover any useful tips for the rest of us when doing that work,
please do share them with the Talk list!  That's a not-uncommon need ...
(I'm also copying that list here, in case someone else might have already
done this and might be able to offer suggestions.)

Thanks,
Aron

On Mon, Aug 27, 2012 at 12:59 PM, Bryan Hooper bryan@northfortyroad.comwrote:

Aron,

A million thanks. I was able to login to the default admin database!
Could not have done it without your help.

So, now I'll take a break...and then get to the easy task of importing a
rather larger database from IO currently in Excel spreadsheets.....that's
easy, right?

On Aug 27, 2012, at 3:48 PM, Aron Roberts aron@socrates.berkeley.edu
wrote:

On Mon, Aug 27, 2012 at 12:43 PM, Bryan Hooper bryan@northfortyroad.comwrote:

With that I was able to get the ant undeploy deploy and ant create_db
import to build successfully!

I think this is good news.

;-)  Am very glad!

Do I need to restart the server?

Yes, that'd be desirable at this point.  And you can then try logging
in.

If you experience any issues, you can check the 'logs' directory in
your apache-tomcat-6.0.33 directory just to make sure there aren't any
fatal errors at startup or operation; look in catalina.out and
cspace-services.log.

Aron

http://northfortyroad.com/

Bryan Hooper
North Forty Road Web Design, LLC
860 940 0006  -  fax 877 350 1318
www.northfortyroad.com

On Aug 27, 2012, at 3:14 PM, Aron Roberts aron@socrates.berkeley.edu
wrote:

Hi Bryan,

It seems likely you're getting closer.  Thanks for these reports.

As a colleague suggested, can you check the filesystem permissions on
your /usr/local/share/apache-tomcat-6.0.33 directory?  Ideally, the
user you're using to run 'ant undeploy deploy' should have write permission
to that directory and all of its sub-directories; you can use a recursive
'chown' and/or 'chmod' toset permissions and ownership; e.g.

chown -R (relevant ownership) /usr/local/share/apache-tomcat-6.0.33
and/or
chmod -R (relevant permissions) /usr/local/share/apache-tomcat-6.0.33

Aron

On Mon, Aug 27, 2012 at 12:01 PM, Bryan Hooper <bryan@northfortyroad.com

wrote:

Aron,

Again I thank you for your help.

I got the v2.5 tarball from github, following this advice on the
installation documentation:

wget https://github.com/collectionspace/services/tarball/v2.5

I installed the bunldes directory manually, and it still failed, with
the following error:

Unable to delete directory
/usr/local/share/apache-tomcat-6.0.33/nuxeo-server/bundles

I hope I'm getting closer!!
http://northfortyroad.com/

Bryan Hooper
North Forty Road Web Design, LLC
860 940 0006  -  fax 877 350 1318
www.northfortyroad.com

On Aug 27, 2012, at 2:51 PM, Aron Roberts aron@socrates.berkeley.edu
wrote:

Hi Bryan,

Should I make that directory manually and try again?

Yes, definitely.  You may now be on the verge of a successful
installation.

It's conceivable that the v2.5 tarball (.tar.gz) file you downloaded
and expanded might have been missing those directories.  I'll check
that possibility out later today.  Can you tell us the download link
you used?  Was it the tarball file in this FTP-accessible directory,
or?

ftp://source.collectionspace.org/pub/collectionspace/releases/2.5/

Aron

On Mon, Aug 27, 2012 at 11:27 AM, Bryan Hooper <
bryan@northfortyroad.com> wrote:

Sorry...just a typo in my email.

I'm still struggling with the install. I don't know what step I missed

  • as
    I said, I've gone through the process several times now and I thought I
    was
    really close.

I'm attempting to install 2.5, since this is a new installation I
thought I
should use the latest version.

I tried Aron's suggestion to manually create the cspace directory - the
build failed again during deploy with the message:

Directory does not exist:
/usr/local/share/apache-tomcat-6.0.33/nuxeo-server/bundles

Should I make that directory manually and try again? Still feels like I
missed something along the way.

On Aug 27, 2012, at 2:10 PM, Ray Lee rhlee@berkeley.edu wrote:

Hi Bryan,
This may be a typo in your email, but you wrote

/tmp/collectionspace-services/build.xml:222: Source file

/usr/local/share/apache-tomcast-6.0.33/cspace/services/db/postgresql/init_nuxeo_db.sql
is not a file!

Is that really the path to your tomcat installation, or should
"tomcast" be
"tomcat"?

Ray

On Aug 27, 2012, at 10:50 AM, Aron Roberts wrote:

Hi Bryan,

Thanks for evaluating CollectionSpace!

If you haven't already done so, you might do an 'ls -l' (long
directory listing) on the parent directory of that file; e.g.

ls -l ls -al
/usr/local/share/apache-tomcat-6.0.33/cspace/services/db/postgresql

and see if there is a listing for:

/usr/local/share/apache-tomcast-6.0.33/cspace/services/db/postgresql/init_nuxeo_db.sql

It's possible that file is missing - potentially it wasn't installed
by a prior step, or a prior step was omitted; or there's a directory
with that name, or?

'ant deploy', an earlier step in the installation process, should
have created that file.

Aron

On Mon, Aug 27, 2012 at 10:12 AM, Bryan Hooper <
bryan@northfortyroad.com>
wrote:

Disclaimer: I'm a newbie to Collection Space.

My issue: Attempting at the moment just to get to the finished install
stage, on Linux Mint 13. Everything goes well - up to the part where I
need
to run ant to build the databases. I've read through the documentation,
but
I'm still stuck...

The text output by ant is:

Buildfile: /tmp/collectionspace-services/build.xml

create_db:

create_nuxeo_db:

BUILD FAILED
/tmp/collectionspace-services/build.xml:210: The following error
occurred
while executing this line:
/tmp/collectionspace-services/build.xml:222: Source file

/usr/local/share/apache-tomcast-6.0.33/cspace/services/db/postgresql/init_nuxeo_db.sql
is not a file!

Any help or direction? Thanks.

Bryan Hooper


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi Bryan, You mentioned that you downloaded and installed the Tomcat folder for version 2.5 of CollectionSpace. With that, you'll want to also make sure you have the matched version of the services layer; you can find it, per the installation wiki page for v2.5 ( http://wiki.collectionspace.org/display/DOC/Installing+2.5+on+Aptitude+Compatible+Linux+Distributions) at: https://github.com/collectionspace/services/tarball/v2.5 And make sure, as well, that you've built that version of the services layer with 'mvn clean install -DskipTests', as described slightly further down into that same section of the installation wiki page, "Initialize database and users and permissions". That will ensure that all of the necessary v2.5 services layer 'pieces' will be installed in your local Maven repository, so that you can then run selected services layer code - such as the code to set up initial users, roles, and permissions - via the next command listed on that installation wiki page, 'ant undeploy deploy create_db import'. Hope this helps! Aron On Mon, Aug 27, 2012 at 4:14 PM, Bryan Hooper <bryan@northfortyroad.com>wrote: > In my effort to create a new tenant, I ran into the following problem > (this is tough, eh?) > > I was able to download and deploy both the UI and Application layer, with > the required changes. > > I was able to download and modify the Services layer, per the instructions > on the site. However, it would not deploy. The error I keep getting is > (somewhat abridged): > > Failed to resolve artifact. > > Missing: > 1. > org.collectionspace.services:org.collectionspace.services.authentication:jaxb:jar:2.7-SNAPSHOT > > Try downloading the file manually. > > So - how can I get it manually? Or is there something else I should be > doing? > > > <http://northfortyroad.com/> > > Bryan Hooper > North Forty Road Web Design, LLC > 860 940 0006 - fax 877 350 1318 > www.northfortyroad.com > > > On Aug 27, 2012, at 5:47 PM, Aron Roberts <aron@socrates.berkeley.edu> > wrote: > > On Mon, Aug 27, 2012 at 12:59 PM, Bryan Hooper <bryan@northfortyroad.com>wrote: > >> A million thanks. I was able to login to the default admin database! >> Could not have done it without your help. >> >> So, now I'll take a break...and then get to the easy task of importing a >> rather larger database from IO currently in Excel spreadsheets.....that's >> easy, right? >> > > Very cool, Bryan! > > And a big :-) to your next "easy" task. > > If you discover any useful tips for the rest of us when doing that work, > please do share them with the Talk list! That's a not-uncommon need ... > (I'm also copying that list here, in case someone else might have already > done this and might be able to offer suggestions.) > > Thanks, > Aron > > On Mon, Aug 27, 2012 at 12:59 PM, Bryan Hooper <bryan@northfortyroad.com>wrote: > >> Aron, >> >> A million thanks. I was able to login to the default admin database! >> Could not have done it without your help. >> >> So, now I'll take a break...and then get to the easy task of importing a >> rather larger database from IO currently in Excel spreadsheets.....that's >> easy, right? >> >> >> On Aug 27, 2012, at 3:48 PM, Aron Roberts <aron@socrates.berkeley.edu> >> wrote: >> >> On Mon, Aug 27, 2012 at 12:43 PM, Bryan Hooper <bryan@northfortyroad.com>wrote: >> >>> With that I was able to get the ant undeploy deploy and ant create_db >>> import to build successfully! >>> >>> I think this is good news. >>> >> >> ;-) Am very glad! >> >> >>> >>> Do I need to restart the server? >>> >> >> Yes, that'd be desirable at this point. And you can then try logging >> in. >> >> If you experience any issues, you can check the 'logs' directory in >> your apache-tomcat-6.0.33 directory just to make sure there aren't any >> fatal errors at startup or operation; look in catalina.out and >> cspace-services.log. >> >> Aron >> >> >>> >>> <http://northfortyroad.com/> >>> >>> Bryan Hooper >>> North Forty Road Web Design, LLC >>> 860 940 0006 - fax 877 350 1318 >>> www.northfortyroad.com >>> >>> >>> On Aug 27, 2012, at 3:14 PM, Aron Roberts <aron@socrates.berkeley.edu> >>> wrote: >>> >>> Hi Bryan, >>> >>> It seems likely you're getting closer. Thanks for these reports. >>> >>> As a colleague suggested, can you check the filesystem permissions on >>> your /usr/local/share/apache-tomcat-6.0.33 directory? Ideally, the >>> user you're using to run 'ant undeploy deploy' should have write permission >>> to that directory and all of its sub-directories; you can use a recursive >>> 'chown' and/or 'chmod' toset permissions and ownership; e.g. >>> >>> chown -R (relevant ownership) /usr/local/share/apache-tomcat-6.0.33 >>> and/or >>> chmod -R (relevant permissions) /usr/local/share/apache-tomcat-6.0.33 >>> >>> Aron >>> >>> On Mon, Aug 27, 2012 at 12:01 PM, Bryan Hooper <bryan@northfortyroad.com >>> > wrote: >>> >>>> Aron, >>>> >>>> Again I thank you for your help. >>>> >>>> I got the v2.5 tarball from github, following this advice on the >>>> installation documentation: >>>> >>>> wget https://github.com/collectionspace/services/tarball/v2.5 >>>> >>>> I installed the bunldes directory manually, and it still failed, with >>>> the following error: >>>> >>>> Unable to delete directory >>>> /usr/local/share/apache-tomcat-6.0.33/nuxeo-server/bundles >>>> >>>> I hope I'm getting closer!! >>>> <http://northfortyroad.com/> >>>> >>>> Bryan Hooper >>>> North Forty Road Web Design, LLC >>>> 860 940 0006 - fax 877 350 1318 >>>> www.northfortyroad.com >>>> >>>> >>>> >>>> On Aug 27, 2012, at 2:51 PM, Aron Roberts <aron@socrates.berkeley.edu> >>>> wrote: >>>> >>>> Hi Bryan, >>>> >>>> Should I make that directory manually and try again? >>>> >>>> >>>> Yes, definitely. You may now be on the verge of a successful >>>> installation. >>>> >>>> It's conceivable that the v2.5 tarball (.tar.gz) file you downloaded >>>> and expanded might have been missing those directories. I'll check >>>> that possibility out later today. Can you tell us the download link >>>> you used? Was it the tarball file in this FTP-accessible directory, >>>> or? >>>> >>>> ftp://source.collectionspace.org/pub/collectionspace/releases/2.5/ >>>> >>>> Aron >>>> >>>> On Mon, Aug 27, 2012 at 11:27 AM, Bryan Hooper < >>>> bryan@northfortyroad.com> wrote: >>>> >>>> Sorry...just a typo in my email. >>>> >>>> I'm still struggling with the install. I don't know what step I missed >>>> - as >>>> I said, I've gone through the process several times now and I thought I >>>> was >>>> really close. >>>> >>>> I'm attempting to install 2.5, since this is a new installation I >>>> thought I >>>> should use the latest version. >>>> >>>> I tried Aron's suggestion to manually create the cspace directory - the >>>> build failed again during deploy with the message: >>>> >>>> Directory does not exist: >>>> /usr/local/share/apache-tomcat-6.0.33/nuxeo-server/bundles >>>> >>>> Should I make that directory manually and try again? Still feels like I >>>> missed something along the way. >>>> >>>> >>>> On Aug 27, 2012, at 2:10 PM, Ray Lee <rhlee@berkeley.edu> wrote: >>>> >>>> Hi Bryan, >>>> This may be a typo in your email, but you wrote >>>> >>>> /tmp/collectionspace-services/build.xml:222: Source file >>>> >>>> /usr/local/share/apache-tomcast-6.0.33/cspace/services/db/postgresql/init_nuxeo_db.sql >>>> is not a file! >>>> >>>> >>>> >>>> Is that really the path to your tomcat installation, or should >>>> "tomcast" be >>>> "tomcat"? >>>> >>>> Ray >>>> >>>> >>>> On Aug 27, 2012, at 10:50 AM, Aron Roberts wrote: >>>> >>>> Hi Bryan, >>>> >>>> Thanks for evaluating CollectionSpace! >>>> >>>> If you haven't already done so, you might do an 'ls -l' (long >>>> directory listing) on the parent directory of that file; e.g. >>>> >>>> ls -l ls -al >>>> /usr/local/share/apache-tomcat-6.0.33/cspace/services/db/postgresql >>>> >>>> and see if there is a listing for: >>>> >>>> >>>> /usr/local/share/apache-tomcast-6.0.33/cspace/services/db/postgresql/init_nuxeo_db.sql >>>> >>>> It's possible that file is missing - potentially it wasn't installed >>>> by a prior step, or a prior step was omitted; or there's a directory >>>> with that name, or? >>>> >>>> 'ant deploy', an earlier step in the installation process, should >>>> have created that file. >>>> >>>> Aron >>>> >>>> On Mon, Aug 27, 2012 at 10:12 AM, Bryan Hooper < >>>> bryan@northfortyroad.com> >>>> wrote: >>>> >>>> Disclaimer: I'm a newbie to Collection Space. >>>> >>>> My issue: Attempting at the moment just to get to the finished install >>>> stage, on Linux Mint 13. Everything goes well - up to the part where I >>>> need >>>> to run ant to build the databases. I've read through the documentation, >>>> but >>>> I'm still stuck... >>>> >>>> The text output by ant is: >>>> >>>> Buildfile: /tmp/collectionspace-services/build.xml >>>> >>>> create_db: >>>> >>>> create_nuxeo_db: >>>> >>>> BUILD FAILED >>>> /tmp/collectionspace-services/build.xml:210: The following error >>>> occurred >>>> while executing this line: >>>> /tmp/collectionspace-services/build.xml:222: Source file >>>> >>>> /usr/local/share/apache-tomcast-6.0.33/cspace/services/db/postgresql/init_nuxeo_db.sql >>>> is not a file! >>>> >>>> Any help or direction? Thanks. >>>> >>>> Bryan Hooper >>>> _______________________________________________ >>>> Talk mailing list >>>> Talk@lists.collectionspace.org >>>> >>>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>>> >>>> >>>> _______________________________________________ >>>> Talk mailing list >>>> Talk@lists.collectionspace.org >>>> >>>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Talk mailing list >>>> Talk@lists.collectionspace.org >>>> >>>> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >>>> >>>> >>>> >>> >>> >> >> > >