talk@lists.collectionspace.org

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

View all threads

creating tenant

WW
William Wolf
Thu, Jun 6, 2019 5:51 PM

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
RL
Ray Lee
Fri, Jun 7, 2019 7:03 PM

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
WW
William Wolf
Sat, Jun 8, 2019 3:49 PM

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s]
[INFO] CSP: General Utils ................................. SKIPPED
[INFO] Collection-Space CSP API ........................... SKIPPED
[INFO] CSP: Impl .......................................... SKIPPED
[INFO] Collection-Space CSP Helper ........................ SKIPPED
[INFO] CSP: Schema ........................................ SKIPPED
[INFO] JXUtils ............................................ SKIPPED
[INFO] CSP: Web UI ........................................ SKIPPED
[INFO] CSP: File .......................................... SKIPPED
[INFO] CSP: Services ...................................... SKIPPED
[INFO] CSP: Installation .................................. SKIPPED
[INFO] tomcat-main ........................................ SKIPPED
[INFO] war-entry .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
RL
Ray Lee
Mon, Jun 10, 2019 6:19 PM

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s]
[INFO] CSP: General Utils ................................. SKIPPED
[INFO] Collection-Space CSP API ........................... SKIPPED
[INFO] CSP: Impl .......................................... SKIPPED
[INFO] Collection-Space CSP Helper ........................ SKIPPED
[INFO] CSP: Schema ........................................ SKIPPED
[INFO] JXUtils ............................................ SKIPPED
[INFO] CSP: Web UI ........................................ SKIPPED
[INFO] CSP: File .......................................... SKIPPED
[INFO] CSP: Services ...................................... SKIPPED
[INFO] CSP: Installation .................................. SKIPPED
[INFO] tomcat-main ........................................ SKIPPED
[INFO] war-entry .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
WW
William Wolf
Thu, Jun 13, 2019 6:14 PM

Hi,

I checked and the variables were created ok by the automated installer.  So the missing JEE_PORT message may not be the problem?

Some other things I notice.  The installation may not actually be finishing / installing correctly.  The ssh session has timed out before I see a completion message.  I can browse to the logon page, but I can't log in with the standard account/pw.

When I try the curl command:
curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator

I get this:

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 6365
Date: Thu, 13 Jun 2019 17:56:43 GMT
Connection: close

Seen in a chrome browser it looks like this:

HTTP Status 500 - Filter execution threw an exception
type Exception report
message Filter execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService;
etc.

Any ideas?

Thanks,
Willi Wolf

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 10, 2019 11:20
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi, I checked and the variables were created ok by the automated installer. So the missing JEE_PORT message may not be the problem? Some other things I notice. The installation may not actually be finishing / installing correctly. The ssh session has timed out before I see a completion message. I can browse to the logon page, but I can't log in with the standard account/pw. When I try the curl command: curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator I get this: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 6365 Date: Thu, 13 Jun 2019 17:56:43 GMT Connection: close Seen in a chrome browser it looks like this: HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; etc. Any ideas? Thanks, Willi Wolf -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 10, 2019 11:20 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
RL
Ray Lee
Tue, Jun 18, 2019 6:35 AM

Hi Willi,
Was the installation working before you tried to create your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Thursday, June 13, 2019 11:14:23 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi,

I checked and the variables were created ok by the automated installer.  So the missing JEE_PORT message may not be the problem?

Some other things I notice.  The installation may not actually be finishing / installing correctly.  The ssh session has timed out before I see a completion message.  I can browse to the logon page, but I can't log in with the standard account/pw.

When I try the curl command:
curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator

I get this:

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 6365
Date: Thu, 13 Jun 2019 17:56:43 GMT
Connection: close

Seen in a chrome browser it looks like this:

HTTP Status 500 - Filter execution threw an exception
type Exception report
message Filter execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService;
etc.

Any ideas?

