talk@lists.collectionspace.org

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

View all threads

Re: [Talk] Migrating to new server: which directories and files ?

WW
William Wolf
Sat, Jul 13, 2019 11:27 PM

Hi Ray,

I've checked carefully and here's what I am seeing:
The ant import mostly succeeds, but at the end shows a build failure, copied below.  That is output around line 350.
The server seems to start because I can get the login page, but perhaps not all services are starting?
When I go to log in, the admin@core.collectionspace.orgmailto:admin@core.collectionspace.org account is not allowing the password Administrator.  So I am essentially locked out at that point.  However if I restore the db cspace_default saved off from the clean install, then am able to log in normally.
Also, I do not remember how I configured the original ahn tenant in 4.1, is there a way to look and find out?
Thanks for your help,
William

Here's the end of the results of the ant import:
[exec] Downloading from central: https://repo.maven.apache.org/maven2/org/collectionspace/services/org.collectionspace.services.authorization-mgt.service/5.1/org.collectionspace.services.authorization-mgt.service-5.1.pom
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] BUILD FAILURE
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Total time:  34.791 s
[exec] [INFO] Finished at: 2019-07-13T20:16:43Z
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] Failed to execute goal on project org.collectionspace.services.authorization-mgt.import: Could not resolve dependencies for project org.collectionspace.services:org.collectionspace.services.authorization-mgt.import:jar:5.1: Failed to collect dependencies at org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Failed to read artifact descriptor for org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.authentication.service:pom:5.1 from/to el4jReleaseRepositoryExternal (http://public-el4.elca-services.ch/el4j/maven2repository): public-el4.elca-services.ch: Name or service not known: Unknown host public-el4.elca-services.ch: Name or service not known -> [Help 1]
[exec] [ERROR]
[exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[exec] [ERROR]
[exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

BUILD FAILED
/home/cspace/collectionspace-source/services/build.xml:275: The following error occurred while executing this line:
/home/cspace/collectionspace-source/services/services/build.xml:148: The following error occurred while executing this line:
/home/cspace/collectionspace-source/services/services/authorization-mgt/build.xml:120: The following error occurred while executing this line:
/home/cspace/collectionspace-source/services/services/authorization-mgt/import/build.xml:53: exec returned: 1

Total time: 38 seconds

Hi Ray, I've checked carefully and here's what I am seeing: The ant import mostly succeeds, but at the end shows a build failure, copied below. That is output around line 350. The server seems to start because I can get the login page, but perhaps not all services are starting? When I go to log in, the admin@core.collectionspace.org<mailto:admin@core.collectionspace.org> account is not allowing the password Administrator. So I am essentially locked out at that point. However if I restore the db cspace_default saved off from the clean install, then am able to log in normally. Also, I do not remember how I configured the original ahn tenant in 4.1, is there a way to look and find out? Thanks for your help, William Here's the end of the results of the ant import: [exec] Downloading from central: https://repo.maven.apache.org/maven2/org/collectionspace/services/org.collectionspace.services.authorization-mgt.service/5.1/org.collectionspace.services.authorization-mgt.service-5.1.pom [exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] BUILD FAILURE [exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] Total time: 34.791 s [exec] [INFO] Finished at: 2019-07-13T20:16:43Z [exec] [INFO] ------------------------------------------------------------------------ [exec] [ERROR] Failed to execute goal on project org.collectionspace.services.authorization-mgt.import: Could not resolve dependencies for project org.collectionspace.services:org.collectionspace.services.authorization-mgt.import:jar:5.1: Failed to collect dependencies at org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Failed to read artifact descriptor for org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.authentication.service:pom:5.1 from/to el4jReleaseRepositoryExternal (http://public-el4.elca-services.ch/el4j/maven2repository): public-el4.elca-services.ch: Name or service not known: Unknown host public-el4.elca-services.ch: Name or service not known -> [Help 1] [exec] [ERROR] [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [exec] [ERROR] [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles: [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException BUILD FAILED /home/cspace/collectionspace-source/services/build.xml:275: The following error occurred while executing this line: /home/cspace/collectionspace-source/services/services/build.xml:148: The following error occurred while executing this line: /home/cspace/collectionspace-source/services/services/authorization-mgt/build.xml:120: The following error occurred while executing this line: /home/cspace/collectionspace-source/services/services/authorization-mgt/import/build.xml:53: exec returned: 1 Total time: 38 seconds
RL
Ray Lee
Tue, Jul 16, 2019 6:06 AM

Hi William,
Now that I think about it more, there's probably only one way you would have done the tenant configuration in 4.1. Look for the source code directories on your 4.1 server. (If you used the automated installer, in the collectionspace-source directory in the cspace user's home directory.)

In the services subdirectory, you should have the directory:

services/common/src/main/cspace/config/services/tenants/ahn

In the application subdirectory, you should have the file:

tomcat-main/src/main/resources/ahn-tenant.xml

And the directory:

tomcat-main/src/main/resources/tenants/ahn

To migrate your tenant, you'll want to start by copying those files/directories over to the same place on your 5.1 server. (There is also config in the ui subdirectory in 4.1, but those won't transfer to 5.1 -- the UI works differently.)

I'm in the middle of updating the tenant configuration docs for 5.x, which should help you with the next steps.

Ray


From: Talk talk-bounces@lists.collectionspace.org on behalf of William Wolf ww@williwolf.net
Sent: Saturday, July 13, 2019 4:27:12 PM
To: talk@lists.collectionspace.org
Subject: Re: [Talk] Migrating to new server: which directories and files ?

Hi Ray,

I’ve checked carefully and here’s what I am seeing:
The ant import mostly succeeds, but at the end shows a build failure, copied below.  That is output around line 350.
The server seems to start because I can get the login page, but perhaps not all services are starting?
When I go to log in, the admin@core.collectionspace.orgmailto:admin@core.collectionspace.org account is not allowing the password Administrator.  So I am essentially locked out at that point.  However if I restore the db cspace_default saved off from the clean install, then am able to log in normally.
Also, I do not remember how I configured the original ahn tenant in 4.1, is there a way to look and find out?
Thanks for your help,
William

Here’s the end of the results of the ant import:
[exec] Downloading from central: https://repo.maven.apache.org/maven2/org/collectionspace/services/org.collectionspace.services.authorization-mgt.service/5.1/org.collectionspace.services.authorization-mgt.service-5.1.pom
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] BUILD FAILURE
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Total time:  34.791 s
[exec] [INFO] Finished at: 2019-07-13T20:16:43Z
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] Failed to execute goal on project org.collectionspace.services.authorization-mgt.import: Could not resolve dependencies for project org.collectionspace.services:org.collectionspace.services.authorization-mgt.import:jar:5.1: Failed to collect dependencies at org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Failed to read artifact descriptor for org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.authentication.service:pom:5.1 from/to el4jReleaseRepositoryExternal (http://public-el4.elca-services.ch/el4j/maven2repository): public-el4.elca-services.ch: Name or service not known: Unknown host public-el4.elca-services.ch: Name or service not known -> [Help 1]
[exec] [ERROR]
[exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[exec] [ERROR]
[exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

BUILD FAILED
/home/cspace/collectionspace-source/services/build.xml:275: The following error occurred while executing this line:
/home/cspace/collectionspace-source/services/services/build.xml:148: The following error occurred while executing this line:
/home/cspace/collectionspace-source/services/services/authorization-mgt/build.xml:120: The following error occurred while executing this line:
/home/cspace/collectionspace-source/services/services/authorization-mgt/import/build.xml:53: exec returned: 1

Total time: 38 seconds

Hi William, Now that I think about it more, there's probably only one way you would have done the tenant configuration in 4.1. Look for the source code directories on your 4.1 server. (If you used the automated installer, in the collectionspace-source directory in the cspace user's home directory.) In the services subdirectory, you should have the directory: services/common/src/main/cspace/config/services/tenants/ahn In the application subdirectory, you should have the file: tomcat-main/src/main/resources/ahn-tenant.xml And the directory: tomcat-main/src/main/resources/tenants/ahn To migrate your tenant, you'll want to start by copying those files/directories over to the same place on your 5.1 server. (There is also config in the ui subdirectory in 4.1, but those won't transfer to 5.1 -- the UI works differently.) I'm in the middle of updating the tenant configuration docs for 5.x, which should help you with the next steps. Ray ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of William Wolf <ww@williwolf.net> Sent: Saturday, July 13, 2019 4:27:12 PM To: talk@lists.collectionspace.org Subject: Re: [Talk] Migrating to new server: which directories and files ? Hi Ray, I’ve checked carefully and here’s what I am seeing: The ant import mostly succeeds, but at the end shows a build failure, copied below. That is output around line 350. The server seems to start because I can get the login page, but perhaps not all services are starting? When I go to log in, the admin@core.collectionspace.org<mailto:admin@core.collectionspace.org> account is not allowing the password Administrator. So I am essentially locked out at that point. However if I restore the db cspace_default saved off from the clean install, then am able to log in normally. Also, I do not remember how I configured the original ahn tenant in 4.1, is there a way to look and find out? Thanks for your help, William Here’s the end of the results of the ant import: [exec] Downloading from central: https://repo.maven.apache.org/maven2/org/collectionspace/services/org.collectionspace.services.authorization-mgt.service/5.1/org.collectionspace.services.authorization-mgt.service-5.1.pom [exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] BUILD FAILURE [exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] Total time: 34.791 s [exec] [INFO] Finished at: 2019-07-13T20:16:43Z [exec] [INFO] ------------------------------------------------------------------------ [exec] [ERROR] Failed to execute goal on project org.collectionspace.services.authorization-mgt.import: Could not resolve dependencies for project org.collectionspace.services:org.collectionspace.services.authorization-mgt.import:jar:5.1: Failed to collect dependencies at org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Failed to read artifact descriptor for org.collectionspace.services:org.collectionspace.services.authentication.service:jar:5.1: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.authentication.service:pom:5.1 from/to el4jReleaseRepositoryExternal (http://public-el4.elca-services.ch/el4j/maven2repository): public-el4.elca-services.ch: Name or service not known: Unknown host public-el4.elca-services.ch: Name or service not known -> [Help 1] [exec] [ERROR] [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [exec] [ERROR] [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles: [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException BUILD FAILED /home/cspace/collectionspace-source/services/build.xml:275: The following error occurred while executing this line: /home/cspace/collectionspace-source/services/services/build.xml:148: The following error occurred while executing this line: /home/cspace/collectionspace-source/services/services/authorization-mgt/build.xml:120: The following error occurred while executing this line: /home/cspace/collectionspace-source/services/services/authorization-mgt/import/build.xml:53: exec returned: 1 Total time: 38 seconds