Thanks,
Willi Wolf

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 10, 2019 11:20
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Willi, Was the installation working before you tried to create your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Thursday, June 13, 2019 11:14:23 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi, I checked and the variables were created ok by the automated installer. So the missing JEE_PORT message may not be the problem? Some other things I notice. The installation may not actually be finishing / installing correctly. The ssh session has timed out before I see a completion message. I can browse to the logon page, but I can't log in with the standard account/pw. When I try the curl command: curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator I get this: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 6365 Date: Thu, 13 Jun 2019 17:56:43 GMT Connection: close Seen in a chrome browser it looks like this: HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; etc. Any ideas? Thanks, Willi Wolf -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 10, 2019 11:20 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
WW
William Wolf
Tue, Jun 18, 2019 8:15 PM

Hi Ray,

I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died.  I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode.  I'm looking forward to using v5.1 soon !

But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1.  I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server.  Then I will upgrade it.  So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed.

Yesterday I got past the libaugeas-ruby dependency.  The current challenge is  getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that.

But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind !

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 17, 2019 23:36
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Was the installation working before you tried to create your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Thursday, June 13, 2019 11:14:23 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi,

I checked and the variables were created ok by the automated installer.  So the missing JEE_PORT message may not be the problem?

Some other things I notice.  The installation may not actually be finishing / installing correctly.  The ssh session has timed out before I see a completion message.  I can browse to the logon page, but I can't log in with the standard account/pw.

When I try the curl command:
curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator

I get this:

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 6365
Date: Thu, 13 Jun 2019 17:56:43 GMT
Connection: close

Seen in a chrome browser it looks like this:

HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception root cause
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService;
etc.

Any ideas?

Thanks,
Willi Wolf

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 10, 2019 11:20
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Ray, I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died. I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode. I'm looking forward to using v5.1 soon ! But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1. I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server. Then I will upgrade it. So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed. Yesterday I got past the libaugeas-ruby dependency. The current challenge is getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that. But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind ! Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 17, 2019 23:36 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Was the installation working before you tried to create your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Thursday, June 13, 2019 11:14:23 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi, I checked and the variables were created ok by the automated installer. So the missing JEE_PORT message may not be the problem? Some other things I notice. The installation may not actually be finishing / installing correctly. The ssh session has timed out before I see a completion message. I can browse to the logon page, but I can't log in with the standard account/pw. When I try the curl command: curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator I get this: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 6365 Date: Thu, 13 Jun 2019 17:56:43 GMT Connection: close Seen in a chrome browser it looks like this: HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; etc. Any ideas? Thanks, Willi Wolf -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 10, 2019 11:20 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
RL
Ray Lee
Thu, Jun 20, 2019 5:01 AM

Hi Willi,
If you're migrating to a new server, you can get by with installing 5.1, and copying over the postgres databases from the 4.1 server. There's not really any advantage to installing the 4.1 application first.

I would install 5.1 on the new server, and make sure it's working. Then drop the databases, and copy your 4.1 databases over, using the postgres tools for that. (Or if you're running the database on a separate server from tomcat, you can just point the 5.1 cspace to that database server). Then run this sql script to update your cspace database to work with 5.1: https://github.com/cspace-deployment/Tools/blob/master/scripts/db/upgrade_4.1_to_5.0.sql

At that point you can copy your tenant configuration over from the services and application source trees. It will mostly be compatible, with a few tweaks, and you'll need to add some new configuration for the 5.x UI. How much did you customize your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Tuesday, June 18, 2019 1:15:54 PM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died.  I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode.  I'm looking forward to using v5.1 soon !

But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1.  I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server.  Then I will upgrade it.  So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed.

Yesterday I got past the libaugeas-ruby dependency.  The current challenge is  getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that.

But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind !

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 17, 2019 23:36
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Was the installation working before you tried to create your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Thursday, June 13, 2019 11:14:23 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi,

I checked and the variables were created ok by the automated installer.  So the missing JEE_PORT message may not be the problem?

Some other things I notice.  The installation may not actually be finishing / installing correctly.  The ssh session has timed out before I see a completion message.  I can browse to the logon page, but I can't log in with the standard account/pw.

When I try the curl command:
curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator

I get this:

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 6365
Date: Thu, 13 Jun 2019 17:56:43 GMT
Connection: close

Seen in a chrome browser it looks like this:

HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception root cause
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService;
etc.

Any ideas?

Thanks,
Willi Wolf

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 10, 2019 11:20
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Willi, If you're migrating to a new server, you can get by with installing 5.1, and copying over the postgres databases from the 4.1 server. There's not really any advantage to installing the 4.1 application first. I would install 5.1 on the new server, and make sure it's working. Then drop the databases, and copy your 4.1 databases over, using the postgres tools for that. (Or if you're running the database on a separate server from tomcat, you can just point the 5.1 cspace to that database server). Then run this sql script to update your cspace database to work with 5.1: https://github.com/cspace-deployment/Tools/blob/master/scripts/db/upgrade_4.1_to_5.0.sql At that point you can copy your tenant configuration over from the services and application source trees. It will mostly be compatible, with a few tweaks, and you'll need to add some new configuration for the 5.x UI. How much did you customize your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Tuesday, June 18, 2019 1:15:54 PM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died. I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode. I'm looking forward to using v5.1 soon ! But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1. I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server. Then I will upgrade it. So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed. Yesterday I got past the libaugeas-ruby dependency. The current challenge is getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that. But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind ! Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 17, 2019 23:36 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Was the installation working before you tried to create your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Thursday, June 13, 2019 11:14:23 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi, I checked and the variables were created ok by the automated installer. So the missing JEE_PORT message may not be the problem? Some other things I notice. The installation may not actually be finishing / installing correctly. The ssh session has timed out before I see a completion message. I can browse to the logon page, but I can't log in with the standard account/pw. When I try the curl command: curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator I get this: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 6365 Date: Thu, 13 Jun 2019 17:56:43 GMT Connection: close Seen in a chrome browser it looks like this: HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; etc. Any ideas? Thanks, Willi Wolf -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 10, 2019 11:20 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
WW
William Wolf
Fri, Jun 21, 2019 8:15 PM

Hi Ray,

I really appreciate this guidance, I'll let you know how it goes.

Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Wednesday, June 19, 2019 22:01
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
If you're migrating to a new server, you can get by with installing 5.1, and copying over the postgres databases from the 4.1 server. There's not really any advantage to installing the 4.1 application first.

I would install 5.1 on the new server, and make sure it's working. Then drop the databases, and copy your 4.1 databases over, using the postgres tools for that. (Or if you're running the database on a separate server from tomcat, you can just point the 5.1 cspace to that database server). Then run this sql script to update your cspace database to work with 5.1: https://github.com/cspace-deployment/Tools/blob/master/scripts/db/upgrade_4.1_to_5.0.sql

At that point you can copy your tenant configuration over from the services and application source trees. It will mostly be compatible, with a few tweaks, and you'll need to add some new configuration for the 5.x UI. How much did you customize your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Tuesday, June 18, 2019 1:15:54 PM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died.  I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode.  I'm looking forward to using v5.1 soon !

But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1.  I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server.  Then I will upgrade it.  So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed.

Yesterday I got past the libaugeas-ruby dependency.  The current challenge is  getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that.

But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind !

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 17, 2019 23:36
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Was the installation working before you tried to create your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Thursday, June 13, 2019 11:14:23 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi,

I checked and the variables were created ok by the automated installer.  So the missing JEE_PORT message may not be the problem?

Some other things I notice.  The installation may not actually be finishing / installing correctly.  The ssh session has timed out before I see a completion message.  I can browse to the logon page, but I can't log in with the standard account/pw.

When I try the curl command:
curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator

I get this:

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 6365
Date: Thu, 13 Jun 2019 17:56:43 GMT
Connection: close

Seen in a chrome browser it looks like this:

HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception root cause
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService;
etc.

Any ideas?

Thanks,
Willi Wolf

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 10, 2019 11:20
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Ray, I really appreciate this guidance, I'll let you know how it goes. Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Wednesday, June 19, 2019 22:01 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, If you're migrating to a new server, you can get by with installing 5.1, and copying over the postgres databases from the 4.1 server. There's not really any advantage to installing the 4.1 application first. I would install 5.1 on the new server, and make sure it's working. Then drop the databases, and copy your 4.1 databases over, using the postgres tools for that. (Or if you're running the database on a separate server from tomcat, you can just point the 5.1 cspace to that database server). Then run this sql script to update your cspace database to work with 5.1: https://github.com/cspace-deployment/Tools/blob/master/scripts/db/upgrade_4.1_to_5.0.sql At that point you can copy your tenant configuration over from the services and application source trees. It will mostly be compatible, with a few tweaks, and you'll need to add some new configuration for the 5.x UI. How much did you customize your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Tuesday, June 18, 2019 1:15:54 PM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died. I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode. I'm looking forward to using v5.1 soon ! But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1. I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server. Then I will upgrade it. So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed. Yesterday I got past the libaugeas-ruby dependency. The current challenge is getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that. But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind ! Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 17, 2019 23:36 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Was the installation working before you tried to create your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Thursday, June 13, 2019 11:14:23 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi, I checked and the variables were created ok by the automated installer. So the missing JEE_PORT message may not be the problem? Some other things I notice. The installation may not actually be finishing / installing correctly. The ssh session has timed out before I see a completion message. I can browse to the logon page, but I can't log in with the standard account/pw. When I try the curl command: curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator I get this: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 6365 Date: Thu, 13 Jun 2019 17:56:43 GMT Connection: close Seen in a chrome browser it looks like this: HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; etc. Any ideas? Thanks, Willi Wolf -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 10, 2019 11:20 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf
WW
William Wolf
Thu, Jun 27, 2019 1:58 PM

Hi Ray,

When I restore my domain database, do you know if this error is significant?

postgres@vultr:/home/postgres$ pg_restore --dbname=alexandernowik_domain alexandernowik_domain.tar
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2770; 2605 16386 CAST CAST (integer AS text)
pg_restore: [archiver (db)] could not execute query: ERROR:  function pg_catalog.text(integer) does not exist
Command was: CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer) AS IMPLICIT;

pg_restore: [archiver (db)] Error from TOC entry 2737; 2605 16387 CAST CAST (bigint AS text)
pg_restore: [archiver (db)] could not execute query: ERROR:  function pg_catalog.text(bigint) does not exist
Command was: CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS IMPLICIT;

WARNING: errors ignored on restore: 2

Thank you,
Willi

-----Original Message-----
From: William Wolf
Sent: Friday, June 21, 2019 13:16
To: Ray Lee ray.lee@lyrasis.org; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

I really appreciate this guidance, I'll let you know how it goes.

Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Wednesday, June 19, 2019 22:01
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
If you're migrating to a new server, you can get by with installing 5.1, and copying over the postgres databases from the 4.1 server. There's not really any advantage to installing the 4.1 application first.

I would install 5.1 on the new server, and make sure it's working. Then drop the databases, and copy your 4.1 databases over, using the postgres tools for that. (Or if you're running the database on a separate server from tomcat, you can just point the 5.1 cspace to that database server). Then run this sql script to update your cspace database to work with 5.1: https://github.com/cspace-deployment/Tools/blob/master/scripts/db/upgrade_4.1_to_5.0.sql

At that point you can copy your tenant configuration over from the services and application source trees. It will mostly be compatible, with a few tweaks, and you'll need to add some new configuration for the 5.x UI. How much did you customize your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Tuesday, June 18, 2019 1:15:54 PM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died.  I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode.  I'm looking forward to using v5.1 soon !

But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1.  I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server.  Then I will upgrade it.  So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed.

Yesterday I got past the libaugeas-ruby dependency.  The current challenge is  getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that.

But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind !

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 17, 2019 23:36
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Was the installation working before you tried to create your tenant?

Ray


From: William Wolf ww@williwolf.net
Sent: Thursday, June 13, 2019 11:14:23 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi,

I checked and the variables were created ok by the automated installer.  So the missing JEE_PORT message may not be the problem?

Some other things I notice.  The installation may not actually be finishing / installing correctly.  The ssh session has timed out before I see a completion message.  I can browse to the logon page, but I can't log in with the standard account/pw.

When I try the curl command:
curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator

I get this:

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 6365
Date: Thu, 13 Jun 2019 17:56:43 GMT
Connection: close

Seen in a chrome browser it looks like this:

HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception root cause
java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService;
etc.

Any ideas?

Thanks,
Willi Wolf

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Monday, June 10, 2019 11:20
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x.

The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables

I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x.

Ray


From: William Wolf ww@williwolf.net
Sent: Saturday, June 8, 2019 8:49:42 AM
To: Ray Lee; talk@lists.collectionspace.org
Subject: RE: creating tenant

Hi Ray,

Thanks.  Would you expect the tenant creation 'easy way' to work with v5.1 ?  I gave it a quick tryout today and the command for

mvn clean install -DskipTests # compile the new configuration

Produced a result shown below.  If it should work I'll go over my steps more closely.  Thanks!

main:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Root 5.1:
[INFO]
[INFO] Root ............................................... FAILURE [  2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.513 s
[INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm                                                                                      ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment                                                                                      variable.  Set it using 8180 as a default value.
[ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a                                                                                      ntrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following art                                                                                      icles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thanks,
Willi

-----Original Message-----
From: Ray Lee ray.lee@lyrasis.org
Sent: Friday, June 7, 2019 12:04
To: William Wolf ww@williwolf.net; talk@lists.collectionspace.org
Subject: Re: creating tenant

Hi Willi,
For services and application you'll want to use v5.1-branch.

For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too.

Thanks,
Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Thursday, June 6, 2019 10:51:26 AM
To: talk@lists.collectionspace.org
Subject: [Talk] creating tenant

Hi,

Last time I created a tenant it went smoothly, but it was four years ago!

Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation.

I do have a question now: which branch in github should I clone for these repos  ?

https://github.com/collectionspace/application.git
https://github.com/collectionspace/services
https://github.com/collectionspace/cspace-ui.js.git

thanks,
Willi Wolf

Hi Ray, When I restore my domain database, do you know if this error is significant? postgres@vultr:/home/postgres$ pg_restore --dbname=alexandernowik_domain alexandernowik_domain.tar pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 2770; 2605 16386 CAST CAST (integer AS text) pg_restore: [archiver (db)] could not execute query: ERROR: function pg_catalog.text(integer) does not exist Command was: CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer) AS IMPLICIT; pg_restore: [archiver (db)] Error from TOC entry 2737; 2605 16387 CAST CAST (bigint AS text) pg_restore: [archiver (db)] could not execute query: ERROR: function pg_catalog.text(bigint) does not exist Command was: CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS IMPLICIT; WARNING: errors ignored on restore: 2 Thank you, Willi -----Original Message----- From: William Wolf Sent: Friday, June 21, 2019 13:16 To: Ray Lee <ray.lee@lyrasis.org>; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, I really appreciate this guidance, I'll let you know how it goes. Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Wednesday, June 19, 2019 22:01 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, If you're migrating to a new server, you can get by with installing 5.1, and copying over the postgres databases from the 4.1 server. There's not really any advantage to installing the 4.1 application first. I would install 5.1 on the new server, and make sure it's working. Then drop the databases, and copy your 4.1 databases over, using the postgres tools for that. (Or if you're running the database on a separate server from tomcat, you can just point the 5.1 cspace to that database server). Then run this sql script to update your cspace database to work with 5.1: https://github.com/cspace-deployment/Tools/blob/master/scripts/db/upgrade_4.1_to_5.0.sql At that point you can copy your tenant configuration over from the services and application source trees. It will mostly be compatible, with a few tweaks, and you'll need to add some new configuration for the 5.x UI. How much did you customize your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Tuesday, June 18, 2019 1:15:54 PM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, I fixed it by using tmux in bash for running the installation script so that I could be sure it finished even if the ssh session died. I'm also experimenting with a new provider--VULTR--with a server that has SSD drives and then the install goes much faster than at Linode. I'm looking forward to using v5.1 soon ! But, it is the case that overall I am in a unique situation: performing a migration to a new server followed by upgrade from v4.1. I am building a v4.1 target server to migrate the v4.1 catalog that is currently running on my old server. Then I will upgrade it. So I'm running the v4.1 installation script on the new server, and I am having to patch in some of the old components to get that to succeed. Yesterday I got past the libaugeas-ruby dependency. The current challenge is getting past the dependency to install Oracle Java 7. I've found the old Java 7 tarball and created the jpkg manually, so next I just need to keep Puppet happy with that. But I will need your advice on the upgrade path from v4.1 to v5.1 if you don't mind ! Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 17, 2019 23:36 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Was the installation working before you tried to create your tenant? Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Thursday, June 13, 2019 11:14:23 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi, I checked and the variables were created ok by the automated installer. So the missing JEE_PORT message may not be the problem? Some other things I notice. The installation may not actually be finishing / installing correctly. The ssh session has timed out before I see a completion message. I can browse to the logon page, but I can't log in with the standard account/pw. When I try the curl command: curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org:Administrator I get this: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 6365 Date: Thu, 13 Jun 2019 17:56:43 GMT Connection: close Seen in a chrome browser it looks like this: HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; etc. Any ideas? Thanks, Willi Wolf -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Monday, June 10, 2019 11:20 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, Yes, that part should work. It looks like you might be missing the JEE_PORT environment variable, which is new in 5.x. The environment variables needed to compile are here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/667353226/Installing+on+Ubuntu+LTS#InstallingonUbuntuLTS-SettingtheCollectionSpaceEnvironmentVariables I believe the *_CREATE_DISABLED_OPT variables were also new in 5.x. Ray ________________________________________ From: William Wolf <ww@williwolf.net> Sent: Saturday, June 8, 2019 8:49:42 AM To: Ray Lee; talk@lists.collectionspace.org Subject: RE: creating tenant Hi Ray, Thanks. Would you expect the tenant creation 'easy way' to work with v5.1 ? I gave it a quick tryout today and the command for mvn clean install -DskipTests # compile the new configuration Produced a result shown below. If it should work I'll go over my steps more closely. Thanks! main: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Root 5.1: [INFO] [INFO] Root ............................................... FAILURE [ 2.248 s] [INFO] CSP: General Utils ................................. SKIPPED [INFO] Collection-Space CSP API ........................... SKIPPED [INFO] CSP: Impl .......................................... SKIPPED [INFO] Collection-Space CSP Helper ........................ SKIPPED [INFO] CSP: Schema ........................................ SKIPPED [INFO] JXUtils ............................................ SKIPPED [INFO] CSP: Web UI ........................................ SKIPPED [INFO] CSP: File .......................................... SKIPPED [INFO] CSP: Services ...................................... SKIPPED [INFO] CSP: Installation .................................. SKIPPED [INFO] tomcat-main ........................................ SKIPPED [INFO] war-entry .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.513 s [INFO] Finished at: 2019-06-08T15:31:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (check-environm ent-vars) on project svcapp: An Ant BuildException has occured: Failed to set JEE_PORT environment variable. Set it using 8180 as a default value. [ERROR] around Ant part ...<fail message="Failed to set JEE_PORT environment variable. Set it usin g 8180 as a default value.">... @ 5:103 in /home/cspace/collectionspace-source/application/target/a ntrun/build-main.xml [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following art icles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Thanks, Willi -----Original Message----- From: Ray Lee <ray.lee@lyrasis.org> Sent: Friday, June 7, 2019 12:04 To: William Wolf <ww@williwolf.net>; talk@lists.collectionspace.org Subject: Re: creating tenant Hi Willi, For services and application you'll want to use v5.1-branch. For UI customizations, you no longer need to fork any source code, so there's no need to clone cspace-ui.js. Start with the documentation here: https://github.com/collectionspace/cspace-ui.js/tree/master/docs/configuration/HowTo. Those docs are in progress, so keep posting questions to this list too. Thanks, Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Thursday, June 6, 2019 10:51:26 AM To: talk@lists.collectionspace.org Subject: [Talk] creating tenant Hi, Last time I created a tenant it went smoothly, but it was four years ago! Now I am doing it again for v5.1, and understand that the documentation is not yet updated for v5.0 / v5.1 so I am planning to muddle through and write notes that might be useful for updating the documentation. I do have a question now: which branch in github should I clone for these repos ? https://github.com/collectionspace/application.git https://github.com/collectionspace/services https://github.com/collectionspace/cspace-ui.js.git thanks, Willi Wolf