talk@lists.collectionspace.org

Targeted discussion among implementers and between implementers and the CollectionSpace development team

View all threads

Re: [Talk] collectionspace installation/login

T
TJ
Wed, May 13, 2020 7:45 PM

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding
|  Collate  |    Ctype    |        Access privileges
---------------+---------------+----------+-------------+-------------
+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 | en_US.UTF-8 |
=Tc/nuxeo_default              +
|              |          |            |            |
nuxeo_default=CTc/nuxeo_default+
|              |          |            |            |
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
template0    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8 |
=c/postgres                    +
|              |          |            |            |
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8 |
=c/postgres                    +
|              |          |            |            |
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you prefer), and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and then
went to the new ansible installer, which is going to try to install
6.0, which hasn't been released yet. At this point I'd suggest
waiting until 6.0 is released (should be next week), and starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got overlooked):
at the moment I cant install, build or run anything as the maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.account.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has elapsed
or
updates are forced. Original error: Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.account.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.authoriza
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] ------------------------------------------------

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ------------------------------------------------

--


  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.authoriza
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.authentic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services.authentic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.authentic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it seems)
and from the postgres logs I see something expects something to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorageUtils:
37
6]
Could not find entity with key ={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_default
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_default
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_default
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 =
'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_default
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I also
included
the
logs from both maven runs)
the db/user did not get created so after ansible completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ------------------------------------------

--



  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ------------------------------------------

--

--


  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00
  [exec] [INFO] ------------------------------------------

--

--


  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.services.lis
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.com
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services.com
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.com
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121: The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:153:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform-
listener/build.xml:118: The following error occurred while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command during the
installation. (The manual installation instructions include
a

step to

run ant undeploy deploy create_db import, but ant import
can
be

run

on its own). The ansible installer should be doing that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>; talk@lists.collectionspace.org <
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and permissions
setup
failed
with exception(s): One or more of the required default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the required
default
CollectionSpace administrator roles is missing or was never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i said it
could

create

convertcache, but the directory exists, so i deleted it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-1]

[org.collectionspace.services.nuxeo.client.java.NuxeoConnecto
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-1]
[org.apache.catalina.util.SessionIdGeneratorBase:123]
Creation

of

SecureRandom instance for session ID generation using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException: Failed
to
list
contents of /usr/local/share/apache-tomcat-8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to start up.
Take
a

look

at
catalina.out in the logs directory under tomcat. Are
there

any

exceptions or error messages?

Ray


From: Talk talk-bounces@lists.collectionspace.org on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace installation/login

Please see the below question from a new implementer -
I've

cc'd

him
on this as his note couldn't get through talk for some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache) according to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other combination of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;} a
{color:black;}
a.name {color:black;} .line {height:1px;background-
color:#525D76;border:none;}</style></head><body><h1>HTT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b> Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Description</b>
The

origin

server did not find a current representation for the
target
resource
or
is not willing to disclose that one exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hello Ray, just tested (again) on a fresh machine, like last time(s) no cspace db got created... root@home:~# su - postgres psql postgres@home:~$ psql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ---------------+---------------+----------+-------------+------------- +--------------------------------- nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/nuxeo_default + | | | | | nuxeo_default=CTc/nuxeo_default+ | | | | | reader_default=c/nuxeo_default postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (4 rows) attached the complete ansible run, both maven runs and the ant run Kind regards Toralf On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > Sorry, you should be able to see that page now. > > Can you attach the complete output from the installer up to that > error? > > Thanks, > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Wednesday, May 13, 2020 9:50 AM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > as well I cant run the installer (and parts of it) because fetching > artifacts from your maven repository still gets me > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace- > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > connected. > HTTP request sent, awaiting response... 403 Forbidden > > Kind reagrds > Toralf > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > Hi Toralf, > > In advance of the 6.0 release, I've updated the manual install > > instructions, and verified that they work: > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > I've also verified that the Ansible-based automated installer is > > working: > > > > https://github.com/collectionspace/cspace-installer > > > > If you can, try your install again (whichever way you prefer), and > > let us know how it goes. > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf of > > Ray > > Lee <ray.lee@lyrasis.org> > > Sent: Friday, May 8, 2020 4:12 PM > > To: TJ; Richard Millet > > Cc: talk@lists.collectionspace.org > > Subject: Re: [Talk] collectionspace installation/login > > > > Hi Toralf, > > It sounds like you started with a manual install of 5.2, and then > > went to the new ansible installer, which is going to try to install > > 6.0, which hasn't been released yet. At this point I'd suggest > > waiting until 6.0 is released (should be next week), and starting > > from scratch with the ansible installer. > > > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 6, 2020 5:17 PM > > To: Richard Millet > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > Subject: Re: [Talk] collectionspace installation/login > > > > In addition as I said earlier (I dont know if it got overlooked): > > at the moment I cant install, build or run anything as the maven > > (re)runs fail with: > > > > [exec] [WARNING] Failure to transfer > > org.collectionspace.services:org.collectionspace.services.account.c > > li > > en > > t:6.0-SNAPSHOT/maven-metadata.xml from > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > was cached in the local repository, resolution will not be > > reattempted > > until the update interval of cspace-libs-snapshot-local has elapsed > > or > > updates are forced. Original error: Could not transfer metadata > > org.collectionspace.services:org.collectionspace.services.account.c > > li > > en > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot- > > local > > ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > ): Access denied to: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > , ReasonPhrase:Forbidden. > > [exec] Downloading from cspace-libs-snapshot-local: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > [exec] Downloading from cspace-libs-snapshot-local: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > [exec] [WARNING] Could not transfer metadata > > org.collectionspace.services:org.collectionspace.services.authoriza > > ti > > on > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > snapshot-local ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > ): Access denied to: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > , ReasonPhrase:Forbidden. > > ... > > > > [exec] [INFO] ------------------------------------------------ > > -- > > -- > > -------------------- > > [exec] [INFO] BUILD FAILURE > > [exec] [INFO] ------------------------------------------------ > > -- > > -- > > -------------------- > > [exec] [INFO] Total time: 39.114 s > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > [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.authoriza > > ti > > on > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > org.collectionspace.services:org.collectionspace.services.authentic > > at > > io > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor for > > org.collectionspace.services:org.collectionspace.services.authentic > > at > > io > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > org.collectionspace.services:org.collectionspace.services.authentic > > at > > io > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > ): Access denied to: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > , ReasonPhrase:Forbidden. -> [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 > > /opt/collectionspace/services/build.xml:295: The following error > > occurred while executing this line: > > /opt/collectionspace/services/services/build.xml:148: The following > > error occurred while executing this line: > > /opt/collectionspace/services/services/authorization- > > mgt/build.xml:120: > > The following error occurred while executing this line: > > /opt/collectionspace/services/services/authorization- > > mgt/import/build.xml:53: exec returned: 1 > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > Hello, > > > > > > I did exactly that (via the ansible run) > > > I also included the logs from both maven runs... > > > the ant task did not execute the create_db target (it seems) > > > and from the postgres logs I see something expects something to > > > be > > > in > > > the DB as well... > > > > > > #cspace services startup > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > [org.collectionspace.services.common.storage.jpa.JpaStorageUtils: > > > 37 > > > 6] > > > Could not find entity with key ={roleName=ROLE_1_TENANT_READER} > > > javax.persistence.NoResultException: No entity found for query > > > > > > #postgres > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_default > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL JDBC > > > Driver' > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_default > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_default > > > LOG: execute <unnamed>: BEGIN > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > role0_.created_at as created2_10_, role0_.description as > > > descript3_10_, > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > as > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > role0_.rolegroup > > > as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id > > > as > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_ > > > where > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = > > > '1', > > > $3 > > > = > > > '2' > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > role0_.created_at as created2_10_, role0_.description as > > > descript3_10_, > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > as > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > role0_.rolegroup > > > as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id > > > as > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_ > > > where > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 = > > > '2' > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_default > > > LOG: execute S_1: ROLLBACK > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > TJ, > > > > > > > > You may need to run the following commands BEFORE running the > > > > 'ant > > > > undeploy deploy created_db import' command: > > > > > > > > From the top "services" directory: > > > > > > > > mvn clean install -DskipTests > > > > > > > > From the top "application" directory: > > > > > > > > mvn clean install -DskipTests > > > > > > > > Back to the top "services" directory: > > > > > > > > ant undeploy deploy create_db import > > > > > > > > I hope that works for you, > > > > > > > > Richard > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > wrote: > > > > > ansible didn't show any errors > > > > > I logged the ant run into a file(attached as a.log, I also > > > > > included > > > > > the > > > > > logs from both maven runs) > > > > > the db/user did not get created so after ansible completely > > > > > running > > > > > through, I rerun manually the command > > > > > ant undeploy deploy create_db import > > > > > > > > > > but now I get this: > > > > > ... > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > ---- > > > > > -------------------- > > > > > [exec] [INFO] BUILD FAILURE > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > ---- > > > > > -------------------- > > > > > [exec] [INFO] Total time: 7.089 s > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00 > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > ---- > > > > > -------------------- > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > org.collectionspace.services.listener.reindex: Could not > > > > > resolve > > > > > dependencies for project > > > > > org.collectionspace.services:org.collectionspace.services.lis > > > > > te > > > > > ne > > > > > r. > > > > > rein > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > org.collectionspace.services:org.collectionspace.services.com > > > > > mo > > > > > n: > > > > > ja > > > > > r:6. > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > org.collectionspace.services:org.collectionspace.services.com > > > > > mo > > > > > n: > > > > > ja > > > > > r:6. > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > org.collectionspace.services:org.collectionspace.services.com > > > > > mo > > > > > n: > > > > > po > > > > > m:6. > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > ): Access denied to: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > /opt/collectionspace/services/build.xml:303: The following > > > > > error > > > > > occurred while executing this line: > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: The > > > > > following > > > > > error occurred while executing this line: > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml:153: > > > > > The > > > > > following error occurred while executing this line: > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform- > > > > > listener/build.xml:118: The following error occurred while > > > > > executing > > > > > this line: > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform- > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > Hi Toralf, > > > > > > The cspace_default user and database and those > > > > > > administrator > > > > > roles > > > > > > are created when you run the ant import command during the > > > > > > installation. (The manual installation instructions include > > > > > > a > > > > > step to > > > > > > run ant undeploy deploy create_db import, but ant import > > > > > > can > > > > > > be > > > > > run > > > > > > on its own). The ansible installer should be doing that, > > > > > > though. > > > > > I'm > > > > > > not sure what's going on there. > > > > > > > > > > > > Ray > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > megan.forbes@lyrasis.org>; talk@lists.collectionspace.org < > > > > > > talk@lists.collectionspace.org> > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > hello, > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > I gave up on the manual install and tried the ansible > > > > > > procedure > > > > > > it got me a bit further but cspace-services could not start > > > > > > due > > > > > to > > > > > > - the user cspace_default was not in the db > > > > > > - the database cspace_default was not created > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > Default > > > > > > create/update of tenants, accounts, roles and permissions > > > > > > setup > > > > > > failed > > > > > > with exception(s): One or more of the required default > > > > > > CollectionSpace > > > > > > administrator roles is missing or was never created. > > > > > > java.lang.RuntimeException: One or more of the required > > > > > > default > > > > > > CollectionSpace administrator roles is missing or was never > > > > > created. > > > > > > Kind regards > > > > > > Toralf > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > Hi Toralf, > > > > > > > My first thought is that there's a permissions problem. > > > > > > > Is > > > > > > everything > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > tomcat > > > > > > (typically > > > > > > > named cspace)? > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > ________________________________________ > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > To: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i said it > > > > > > > could > > > > > > create > > > > > > > convertcache, but the directory exists, so i deleted it > > > > > > > and > > > > > > restarted > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > 8.5.40/logs# > > > > > grep > > > > > > > -A1 > > > > > > > ERR cspace-services.log > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop-1] > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > Listener > > > > > > > execution : class > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot create > > > > > > > cache > > > > > > > dir > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > server/data/convertcache > > > > > > > -- > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop-1] > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoConnecto > > > > > rE > > > > > mb > > > > > ed > > > > > de > > > > > > > d: > > > > > > > 137] No repository defined > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop-1] > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:123] > > > > > > > Creation > > > > > of > > > > > > > SecureRandom instance for session ID generation using > > > > > [SHA1PRNG] > > > > > > took > > > > > > > [5,003] milliseconds. > > > > > > > -- > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop-1] > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > Listener > > > > > > > execution : class > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > java.lang.RuntimeException: java.io.IOException: Failed > > > > > > > to > > > > > > > list > > > > > > > contents of /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > Hi Toralf, > > > > > > > > That usually means the server wasn't able to start up. > > > > > > > > Take > > > > > > > > a > > > > > > look > > > > > > > > at > > > > > > > > catalina.out in the logs directory under tomcat. Are > > > > > > > > there > > > > > any > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> on > > > > > > > > behalf > > > > > of > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > Cc: TJ > > > > > > > > Subject: [Talk] Fw: collectionspace installation/login > > > > > > > > > > > > > > > > Please see the below question from a new implementer - > > > > > > > > I've > > > > > cc'd > > > > > > > > him > > > > > > > > on this as his note couldn't get through talk for some > > > > > reason, so > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > CollectionSpace Program Manager > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > 917.267.9676 Cell > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > To: info@collectionspace.org > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org as > > > > > suggested in > > > > > > > > the > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > I installed collection space (and apache) according to > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > and > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > everything went smooth > > > > > > > > but: > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > I changed that to > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and refers > > > > > > > > to > > > > > > > > the > > > > > > login > > > > > > > > "You should be able to log in to the default core > > > > > > > > tenant > > > > > using > > > > > > the > > > > > > > > user > > > > > > > > admin@core.collectionspace.org and the password > > > > > Administrator." > > > > > > > > but no matter if I try this or any other combination of > > > > > admin@ > > > > > > > > the page says: > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > --------- > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > -u > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > HTTP/1.1 404 > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > Content-Language: en > > > > > > > > Content-Length: 1111 > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP Status > > > > > > > > 404 > > > > > > > > - > > > > > Not > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > size:22px;} > > > > > h2 > > > > > > > > {font- > > > > > > > > family:Tahoma,Arial,sans-serif;color:white;background- > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > family:Tahoma,Arial,sans- > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > size:14px;} > > > > > body > > > > > > > > {font- > > > > > > > > family:Tahoma,Arial,sans-serif;color:black;background- > > > > > > color:white;} > > > > > > > > b > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > serif;color:white;background- > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > serif;background:white;color:black;font-size:12px;} a > > > > > > > > {color:black;} > > > > > > > > a.name {color:black;} .line {height:1px;background- > > > > > > > > color:#525D76;border:none;}</style></head><body><h1>HTT > > > > > > > > P > > > > > Status > > > > > > 404 > > > > > > > > - > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> Status > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > services&#47;collectionobjects</p><p><b>Description</b> > > > > > > > > The > > > > > > origin > > > > > > > > server did not find a current representation for the > > > > > > > > target > > > > > > > > resource > > > > > > > > or > > > > > > > > is not willing to disclose that one exists.</p><hr > > > > > class="line" > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > --------- > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > Accept-Ranges: bytes > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > Content-Type: text/html > > > > > > > > Content-Length: 276 > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > <html> > > > > > > > > <head> > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > </head> > > > > > > > > <body> > > > > > > > > <div id="cspace"></div> > > > > > > > > <script src=" > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > "></ > > > > > > sc > > > > > > > > ri > > > > > > > > pt > > > > > > > > <script> > > > > > > > > cspaceUI({ > > > > > > > > basename: > > > > > > > > '/cspace/core', > > > > > > > > prettyUrls: true, > > > > > > > > tenantId: '1', > > > > > > > > }); > > > > > > > > </script> > > > > > > > > </body> > > > > > > > > </html> > > > > > > > > > > > > > _______________________________________________ > > > > > Talk mailing list > > > > > Talk@lists.collectionspace.org > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > _______________________________________________ > > Talk mailing list > > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
RL
Ray Lee
Wed, May 13, 2020 8:22 PM

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off before the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding
|  Collate  |    Ctype    |        Access privileges
---------------+---------------+----------+-------------+-------------
+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 | en_US.UTF-8 |
=Tc/nuxeo_default              +
|              |          |            |            |
nuxeo_default=CTc/nuxeo_default+
|              |          |            |            |
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
template0    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8 |
=c/postgres                    +
|              |          |            |            |
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8 |
=c/postgres                    +
|              |          |            |            |
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you prefer), and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and then
went to the new ansible installer, which is going to try to install
6.0, which hasn't been released yet. At this point I'd suggest
waiting until 6.0 is released (should be next week), and starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got overlooked):
at the moment I cant install, build or run anything as the maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.account.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has elapsed
or
updates are forced. Original error: Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.account.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.authoriza
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] ------------------------------------------------

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ------------------------------------------------

--


  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.authoriza
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.authentic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services.authentic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.authentic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it seems)
and from the postgres logs I see something expects something to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorageUtils:
37
6]
Could not find entity with key ={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_default
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_default
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_default
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 =
'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_default
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I also
included
the
logs from both maven runs)
the db/user did not get created so after ansible completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ------------------------------------------

--



  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ------------------------------------------

--

--


  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00
  [exec] [INFO] ------------------------------------------

--

--


  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.services.lis
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.com
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services.com
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.com
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121: The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:153:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform-
listener/build.xml:118: The following error occurred while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command during the
installation. (The manual installation instructions include
a

step to

run ant undeploy deploy create_db import, but ant import
can
be

run

on its own). The ansible installer should be doing that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>; talk@lists.collectionspace.org <
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and permissions
setup
failed
with exception(s): One or more of the required default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the required
default
CollectionSpace administrator roles is missing or was never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i said it
could

create

convertcache, but the directory exists, so i deleted it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-1]

[org.collectionspace.services.nuxeo.client.java.NuxeoConnecto
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-1]
[org.apache.catalina.util.SessionIdGeneratorBase:123]
Creation

of

SecureRandom instance for session ID generation using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException: Failed
to
list
contents of /usr/local/share/apache-tomcat-8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to start up.
Take
a

look

at
catalina.out in the logs directory under tomcat. Are
there

any

exceptions or error messages?

Ray


From: Talk talk-bounces@lists.collectionspace.org on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace installation/login

Please see the below question from a new implementer -
I've

cc'd

him
on this as his note couldn't get through talk for some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache) according to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other combination of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;} a
{color:black;}
a.name {color:black;} .line {height:1px;background-
color:#525D76;border:none;}</style></head><body><h1>HTT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b> Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Description</b>
The

origin

server did not find a current representation for the
target
resource
or
is not willing to disclose that one exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hi Toralf, Is there any more to the ant log? It looks like it's cut off before the part I'm interested in. Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org ________________________________________ From: TJ <toralf.jabs@gmail.com> Sent: Wednesday, May 13, 2020 3:45 PM To: Ray Lee Cc: talk@lists.collectionspace.org; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, just tested (again) on a fresh machine, like last time(s) no cspace db got created... root@home:~# su - postgres psql postgres@home:~$ psql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ---------------+---------------+----------+-------------+------------- +--------------------------------- nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/nuxeo_default + | | | | | nuxeo_default=CTc/nuxeo_default+ | | | | | reader_default=c/nuxeo_default postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (4 rows) attached the complete ansible run, both maven runs and the ant run Kind regards Toralf On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > Sorry, you should be able to see that page now. > > Can you attach the complete output from the installer up to that > error? > > Thanks, > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Wednesday, May 13, 2020 9:50 AM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > as well I cant run the installer (and parts of it) because fetching > artifacts from your maven repository still gets me > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace- > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > connected. > HTTP request sent, awaiting response... 403 Forbidden > > Kind reagrds > Toralf > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > Hi Toralf, > > In advance of the 6.0 release, I've updated the manual install > > instructions, and verified that they work: > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > I've also verified that the Ansible-based automated installer is > > working: > > > > https://github.com/collectionspace/cspace-installer > > > > If you can, try your install again (whichever way you prefer), and > > let us know how it goes. > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf of > > Ray > > Lee <ray.lee@lyrasis.org> > > Sent: Friday, May 8, 2020 4:12 PM > > To: TJ; Richard Millet > > Cc: talk@lists.collectionspace.org > > Subject: Re: [Talk] collectionspace installation/login > > > > Hi Toralf, > > It sounds like you started with a manual install of 5.2, and then > > went to the new ansible installer, which is going to try to install > > 6.0, which hasn't been released yet. At this point I'd suggest > > waiting until 6.0 is released (should be next week), and starting > > from scratch with the ansible installer. > > > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 6, 2020 5:17 PM > > To: Richard Millet > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > Subject: Re: [Talk] collectionspace installation/login > > > > In addition as I said earlier (I dont know if it got overlooked): > > at the moment I cant install, build or run anything as the maven > > (re)runs fail with: > > > > [exec] [WARNING] Failure to transfer > > org.collectionspace.services:org.collectionspace.services.account.c > > li > > en > > t:6.0-SNAPSHOT/maven-metadata.xml from > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > was cached in the local repository, resolution will not be > > reattempted > > until the update interval of cspace-libs-snapshot-local has elapsed > > or > > updates are forced. Original error: Could not transfer metadata > > org.collectionspace.services:org.collectionspace.services.account.c > > li > > en > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot- > > local > > ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > ): Access denied to: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > , ReasonPhrase:Forbidden. > > [exec] Downloading from cspace-libs-snapshot-local: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > [exec] Downloading from cspace-libs-snapshot-local: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > [exec] [WARNING] Could not transfer metadata > > org.collectionspace.services:org.collectionspace.services.authoriza > > ti > > on > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > snapshot-local ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > ): Access denied to: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > , ReasonPhrase:Forbidden. > > ... > > > > [exec] [INFO] ------------------------------------------------ > > -- > > -- > > -------------------- > > [exec] [INFO] BUILD FAILURE > > [exec] [INFO] ------------------------------------------------ > > -- > > -- > > -------------------- > > [exec] [INFO] Total time: 39.114 s > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > [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.authoriza > > ti > > on > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > org.collectionspace.services:org.collectionspace.services.authentic > > at > > io > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor for > > org.collectionspace.services:org.collectionspace.services.authentic > > at > > io > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > org.collectionspace.services:org.collectionspace.services.authentic > > at > > io > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > ): Access denied to: > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > , ReasonPhrase:Forbidden. -> [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 > > /opt/collectionspace/services/build.xml:295: The following error > > occurred while executing this line: > > /opt/collectionspace/services/services/build.xml:148: The following > > error occurred while executing this line: > > /opt/collectionspace/services/services/authorization- > > mgt/build.xml:120: > > The following error occurred while executing this line: > > /opt/collectionspace/services/services/authorization- > > mgt/import/build.xml:53: exec returned: 1 > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > Hello, > > > > > > I did exactly that (via the ansible run) > > > I also included the logs from both maven runs... > > > the ant task did not execute the create_db target (it seems) > > > and from the postgres logs I see something expects something to > > > be > > > in > > > the DB as well... > > > > > > #cspace services startup > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > [org.collectionspace.services.common.storage.jpa.JpaStorageUtils: > > > 37 > > > 6] > > > Could not find entity with key ={roleName=ROLE_1_TENANT_READER} > > > javax.persistence.NoResultException: No entity found for query > > > > > > #postgres > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_default > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL JDBC > > > Driver' > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_default > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_default > > > LOG: execute <unnamed>: BEGIN > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > role0_.created_at as created2_10_, role0_.description as > > > descript3_10_, > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > as > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > role0_.rolegroup > > > as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id > > > as > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_ > > > where > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_default > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = > > > '1', > > > $3 > > > = > > > '2' > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > role0_.created_at as created2_10_, role0_.description as > > > descript3_10_, > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > as > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > role0_.rolegroup > > > as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id > > > as > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_ > > > where > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_default > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 = > > > '2' > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_default > > > LOG: execute S_1: ROLLBACK > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > TJ, > > > > > > > > You may need to run the following commands BEFORE running the > > > > 'ant > > > > undeploy deploy created_db import' command: > > > > > > > > From the top "services" directory: > > > > > > > > mvn clean install -DskipTests > > > > > > > > From the top "application" directory: > > > > > > > > mvn clean install -DskipTests > > > > > > > > Back to the top "services" directory: > > > > > > > > ant undeploy deploy create_db import > > > > > > > > I hope that works for you, > > > > > > > > Richard > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > wrote: > > > > > ansible didn't show any errors > > > > > I logged the ant run into a file(attached as a.log, I also > > > > > included > > > > > the > > > > > logs from both maven runs) > > > > > the db/user did not get created so after ansible completely > > > > > running > > > > > through, I rerun manually the command > > > > > ant undeploy deploy create_db import > > > > > > > > > > but now I get this: > > > > > ... > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > ---- > > > > > -------------------- > > > > > [exec] [INFO] BUILD FAILURE > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > ---- > > > > > -------------------- > > > > > [exec] [INFO] Total time: 7.089 s > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00 > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > ---- > > > > > -------------------- > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > org.collectionspace.services.listener.reindex: Could not > > > > > resolve > > > > > dependencies for project > > > > > org.collectionspace.services:org.collectionspace.services.lis > > > > > te > > > > > ne > > > > > r. > > > > > rein > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > org.collectionspace.services:org.collectionspace.services.com > > > > > mo > > > > > n: > > > > > ja > > > > > r:6. > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > org.collectionspace.services:org.collectionspace.services.com > > > > > mo > > > > > n: > > > > > ja > > > > > r:6. > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > org.collectionspace.services:org.collectionspace.services.com > > > > > mo > > > > > n: > > > > > po > > > > > m:6. > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > ): Access denied to: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > /opt/collectionspace/services/build.xml:303: The following > > > > > error > > > > > occurred while executing this line: > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: The > > > > > following > > > > > error occurred while executing this line: > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml:153: > > > > > The > > > > > following error occurred while executing this line: > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform- > > > > > listener/build.xml:118: The following error occurred while > > > > > executing > > > > > this line: > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo-platform- > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > Hi Toralf, > > > > > > The cspace_default user and database and those > > > > > > administrator > > > > > roles > > > > > > are created when you run the ant import command during the > > > > > > installation. (The manual installation instructions include > > > > > > a > > > > > step to > > > > > > run ant undeploy deploy create_db import, but ant import > > > > > > can > > > > > > be > > > > > run > > > > > > on its own). The ansible installer should be doing that, > > > > > > though. > > > > > I'm > > > > > > not sure what's going on there. > > > > > > > > > > > > Ray > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > megan.forbes@lyrasis.org>; talk@lists.collectionspace.org < > > > > > > talk@lists.collectionspace.org> > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > hello, > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > I gave up on the manual install and tried the ansible > > > > > > procedure > > > > > > it got me a bit further but cspace-services could not start > > > > > > due > > > > > to > > > > > > - the user cspace_default was not in the db > > > > > > - the database cspace_default was not created > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > Default > > > > > > create/update of tenants, accounts, roles and permissions > > > > > > setup > > > > > > failed > > > > > > with exception(s): One or more of the required default > > > > > > CollectionSpace > > > > > > administrator roles is missing or was never created. > > > > > > java.lang.RuntimeException: One or more of the required > > > > > > default > > > > > > CollectionSpace administrator roles is missing or was never > > > > > created. > > > > > > Kind regards > > > > > > Toralf > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > Hi Toralf, > > > > > > > My first thought is that there's a permissions problem. > > > > > > > Is > > > > > > everything > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > tomcat > > > > > > (typically > > > > > > > named cspace)? > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > ________________________________________ > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > To: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i said it > > > > > > > could > > > > > > create > > > > > > > convertcache, but the directory exists, so i deleted it > > > > > > > and > > > > > > restarted > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > 8.5.40/logs# > > > > > grep > > > > > > > -A1 > > > > > > > ERR cspace-services.log > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop-1] > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > Listener > > > > > > > execution : class > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot create > > > > > > > cache > > > > > > > dir > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > server/data/convertcache > > > > > > > -- > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop-1] > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoConnecto > > > > > rE > > > > > mb > > > > > ed > > > > > de > > > > > > > d: > > > > > > > 137] No repository defined > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop-1] > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:123] > > > > > > > Creation > > > > > of > > > > > > > SecureRandom instance for session ID generation using > > > > > [SHA1PRNG] > > > > > > took > > > > > > > [5,003] milliseconds. > > > > > > > -- > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop-1] > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > Listener > > > > > > > execution : class > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > java.lang.RuntimeException: java.io.IOException: Failed > > > > > > > to > > > > > > > list > > > > > > > contents of /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > Hi Toralf, > > > > > > > > That usually means the server wasn't able to start up. > > > > > > > > Take > > > > > > > > a > > > > > > look > > > > > > > > at > > > > > > > > catalina.out in the logs directory under tomcat. Are > > > > > > > > there > > > > > any > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> on > > > > > > > > behalf > > > > > of > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > Cc: TJ > > > > > > > > Subject: [Talk] Fw: collectionspace installation/login > > > > > > > > > > > > > > > > Please see the below question from a new implementer - > > > > > > > > I've > > > > > cc'd > > > > > > > > him > > > > > > > > on this as his note couldn't get through talk for some > > > > > reason, so > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > CollectionSpace Program Manager > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > 917.267.9676 Cell > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > To: info@collectionspace.org > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org as > > > > > suggested in > > > > > > > > the > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > I installed collection space (and apache) according to > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > and > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > everything went smooth > > > > > > > > but: > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > I changed that to > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and refers > > > > > > > > to > > > > > > > > the > > > > > > login > > > > > > > > "You should be able to log in to the default core > > > > > > > > tenant > > > > > using > > > > > > the > > > > > > > > user > > > > > > > > admin@core.collectionspace.org and the password > > > > > Administrator." > > > > > > > > but no matter if I try this or any other combination of > > > > > admin@ > > > > > > > > the page says: > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > --------- > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > -u > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > HTTP/1.1 404 > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > Content-Language: en > > > > > > > > Content-Length: 1111 > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP Status > > > > > > > > 404 > > > > > > > > - > > > > > Not > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > size:22px;} > > > > > h2 > > > > > > > > {font- > > > > > > > > family:Tahoma,Arial,sans-serif;color:white;background- > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > family:Tahoma,Arial,sans- > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > size:14px;} > > > > > body > > > > > > > > {font- > > > > > > > > family:Tahoma,Arial,sans-serif;color:black;background- > > > > > > color:white;} > > > > > > > > b > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > serif;color:white;background- > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > serif;background:white;color:black;font-size:12px;} a > > > > > > > > {color:black;} > > > > > > > > a.name {color:black;} .line {height:1px;background- > > > > > > > > color:#525D76;border:none;}</style></head><body><h1>HTT > > > > > > > > P > > > > > Status > > > > > > 404 > > > > > > > > - > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> Status > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > services&#47;collectionobjects</p><p><b>Description</b> > > > > > > > > The > > > > > > origin > > > > > > > > server did not find a current representation for the > > > > > > > > target > > > > > > > > resource > > > > > > > > or > > > > > > > > is not willing to disclose that one exists.</p><hr > > > > > class="line" > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > --------- > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > Accept-Ranges: bytes > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > Content-Type: text/html > > > > > > > > Content-Length: 276 > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > <html> > > > > > > > > <head> > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > </head> > > > > > > > > <body> > > > > > > > > <div id="cspace"></div> > > > > > > > > <script src=" > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > "></ > > > > > > sc > > > > > > > > ri > > > > > > > > pt > > > > > > > > <script> > > > > > > > > cspaceUI({ > > > > > > > > basename: > > > > > > > > '/cspace/core', > > > > > > > > prettyUrls: true, > > > > > > > > tenantId: '1', > > > > > > > > }); > > > > > > > > </script> > > > > > > > > </body> > > > > > > > > </html> > > > > > > > > > > > > > _______________________________________________ > > > > > Talk mailing list > > > > > Talk@lists.collectionspace.org > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > _______________________________________________ > > Talk mailing list > > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
T
TJ
Wed, May 13, 2020 8:45 PM

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+----------

+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd suggest
waiting until 6.0 is released (should be next week), and starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got overlooked):
at the moment I cant install, build or run anything as the maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.account
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.account
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.authori
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] ----------------------------------------------

--

--

  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ----------------------------------------------

--

--

  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.authori
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.authent
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor
for
org.collectionspace.services:org.collectionspace.services.authent
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.authent
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it seems)
and from the postgres logs I see something expects something to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorageUtil
s:
37
6]
Could not find entity with key ={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I also
included
the
logs from both maven runs)
the db/user did not get created so after ansible completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ----------------------------------------

--

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ----------------------------------------

--

--



  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00
  [exec] [INFO] ----------------------------------------

--

--



  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.services.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121: The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:153:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command during
the
installation. (The manual installation instructions
include
a

step to

run ant undeploy deploy create_db import, but ant import
can
be

run

on its own). The ansible installer should be doing that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>; talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and permissions
setup
failed
with exception(s): One or more of the required default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the required
default
CollectionSpace administrator roles is missing or was
never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i said
it
could

create

convertcache, but the directory exists, so i deleted it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-1]

[org.collectionspace.services.nuxeo.client.java.NuxeoConnec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-1]
[org.apache.catalina.util.SessionIdGeneratorBase:123]
Creation

of

SecureRandom instance for session ID generation using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException: Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to start
up.
Take
a

look

at
catalina.out in the logs directory under tomcat. Are
there

any

exceptions or error messages?

Ray


From: Talk talk-bounces@lists.collectionspace.org
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new implementer

I've

cc'd

him
on this as his note couldn't get through talk for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache) according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;} a
{color:black;}
a.name {color:black;} .line {height:1px;background-
color:#525D76;border:none;}</style></head><body><h1>H
TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Description</
b>
The

origin

server did not find a current representation for the
target
resource
or
is not willing to disclose that one exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hello Ray, no, that's all I got... Kind regards Toralf On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > Hi Toralf, > Is there any more to the ant log? It looks like it's cut off before > the part I'm interested in. > > Thanks, > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Wednesday, May 13, 2020 3:45 PM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > just tested (again) on a fresh machine, > like last time(s) no cspace db got created... > root@home:~# su - postgres > psql postgres@home:~$ psql -l > List of databases > Name | Owner | Encoding > > Collate | Ctype | Access privileges > ---------------+---------------+----------+-------------+---------- > --- > +--------------------------------- > nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | en_US.UTF-8 > | > =Tc/nuxeo_default + > | | | | > | > nuxeo_default=CTc/nuxeo_default+ > | | | | > | > reader_default=c/nuxeo_default > postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 > template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 > | > =c/postgres + > | | | | > | > postgres=CTc/postgres > template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 > | > =c/postgres + > | | | | > | > postgres=CTc/postgres > (4 rows) > > attached the complete ansible run, both maven runs and the ant run > > Kind regards > Toralf > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > Sorry, you should be able to see that page now. > > > > Can you attach the complete output from the installer up to that > > error? > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 13, 2020 9:50 AM > > To: Ray Lee > > Cc: talk@lists.collectionspace.org; Rob Clark > > Subject: Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > as well I cant run the installer (and parts of it) because fetching > > artifacts from your maven repository still gets me > > > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace- > > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > > connected. > > HTTP request sent, awaiting response... 403 Forbidden > > > > Kind reagrds > > Toralf > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > Hi Toralf, > > > In advance of the 6.0 release, I've updated the manual install > > > instructions, and verified that they work: > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > I've also verified that the Ansible-based automated installer is > > > working: > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > If you can, try your install again (whichever way you prefer), > > > and > > > let us know how it goes. > > > > > > Thanks, > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf of > > > Ray > > > Lee <ray.lee@lyrasis.org> > > > Sent: Friday, May 8, 2020 4:12 PM > > > To: TJ; Richard Millet > > > Cc: talk@lists.collectionspace.org > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > Hi Toralf, > > > It sounds like you started with a manual install of 5.2, and then > > > went to the new ansible installer, which is going to try to > > > install > > > 6.0, which hasn't been released yet. At this point I'd suggest > > > waiting until 6.0 is released (should be next week), and starting > > > from scratch with the ansible installer. > > > > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: TJ <toralf.jabs@gmail.com> > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > To: Richard Millet > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > In addition as I said earlier (I dont know if it got overlooked): > > > at the moment I cant install, build or run anything as the maven > > > (re)runs fail with: > > > > > > [exec] [WARNING] Failure to transfer > > > org.collectionspace.services:org.collectionspace.services.account > > > .c > > > li > > > en > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > was cached in the local repository, resolution will not be > > > reattempted > > > until the update interval of cspace-libs-snapshot-local has > > > elapsed > > > or > > > updates are forced. Original error: Could not transfer metadata > > > org.collectionspace.services:org.collectionspace.services.account > > > .c > > > li > > > en > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot- > > > local > > > ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > ): Access denied to: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > , ReasonPhrase:Forbidden. > > > [exec] Downloading from cspace-libs-snapshot-local: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > [exec] Downloading from cspace-libs-snapshot-local: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > [exec] [WARNING] Could not transfer metadata > > > org.collectionspace.services:org.collectionspace.services.authori > > > za > > > ti > > > on > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > > snapshot-local ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > ): Access denied to: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > , ReasonPhrase:Forbidden. > > > ... > > > > > > [exec] [INFO] ---------------------------------------------- > > > -- > > > -- > > > -- > > > -------------------- > > > [exec] [INFO] BUILD FAILURE > > > [exec] [INFO] ---------------------------------------------- > > > -- > > > -- > > > -- > > > -------------------- > > > [exec] [INFO] Total time: 39.114 s > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > [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.authori > > > za > > > ti > > > on > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > org.collectionspace.services:org.collectionspace.services.authent > > > ic > > > at > > > io > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor > > > for > > > org.collectionspace.services:org.collectionspace.services.authent > > > ic > > > at > > > io > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > org.collectionspace.services:org.collectionspace.services.authent > > > ic > > > at > > > io > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > ): Access denied to: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > , ReasonPhrase:Forbidden. -> [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 > > > /opt/collectionspace/services/build.xml:295: The following error > > > occurred while executing this line: > > > /opt/collectionspace/services/services/build.xml:148: The > > > following > > > error occurred while executing this line: > > > /opt/collectionspace/services/services/authorization- > > > mgt/build.xml:120: > > > The following error occurred while executing this line: > > > /opt/collectionspace/services/services/authorization- > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > Hello, > > > > > > > > I did exactly that (via the ansible run) > > > > I also included the logs from both maven runs... > > > > the ant task did not execute the create_db target (it seems) > > > > and from the postgres logs I see something expects something to > > > > be > > > > in > > > > the DB as well... > > > > > > > > #cspace services startup > > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > > [org.collectionspace.services.common.storage.jpa.JpaStorageUtil > > > > s: > > > > 37 > > > > 6] > > > > Could not find entity with key ={roleName=ROLE_1_TENANT_READER} > > > > javax.persistence.NoResultException: No entity found for query > > > > > > > > #postgres > > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL > > > > JDBC > > > > Driver' > > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: BEGIN > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > role0_.created_at as created2_10_, role0_.description as > > > > descript3_10_, > > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > > as > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > role0_.rolegroup > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > role0_.tenant_id > > > > as > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > role0_ > > > > where > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = > > > > '1', > > > > $3 > > > > = > > > > '2' > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > role0_.created_at as created2_10_, role0_.description as > > > > descript3_10_, > > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > > as > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > role0_.rolegroup > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > role0_.tenant_id > > > > as > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > role0_ > > > > where > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 > > > > = > > > > '2' > > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute S_1: ROLLBACK > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > > TJ, > > > > > > > > > > You may need to run the following commands BEFORE running the > > > > > 'ant > > > > > undeploy deploy created_db import' command: > > > > > > > > > > From the top "services" directory: > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > From the top "application" directory: > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > Back to the top "services" directory: > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > I hope that works for you, > > > > > > > > > > Richard > > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > > wrote: > > > > > > ansible didn't show any errors > > > > > > I logged the ant run into a file(attached as a.log, I also > > > > > > included > > > > > > the > > > > > > logs from both maven runs) > > > > > > the db/user did not get created so after ansible completely > > > > > > running > > > > > > through, I rerun manually the command > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > but now I get this: > > > > > > ... > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > ---- > > > > > > -------------------- > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > ---- > > > > > > -------------------- > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00 > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > ---- > > > > > > -------------------- > > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > > org.collectionspace.services.listener.reindex: Could not > > > > > > resolve > > > > > > dependencies for project > > > > > > org.collectionspace.services:org.collectionspace.services.l > > > > > > is > > > > > > te > > > > > > ne > > > > > > r. > > > > > > rein > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > > org.collectionspace.services:org.collectionspace.services.c > > > > > > om > > > > > > mo > > > > > > n: > > > > > > ja > > > > > > r:6. > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > org.collectionspace.services:org.collectionspace.services.c > > > > > > om > > > > > > mo > > > > > > n: > > > > > > ja > > > > > > r:6. > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > org.collectionspace.services:org.collectionspace.services.c > > > > > > om > > > > > > mo > > > > > > n: > > > > > > po > > > > > > m:6. > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > ): Access denied to: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > /opt/collectionspace/services/build.xml:303: The following > > > > > > error > > > > > > occurred while executing this line: > > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: The > > > > > > following > > > > > > error occurred while executing this line: > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml:153: > > > > > > The > > > > > > following error occurred while executing this line: > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > platform- > > > > > > listener/build.xml:118: The following error occurred while > > > > > > executing > > > > > > this line: > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > platform- > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > Hi Toralf, > > > > > > > The cspace_default user and database and those > > > > > > > administrator > > > > > > roles > > > > > > > are created when you run the ant import command during > > > > > > > the > > > > > > > installation. (The manual installation instructions > > > > > > > include > > > > > > > a > > > > > > step to > > > > > > > run ant undeploy deploy create_db import, but ant import > > > > > > > can > > > > > > > be > > > > > > run > > > > > > > on its own). The ansible installer should be doing that, > > > > > > > though. > > > > > > I'm > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > Ray > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > megan.forbes@lyrasis.org>; talk@lists.collectionspace.org > > > > > > > < > > > > > > > talk@lists.collectionspace.org> > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > I gave up on the manual install and tried the ansible > > > > > > > procedure > > > > > > > it got me a bit further but cspace-services could not > > > > > > > start > > > > > > > due > > > > > > to > > > > > > > - the user cspace_default was not in the db > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > > Default > > > > > > > create/update of tenants, accounts, roles and permissions > > > > > > > setup > > > > > > > failed > > > > > > > with exception(s): One or more of the required default > > > > > > > CollectionSpace > > > > > > > administrator roles is missing or was never created. > > > > > > > java.lang.RuntimeException: One or more of the required > > > > > > > default > > > > > > > CollectionSpace administrator roles is missing or was > > > > > > > never > > > > > > created. > > > > > > > Kind regards > > > > > > > Toralf > > > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > Hi Toralf, > > > > > > > > My first thought is that there's a permissions problem. > > > > > > > > Is > > > > > > > everything > > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > > tomcat > > > > > > > (typically > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > talk@lists.collectionspace.org > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i said > > > > > > > > it > > > > > > > > could > > > > > > > create > > > > > > > > convertcache, but the directory exists, so i deleted it > > > > > > > > and > > > > > > > restarted > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > > 8.5.40/logs# > > > > > > grep > > > > > > > > -A1 > > > > > > > > ERR cspace-services.log > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop-1] > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > > Listener > > > > > > > > execution : class > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot create > > > > > > > > cache > > > > > > > > dir > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > server/data/convertcache > > > > > > > > -- > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop-1] > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoConnec > > > > > > to > > > > > > rE > > > > > > mb > > > > > > ed > > > > > > de > > > > > > > > d: > > > > > > > > 137] No repository defined > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop-1] > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:123] > > > > > > > > Creation > > > > > > of > > > > > > > > SecureRandom instance for session ID generation using > > > > > > [SHA1PRNG] > > > > > > > took > > > > > > > > [5,003] milliseconds. > > > > > > > > -- > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop-1] > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > > Listener > > > > > > > > execution : class > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > java.lang.RuntimeException: java.io.IOException: Failed > > > > > > > > to > > > > > > > > list > > > > > > > > contents of /usr/local/share/apache-tomcat- > > > > > > > > 8.5.40/nuxeo- > > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > > Hi Toralf, > > > > > > > > > That usually means the server wasn't able to start > > > > > > > > > up. > > > > > > > > > Take > > > > > > > > > a > > > > > > > look > > > > > > > > > at > > > > > > > > > catalina.out in the logs directory under tomcat. Are > > > > > > > > > there > > > > > > any > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> > > > > > > > > > on > > > > > > > > > behalf > > > > > > of > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > Cc: TJ > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > Please see the below question from a new implementer > > > > > > > > > - > > > > > > > > > I've > > > > > > cc'd > > > > > > > > > him > > > > > > > > > on this as his note couldn't get through talk for > > > > > > > > > some > > > > > > reason, so > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > 917.267.9676 Cell > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > To: info@collectionspace.org > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org as > > > > > > suggested in > > > > > > > > > the > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > I installed collection space (and apache) according > > > > > > > > > to > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > and > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > everything went smooth > > > > > > > > > but: > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and > > > > > > > > > refers > > > > > > > > > to > > > > > > > > > the > > > > > > > login > > > > > > > > > "You should be able to log in to the default core > > > > > > > > > tenant > > > > > > using > > > > > > > the > > > > > > > > > user > > > > > > > > > admin@core.collectionspace.org and the password > > > > > > Administrator." > > > > > > > > > but no matter if I try this or any other combination > > > > > > > > > of > > > > > > admin@ > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > --------- > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > -u > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > HTTP/1.1 404 > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > Content-Language: en > > > > > > > > > Content-Length: 1111 > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP > > > > > > > > > Status > > > > > > > > > 404 > > > > > > > > > - > > > > > > Not > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > size:22px;} > > > > > > h2 > > > > > > > > > {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background- > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > size:14px;} > > > > > > body > > > > > > > > > {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:black;background- > > > > > > > color:white;} > > > > > > > > > b > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background- > > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > > serif;background:white;color:black;font-size:12px;} a > > > > > > > > > {color:black;} > > > > > > > > > a.name {color:black;} .line {height:1px;background- > > > > > > > > > color:#525D76;border:none;}</style></head><body><h1>H > > > > > > > > > TT > > > > > > > > > P > > > > > > Status > > > > > > > 404 > > > > > > > > > - > > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> > > > > > > > > > Status > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > services&#47;collectionobjects</p><p><b>Description</ > > > > > > > > > b> > > > > > > > > > The > > > > > > > origin > > > > > > > > > server did not find a current representation for the > > > > > > > > > target > > > > > > > > > resource > > > > > > > > > or > > > > > > > > > is not willing to disclose that one exists.</p><hr > > > > > > class="line" > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > Content-Type: text/html > > > > > > > > > Content-Length: 276 > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > <head> > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > </head> > > > > > > > > > <body> > > > > > > > > > <div id="cspace"></div> > > > > > > > > > <script src=" > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > "></ > > > > > > > sc > > > > > > > > > ri > > > > > > > > > pt > > > > > > > > > <script> > > > > > > > > > cspaceUI({ > > > > > > > > > basename: > > > > > > > > > '/cspace/core', > > > > > > > > > prettyUrls: true, > > > > > > > > > tenantId: '1', > > > > > > > > > }); > > > > > > > > > </script> > > > > > > > > > </body> > > > > > > > > > </html> > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Talk mailing list > > > > > > Talk@lists.collectionspace.org > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > _______________________________________________ > > > Talk mailing list > > > Talk@lists.collectionspace.org > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
RL
Ray Lee
Thu, May 14, 2020 12:54 AM

Hi Toralf,
How are you capturing that ant output? Either there's something wrong with that, or ant is silently terminating before it gets to the create_db target -- which is a possibility, since that's what would create the cspace database.

Is there anything interesting in the syslog at the time of the last message in the ant output?

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 4:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+----------

+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 | en_US.UTF-8
|
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd suggest
waiting until 6.0 is released (should be next week), and starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got overlooked):
at the moment I cant install, build or run anything as the maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.account
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.account
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.authori
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] ----------------------------------------------

--

--

  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ----------------------------------------------

--

--

  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.authori
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.authent
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor
for
org.collectionspace.services:org.collectionspace.services.authent
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.authent
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it seems)
and from the postgres logs I see something expects something to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorageUtil
s:
37
6]
Could not find entity with key ={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_, role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_defau
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I also
included
the
logs from both maven runs)
the db/user did not get created so after ansible completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ----------------------------------------

--

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ----------------------------------------

--

--



  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00
  [exec] [INFO] ----------------------------------------

--

--



  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.services.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121: The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:153:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command during
the
installation. (The manual installation instructions
include
a

step to

run ant undeploy deploy create_db import, but ant import
can
be

run

on its own). The ansible installer should be doing that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>; talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and permissions
setup
failed
with exception(s): One or more of the required default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the required
default
CollectionSpace administrator roles is missing or was
never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i said
it
could

create

convertcache, but the directory exists, so i deleted it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-1]

[org.collectionspace.services.nuxeo.client.java.NuxeoConnec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-1]
[org.apache.catalina.util.SessionIdGeneratorBase:123]
Creation

of

SecureRandom instance for session ID generation using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException: Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to start
up.
Take
a

look

at
catalina.out in the logs directory under tomcat. Are
there

any

exceptions or error messages?

Ray


From: Talk talk-bounces@lists.collectionspace.org
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new implementer

I've

cc'd

him
on this as his note couldn't get through talk for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache) according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;} a
{color:black;}
a.name {color:black;} .line {height:1px;background-
color:#525D76;border:none;}</style></head><body><h1>H
TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Description</
b>
The

origin

server did not find a current representation for the
target
resource
or
is not willing to disclose that one exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hi Toralf, How are you capturing that ant output? Either there's something wrong with that, or ant is silently terminating before it gets to the create_db target -- which is a possibility, since that's what would create the cspace database. Is there anything interesting in the syslog at the time of the last message in the ant output? Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org ________________________________________ From: TJ <toralf.jabs@gmail.com> Sent: Wednesday, May 13, 2020 4:45 PM To: Ray Lee Cc: talk@lists.collectionspace.org; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, no, that's all I got... Kind regards Toralf On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > Hi Toralf, > Is there any more to the ant log? It looks like it's cut off before > the part I'm interested in. > > Thanks, > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Wednesday, May 13, 2020 3:45 PM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > just tested (again) on a fresh machine, > like last time(s) no cspace db got created... > root@home:~# su - postgres > psql postgres@home:~$ psql -l > List of databases > Name | Owner | Encoding > > Collate | Ctype | Access privileges > ---------------+---------------+----------+-------------+---------- > --- > +--------------------------------- > nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | en_US.UTF-8 > | > =Tc/nuxeo_default + > | | | | > | > nuxeo_default=CTc/nuxeo_default+ > | | | | > | > reader_default=c/nuxeo_default > postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 > template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 > | > =c/postgres + > | | | | > | > postgres=CTc/postgres > template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 > | > =c/postgres + > | | | | > | > postgres=CTc/postgres > (4 rows) > > attached the complete ansible run, both maven runs and the ant run > > Kind regards > Toralf > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > Sorry, you should be able to see that page now. > > > > Can you attach the complete output from the installer up to that > > error? > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 13, 2020 9:50 AM > > To: Ray Lee > > Cc: talk@lists.collectionspace.org; Rob Clark > > Subject: Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > as well I cant run the installer (and parts of it) because fetching > > artifacts from your maven repository still gets me > > > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace- > > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > > connected. > > HTTP request sent, awaiting response... 403 Forbidden > > > > Kind reagrds > > Toralf > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > Hi Toralf, > > > In advance of the 6.0 release, I've updated the manual install > > > instructions, and verified that they work: > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > I've also verified that the Ansible-based automated installer is > > > working: > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > If you can, try your install again (whichever way you prefer), > > > and > > > let us know how it goes. > > > > > > Thanks, > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf of > > > Ray > > > Lee <ray.lee@lyrasis.org> > > > Sent: Friday, May 8, 2020 4:12 PM > > > To: TJ; Richard Millet > > > Cc: talk@lists.collectionspace.org > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > Hi Toralf, > > > It sounds like you started with a manual install of 5.2, and then > > > went to the new ansible installer, which is going to try to > > > install > > > 6.0, which hasn't been released yet. At this point I'd suggest > > > waiting until 6.0 is released (should be next week), and starting > > > from scratch with the ansible installer. > > > > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: TJ <toralf.jabs@gmail.com> > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > To: Richard Millet > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > In addition as I said earlier (I dont know if it got overlooked): > > > at the moment I cant install, build or run anything as the maven > > > (re)runs fail with: > > > > > > [exec] [WARNING] Failure to transfer > > > org.collectionspace.services:org.collectionspace.services.account > > > .c > > > li > > > en > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > was cached in the local repository, resolution will not be > > > reattempted > > > until the update interval of cspace-libs-snapshot-local has > > > elapsed > > > or > > > updates are forced. Original error: Could not transfer metadata > > > org.collectionspace.services:org.collectionspace.services.account > > > .c > > > li > > > en > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot- > > > local > > > ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > ): Access denied to: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > , ReasonPhrase:Forbidden. > > > [exec] Downloading from cspace-libs-snapshot-local: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > [exec] Downloading from cspace-libs-snapshot-local: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > [exec] [WARNING] Could not transfer metadata > > > org.collectionspace.services:org.collectionspace.services.authori > > > za > > > ti > > > on > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > > snapshot-local ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > ): Access denied to: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > , ReasonPhrase:Forbidden. > > > ... > > > > > > [exec] [INFO] ---------------------------------------------- > > > -- > > > -- > > > -- > > > -------------------- > > > [exec] [INFO] BUILD FAILURE > > > [exec] [INFO] ---------------------------------------------- > > > -- > > > -- > > > -- > > > -------------------- > > > [exec] [INFO] Total time: 39.114 s > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > [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.authori > > > za > > > ti > > > on > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > org.collectionspace.services:org.collectionspace.services.authent > > > ic > > > at > > > io > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor > > > for > > > org.collectionspace.services:org.collectionspace.services.authent > > > ic > > > at > > > io > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > org.collectionspace.services:org.collectionspace.services.authent > > > ic > > > at > > > io > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > ): Access denied to: > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > , ReasonPhrase:Forbidden. -> [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 > > > /opt/collectionspace/services/build.xml:295: The following error > > > occurred while executing this line: > > > /opt/collectionspace/services/services/build.xml:148: The > > > following > > > error occurred while executing this line: > > > /opt/collectionspace/services/services/authorization- > > > mgt/build.xml:120: > > > The following error occurred while executing this line: > > > /opt/collectionspace/services/services/authorization- > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > Hello, > > > > > > > > I did exactly that (via the ansible run) > > > > I also included the logs from both maven runs... > > > > the ant task did not execute the create_db target (it seems) > > > > and from the postgres logs I see something expects something to > > > > be > > > > in > > > > the DB as well... > > > > > > > > #cspace services startup > > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > > [org.collectionspace.services.common.storage.jpa.JpaStorageUtil > > > > s: > > > > 37 > > > > 6] > > > > Could not find entity with key ={roleName=ROLE_1_TENANT_READER} > > > > javax.persistence.NoResultException: No entity found for query > > > > > > > > #postgres > > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL > > > > JDBC > > > > Driver' > > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: BEGIN > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > role0_.created_at as created2_10_, role0_.description as > > > > descript3_10_, > > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > > as > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > role0_.rolegroup > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > role0_.tenant_id > > > > as > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > role0_ > > > > where > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = > > > > '1', > > > > $3 > > > > = > > > > '2' > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > role0_.created_at as created2_10_, role0_.description as > > > > descript3_10_, > > > > role0_.displayname as displayn4_10_, role0_.metadata_protection > > > > as > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > role0_.rolegroup > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > role0_.tenant_id > > > > as > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > role0_ > > > > where > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 > > > > = > > > > '2' > > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_defau > > > > lt > > > > LOG: execute S_1: ROLLBACK > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > > TJ, > > > > > > > > > > You may need to run the following commands BEFORE running the > > > > > 'ant > > > > > undeploy deploy created_db import' command: > > > > > > > > > > From the top "services" directory: > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > From the top "application" directory: > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > Back to the top "services" directory: > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > I hope that works for you, > > > > > > > > > > Richard > > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > > wrote: > > > > > > ansible didn't show any errors > > > > > > I logged the ant run into a file(attached as a.log, I also > > > > > > included > > > > > > the > > > > > > logs from both maven runs) > > > > > > the db/user did not get created so after ansible completely > > > > > > running > > > > > > through, I rerun manually the command > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > but now I get this: > > > > > > ... > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > ---- > > > > > > -------------------- > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > ---- > > > > > > -------------------- > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00 > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > ---- > > > > > > -------------------- > > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > > org.collectionspace.services.listener.reindex: Could not > > > > > > resolve > > > > > > dependencies for project > > > > > > org.collectionspace.services:org.collectionspace.services.l > > > > > > is > > > > > > te > > > > > > ne > > > > > > r. > > > > > > rein > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > > org.collectionspace.services:org.collectionspace.services.c > > > > > > om > > > > > > mo > > > > > > n: > > > > > > ja > > > > > > r:6. > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > org.collectionspace.services:org.collectionspace.services.c > > > > > > om > > > > > > mo > > > > > > n: > > > > > > ja > > > > > > r:6. > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > org.collectionspace.services:org.collectionspace.services.c > > > > > > om > > > > > > mo > > > > > > n: > > > > > > po > > > > > > m:6. > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > ): Access denied to: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > /opt/collectionspace/services/build.xml:303: The following > > > > > > error > > > > > > occurred while executing this line: > > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: The > > > > > > following > > > > > > error occurred while executing this line: > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml:153: > > > > > > The > > > > > > following error occurred while executing this line: > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > platform- > > > > > > listener/build.xml:118: The following error occurred while > > > > > > executing > > > > > > this line: > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > platform- > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > Hi Toralf, > > > > > > > The cspace_default user and database and those > > > > > > > administrator > > > > > > roles > > > > > > > are created when you run the ant import command during > > > > > > > the > > > > > > > installation. (The manual installation instructions > > > > > > > include > > > > > > > a > > > > > > step to > > > > > > > run ant undeploy deploy create_db import, but ant import > > > > > > > can > > > > > > > be > > > > > > run > > > > > > > on its own). The ansible installer should be doing that, > > > > > > > though. > > > > > > I'm > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > Ray > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > megan.forbes@lyrasis.org>; talk@lists.collectionspace.org > > > > > > > < > > > > > > > talk@lists.collectionspace.org> > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > I gave up on the manual install and tried the ansible > > > > > > > procedure > > > > > > > it got me a bit further but cspace-services could not > > > > > > > start > > > > > > > due > > > > > > to > > > > > > > - the user cspace_default was not in the db > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > > Default > > > > > > > create/update of tenants, accounts, roles and permissions > > > > > > > setup > > > > > > > failed > > > > > > > with exception(s): One or more of the required default > > > > > > > CollectionSpace > > > > > > > administrator roles is missing or was never created. > > > > > > > java.lang.RuntimeException: One or more of the required > > > > > > > default > > > > > > > CollectionSpace administrator roles is missing or was > > > > > > > never > > > > > > created. > > > > > > > Kind regards > > > > > > > Toralf > > > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > Hi Toralf, > > > > > > > > My first thought is that there's a permissions problem. > > > > > > > > Is > > > > > > > everything > > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > > tomcat > > > > > > > (typically > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > talk@lists.collectionspace.org > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i said > > > > > > > > it > > > > > > > > could > > > > > > > create > > > > > > > > convertcache, but the directory exists, so i deleted it > > > > > > > > and > > > > > > > restarted > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > > 8.5.40/logs# > > > > > > grep > > > > > > > > -A1 > > > > > > > > ERR cspace-services.log > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop-1] > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > > Listener > > > > > > > > execution : class > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot create > > > > > > > > cache > > > > > > > > dir > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > server/data/convertcache > > > > > > > > -- > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop-1] > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoConnec > > > > > > to > > > > > > rE > > > > > > mb > > > > > > ed > > > > > > de > > > > > > > > d: > > > > > > > > 137] No repository defined > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop-1] > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:123] > > > > > > > > Creation > > > > > > of > > > > > > > > SecureRandom instance for session ID generation using > > > > > > [SHA1PRNG] > > > > > > > took > > > > > > > > [5,003] milliseconds. > > > > > > > > -- > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop-1] > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework > > > > > > Listener > > > > > > > > execution : class > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > java.lang.RuntimeException: java.io.IOException: Failed > > > > > > > > to > > > > > > > > list > > > > > > > > contents of /usr/local/share/apache-tomcat- > > > > > > > > 8.5.40/nuxeo- > > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > > Hi Toralf, > > > > > > > > > That usually means the server wasn't able to start > > > > > > > > > up. > > > > > > > > > Take > > > > > > > > > a > > > > > > > look > > > > > > > > > at > > > > > > > > > catalina.out in the logs directory under tomcat. Are > > > > > > > > > there > > > > > > any > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> > > > > > > > > > on > > > > > > > > > behalf > > > > > > of > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > Cc: TJ > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > Please see the below question from a new implementer > > > > > > > > > - > > > > > > > > > I've > > > > > > cc'd > > > > > > > > > him > > > > > > > > > on this as his note couldn't get through talk for > > > > > > > > > some > > > > > > reason, so > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > 917.267.9676 Cell > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > To: info@collectionspace.org > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org as > > > > > > suggested in > > > > > > > > > the > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > I installed collection space (and apache) according > > > > > > > > > to > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > and > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > everything went smooth > > > > > > > > > but: > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and > > > > > > > > > refers > > > > > > > > > to > > > > > > > > > the > > > > > > > login > > > > > > > > > "You should be able to log in to the default core > > > > > > > > > tenant > > > > > > using > > > > > > > the > > > > > > > > > user > > > > > > > > > admin@core.collectionspace.org and the password > > > > > > Administrator." > > > > > > > > > but no matter if I try this or any other combination > > > > > > > > > of > > > > > > admin@ > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > --------- > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > -u > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > HTTP/1.1 404 > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > Content-Language: en > > > > > > > > > Content-Length: 1111 > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP > > > > > > > > > Status > > > > > > > > > 404 > > > > > > > > > - > > > > > > Not > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > size:22px;} > > > > > > h2 > > > > > > > > > {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background- > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > size:14px;} > > > > > > body > > > > > > > > > {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > serif;color:black;background- > > > > > > > color:white;} > > > > > > > > > b > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > serif;color:white;background- > > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > > serif;background:white;color:black;font-size:12px;} a > > > > > > > > > {color:black;} > > > > > > > > > a.name {color:black;} .line {height:1px;background- > > > > > > > > > color:#525D76;border:none;}</style></head><body><h1>H > > > > > > > > > TT > > > > > > > > > P > > > > > > Status > > > > > > > 404 > > > > > > > > > - > > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> > > > > > > > > > Status > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > services&#47;collectionobjects</p><p><b>Description</ > > > > > > > > > b> > > > > > > > > > The > > > > > > > origin > > > > > > > > > server did not find a current representation for the > > > > > > > > > target > > > > > > > > > resource > > > > > > > > > or > > > > > > > > > is not willing to disclose that one exists.</p><hr > > > > > > class="line" > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > Content-Type: text/html > > > > > > > > > Content-Length: 276 > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > <head> > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > </head> > > > > > > > > > <body> > > > > > > > > > <div id="cspace"></div> > > > > > > > > > <script src=" > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > "></ > > > > > > > sc > > > > > > > > > ri > > > > > > > > > pt > > > > > > > > > <script> > > > > > > > > > cspaceUI({ > > > > > > > > > basename: > > > > > > > > > '/cspace/core', > > > > > > > > > prettyUrls: true, > > > > > > > > > tenantId: '1', > > > > > > > > > }); > > > > > > > > > </script> > > > > > > > > > </body> > > > > > > > > > </html> > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Talk mailing list > > > > > > Talk@lists.collectionspace.org > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > _______________________________________________ > > > Talk mailing list > > > Talk@lists.collectionspace.org > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
T
TJ
Thu, May 14, 2020 3:47 PM

Hello Ray,

when I execute the get request from last mail manually:

wget
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
--2020-05-14 10:46:31--
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130
Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443...
connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote:

Hi Toralf,
How are you capturing that ant output? Either there's something wrong
with that, or ant is silently terminating before it gets to the
create_db target -- which is a possibility, since that's what would
create the cspace database.

Is there anything interesting in the syslog at the time of the last
message in the ant output?

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 4:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+----------

+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because
fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com
(cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer
is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf
of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and
then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd suggest
waiting until 6.0 is released (should be next week), and
starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got
overlooked):
at the moment I cant install, build or run anything as the
maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.accou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.accou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.autho
ri
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-
libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] --------------------------------------------

--

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] --------------------------------------------

--

--


  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.autho
ri
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.authe
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor
for
org.collectionspace.services:org.collectionspace.services.authe
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.authe
nt
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following
error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it seems)
and from the postgres logs I see something expects something
to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorageUt
il
s:
37
6]
Could not find entity with key
={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for
query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1',
$3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running
the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I
also
included
the
logs from both maven runs)
the db/user did not get created so after ansible
completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] --------------------------------------

--

--



  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] --------------------------------------

--

--

--


  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00
  [exec] [INFO] --------------------------------------

--

--

--


  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.services
.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services
.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The
following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121: The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:15
3:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred
while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command during
the
installation. (The manual installation instructions
include
a

step to

run ant undeploy deploy create_db import, but ant
import
can
be

run

on its own). The ansible installer should be doing
that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>;
talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and
permissions
setup
failed
with exception(s): One or more of the required default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the required
default
CollectionSpace administrator roles is missing or was
never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions
problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i said
it
could

create

convertcache, but the directory exists, so i deleted
it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-1]

[org.collectionspace.services.nuxeo.client.java.NuxeoConn
ec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-1]
[org.apache.catalina.util.SessionIdGeneratorBase:123]
Creation

of

SecureRandom instance for session ID generation using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException:
Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to start
up.
Take
a

look

at
catalina.out in the logs directory under tomcat.
Are
there

any

exceptions or error messages?

Ray


From: Talk talk-bounces@lists.collectionspace.org
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new
implementer

I've

cc'd

him
on this as his note couldn't get through talk for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org
as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache) according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other
combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;}
a
{color:black;}
a.name {color:black;} .line {height:1px;background-
color:#525D76;border:none;}</style></head><body><h1

H

TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Description
</
b>
The

origin

server did not find a current representation for
the
target
resource
or
is not willing to disclose that one exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hello Ray, when I execute the get request from last mail manually: wget https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar --2020-05-14 10:46:31-- https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130 Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443... connected. HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed. On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote: > Hi Toralf, > How are you capturing that ant output? Either there's something wrong > with that, or ant is silently terminating before it gets to the > create_db target -- which is a possibility, since that's what would > create the cspace database. > > Is there anything interesting in the syslog at the time of the last > message in the ant output? > > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Wednesday, May 13, 2020 4:45 PM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > no, that's all I got... > > Kind regards > Toralf > > > On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > > Hi Toralf, > > Is there any more to the ant log? It looks like it's cut off before > > the part I'm interested in. > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 13, 2020 3:45 PM > > To: Ray Lee > > Cc: talk@lists.collectionspace.org; Rob Clark > > Subject: Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > just tested (again) on a fresh machine, > > like last time(s) no cspace db got created... > > root@home:~# su - postgres > > psql postgres@home:~$ psql -l > > List of databases > > Name | Owner | Encoding > > > Collate | Ctype | Access privileges > > ---------------+---------------+----------+-------------+---------- > > --- > > +--------------------------------- > > nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > =Tc/nuxeo_default + > > | | | | > > | > > nuxeo_default=CTc/nuxeo_default+ > > | | | | > > | > > reader_default=c/nuxeo_default > > postgres | postgres | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > template0 | postgres | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > =c/postgres + > > | | | | > > | > > postgres=CTc/postgres > > template1 | postgres | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > =c/postgres + > > | | | | > > | > > postgres=CTc/postgres > > (4 rows) > > > > attached the complete ansible run, both maven runs and the ant run > > > > Kind regards > > Toralf > > > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > > Sorry, you should be able to see that page now. > > > > > > Can you attach the complete output from the installer up to that > > > error? > > > > > > Thanks, > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: TJ <toralf.jabs@gmail.com> > > > Sent: Wednesday, May 13, 2020 9:50 AM > > > To: Ray Lee > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > Hello Ray, > > > > > > as well I cant run the installer (and parts of it) because > > > fetching > > > artifacts from your maven repository still gets me > > > > > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com > > > (cspace- > > > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > > > connected. > > > HTTP request sent, awaiting response... 403 Forbidden > > > > > > Kind reagrds > > > Toralf > > > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > > Hi Toralf, > > > > In advance of the 6.0 release, I've updated the manual install > > > > instructions, and verified that they work: > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > > > I've also verified that the Ansible-based automated installer > > > > is > > > > working: > > > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > > > If you can, try your install again (whichever way you prefer), > > > > and > > > > let us know how it goes. > > > > > > > > Thanks, > > > > Ray > > > > > > > > ═ > > > > Ray Lee > > > > CollectionSpace Senior Developer > > > > LYRASIS > > > > ray.lee@lyrasis.org > > > > > > > > ________________________________________ > > > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf > > > > of > > > > Ray > > > > Lee <ray.lee@lyrasis.org> > > > > Sent: Friday, May 8, 2020 4:12 PM > > > > To: TJ; Richard Millet > > > > Cc: talk@lists.collectionspace.org > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > Hi Toralf, > > > > It sounds like you started with a manual install of 5.2, and > > > > then > > > > went to the new ansible installer, which is going to try to > > > > install > > > > 6.0, which hasn't been released yet. At this point I'd suggest > > > > waiting until 6.0 is released (should be next week), and > > > > starting > > > > from scratch with the ansible installer. > > > > > > > > Ray > > > > > > > > ═ > > > > Ray Lee > > > > CollectionSpace Senior Developer > > > > LYRASIS > > > > ray.lee@lyrasis.org > > > > > > > > ________________________________________ > > > > From: TJ <toralf.jabs@gmail.com> > > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > > To: Richard Millet > > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > In addition as I said earlier (I dont know if it got > > > > overlooked): > > > > at the moment I cant install, build or run anything as the > > > > maven > > > > (re)runs fail with: > > > > > > > > [exec] [WARNING] Failure to transfer > > > > org.collectionspace.services:org.collectionspace.services.accou > > > > nt > > > > .c > > > > li > > > > en > > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > was cached in the local repository, resolution will not be > > > > reattempted > > > > until the update interval of cspace-libs-snapshot-local has > > > > elapsed > > > > or > > > > updates are forced. Original error: Could not transfer metadata > > > > org.collectionspace.services:org.collectionspace.services.accou > > > > nt > > > > .c > > > > li > > > > en > > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot- > > > > local > > > > ( > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > ): Access denied to: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > > , ReasonPhrase:Forbidden. > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > [exec] [WARNING] Could not transfer metadata > > > > org.collectionspace.services:org.collectionspace.services.autho > > > > ri > > > > za > > > > ti > > > > on > > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace- > > > > libs- > > > > snapshot-local ( > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > ): Access denied to: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > , ReasonPhrase:Forbidden. > > > > ... > > > > > > > > [exec] [INFO] -------------------------------------------- > > > > -- > > > > -- > > > > -- > > > > -- > > > > -------------------- > > > > [exec] [INFO] BUILD FAILURE > > > > [exec] [INFO] -------------------------------------------- > > > > -- > > > > -- > > > > -- > > > > -- > > > > -------------------- > > > > [exec] [INFO] Total time: 39.114 s > > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > > [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.autho > > > > ri > > > > za > > > > ti > > > > on > > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > org.collectionspace.services:org.collectionspace.services.authe > > > > nt > > > > ic > > > > at > > > > io > > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor > > > > for > > > > org.collectionspace.services:org.collectionspace.services.authe > > > > nt > > > > ic > > > > at > > > > io > > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > > org.collectionspace.services:org.collectionspace.services.authe > > > > nt > > > > ic > > > > at > > > > io > > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > ): Access denied to: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > > , ReasonPhrase:Forbidden. -> [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 > > > > /opt/collectionspace/services/build.xml:295: The following > > > > error > > > > occurred while executing this line: > > > > /opt/collectionspace/services/services/build.xml:148: The > > > > following > > > > error occurred while executing this line: > > > > /opt/collectionspace/services/services/authorization- > > > > mgt/build.xml:120: > > > > The following error occurred while executing this line: > > > > /opt/collectionspace/services/services/authorization- > > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > > Hello, > > > > > > > > > > I did exactly that (via the ansible run) > > > > > I also included the logs from both maven runs... > > > > > the ant task did not execute the create_db target (it seems) > > > > > and from the postgres logs I see something expects something > > > > > to > > > > > be > > > > > in > > > > > the DB as well... > > > > > > > > > > #cspace services startup > > > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > > > [org.collectionspace.services.common.storage.jpa.JpaStorageUt > > > > > il > > > > > s: > > > > > 37 > > > > > 6] > > > > > Could not find entity with key > > > > > ={roleName=ROLE_1_TENANT_READER} > > > > > javax.persistence.NoResultException: No entity found for > > > > > query > > > > > > > > > > #postgres > > > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL > > > > > JDBC > > > > > Driver' > > > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: BEGIN > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > descript3_10_, > > > > > role0_.displayname as displayn4_10_, > > > > > role0_.metadata_protection > > > > > as > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > role0_.rolegroup > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > role0_.tenant_id > > > > > as > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > > role0_ > > > > > where > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = > > > > > '1', > > > > > $3 > > > > > = > > > > > '2' > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > descript3_10_, > > > > > role0_.displayname as displayn4_10_, > > > > > role0_.metadata_protection > > > > > as > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > role0_.rolegroup > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > role0_.tenant_id > > > > > as > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > > role0_ > > > > > where > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', > > > > > $3 > > > > > = > > > > > '2' > > > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute S_1: ROLLBACK > > > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > > > TJ, > > > > > > > > > > > > You may need to run the following commands BEFORE running > > > > > > the > > > > > > 'ant > > > > > > undeploy deploy created_db import' command: > > > > > > > > > > > > From the top "services" directory: > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > From the top "application" directory: > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > Back to the top "services" directory: > > > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > I hope that works for you, > > > > > > > > > > > > Richard > > > > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > > > wrote: > > > > > > > ansible didn't show any errors > > > > > > > I logged the ant run into a file(attached as a.log, I > > > > > > > also > > > > > > > included > > > > > > > the > > > > > > > logs from both maven runs) > > > > > > > the db/user did not get created so after ansible > > > > > > > completely > > > > > > > running > > > > > > > through, I rerun manually the command > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > but now I get this: > > > > > > > ... > > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > ---- > > > > > > > -------------------- > > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > ---- > > > > > > > -------------------- > > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00 > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > ---- > > > > > > > -------------------- > > > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > > > org.collectionspace.services.listener.reindex: Could not > > > > > > > resolve > > > > > > > dependencies for project > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .l > > > > > > > is > > > > > > > te > > > > > > > ne > > > > > > > r. > > > > > > > rein > > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .c > > > > > > > om > > > > > > > mo > > > > > > > n: > > > > > > > ja > > > > > > > r:6. > > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .c > > > > > > > om > > > > > > > mo > > > > > > > n: > > > > > > > ja > > > > > > > r:6. > > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .c > > > > > > > om > > > > > > > mo > > > > > > > n: > > > > > > > po > > > > > > > m:6. > > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > ): Access denied to: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > > /opt/collectionspace/services/build.xml:303: The > > > > > > > following > > > > > > > error > > > > > > > occurred while executing this line: > > > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: The > > > > > > > following > > > > > > > error occurred while executing this line: > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml:15 > > > > > > > 3: > > > > > > > The > > > > > > > following error occurred while executing this line: > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > platform- > > > > > > > listener/build.xml:118: The following error occurred > > > > > > > while > > > > > > > executing > > > > > > > this line: > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > platform- > > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > > Hi Toralf, > > > > > > > > The cspace_default user and database and those > > > > > > > > administrator > > > > > > > roles > > > > > > > > are created when you run the ant import command during > > > > > > > > the > > > > > > > > installation. (The manual installation instructions > > > > > > > > include > > > > > > > > a > > > > > > > step to > > > > > > > > run ant undeploy deploy create_db import, but ant > > > > > > > > import > > > > > > > > can > > > > > > > > be > > > > > > > run > > > > > > > > on its own). The ansible installer should be doing > > > > > > > > that, > > > > > > > > though. > > > > > > > I'm > > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > > > Ray > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > > megan.forbes@lyrasis.org>; > > > > > > > > talk@lists.collectionspace.org > > > > > > > > < > > > > > > > > talk@lists.collectionspace.org> > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > > I gave up on the manual install and tried the ansible > > > > > > > > procedure > > > > > > > > it got me a bit further but cspace-services could not > > > > > > > > start > > > > > > > > due > > > > > > > to > > > > > > > > - the user cspace_default was not in the db > > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > > > Default > > > > > > > > create/update of tenants, accounts, roles and > > > > > > > > permissions > > > > > > > > setup > > > > > > > > failed > > > > > > > > with exception(s): One or more of the required default > > > > > > > > CollectionSpace > > > > > > > > administrator roles is missing or was never created. > > > > > > > > java.lang.RuntimeException: One or more of the required > > > > > > > > default > > > > > > > > CollectionSpace administrator roles is missing or was > > > > > > > > never > > > > > > > created. > > > > > > > > Kind regards > > > > > > > > Toralf > > > > > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > > Hi Toralf, > > > > > > > > > My first thought is that there's a permissions > > > > > > > > > problem. > > > > > > > > > Is > > > > > > > > everything > > > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > > > tomcat > > > > > > > > (typically > > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i said > > > > > > > > > it > > > > > > > > > could > > > > > > > > create > > > > > > > > > convertcache, but the directory exists, so i deleted > > > > > > > > > it > > > > > > > > > and > > > > > > > > restarted > > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > > > 8.5.40/logs# > > > > > > > grep > > > > > > > > > -A1 > > > > > > > > > ERR cspace-services.log > > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop-1] > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > Framework > > > > > > > Listener > > > > > > > > > execution : class > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot create > > > > > > > > > cache > > > > > > > > > dir > > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > > server/data/convertcache > > > > > > > > > -- > > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop-1] > > > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoConn > > > > > > > ec > > > > > > > to > > > > > > > rE > > > > > > > mb > > > > > > > ed > > > > > > > de > > > > > > > > > d: > > > > > > > > > 137] No repository defined > > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop-1] > > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:123] > > > > > > > > > Creation > > > > > > > of > > > > > > > > > SecureRandom instance for session ID generation using > > > > > > > [SHA1PRNG] > > > > > > > > took > > > > > > > > > [5,003] milliseconds. > > > > > > > > > -- > > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop-1] > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > Framework > > > > > > > Listener > > > > > > > > > execution : class > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > java.lang.RuntimeException: java.io.IOException: > > > > > > > > > Failed > > > > > > > > > to > > > > > > > > > list > > > > > > > > > contents of /usr/local/share/apache-tomcat- > > > > > > > > > 8.5.40/nuxeo- > > > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > > > Hi Toralf, > > > > > > > > > > That usually means the server wasn't able to start > > > > > > > > > > up. > > > > > > > > > > Take > > > > > > > > > > a > > > > > > > > look > > > > > > > > > > at > > > > > > > > > > catalina.out in the logs directory under tomcat. > > > > > > > > > > Are > > > > > > > > > > there > > > > > > > any > > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> > > > > > > > > > > on > > > > > > > > > > behalf > > > > > > > of > > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > > Cc: TJ > > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > > > Please see the below question from a new > > > > > > > > > > implementer > > > > > > > > > > - > > > > > > > > > > I've > > > > > > > cc'd > > > > > > > > > > him > > > > > > > > > > on this as his note couldn't get through talk for > > > > > > > > > > some > > > > > > > reason, so > > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > > 917.267.9676 Cell > > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > > To: info@collectionspace.org > > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org > > > > > > > > > > as > > > > > > > suggested in > > > > > > > > > > the > > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > > > I installed collection space (and apache) according > > > > > > > > > > to > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > > and > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > > everything went smooth > > > > > > > > > > but: > > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and > > > > > > > > > > refers > > > > > > > > > > to > > > > > > > > > > the > > > > > > > > login > > > > > > > > > > "You should be able to log in to the default core > > > > > > > > > > tenant > > > > > > > using > > > > > > > > the > > > > > > > > > > user > > > > > > > > > > admin@core.collectionspace.org and the password > > > > > > > Administrator." > > > > > > > > > > but no matter if I try this or any other > > > > > > > > > > combination > > > > > > > > > > of > > > > > > > admin@ > > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > > --------- > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > > -u > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > HTTP/1.1 404 > > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > > Content-Language: en > > > > > > > > > > Content-Length: 1111 > > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP > > > > > > > > > > Status > > > > > > > > > > 404 > > > > > > > > > > - > > > > > > > Not > > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > > size:22px;} > > > > > > > h2 > > > > > > > > > > {font- > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background- > > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > > size:14px;} > > > > > > > body > > > > > > > > > > {font- > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:black;background- > > > > > > > > color:white;} > > > > > > > > > > b > > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background- > > > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > > > serif;background:white;color:black;font-size:12px;} > > > > > > > > > > a > > > > > > > > > > {color:black;} > > > > > > > > > > a.name {color:black;} .line {height:1px;background- > > > > > > > > > > color:#525D76;border:none;}</style></head><body><h1 > > > > > > > > > > >H > > > > > > > > > > TT > > > > > > > > > > P > > > > > > > Status > > > > > > > > 404 > > > > > > > > > > - > > > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> > > > > > > > > > > Status > > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > > services&#47;collectionobjects</p><p><b>Description > > > > > > > > > > </ > > > > > > > > > > b> > > > > > > > > > > The > > > > > > > > origin > > > > > > > > > > server did not find a current representation for > > > > > > > > > > the > > > > > > > > > > target > > > > > > > > > > resource > > > > > > > > > > or > > > > > > > > > > is not willing to disclose that one exists.</p><hr > > > > > > > class="line" > > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > > Content-Type: text/html > > > > > > > > > > Content-Length: 276 > > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > > <head> > > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > > </head> > > > > > > > > > > <body> > > > > > > > > > > <div id="cspace"></div> > > > > > > > > > > <script src=" > > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > > "></ > > > > > > > > sc > > > > > > > > > > ri > > > > > > > > > > pt > > > > > > > > > > <script> > > > > > > > > > > cspaceUI({ > > > > > > > > > > basename: > > > > > > > > > > '/cspace/core', > > > > > > > > > > prettyUrls: true, > > > > > > > > > > tenantId: '1', > > > > > > > > > > }); > > > > > > > > > > </script> > > > > > > > > > > </body> > > > > > > > > > > </html> > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Talk mailing list > > > > > > > Talk@lists.collectionspace.org > > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > > > _______________________________________________ > > > > Talk mailing list > > > > Talk@lists.collectionspace.org > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
RL
Ray Lee
Thu, May 14, 2020 4:21 PM

Hi Toralf,
That's not a problem. Your error is this:

Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.common:jar:6.
0.0 from/to cspace-libs-release-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local
): GET request of:
org/collectionspace/services/org.collectionspace.services.common/6.0.0/
org.collectionspace.services.common-6.0.0.jar from cspace-libs-release-
local failed: Read timed out -> [Help 1]

Are you able to download https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/
org.collectionspace.services.common-6.0.0.jar?

Either way, you shouldn't even need to download that jar at that point in the process. Are you running ant as the collectionspace user?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Thursday, May 14, 2020 11:47 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

when I execute the get request from last mail manually:

wget
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
--2020-05-14 10:46:31--
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130
Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443...
connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote:

Hi Toralf,
How are you capturing that ant output? Either there's something wrong
with that, or ant is silently terminating before it gets to the
create_db target -- which is a possibility, since that's what would
create the cspace database.

Is there anything interesting in the syslog at the time of the last
message in the ant output?

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 4:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+----------

+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because
fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com
(cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer
is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf
of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and
then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd suggest
waiting until 6.0 is released (should be next week), and
starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got
overlooked):
at the moment I cant install, build or run anything as the
maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.accou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.accou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.autho
ri
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-
libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] --------------------------------------------

--

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] --------------------------------------------

--

--


  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.autho
ri
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services.authe
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor
for
org.collectionspace.services:org.collectionspace.services.authe
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.authe
nt
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following
error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it seems)
and from the postgres logs I see something expects something
to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorageUt
il
s:
37
6]
Could not find entity with key
={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for
query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1',
$3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_def
au
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running
the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I
also
included
the
logs from both maven runs)
the db/user did not get created so after ansible
completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] --------------------------------------

--

--



  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] --------------------------------------

--

--

--


  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00
  [exec] [INFO] --------------------------------------

--

--

--


  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.services
.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.services
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.services
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services
.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The
following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121: The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:15
3:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred
while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command during
the
installation. (The manual installation instructions
include
a

step to

run ant undeploy deploy create_db import, but ant
import
can
be

run

on its own). The ansible installer should be doing
that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>;
talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and
permissions
setup
failed
with exception(s): One or more of the required default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the required
default
CollectionSpace administrator roles is missing or was
never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions
problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i said
it
could

create

convertcache, but the directory exists, so i deleted
it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-1]

[org.collectionspace.services.nuxeo.client.java.NuxeoConn
ec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-1]
[org.apache.catalina.util.SessionIdGeneratorBase:123]
Creation

of

SecureRandom instance for session ID generation using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException:
Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to start
up.
Take
a

look

at
catalina.out in the logs directory under tomcat.
Are
there

any

exceptions or error messages?

Ray


From: Talk talk-bounces@lists.collectionspace.org
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new
implementer

I've

cc'd

him
on this as his note couldn't get through talk for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org
as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache) according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other
combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;}
a
{color:black;}
a.name {color:black;} .line {height:1px;background-
color:#525D76;border:none;}</style></head><body><h1

H

TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Description
</
b>
The

origin

server did not find a current representation for
the
target
resource
or
is not willing to disclose that one exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hi Toralf, That's not a problem. Your error is this: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.common:jar:6. 0.0 from/to cspace-libs-release-local ( https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local ): GET request of: org/collectionspace/services/org.collectionspace.services.common/6.0.0/ org.collectionspace.services.common-6.0.0.jar from cspace-libs-release- local failed: Read timed out -> [Help 1] Are you able to download https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/ org.collectionspace.services.common-6.0.0.jar? Either way, you shouldn't even need to download that jar at that point in the process. Are you running ant as the collectionspace user? Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org ________________________________________ From: TJ <toralf.jabs@gmail.com> Sent: Thursday, May 14, 2020 11:47 AM To: Ray Lee Cc: talk@lists.collectionspace.org; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, when I execute the get request from last mail manually: wget https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar --2020-05-14 10:46:31-- https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130 Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443... connected. HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed. On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote: > Hi Toralf, > How are you capturing that ant output? Either there's something wrong > with that, or ant is silently terminating before it gets to the > create_db target -- which is a possibility, since that's what would > create the cspace database. > > Is there anything interesting in the syslog at the time of the last > message in the ant output? > > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Wednesday, May 13, 2020 4:45 PM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > no, that's all I got... > > Kind regards > Toralf > > > On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > > Hi Toralf, > > Is there any more to the ant log? It looks like it's cut off before > > the part I'm interested in. > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 13, 2020 3:45 PM > > To: Ray Lee > > Cc: talk@lists.collectionspace.org; Rob Clark > > Subject: Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > just tested (again) on a fresh machine, > > like last time(s) no cspace db got created... > > root@home:~# su - postgres > > psql postgres@home:~$ psql -l > > List of databases > > Name | Owner | Encoding > > > Collate | Ctype | Access privileges > > ---------------+---------------+----------+-------------+---------- > > --- > > +--------------------------------- > > nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > =Tc/nuxeo_default + > > | | | | > > | > > nuxeo_default=CTc/nuxeo_default+ > > | | | | > > | > > reader_default=c/nuxeo_default > > postgres | postgres | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > template0 | postgres | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > =c/postgres + > > | | | | > > | > > postgres=CTc/postgres > > template1 | postgres | UTF8 | en_US.UTF-8 | > > en_US.UTF-8 > > =c/postgres + > > | | | | > > | > > postgres=CTc/postgres > > (4 rows) > > > > attached the complete ansible run, both maven runs and the ant run > > > > Kind regards > > Toralf > > > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > > Sorry, you should be able to see that page now. > > > > > > Can you attach the complete output from the installer up to that > > > error? > > > > > > Thanks, > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: TJ <toralf.jabs@gmail.com> > > > Sent: Wednesday, May 13, 2020 9:50 AM > > > To: Ray Lee > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > Hello Ray, > > > > > > as well I cant run the installer (and parts of it) because > > > fetching > > > artifacts from your maven repository still gets me > > > > > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com > > > (cspace- > > > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > > > connected. > > > HTTP request sent, awaiting response... 403 Forbidden > > > > > > Kind reagrds > > > Toralf > > > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > > Hi Toralf, > > > > In advance of the 6.0 release, I've updated the manual install > > > > instructions, and verified that they work: > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > > > I've also verified that the Ansible-based automated installer > > > > is > > > > working: > > > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > > > If you can, try your install again (whichever way you prefer), > > > > and > > > > let us know how it goes. > > > > > > > > Thanks, > > > > Ray > > > > > > > > ═ > > > > Ray Lee > > > > CollectionSpace Senior Developer > > > > LYRASIS > > > > ray.lee@lyrasis.org > > > > > > > > ________________________________________ > > > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf > > > > of > > > > Ray > > > > Lee <ray.lee@lyrasis.org> > > > > Sent: Friday, May 8, 2020 4:12 PM > > > > To: TJ; Richard Millet > > > > Cc: talk@lists.collectionspace.org > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > Hi Toralf, > > > > It sounds like you started with a manual install of 5.2, and > > > > then > > > > went to the new ansible installer, which is going to try to > > > > install > > > > 6.0, which hasn't been released yet. At this point I'd suggest > > > > waiting until 6.0 is released (should be next week), and > > > > starting > > > > from scratch with the ansible installer. > > > > > > > > Ray > > > > > > > > ═ > > > > Ray Lee > > > > CollectionSpace Senior Developer > > > > LYRASIS > > > > ray.lee@lyrasis.org > > > > > > > > ________________________________________ > > > > From: TJ <toralf.jabs@gmail.com> > > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > > To: Richard Millet > > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > In addition as I said earlier (I dont know if it got > > > > overlooked): > > > > at the moment I cant install, build or run anything as the > > > > maven > > > > (re)runs fail with: > > > > > > > > [exec] [WARNING] Failure to transfer > > > > org.collectionspace.services:org.collectionspace.services.accou > > > > nt > > > > .c > > > > li > > > > en > > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > was cached in the local repository, resolution will not be > > > > reattempted > > > > until the update interval of cspace-libs-snapshot-local has > > > > elapsed > > > > or > > > > updates are forced. Original error: Could not transfer metadata > > > > org.collectionspace.services:org.collectionspace.services.accou > > > > nt > > > > .c > > > > li > > > > en > > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-snapshot- > > > > local > > > > ( > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > ): Access denied to: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > > , ReasonPhrase:Forbidden. > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > [exec] [WARNING] Could not transfer metadata > > > > org.collectionspace.services:org.collectionspace.services.autho > > > > ri > > > > za > > > > ti > > > > on > > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace- > > > > libs- > > > > snapshot-local ( > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > ): Access denied to: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > , ReasonPhrase:Forbidden. > > > > ... > > > > > > > > [exec] [INFO] -------------------------------------------- > > > > -- > > > > -- > > > > -- > > > > -- > > > > -------------------- > > > > [exec] [INFO] BUILD FAILURE > > > > [exec] [INFO] -------------------------------------------- > > > > -- > > > > -- > > > > -- > > > > -- > > > > -------------------- > > > > [exec] [INFO] Total time: 39.114 s > > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > > [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.autho > > > > ri > > > > za > > > > ti > > > > on > > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > org.collectionspace.services:org.collectionspace.services.authe > > > > nt > > > > ic > > > > at > > > > io > > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor > > > > for > > > > org.collectionspace.services:org.collectionspace.services.authe > > > > nt > > > > ic > > > > at > > > > io > > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > > org.collectionspace.services:org.collectionspace.services.authe > > > > nt > > > > ic > > > > at > > > > io > > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > ): Access denied to: > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > > , ReasonPhrase:Forbidden. -> [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 > > > > /opt/collectionspace/services/build.xml:295: The following > > > > error > > > > occurred while executing this line: > > > > /opt/collectionspace/services/services/build.xml:148: The > > > > following > > > > error occurred while executing this line: > > > > /opt/collectionspace/services/services/authorization- > > > > mgt/build.xml:120: > > > > The following error occurred while executing this line: > > > > /opt/collectionspace/services/services/authorization- > > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > > Hello, > > > > > > > > > > I did exactly that (via the ansible run) > > > > > I also included the logs from both maven runs... > > > > > the ant task did not execute the create_db target (it seems) > > > > > and from the postgres logs I see something expects something > > > > > to > > > > > be > > > > > in > > > > > the DB as well... > > > > > > > > > > #cspace services startup > > > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > > > [org.collectionspace.services.common.storage.jpa.JpaStorageUt > > > > > il > > > > > s: > > > > > 37 > > > > > 6] > > > > > Could not find entity with key > > > > > ={roleName=ROLE_1_TENANT_READER} > > > > > javax.persistence.NoResultException: No entity found for > > > > > query > > > > > > > > > > #postgres > > > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL > > > > > JDBC > > > > > Driver' > > > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: BEGIN > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > descript3_10_, > > > > > role0_.displayname as displayn4_10_, > > > > > role0_.metadata_protection > > > > > as > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > role0_.rolegroup > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > role0_.tenant_id > > > > > as > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > > role0_ > > > > > where > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = > > > > > '1', > > > > > $3 > > > > > = > > > > > '2' > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > descript3_10_, > > > > > role0_.displayname as displayn4_10_, > > > > > role0_.metadata_protection > > > > > as > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > role0_.rolegroup > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > role0_.tenant_id > > > > > as > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > > role0_ > > > > > where > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', > > > > > $3 > > > > > = > > > > > '2' > > > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_def > > > > > au > > > > > lt > > > > > LOG: execute S_1: ROLLBACK > > > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > > > TJ, > > > > > > > > > > > > You may need to run the following commands BEFORE running > > > > > > the > > > > > > 'ant > > > > > > undeploy deploy created_db import' command: > > > > > > > > > > > > From the top "services" directory: > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > From the top "application" directory: > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > Back to the top "services" directory: > > > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > I hope that works for you, > > > > > > > > > > > > Richard > > > > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > > > wrote: > > > > > > > ansible didn't show any errors > > > > > > > I logged the ant run into a file(attached as a.log, I > > > > > > > also > > > > > > > included > > > > > > > the > > > > > > > logs from both maven runs) > > > > > > > the db/user did not get created so after ansible > > > > > > > completely > > > > > > > running > > > > > > > through, I rerun manually the command > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > but now I get this: > > > > > > > ... > > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > ---- > > > > > > > -------------------- > > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > ---- > > > > > > > -------------------- > > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58-04:00 > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > ---- > > > > > > > -------------------- > > > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > > > org.collectionspace.services.listener.reindex: Could not > > > > > > > resolve > > > > > > > dependencies for project > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .l > > > > > > > is > > > > > > > te > > > > > > > ne > > > > > > > r. > > > > > > > rein > > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .c > > > > > > > om > > > > > > > mo > > > > > > > n: > > > > > > > ja > > > > > > > r:6. > > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .c > > > > > > > om > > > > > > > mo > > > > > > > n: > > > > > > > ja > > > > > > > r:6. > > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .c > > > > > > > om > > > > > > > mo > > > > > > > n: > > > > > > > po > > > > > > > m:6. > > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > ): Access denied to: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > > /opt/collectionspace/services/build.xml:303: The > > > > > > > following > > > > > > > error > > > > > > > occurred while executing this line: > > > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: The > > > > > > > following > > > > > > > error occurred while executing this line: > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml:15 > > > > > > > 3: > > > > > > > The > > > > > > > following error occurred while executing this line: > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > platform- > > > > > > > listener/build.xml:118: The following error occurred > > > > > > > while > > > > > > > executing > > > > > > > this line: > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > platform- > > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > > Hi Toralf, > > > > > > > > The cspace_default user and database and those > > > > > > > > administrator > > > > > > > roles > > > > > > > > are created when you run the ant import command during > > > > > > > > the > > > > > > > > installation. (The manual installation instructions > > > > > > > > include > > > > > > > > a > > > > > > > step to > > > > > > > > run ant undeploy deploy create_db import, but ant > > > > > > > > import > > > > > > > > can > > > > > > > > be > > > > > > > run > > > > > > > > on its own). The ansible installer should be doing > > > > > > > > that, > > > > > > > > though. > > > > > > > I'm > > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > > > Ray > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > > megan.forbes@lyrasis.org>; > > > > > > > > talk@lists.collectionspace.org > > > > > > > > < > > > > > > > > talk@lists.collectionspace.org> > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > > I gave up on the manual install and tried the ansible > > > > > > > > procedure > > > > > > > > it got me a bit further but cspace-services could not > > > > > > > > start > > > > > > > > due > > > > > > > to > > > > > > > > - the user cspace_default was not in the db > > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > > > Default > > > > > > > > create/update of tenants, accounts, roles and > > > > > > > > permissions > > > > > > > > setup > > > > > > > > failed > > > > > > > > with exception(s): One or more of the required default > > > > > > > > CollectionSpace > > > > > > > > administrator roles is missing or was never created. > > > > > > > > java.lang.RuntimeException: One or more of the required > > > > > > > > default > > > > > > > > CollectionSpace administrator roles is missing or was > > > > > > > > never > > > > > > > created. > > > > > > > > Kind regards > > > > > > > > Toralf > > > > > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > > Hi Toralf, > > > > > > > > > My first thought is that there's a permissions > > > > > > > > > problem. > > > > > > > > > Is > > > > > > > > everything > > > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > > > tomcat > > > > > > > > (typically > > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i said > > > > > > > > > it > > > > > > > > > could > > > > > > > > create > > > > > > > > > convertcache, but the directory exists, so i deleted > > > > > > > > > it > > > > > > > > > and > > > > > > > > restarted > > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > > > 8.5.40/logs# > > > > > > > grep > > > > > > > > > -A1 > > > > > > > > > ERR cspace-services.log > > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop-1] > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > Framework > > > > > > > Listener > > > > > > > > > execution : class > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot create > > > > > > > > > cache > > > > > > > > > dir > > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > > server/data/convertcache > > > > > > > > > -- > > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop-1] > > > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoConn > > > > > > > ec > > > > > > > to > > > > > > > rE > > > > > > > mb > > > > > > > ed > > > > > > > de > > > > > > > > > d: > > > > > > > > > 137] No repository defined > > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop-1] > > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:123] > > > > > > > > > Creation > > > > > > > of > > > > > > > > > SecureRandom instance for session ID generation using > > > > > > > [SHA1PRNG] > > > > > > > > took > > > > > > > > > [5,003] milliseconds. > > > > > > > > > -- > > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop-1] > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > Framework > > > > > > > Listener > > > > > > > > > execution : class > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > java.lang.RuntimeException: java.io.IOException: > > > > > > > > > Failed > > > > > > > > > to > > > > > > > > > list > > > > > > > > > contents of /usr/local/share/apache-tomcat- > > > > > > > > > 8.5.40/nuxeo- > > > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > > > Hi Toralf, > > > > > > > > > > That usually means the server wasn't able to start > > > > > > > > > > up. > > > > > > > > > > Take > > > > > > > > > > a > > > > > > > > look > > > > > > > > > > at > > > > > > > > > > catalina.out in the logs directory under tomcat. > > > > > > > > > > Are > > > > > > > > > > there > > > > > > > any > > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> > > > > > > > > > > on > > > > > > > > > > behalf > > > > > > > of > > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > > Cc: TJ > > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > > > Please see the below question from a new > > > > > > > > > > implementer > > > > > > > > > > - > > > > > > > > > > I've > > > > > > > cc'd > > > > > > > > > > him > > > > > > > > > > on this as his note couldn't get through talk for > > > > > > > > > > some > > > > > > > reason, so > > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > > 917.267.9676 Cell > > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > > To: info@collectionspace.org > > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org > > > > > > > > > > as > > > > > > > suggested in > > > > > > > > > > the > > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > > > I installed collection space (and apache) according > > > > > > > > > > to > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > > and > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > > everything went smooth > > > > > > > > > > but: > > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and > > > > > > > > > > refers > > > > > > > > > > to > > > > > > > > > > the > > > > > > > > login > > > > > > > > > > "You should be able to log in to the default core > > > > > > > > > > tenant > > > > > > > using > > > > > > > > the > > > > > > > > > > user > > > > > > > > > > admin@core.collectionspace.org and the password > > > > > > > Administrator." > > > > > > > > > > but no matter if I try this or any other > > > > > > > > > > combination > > > > > > > > > > of > > > > > > > admin@ > > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > > --------- > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > > -u > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > HTTP/1.1 404 > > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > > Content-Language: en > > > > > > > > > > Content-Length: 1111 > > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP > > > > > > > > > > Status > > > > > > > > > > 404 > > > > > > > > > > - > > > > > > > Not > > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > > size:22px;} > > > > > > > h2 > > > > > > > > > > {font- > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background- > > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > > size:14px;} > > > > > > > body > > > > > > > > > > {font- > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:black;background- > > > > > > > > color:white;} > > > > > > > > > > b > > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > > serif;color:white;background- > > > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > > > serif;background:white;color:black;font-size:12px;} > > > > > > > > > > a > > > > > > > > > > {color:black;} > > > > > > > > > > a.name {color:black;} .line {height:1px;background- > > > > > > > > > > color:#525D76;border:none;}</style></head><body><h1 > > > > > > > > > > >H > > > > > > > > > > TT > > > > > > > > > > P > > > > > > > Status > > > > > > > > 404 > > > > > > > > > > - > > > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> > > > > > > > > > > Status > > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > > services&#47;collectionobjects</p><p><b>Description > > > > > > > > > > </ > > > > > > > > > > b> > > > > > > > > > > The > > > > > > > > origin > > > > > > > > > > server did not find a current representation for > > > > > > > > > > the > > > > > > > > > > target > > > > > > > > > > resource > > > > > > > > > > or > > > > > > > > > > is not willing to disclose that one exists.</p><hr > > > > > > > class="line" > > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > > Content-Type: text/html > > > > > > > > > > Content-Length: 276 > > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > > <head> > > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > > </head> > > > > > > > > > > <body> > > > > > > > > > > <div id="cspace"></div> > > > > > > > > > > <script src=" > > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > > "></ > > > > > > > > sc > > > > > > > > > > ri > > > > > > > > > > pt > > > > > > > > > > <script> > > > > > > > > > > cspaceUI({ > > > > > > > > > > basename: > > > > > > > > > > '/cspace/core', > > > > > > > > > > prettyUrls: true, > > > > > > > > > > tenantId: '1', > > > > > > > > > > }); > > > > > > > > > > </script> > > > > > > > > > > </body> > > > > > > > > > > </html> > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Talk mailing list > > > > > > > Talk@lists.collectionspace.org > > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > > > _______________________________________________ > > > > Talk mailing list > > > > Talk@lists.collectionspace.org > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
T
TJ
Thu, May 14, 2020 5:57 PM

Hello Ray,

I didnt't. Now I did and got this:
BUILD FAILED
/opt/collectionspace/services/build.xml:305: The following error
occurred while executing this line:
/opt/collectionspace/services/cspace-ui/build.xml:31: Execute failed:
java.io.IOException: Cannot run program "curl" (in directory
"/opt/collectionspace/services/cspace-ui"): error=2, No such file or
directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
...

Installed curl now (can this be added to the ansible playbook?
and rerunning the ant as user collectionspace

Kind regards
Toralf

On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote:

Hi Toralf,
That's not a problem. Your error is this:

Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.common:jar:
6.
0.0 from/to cspace-libs-release-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local
): GET request of:
org/collectionspace/services/org.collectionspace.services.common/6.0.
0/
org.collectionspace.services.common-6.0.0.jar from cspace-libs-
release-
local failed: Read timed out -> [Help 1]

Are you able to download
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/
org.collectionspace.services.common-6.0.0.jar?

Either way, you shouldn't even need to download that jar at that
point in the process. Are you running ant as the collectionspace
user?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Thursday, May 14, 2020 11:47 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

when I execute the get request from last mail manually:

wget
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
--2020-05-14 10:46:31--
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130
Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443...
connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote:

Hi Toralf,
How are you capturing that ant output? Either there's something
wrong
with that, or ant is silently terminating before it gets to the
create_db target -- which is a possibility, since that's what would
create the cspace database.

Is there anything interesting in the syslog at the time of the last
message in the ant output?

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 4:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off
before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+------


+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant
run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to
that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because
fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com
(cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual
install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer
is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you
prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf
of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and
then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd
suggest
waiting until 6.0 is released (should be next week), and
starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got
overlooked):
at the moment I cant install, build or run anything as the
maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.acc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer
metadata
org.collectionspace.services:org.collectionspace.services.acc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.aut
ho
ri
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-
libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] ------------------------------------------

--

--

--

  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ------------------------------------------

--

--

--

  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.aut
ho
ri
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies
at
org.collectionspace.services:org.collectionspace.services.aut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact
descriptor
for
org.collectionspace.services:org.collectionspace.services.aut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.aut
he
nt
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following
error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it
seems)
and from the postgres logs I see something expects
something
to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorage
Ut
il
s:
37
6]
Could not find entity with key
={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for
query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_d
ef
au
lt
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_d
ef
au
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_d
ef
au
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_d
ef
au
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_d
ef
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2

'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_d
ef
au
lt
LOG:  execute <unnamed>: select role0_.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_d
ef
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1',
$3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_d
ef
au
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE running
the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ toralf.jabs@gmail.com
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I
also
included
the
logs from both maven runs)
the db/user did not get created so after ansible
completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-
local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ------------------------------------

--

--

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ------------------------------------

--

--

--



  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-

04:00
[exec] [INFO] ------------------------------------

--

--

--


  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could
not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.servic
es
.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.servic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.servic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.servic
es
.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The
following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121:
The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:
15
3:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred
while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command
during
the
installation. (The manual installation instructions
include
a

step to

run ant undeploy deploy create_db import, but ant
import
can
be

run

on its own). The ansible installer should be doing
that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>;
talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and
permissions
setup
failed
with exception(s): One or more of the required
default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the
required
default
CollectionSpace administrator roles is missing or was
never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions
problem.
Is

everything

in the tomcat directory owned by the user that runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i
said
it
could

create

convertcache, but the directory exists, so i
deleted
it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot
create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-startStop-
1]

[org.collectionspace.services.nuxeo.client.java.NuxeoCo
nn
ec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-
1]
[org.apache.catalina.util.SessionIdGeneratorBase:12
3]
Creation

of

SecureRandom instance for session ID generation
using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException:
Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to
start
up.
Take
a

look

at
catalina.out in the logs directory under tomcat.
Are
there

any

exceptions or error messages?

Ray


From: Talk <
talk-bounces@lists.collectionspace.org>
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new
implementer

I've

cc'd

him
on this as his note couldn't get through talk for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.org
as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache)
according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login

"You should be able to log in to the default core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other
combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-
size:12px;}
a
{color:black;}
a.name {color:black;} .line
{height:1px;background-
color:#525D76;border:none;}</style></head><body><
h1

H

TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Descripti
on
</
b>
The

origin

server did not find a current representation for
the
target
resource
or
is not willing to disclose that one
exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>
Hello Ray, I didnt't. Now I did and got this: BUILD FAILED /opt/collectionspace/services/build.xml:305: The following error occurred while executing this line: /opt/collectionspace/services/cspace-ui/build.xml:31: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "/opt/collectionspace/services/cspace-ui"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ... Installed curl now (can this be added to the ansible playbook? and rerunning the ant as user collectionspace Kind regards Toralf On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote: > Hi Toralf, > That's not a problem. Your error is this: > > Could not transfer artifact > org.collectionspace.services:org.collectionspace.services.common:jar: > 6. > 0.0 from/to cspace-libs-release-local ( > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local > ): GET request of: > org/collectionspace/services/org.collectionspace.services.common/6.0. > 0/ > org.collectionspace.services.common-6.0.0.jar from cspace-libs- > release- > local failed: Read timed out -> [Help 1] > > Are you able to download > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/ > org.collectionspace.services.common-6.0.0.jar? > > Either way, you shouldn't even need to download that jar at that > point in the process. Are you running ant as the collectionspace > user? > > Thanks, > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: TJ <toralf.jabs@gmail.com> > Sent: Thursday, May 14, 2020 11:47 AM > To: Ray Lee > Cc: talk@lists.collectionspace.org; Rob Clark > Subject: Re: [Talk] collectionspace installation/login > > Hello Ray, > > when I execute the get request from last mail manually: > > wget > https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar > --2020-05-14 10:46:31-- > https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar > Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130 > Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443... > connected. > HTTP request sent, awaiting response... 401 Unauthorized > > Username/Password Authentication Failed. > > > On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote: > > Hi Toralf, > > How are you capturing that ant output? Either there's something > > wrong > > with that, or ant is silently terminating before it gets to the > > create_db target -- which is a possibility, since that's what would > > create the cspace database. > > > > Is there anything interesting in the syslog at the time of the last > > message in the ant output? > > > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Wednesday, May 13, 2020 4:45 PM > > To: Ray Lee > > Cc: talk@lists.collectionspace.org; Rob Clark > > Subject: Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > no, that's all I got... > > > > Kind regards > > Toralf > > > > > > On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > > > Hi Toralf, > > > Is there any more to the ant log? It looks like it's cut off > > > before > > > the part I'm interested in. > > > > > > Thanks, > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: TJ <toralf.jabs@gmail.com> > > > Sent: Wednesday, May 13, 2020 3:45 PM > > > To: Ray Lee > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > Hello Ray, > > > > > > just tested (again) on a fresh machine, > > > like last time(s) no cspace db got created... > > > root@home:~# su - postgres > > > psql postgres@home:~$ psql -l > > > List of databases > > > Name | Owner | Encoding > > > > Collate | Ctype | Access privileges > > > ---------------+---------------+----------+-------------+------ > > > ---- > > > --- > > > +--------------------------------- > > > nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | > > > en_US.UTF-8 > > > =Tc/nuxeo_default + > > > | | | | > > > | > > > nuxeo_default=CTc/nuxeo_default+ > > > | | | | > > > | > > > reader_default=c/nuxeo_default > > > postgres | postgres | UTF8 | en_US.UTF-8 | > > > en_US.UTF-8 > > > template0 | postgres | UTF8 | en_US.UTF-8 | > > > en_US.UTF-8 > > > =c/postgres + > > > | | | | > > > | > > > postgres=CTc/postgres > > > template1 | postgres | UTF8 | en_US.UTF-8 | > > > en_US.UTF-8 > > > =c/postgres + > > > | | | | > > > | > > > postgres=CTc/postgres > > > (4 rows) > > > > > > attached the complete ansible run, both maven runs and the ant > > > run > > > > > > Kind regards > > > Toralf > > > > > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > > > Sorry, you should be able to see that page now. > > > > > > > > Can you attach the complete output from the installer up to > > > > that > > > > error? > > > > > > > > Thanks, > > > > Ray > > > > > > > > ═ > > > > Ray Lee > > > > CollectionSpace Senior Developer > > > > LYRASIS > > > > ray.lee@lyrasis.org > > > > > > > > ________________________________________ > > > > From: TJ <toralf.jabs@gmail.com> > > > > Sent: Wednesday, May 13, 2020 9:50 AM > > > > To: Ray Lee > > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > Hello Ray, > > > > > > > > as well I cant run the installer (and parts of it) because > > > > fetching > > > > artifacts from your maven repository still gets me > > > > > > > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com > > > > (cspace- > > > > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > > > > connected. > > > > HTTP request sent, awaiting response... 403 Forbidden > > > > > > > > Kind reagrds > > > > Toralf > > > > > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > > > Hi Toralf, > > > > > In advance of the 6.0 release, I've updated the manual > > > > > install > > > > > instructions, and verified that they work: > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > > > > > I've also verified that the Ansible-based automated installer > > > > > is > > > > > working: > > > > > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > > > > > If you can, try your install again (whichever way you > > > > > prefer), > > > > > and > > > > > let us know how it goes. > > > > > > > > > > Thanks, > > > > > Ray > > > > > > > > > > ═ > > > > > Ray Lee > > > > > CollectionSpace Senior Developer > > > > > LYRASIS > > > > > ray.lee@lyrasis.org > > > > > > > > > > ________________________________________ > > > > > From: Talk <talk-bounces@lists.collectionspace.org> on behalf > > > > > of > > > > > Ray > > > > > Lee <ray.lee@lyrasis.org> > > > > > Sent: Friday, May 8, 2020 4:12 PM > > > > > To: TJ; Richard Millet > > > > > Cc: talk@lists.collectionspace.org > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > Hi Toralf, > > > > > It sounds like you started with a manual install of 5.2, and > > > > > then > > > > > went to the new ansible installer, which is going to try to > > > > > install > > > > > 6.0, which hasn't been released yet. At this point I'd > > > > > suggest > > > > > waiting until 6.0 is released (should be next week), and > > > > > starting > > > > > from scratch with the ansible installer. > > > > > > > > > > Ray > > > > > > > > > > ═ > > > > > Ray Lee > > > > > CollectionSpace Senior Developer > > > > > LYRASIS > > > > > ray.lee@lyrasis.org > > > > > > > > > > ________________________________________ > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > > > To: Richard Millet > > > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > In addition as I said earlier (I dont know if it got > > > > > overlooked): > > > > > at the moment I cant install, build or run anything as the > > > > > maven > > > > > (re)runs fail with: > > > > > > > > > > [exec] [WARNING] Failure to transfer > > > > > org.collectionspace.services:org.collectionspace.services.acc > > > > > ou > > > > > nt > > > > > .c > > > > > li > > > > > en > > > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > was cached in the local repository, resolution will not be > > > > > reattempted > > > > > until the update interval of cspace-libs-snapshot-local has > > > > > elapsed > > > > > or > > > > > updates are forced. Original error: Could not transfer > > > > > metadata > > > > > org.collectionspace.services:org.collectionspace.services.acc > > > > > ou > > > > > nt > > > > > .c > > > > > li > > > > > en > > > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > > > > snapshot- > > > > > local > > > > > ( > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > ): Access denied to: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > , ReasonPhrase:Forbidden. > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > [exec] [WARNING] Could not transfer metadata > > > > > org.collectionspace.services:org.collectionspace.services.aut > > > > > ho > > > > > ri > > > > > za > > > > > ti > > > > > on > > > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace- > > > > > libs- > > > > > snapshot-local ( > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > ): Access denied to: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > , ReasonPhrase:Forbidden. > > > > > ... > > > > > > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > -- > > > > > -- > > > > > -------------------- > > > > > [exec] [INFO] BUILD FAILURE > > > > > [exec] [INFO] ------------------------------------------ > > > > > -- > > > > > -- > > > > > -- > > > > > -- > > > > > -- > > > > > -------------------- > > > > > [exec] [INFO] Total time: 39.114 s > > > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > > > [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.aut > > > > > ho > > > > > ri > > > > > za > > > > > ti > > > > > on > > > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies > > > > > at > > > > > org.collectionspace.services:org.collectionspace.services.aut > > > > > he > > > > > nt > > > > > ic > > > > > at > > > > > io > > > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact > > > > > descriptor > > > > > for > > > > > org.collectionspace.services:org.collectionspace.services.aut > > > > > he > > > > > nt > > > > > ic > > > > > at > > > > > io > > > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > > > org.collectionspace.services:org.collectionspace.services.aut > > > > > he > > > > > nt > > > > > ic > > > > > at > > > > > io > > > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local > > > > > ( > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > ): Access denied to: > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > /opt/collectionspace/services/build.xml:295: The following > > > > > error > > > > > occurred while executing this line: > > > > > /opt/collectionspace/services/services/build.xml:148: The > > > > > following > > > > > error occurred while executing this line: > > > > > /opt/collectionspace/services/services/authorization- > > > > > mgt/build.xml:120: > > > > > The following error occurred while executing this line: > > > > > /opt/collectionspace/services/services/authorization- > > > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > > > Hello, > > > > > > > > > > > > I did exactly that (via the ansible run) > > > > > > I also included the logs from both maven runs... > > > > > > the ant task did not execute the create_db target (it > > > > > > seems) > > > > > > and from the postgres logs I see something expects > > > > > > something > > > > > > to > > > > > > be > > > > > > in > > > > > > the DB as well... > > > > > > > > > > > > #cspace services startup > > > > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > > > > [org.collectionspace.services.common.storage.jpa.JpaStorage > > > > > > Ut > > > > > > il > > > > > > s: > > > > > > 37 > > > > > > 6] > > > > > > Could not find entity with key > > > > > > ={roleName=ROLE_1_TENANT_READER} > > > > > > javax.persistence.NoResultException: No entity found for > > > > > > query > > > > > > > > > > > > #postgres > > > > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > LOG: execute <unnamed>: SET application_name = 'PostgreSQL > > > > > > JDBC > > > > > > Driver' > > > > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > LOG: execute <unnamed>: BEGIN > > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > > descript3_10_, > > > > > > role0_.displayname as displayn4_10_, > > > > > > role0_.metadata_protection > > > > > > as > > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > > role0_.rolegroup > > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > > role0_.tenant_id > > > > > > as > > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > > > role0_ > > > > > > where > > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 > > > > > > = > > > > > > '1', > > > > > > $3 > > > > > > = > > > > > > '2' > > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > > descript3_10_, > > > > > > role0_.displayname as displayn4_10_, > > > > > > role0_.metadata_protection > > > > > > as > > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > > role0_.rolegroup > > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > > role0_.tenant_id > > > > > > as > > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from roles > > > > > > role0_ > > > > > > where > > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', > > > > > > $3 > > > > > > = > > > > > > '2' > > > > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace_d > > > > > > ef > > > > > > au > > > > > > lt > > > > > > LOG: execute S_1: ROLLBACK > > > > > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > > > > TJ, > > > > > > > > > > > > > > You may need to run the following commands BEFORE running > > > > > > > the > > > > > > > 'ant > > > > > > > undeploy deploy created_db import' command: > > > > > > > > > > > > > > From the top "services" directory: > > > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > > > From the top "application" directory: > > > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > > > Back to the top "services" directory: > > > > > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > I hope that works for you, > > > > > > > > > > > > > > Richard > > > > > > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com> > > > > > > > wrote: > > > > > > > > ansible didn't show any errors > > > > > > > > I logged the ant run into a file(attached as a.log, I > > > > > > > > also > > > > > > > > included > > > > > > > > the > > > > > > > > logs from both maven runs) > > > > > > > > the db/user did not get created so after ansible > > > > > > > > completely > > > > > > > > running > > > > > > > > through, I rerun manually the command > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > > > but now I get this: > > > > > > > > ... > > > > > > > > [exec] Downloading from cspace-libs-snapshot- > > > > > > > > local: > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > > [exec] [INFO] ------------------------------------ > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > ---- > > > > > > > > -------------------- > > > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > > > [exec] [INFO] ------------------------------------ > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > ---- > > > > > > > > -------------------- > > > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58- > > > > > > > > 04:00 > > > > > > > > [exec] [INFO] ------------------------------------ > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > -- > > > > > > > > ---- > > > > > > > > -------------------- > > > > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > > > > org.collectionspace.services.listener.reindex: Could > > > > > > > > not > > > > > > > > resolve > > > > > > > > dependencies for project > > > > > > > > org.collectionspace.services:org.collectionspace.servic > > > > > > > > es > > > > > > > > .l > > > > > > > > is > > > > > > > > te > > > > > > > > ne > > > > > > > > r. > > > > > > > > rein > > > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at > > > > > > > > org.collectionspace.services:org.collectionspace.servic > > > > > > > > es > > > > > > > > .c > > > > > > > > om > > > > > > > > mo > > > > > > > > n: > > > > > > > > ja > > > > > > > > r:6. > > > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > > > org.collectionspace.services:org.collectionspace.servic > > > > > > > > es > > > > > > > > .c > > > > > > > > om > > > > > > > > mo > > > > > > > > n: > > > > > > > > ja > > > > > > > > r:6. > > > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > > > org.collectionspace.services:org.collectionspace.servic > > > > > > > > es > > > > > > > > .c > > > > > > > > om > > > > > > > > mo > > > > > > > > n: > > > > > > > > po > > > > > > > > m:6. > > > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > > ): Access denied to: > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > > > /opt/collectionspace/services/build.xml:303: The > > > > > > > > following > > > > > > > > error > > > > > > > > occurred while executing this line: > > > > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: > > > > > > > > The > > > > > > > > following > > > > > > > > error occurred while executing this line: > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xml: > > > > > > > > 15 > > > > > > > > 3: > > > > > > > > The > > > > > > > > following error occurred while executing this line: > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > > platform- > > > > > > > > listener/build.xml:118: The following error occurred > > > > > > > > while > > > > > > > > executing > > > > > > > > this line: > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > > platform- > > > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > > > Hi Toralf, > > > > > > > > > The cspace_default user and database and those > > > > > > > > > administrator > > > > > > > > roles > > > > > > > > > are created when you run the ant import command > > > > > > > > > during > > > > > > > > > the > > > > > > > > > installation. (The manual installation instructions > > > > > > > > > include > > > > > > > > > a > > > > > > > > step to > > > > > > > > > run ant undeploy deploy create_db import, but ant > > > > > > > > > import > > > > > > > > > can > > > > > > > > > be > > > > > > > > run > > > > > > > > > on its own). The ansible installer should be doing > > > > > > > > > that, > > > > > > > > > though. > > > > > > > > I'm > > > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > > > megan.forbes@lyrasis.org>; > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > < > > > > > > > > > talk@lists.collectionspace.org> > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > > > I gave up on the manual install and tried the ansible > > > > > > > > > procedure > > > > > > > > > it got me a bit further but cspace-services could not > > > > > > > > > start > > > > > > > > > due > > > > > > > > to > > > > > > > > > - the user cspace_default was not in the db > > > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] > > > > > > > > > [org.collectionspace.services.common.ServiceMain:266] > > > > > > > > > Default > > > > > > > > > create/update of tenants, accounts, roles and > > > > > > > > > permissions > > > > > > > > > setup > > > > > > > > > failed > > > > > > > > > with exception(s): One or more of the required > > > > > > > > > default > > > > > > > > > CollectionSpace > > > > > > > > > administrator roles is missing or was never created. > > > > > > > > > java.lang.RuntimeException: One or more of the > > > > > > > > > required > > > > > > > > > default > > > > > > > > > CollectionSpace administrator roles is missing or was > > > > > > > > > never > > > > > > > > created. > > > > > > > > > Kind regards > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > > > Hi Toralf, > > > > > > > > > > My first thought is that there's a permissions > > > > > > > > > > problem. > > > > > > > > > > Is > > > > > > > > > everything > > > > > > > > > > in the tomcat directory owned by the user that runs > > > > > > > > > > tomcat > > > > > > > > > (typically > > > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i > > > > > > > > > > said > > > > > > > > > > it > > > > > > > > > > could > > > > > > > > > create > > > > > > > > > > convertcache, but the directory exists, so i > > > > > > > > > > deleted > > > > > > > > > > it > > > > > > > > > > and > > > > > > > > > restarted > > > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > > > > 8.5.40/logs# > > > > > > > > grep > > > > > > > > > > -A1 > > > > > > > > > > ERR cspace-services.log > > > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost-startStop- > > > > > > > > > > 1] > > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > > Framework > > > > > > > > Listener > > > > > > > > > > execution : class > > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot > > > > > > > > > > create > > > > > > > > > > cache > > > > > > > > > > dir > > > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > > > server/data/convertcache > > > > > > > > > > -- > > > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost-startStop- > > > > > > > > > > 1] > > > > > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.NuxeoCo > > > > > > > > nn > > > > > > > > ec > > > > > > > > to > > > > > > > > rE > > > > > > > > mb > > > > > > > > ed > > > > > > > > de > > > > > > > > > > d: > > > > > > > > > > 137] No repository defined > > > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost-startStop- > > > > > > > > > > 1] > > > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase:12 > > > > > > > > > > 3] > > > > > > > > > > Creation > > > > > > > > of > > > > > > > > > > SecureRandom instance for session ID generation > > > > > > > > > > using > > > > > > > > [SHA1PRNG] > > > > > > > > > took > > > > > > > > > > [5,003] milliseconds. > > > > > > > > > > -- > > > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost-startStop- > > > > > > > > > > 1] > > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > > Framework > > > > > > > > Listener > > > > > > > > > > execution : class > > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > > java.lang.RuntimeException: java.io.IOException: > > > > > > > > > > Failed > > > > > > > > > > to > > > > > > > > > > list > > > > > > > > > > contents of /usr/local/share/apache-tomcat- > > > > > > > > > > 8.5.40/nuxeo- > > > > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > > > > Hi Toralf, > > > > > > > > > > > That usually means the server wasn't able to > > > > > > > > > > > start > > > > > > > > > > > up. > > > > > > > > > > > Take > > > > > > > > > > > a > > > > > > > > > look > > > > > > > > > > > at > > > > > > > > > > > catalina.out in the logs directory under tomcat. > > > > > > > > > > > Are > > > > > > > > > > > there > > > > > > > > any > > > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > From: Talk < > > > > > > > > > > > talk-bounces@lists.collectionspace.org> > > > > > > > > > > > on > > > > > > > > > > > behalf > > > > > > > > of > > > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > > > Cc: TJ > > > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > > > > > Please see the below question from a new > > > > > > > > > > > implementer > > > > > > > > > > > - > > > > > > > > > > > I've > > > > > > > > cc'd > > > > > > > > > > > him > > > > > > > > > > > on this as his note couldn't get through talk for > > > > > > > > > > > some > > > > > > > > reason, so > > > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > > > 917.267.9676 Cell > > > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > > > To: info@collectionspace.org > > > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > > > (i tried sending this to talk@collectionspace.org > > > > > > > > > > > as > > > > > > > > suggested in > > > > > > > > > > > the > > > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > > > > > I installed collection space (and apache) > > > > > > > > > > > according > > > > > > > > > > > to > > > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > > > and > > > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > > > everything went smooth > > > > > > > > > > > but: > > > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and > > > > > > > > > > > refers > > > > > > > > > > > to > > > > > > > > > > > the > > > > > > > > > login > > > > > > > > > > > "You should be able to log in to the default core > > > > > > > > > > > tenant > > > > > > > > using > > > > > > > > > the > > > > > > > > > > > user > > > > > > > > > > > admin@core.collectionspace.org and the password > > > > > > > > Administrator." > > > > > > > > > > > but no matter if I try this or any other > > > > > > > > > > > combination > > > > > > > > > > > of > > > > > > > > admin@ > > > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook something? > > > > > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > > > --------- > > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > > > -u > > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > HTTP/1.1 404 > > > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > > > Content-Language: en > > > > > > > > > > > Content-Length: 1111 > > > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > > > > > <!doctype html><html lang="en"><head><title>HTTP > > > > > > > > > > > Status > > > > > > > > > > > 404 > > > > > > > > > > > - > > > > > > > > Not > > > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > > > size:22px;} > > > > > > > > h2 > > > > > > > > > > > {font- > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > serif;color:white;background-color:#525D76;font- > > > > > > > > > > > size:14px;} > > > > > > > > body > > > > > > > > > > > {font- > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > serif;color:black;background- > > > > > > > > > color:white;} > > > > > > > > > > > b > > > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > color:#525D76;} p {font-family:Tahoma,Arial,sans- > > > > > > > > > > > serif;background:white;color:black;font- > > > > > > > > > > > size:12px;} > > > > > > > > > > > a > > > > > > > > > > > {color:black;} > > > > > > > > > > > a.name {color:black;} .line > > > > > > > > > > > {height:1px;background- > > > > > > > > > > > color:#525D76;border:none;}</style></head><body>< > > > > > > > > > > > h1 > > > > > > > > > > > > H > > > > > > > > > > > TT > > > > > > > > > > > P > > > > > > > > Status > > > > > > > > > 404 > > > > > > > > > > > - > > > > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> > > > > > > > > > > > Status > > > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > > > services&#47;collectionobjects</p><p><b>Descripti > > > > > > > > > > > on > > > > > > > > > > > </ > > > > > > > > > > > b> > > > > > > > > > > > The > > > > > > > > > origin > > > > > > > > > > > server did not find a current representation for > > > > > > > > > > > the > > > > > > > > > > > target > > > > > > > > > > > resource > > > > > > > > > > > or > > > > > > > > > > > is not willing to disclose that one > > > > > > > > > > > exists.</p><hr > > > > > > > > class="line" > > > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > > > Content-Type: text/html > > > > > > > > > > > Content-Length: 276 > > > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > > > <head> > > > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > > > </head> > > > > > > > > > > > <body> > > > > > > > > > > > <div id="cspace"></div> > > > > > > > > > > > <script src=" > > > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > > > "></ > > > > > > > > > sc > > > > > > > > > > > ri > > > > > > > > > > > pt > > > > > > > > > > > <script> > > > > > > > > > > > cspaceUI({ > > > > > > > > > > > basename: > > > > > > > > > > > '/cspace/core', > > > > > > > > > > > prettyUrls: true, > > > > > > > > > > > tenantId: '1', > > > > > > > > > > > }); > > > > > > > > > > > </script> > > > > > > > > > > > </body> > > > > > > > > > > > </html> > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Talk mailing list > > > > > > > > Talk@lists.collectionspace.org > > > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > > > > > _______________________________________________ > > > > > Talk mailing list > > > > > Talk@lists.collectionspace.org > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
T
TJ
Thu, May 14, 2020 6:29 PM

Hello Ray,

the run completed much better (cspace db go created)
but the website shows
"/cspace/core/login is unreachable."

cspace services log:
root@home:/opt/collectionspace/server/logs# grep -i error cspace-
services.log
2020-05-13 19:33:44,648 ERROR [localhost-startStop-1]
[org.nuxeo.runtime.model.impl.RegistrationInfoImpl:388] Component
service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent
notification of application started failed: Unable to commit:
Transaction timeout
2020-05-13 19:33:45,831 ERROR [localhost-startStop-1]
[org.nuxeo.runtime.osgi.OSGiRuntimeService:484] Nuxeo Platform Started
2020-05-13 19:33:46,304 ERROR [localhost-startStop-1]
[org.postgresql.Driver:125] Connection error:
2020-05-14 17:43:47,409 ERROR [localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReaderIm
pl:338] Expected to, but could not, find the tenant proto configuration
file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/publicart-tenant-bindings-
proto.xml - For tenant: publicart
2020-05-14 17:43:47,420 ERROR [localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReaderIm
pl:338] Expected to, but could not, find the tenant proto configuration
file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/anthro-tenant-bindings-proto.xml

  • For tenant: anthro
    2020-05-14 17:43:47,421 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/materials-tenant-bindings-
    proto.xml - For tenant: materials
    2020-05-14 17:43:47,422 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/bonsai-tenant-bindings-proto.xml
  • For tenant: bonsai
    2020-05-14 17:43:47,422 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/botgarden-tenant-bindings-
    proto.xml - For tenant: botgarden
    2020-05-14 17:43:47,423 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/herbarium-tenant-bindings-
    proto.xml - For tenant: herbarium
    2020-05-14 17:43:47,424 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/testsci-tenant-bindings-proto.xml
  • For tenant: testsci
    2020-05-14 17:43:48,756 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/fcart-tenant-bindings-proto.xml -
    For tenant: fcart
    2020-05-14 17:43:48,756 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/dvp-tenant-bindings-proto.xml -
    For tenant: dvp
    2020-05-14 17:43:48,757 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReaderIm
    pl:338] Expected to, but could not, find the tenant proto configuration
    file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/lhmc-tenant-bindings-proto.xml -
    For tenant: lhmc
    2020-05-14 17:44:22,930 ERROR [localhost-startStop-2]
    [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener
    execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService
    2020-05-14 17:44:23,104 ERROR [localhost-startStop-2]
    [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded:
    137] No such repository: default
    2020-05-14 18:18:59,945 ERROR [localhost-startStop-3]
    [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener
    execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService
    2020-05-14 18:19:00,211 ERROR [localhost-startStop-3]
    [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded:
    137] No such repository: default

On Thu, 2020-05-14 at 12:57 -0500, TJ wrote:

Hello Ray,

I didnt't. Now I did and got this:
BUILD FAILED
/opt/collectionspace/services/build.xml:305: The following error
occurred while executing this line:
/opt/collectionspace/services/cspace-ui/build.xml:31: Execute failed:
java.io.IOException: Cannot run program "curl" (in directory
"/opt/collectionspace/services/cspace-ui"): error=2, No such file or
directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
...

Installed curl now (can this be added to the ansible playbook?
and rerunning the ant as user collectionspace

Kind regards
Toralf

On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote:

Hi Toralf,
That's not a problem. Your error is this:

Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.common:ja
r:
6.
0.0 from/to cspace-libs-release-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local
): GET request of:
org/collectionspace/services/org.collectionspace.services.common/6.
0.
0/
org.collectionspace.services.common-6.0.0.jar from cspace-libs-
release-
local failed: Read timed out -> [Help 1]

Are you able to download
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/
org.collectionspace.services.common-6.0.0.jar?

Either way, you shouldn't even need to download that jar at that
point in the process. Are you running ant as the collectionspace
user?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Thursday, May 14, 2020 11:47 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

when I execute the get request from last mail manually:

wget
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
--2020-05-14 10:46:31--
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130
Connecting to maven.nuxeo.org
(maven.nuxeo.org)|50.18.122.130|:443...
connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote:

Hi Toralf,
How are you capturing that ant output? Either there's something
wrong
with that, or ant is silently terminating before it gets to the
create_db target -- which is a possibility, since that's what
would
create the cspace database.

Is there anything interesting in the syslog at the time of the
last
message in the ant output?

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 4:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,
Is there any more to the ant log? It looks like it's cut off
before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@home:~# su - postgres
psql postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+------


+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant
run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to
that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because
fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com
(cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual
install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated
installer
is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you
prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on
behalf
of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2,
and
then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd
suggest
waiting until 6.0 is released (should be next week), and
starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got
overlooked):
at the moment I cant install, build or run anything as the
maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.a
cc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer
metadata
org.collectionspace.services:org.collectionspace.services.a
cc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.a
ut
ho
ri
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-
libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] ----------------------------------------

--

--

--


  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ----------------------------------------

--

--

--


  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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.a
ut
ho
ri
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect
dependencies
at
org.collectionspace.services:org.collectionspace.services.a
ut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact
descriptor
for
org.collectionspace.services:org.collectionspace.services.a
ut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.a
ut
he
nt
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following
error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it
seems)
and from the postgres logs I see something expects
something
to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStora
ge
Ut
il
s:
37
6]
Could not find entity with key
={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for
query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace
d
ef
au
lt
LOG:  execute <unnamed>: SET application_name =
'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace
d
ef
au
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace
d
ef
au
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace
d
ef
au
lt
LOG:  execute <unnamed>: select role0
.csid as csid10
,
role0
.created_at as created2_10
, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from
roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace
_d
ef
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR',
$2

'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace
d
ef
au
lt
LOG:  execute <unnamed>: select role0
.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from
roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace
_d
ef
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 =
'1',
$3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace
_d
ef
au
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:

TJ,

You may need to run the following commands BEFORE
running
the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ <
toralf.jabs@gmail.com>
wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I
also
included
the
logs from both maven runs)
the db/user did not get created so after ansible
completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-
local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ----------------------------------

--

--

--



  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] ----------------------------------

--

--

--

--


  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-02T11:17:58-

04:00
[exec] [INFO] ----------------------------------

--

--

--



  [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could
not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.serv
ic
es
.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies
at
org.collectionspace.services:org.collectionspace.serv
ic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.serv
ic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.serv
ic
es
.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The
following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121:
The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xm
l:
15
3:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred
while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command
during
the
installation. (The manual installation instructions
include
a

step to

run ant undeploy deploy create_db import, but ant
import
can
be

run

on its own). The ansible installer should be doing
that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>;
talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the
ansible
procedure
it got me a bit further but cspace-services could
not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-
1]
[org.collectionspace.services.common.ServiceMain:26
6]
Default
create/update of tenants, accounts, roles and
permissions
setup
failed
with exception(s): One or more of the required
default
CollectionSpace
administrator roles is missing or was never
created.
java.lang.RuntimeException: One or more of the
required
default
CollectionSpace administrator roles is missing or
was
never

created.

Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions
problem.
Is

everything

in the tomcat directory owned by the user that
runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i
said
it
could

create

convertcache, but the directory exists, so i
deleted
it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-
startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot
create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-
startStop-
1]

[org.collectionspace.services.nuxeo.client.java.Nuxeo
Co
nn
ec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-
startStop-
1]
[org.apache.catalina.util.SessionIdGeneratorBase:
12
3]
Creation

of

SecureRandom instance for session ID generation
using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-
startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException:
Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:

Hi Toralf,
That usually means the server wasn't able to
start
up.
Take
a

look

at
catalina.out in the logs directory under
tomcat.
Are
there

any

exceptions or error messages?

Ray


From: Talk <
talk-bounces@lists.collectionspace.org>
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new
implementer

I've

cc'd

him
on this as his note couldn't get through talk
for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to
talk@collectionspace.org
as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache)
according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login

"You should be able to log in to the default
core
tenant

using

the

user
admin@core.collectionspace.org and the password

Administrator."

but no matter if I try this or any other
combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook
something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-
color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-
family:Tahoma,Arial,sans-
serif;background:white;color:black;font-
size:12px;}
a
{color:black;}
a.name {color:black;} .line
{height:1px;background-
color:#525D76;border:none;}</style></head><body

<

h1

H

TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Descrip
ti
on
</
b>
The

origin

server did not find a current representation
for
the
target
resource
or
is not willing to disclose that one
exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls:
true,
tenantId: '1',
});
</script>
</body>

</html>
Hello Ray, the run completed much better (cspace db go created) but the website shows "/cspace/core/login is unreachable." cspace services log: root@home:/opt/collectionspace/server/logs# grep -i error cspace- services.log 2020-05-13 19:33:44,648 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl:388] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed: Unable to commit: Transaction timeout 2020-05-13 19:33:45,831 ERROR [localhost-startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService:484] Nuxeo Platform Started 2020-05-13 19:33:46,304 ERROR [localhost-startStop-1] [org.postgresql.Driver:125] Connection error: 2020-05-14 17:43:47,409 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/publicart-tenant-bindings- proto.xml - For tenant: publicart 2020-05-14 17:43:47,420 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/anthro-tenant-bindings-proto.xml - For tenant: anthro 2020-05-14 17:43:47,421 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/materials-tenant-bindings- proto.xml - For tenant: materials 2020-05-14 17:43:47,422 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/bonsai-tenant-bindings-proto.xml - For tenant: bonsai 2020-05-14 17:43:47,422 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/botgarden-tenant-bindings- proto.xml - For tenant: botgarden 2020-05-14 17:43:47,423 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/herbarium-tenant-bindings- proto.xml - For tenant: herbarium 2020-05-14 17:43:47,424 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/testsci-tenant-bindings-proto.xml - For tenant: testsci 2020-05-14 17:43:48,756 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/fcart-tenant-bindings-proto.xml - For tenant: fcart 2020-05-14 17:43:48,756 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/dvp-tenant-bindings-proto.xml - For tenant: dvp 2020-05-14 17:43:48,757 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderIm pl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat- 8.5.51/cspace/config/services/tenants/lhmc-tenant-bindings-proto.xml - For tenant: lhmc 2020-05-14 17:44:22,930 ERROR [localhost-startStop-2] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService 2020-05-14 17:44:23,104 ERROR [localhost-startStop-2] [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded: 137] No such repository: default 2020-05-14 18:18:59,945 ERROR [localhost-startStop-3] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService 2020-05-14 18:19:00,211 ERROR [localhost-startStop-3] [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded: 137] No such repository: default On Thu, 2020-05-14 at 12:57 -0500, TJ wrote: > Hello Ray, > > I didnt't. Now I did and got this: > BUILD FAILED > /opt/collectionspace/services/build.xml:305: The following error > occurred while executing this line: > /opt/collectionspace/services/cspace-ui/build.xml:31: Execute failed: > java.io.IOException: Cannot run program "curl" (in directory > "/opt/collectionspace/services/cspace-ui"): error=2, No such file or > directory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) > ... > > > Installed curl now (can this be added to the ansible playbook? > and rerunning the ant as user collectionspace > > Kind regards > Toralf > > On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote: > > Hi Toralf, > > That's not a problem. Your error is this: > > > > Could not transfer artifact > > org.collectionspace.services:org.collectionspace.services.common:ja > > r: > > 6. > > 0.0 from/to cspace-libs-release-local ( > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local > > ): GET request of: > > org/collectionspace/services/org.collectionspace.services.common/6. > > 0. > > 0/ > > org.collectionspace.services.common-6.0.0.jar from cspace-libs- > > release- > > local failed: Read timed out -> [Help 1] > > > > Are you able to download > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/ > > org.collectionspace.services.common-6.0.0.jar? > > > > Either way, you shouldn't even need to download that jar at that > > point in the process. Are you running ant as the collectionspace > > user? > > > > Thanks, > > Ray > > > > ═ > > Ray Lee > > CollectionSpace Senior Developer > > LYRASIS > > ray.lee@lyrasis.org > > > > ________________________________________ > > From: TJ <toralf.jabs@gmail.com> > > Sent: Thursday, May 14, 2020 11:47 AM > > To: Ray Lee > > Cc: talk@lists.collectionspace.org; Rob Clark > > Subject: Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > when I execute the get request from last mail manually: > > > > wget > > https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar > > --2020-05-14 10:46:31-- > > https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar > > Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130 > > Connecting to maven.nuxeo.org > > (maven.nuxeo.org)|50.18.122.130|:443... > > connected. > > HTTP request sent, awaiting response... 401 Unauthorized > > > > Username/Password Authentication Failed. > > > > > > On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote: > > > Hi Toralf, > > > How are you capturing that ant output? Either there's something > > > wrong > > > with that, or ant is silently terminating before it gets to the > > > create_db target -- which is a possibility, since that's what > > > would > > > create the cspace database. > > > > > > Is there anything interesting in the syslog at the time of the > > > last > > > message in the ant output? > > > > > > Ray > > > > > > ═ > > > Ray Lee > > > CollectionSpace Senior Developer > > > LYRASIS > > > ray.lee@lyrasis.org > > > > > > ________________________________________ > > > From: TJ <toralf.jabs@gmail.com> > > > Sent: Wednesday, May 13, 2020 4:45 PM > > > To: Ray Lee > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > Hello Ray, > > > > > > no, that's all I got... > > > > > > Kind regards > > > Toralf > > > > > > > > > On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > > > > Hi Toralf, > > > > Is there any more to the ant log? It looks like it's cut off > > > > before > > > > the part I'm interested in. > > > > > > > > Thanks, > > > > Ray > > > > > > > > ═ > > > > Ray Lee > > > > CollectionSpace Senior Developer > > > > LYRASIS > > > > ray.lee@lyrasis.org > > > > > > > > ________________________________________ > > > > From: TJ <toralf.jabs@gmail.com> > > > > Sent: Wednesday, May 13, 2020 3:45 PM > > > > To: Ray Lee > > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > Hello Ray, > > > > > > > > just tested (again) on a fresh machine, > > > > like last time(s) no cspace db got created... > > > > root@home:~# su - postgres > > > > psql postgres@home:~$ psql -l > > > > List of databases > > > > Name | Owner | Encoding > > > > > Collate | Ctype | Access privileges > > > > ---------------+---------------+----------+-------------+------ > > > > ---- > > > > --- > > > > +--------------------------------- > > > > nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | > > > > en_US.UTF-8 > > > > =Tc/nuxeo_default + > > > > | | | | > > > > | > > > > nuxeo_default=CTc/nuxeo_default+ > > > > | | | | > > > > | > > > > reader_default=c/nuxeo_default > > > > postgres | postgres | UTF8 | en_US.UTF-8 | > > > > en_US.UTF-8 > > > > template0 | postgres | UTF8 | en_US.UTF-8 | > > > > en_US.UTF-8 > > > > =c/postgres + > > > > | | | | > > > > | > > > > postgres=CTc/postgres > > > > template1 | postgres | UTF8 | en_US.UTF-8 | > > > > en_US.UTF-8 > > > > =c/postgres + > > > > | | | | > > > > | > > > > postgres=CTc/postgres > > > > (4 rows) > > > > > > > > attached the complete ansible run, both maven runs and the ant > > > > run > > > > > > > > Kind regards > > > > Toralf > > > > > > > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > > > > Sorry, you should be able to see that page now. > > > > > > > > > > Can you attach the complete output from the installer up to > > > > > that > > > > > error? > > > > > > > > > > Thanks, > > > > > Ray > > > > > > > > > > ═ > > > > > Ray Lee > > > > > CollectionSpace Senior Developer > > > > > LYRASIS > > > > > ray.lee@lyrasis.org > > > > > > > > > > ________________________________________ > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > Sent: Wednesday, May 13, 2020 9:50 AM > > > > > To: Ray Lee > > > > > Cc: talk@lists.collectionspace.org; Rob Clark > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > Hello Ray, > > > > > > > > > > as well I cant run the installer (and parts of it) because > > > > > fetching > > > > > artifacts from your maven repository still gets me > > > > > > > > > > Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com > > > > > (cspace- > > > > > maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... > > > > > connected. > > > > > HTTP request sent, awaiting response... 403 Forbidden > > > > > > > > > > Kind reagrds > > > > > Toralf > > > > > > > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > > > > Hi Toralf, > > > > > > In advance of the 6.0 release, I've updated the manual > > > > > > install > > > > > > instructions, and verified that they work: > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > > > > > > > I've also verified that the Ansible-based automated > > > > > > installer > > > > > > is > > > > > > working: > > > > > > > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > > > > > > > If you can, try your install again (whichever way you > > > > > > prefer), > > > > > > and > > > > > > let us know how it goes. > > > > > > > > > > > > Thanks, > > > > > > Ray > > > > > > > > > > > > ═ > > > > > > Ray Lee > > > > > > CollectionSpace Senior Developer > > > > > > LYRASIS > > > > > > ray.lee@lyrasis.org > > > > > > > > > > > > ________________________________________ > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> on > > > > > > behalf > > > > > > of > > > > > > Ray > > > > > > Lee <ray.lee@lyrasis.org> > > > > > > Sent: Friday, May 8, 2020 4:12 PM > > > > > > To: TJ; Richard Millet > > > > > > Cc: talk@lists.collectionspace.org > > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > > > Hi Toralf, > > > > > > It sounds like you started with a manual install of 5.2, > > > > > > and > > > > > > then > > > > > > went to the new ansible installer, which is going to try to > > > > > > install > > > > > > 6.0, which hasn't been released yet. At this point I'd > > > > > > suggest > > > > > > waiting until 6.0 is released (should be next week), and > > > > > > starting > > > > > > from scratch with the ansible installer. > > > > > > > > > > > > Ray > > > > > > > > > > > > ═ > > > > > > Ray Lee > > > > > > CollectionSpace Senior Developer > > > > > > LYRASIS > > > > > > ray.lee@lyrasis.org > > > > > > > > > > > > ________________________________________ > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > > > > To: Richard Millet > > > > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > > > In addition as I said earlier (I dont know if it got > > > > > > overlooked): > > > > > > at the moment I cant install, build or run anything as the > > > > > > maven > > > > > > (re)runs fail with: > > > > > > > > > > > > [exec] [WARNING] Failure to transfer > > > > > > org.collectionspace.services:org.collectionspace.services.a > > > > > > cc > > > > > > ou > > > > > > nt > > > > > > .c > > > > > > li > > > > > > en > > > > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > was cached in the local repository, resolution will not be > > > > > > reattempted > > > > > > until the update interval of cspace-libs-snapshot-local has > > > > > > elapsed > > > > > > or > > > > > > updates are forced. Original error: Could not transfer > > > > > > metadata > > > > > > org.collectionspace.services:org.collectionspace.services.a > > > > > > cc > > > > > > ou > > > > > > nt > > > > > > .c > > > > > > li > > > > > > en > > > > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > > > > > snapshot- > > > > > > local > > > > > > ( > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > ): Access denied to: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > > , ReasonPhrase:Forbidden. > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > > [exec] [WARNING] Could not transfer metadata > > > > > > org.collectionspace.services:org.collectionspace.services.a > > > > > > ut > > > > > > ho > > > > > > ri > > > > > > za > > > > > > ti > > > > > > on > > > > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace- > > > > > > libs- > > > > > > snapshot-local ( > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > ): Access denied to: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > > , ReasonPhrase:Forbidden. > > > > > > ... > > > > > > > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -------------------- > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > [exec] [INFO] ---------------------------------------- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -- > > > > > > -------------------- > > > > > > [exec] [INFO] Total time: 39.114 s > > > > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > > > > [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.a > > > > > > ut > > > > > > ho > > > > > > ri > > > > > > za > > > > > > ti > > > > > > on > > > > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect > > > > > > dependencies > > > > > > at > > > > > > org.collectionspace.services:org.collectionspace.services.a > > > > > > ut > > > > > > he > > > > > > nt > > > > > > ic > > > > > > at > > > > > > io > > > > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact > > > > > > descriptor > > > > > > for > > > > > > org.collectionspace.services:org.collectionspace.services.a > > > > > > ut > > > > > > he > > > > > > nt > > > > > > ic > > > > > > at > > > > > > io > > > > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > > > > org.collectionspace.services:org.collectionspace.services.a > > > > > > ut > > > > > > he > > > > > > nt > > > > > > ic > > > > > > at > > > > > > io > > > > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot- > > > > > > local > > > > > > ( > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > ): Access denied to: > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > /opt/collectionspace/services/build.xml:295: The following > > > > > > error > > > > > > occurred while executing this line: > > > > > > /opt/collectionspace/services/services/build.xml:148: The > > > > > > following > > > > > > error occurred while executing this line: > > > > > > /opt/collectionspace/services/services/authorization- > > > > > > mgt/build.xml:120: > > > > > > The following error occurred while executing this line: > > > > > > /opt/collectionspace/services/services/authorization- > > > > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > > > > Hello, > > > > > > > > > > > > > > I did exactly that (via the ansible run) > > > > > > > I also included the logs from both maven runs... > > > > > > > the ant task did not execute the create_db target (it > > > > > > > seems) > > > > > > > and from the postgres logs I see something expects > > > > > > > something > > > > > > > to > > > > > > > be > > > > > > > in > > > > > > > the DB as well... > > > > > > > > > > > > > > #cspace services startup > > > > > > > 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] > > > > > > > [org.collectionspace.services.common.storage.jpa.JpaStora > > > > > > > ge > > > > > > > Ut > > > > > > > il > > > > > > > s: > > > > > > > 37 > > > > > > > 6] > > > > > > > Could not find entity with key > > > > > > > ={roleName=ROLE_1_TENANT_READER} > > > > > > > javax.persistence.NoResultException: No entity found for > > > > > > > query > > > > > > > > > > > > > > #postgres > > > > > > > 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > LOG: execute <unnamed>: SET application_name = > > > > > > > 'PostgreSQL > > > > > > > JDBC > > > > > > > Driver' > > > > > > > 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > LOG: execute <unnamed>: SELECT id,name FROM tenants > > > > > > > 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > LOG: execute <unnamed>: BEGIN > > > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > > > descript3_10_, > > > > > > > role0_.displayname as displayn4_10_, > > > > > > > role0_.metadata_protection > > > > > > > as > > > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > > > role0_.rolegroup > > > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > > > role0_.tenant_id > > > > > > > as > > > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from > > > > > > > roles > > > > > > > role0_ > > > > > > > where > > > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > > > 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', > > > > > > > $2 > > > > > > > = > > > > > > > '1', > > > > > > > $3 > > > > > > > = > > > > > > > '2' > > > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > LOG: execute <unnamed>: select role0_.csid as csid10_, > > > > > > > role0_.created_at as created2_10_, role0_.description as > > > > > > > descript3_10_, > > > > > > > role0_.displayname as displayn4_10_, > > > > > > > role0_.metadata_protection > > > > > > > as > > > > > > > metadata5_10_, role0_.perms_protection as perms6_10_, > > > > > > > role0_.rolegroup > > > > > > > as rolegroup10_, role0_.rolename as rolename10_, > > > > > > > role0_.tenant_id > > > > > > > as > > > > > > > tenant9_10_, role0_.updated_at as updated10_10_ from > > > > > > > roles > > > > > > > role0_ > > > > > > > where > > > > > > > role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 > > > > > > > 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = > > > > > > > '1', > > > > > > > $3 > > > > > > > = > > > > > > > '2' > > > > > > > 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace > > > > > > > _d > > > > > > > ef > > > > > > > au > > > > > > > lt > > > > > > > LOG: execute S_1: ROLLBACK > > > > > > > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: > > > > > > > > TJ, > > > > > > > > > > > > > > > > You may need to run the following commands BEFORE > > > > > > > > running > > > > > > > > the > > > > > > > > 'ant > > > > > > > > undeploy deploy created_db import' command: > > > > > > > > > > > > > > > > From the top "services" directory: > > > > > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > > > > > From the top "application" directory: > > > > > > > > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > > > > > > > > Back to the top "services" directory: > > > > > > > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > > > I hope that works for you, > > > > > > > > > > > > > > > > Richard > > > > > > > > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ < > > > > > > > > toralf.jabs@gmail.com> > > > > > > > > wrote: > > > > > > > > > ansible didn't show any errors > > > > > > > > > I logged the ant run into a file(attached as a.log, I > > > > > > > > > also > > > > > > > > > included > > > > > > > > > the > > > > > > > > > logs from both maven runs) > > > > > > > > > the db/user did not get created so after ansible > > > > > > > > > completely > > > > > > > > > running > > > > > > > > > through, I rerun manually the command > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > > > > > but now I get this: > > > > > > > > > ... > > > > > > > > > [exec] Downloading from cspace-libs-snapshot- > > > > > > > > > local: > > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > > > [exec] [INFO] ---------------------------------- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > ---- > > > > > > > > > -------------------- > > > > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > > > > [exec] [INFO] ---------------------------------- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > ---- > > > > > > > > > -------------------- > > > > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > > > > [exec] [INFO] Finished at: 2020-05-02T11:17:58- > > > > > > > > > 04:00 > > > > > > > > > [exec] [INFO] ---------------------------------- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > -- > > > > > > > > > ---- > > > > > > > > > -------------------- > > > > > > > > > [exec] [ERROR] Failed to execute goal on project > > > > > > > > > org.collectionspace.services.listener.reindex: Could > > > > > > > > > not > > > > > > > > > resolve > > > > > > > > > dependencies for project > > > > > > > > > org.collectionspace.services:org.collectionspace.serv > > > > > > > > > ic > > > > > > > > > es > > > > > > > > > .l > > > > > > > > > is > > > > > > > > > te > > > > > > > > > ne > > > > > > > > > r. > > > > > > > > > rein > > > > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect dependencies > > > > > > > > > at > > > > > > > > > org.collectionspace.services:org.collectionspace.serv > > > > > > > > > ic > > > > > > > > > es > > > > > > > > > .c > > > > > > > > > om > > > > > > > > > mo > > > > > > > > > n: > > > > > > > > > ja > > > > > > > > > r:6. > > > > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > > > > org.collectionspace.services:org.collectionspace.serv > > > > > > > > > ic > > > > > > > > > es > > > > > > > > > .c > > > > > > > > > om > > > > > > > > > mo > > > > > > > > > n: > > > > > > > > > ja > > > > > > > > > r:6. > > > > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > > > > org.collectionspace.services:org.collectionspace.serv > > > > > > > > > ic > > > > > > > > > es > > > > > > > > > .c > > > > > > > > > om > > > > > > > > > mo > > > > > > > > > n: > > > > > > > > > po > > > > > > > > > m:6. > > > > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > > > ): Access denied to: > > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > > > > /opt/collectionspace/services/build.xml:303: The > > > > > > > > > following > > > > > > > > > error > > > > > > > > > occurred while executing this line: > > > > > > > > > /opt/collectionspace/services/3rdparty/build.xml:121: > > > > > > > > > The > > > > > > > > > following > > > > > > > > > error occurred while executing this line: > > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build.xm > > > > > > > > > l: > > > > > > > > > 15 > > > > > > > > > 3: > > > > > > > > > The > > > > > > > > > following error occurred while executing this line: > > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > > > platform- > > > > > > > > > listener/build.xml:118: The following error occurred > > > > > > > > > while > > > > > > > > > executing > > > > > > > > > this line: > > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > > > platform- > > > > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > > > > Hi Toralf, > > > > > > > > > > The cspace_default user and database and those > > > > > > > > > > administrator > > > > > > > > > roles > > > > > > > > > > are created when you run the ant import command > > > > > > > > > > during > > > > > > > > > > the > > > > > > > > > > installation. (The manual installation instructions > > > > > > > > > > include > > > > > > > > > > a > > > > > > > > > step to > > > > > > > > > > run ant undeploy deploy create_db import, but ant > > > > > > > > > > import > > > > > > > > > > can > > > > > > > > > > be > > > > > > > > > run > > > > > > > > > > on its own). The ansible installer should be doing > > > > > > > > > > that, > > > > > > > > > > though. > > > > > > > > > I'm > > > > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > > > > megan.forbes@lyrasis.org>; > > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > > < > > > > > > > > > > talk@lists.collectionspace.org> > > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > > > > I gave up on the manual install and tried the > > > > > > > > > > ansible > > > > > > > > > > procedure > > > > > > > > > > it got me a bit further but cspace-services could > > > > > > > > > > not > > > > > > > > > > start > > > > > > > > > > due > > > > > > > > > to > > > > > > > > > > - the user cspace_default was not in the db > > > > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost-startStop- > > > > > > > > > > 1] > > > > > > > > > > [org.collectionspace.services.common.ServiceMain:26 > > > > > > > > > > 6] > > > > > > > > > > Default > > > > > > > > > > create/update of tenants, accounts, roles and > > > > > > > > > > permissions > > > > > > > > > > setup > > > > > > > > > > failed > > > > > > > > > > with exception(s): One or more of the required > > > > > > > > > > default > > > > > > > > > > CollectionSpace > > > > > > > > > > administrator roles is missing or was never > > > > > > > > > > created. > > > > > > > > > > java.lang.RuntimeException: One or more of the > > > > > > > > > > required > > > > > > > > > > default > > > > > > > > > > CollectionSpace administrator roles is missing or > > > > > > > > > > was > > > > > > > > > > never > > > > > > > > > created. > > > > > > > > > > Kind regards > > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > > > > Hi Toralf, > > > > > > > > > > > My first thought is that there's a permissions > > > > > > > > > > > problem. > > > > > > > > > > > Is > > > > > > > > > > everything > > > > > > > > > > > in the tomcat directory owned by the user that > > > > > > > > > > > runs > > > > > > > > > > > tomcat > > > > > > > > > > (typically > > > > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first i > > > > > > > > > > > said > > > > > > > > > > > it > > > > > > > > > > > could > > > > > > > > > > create > > > > > > > > > > > convertcache, but the directory exists, so i > > > > > > > > > > > deleted > > > > > > > > > > > it > > > > > > > > > > > and > > > > > > > > > > restarted > > > > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache-tomcat- > > > > > > > > > > > 8.5.40/logs# > > > > > > > > > grep > > > > > > > > > > > -A1 > > > > > > > > > > > ERR cspace-services.log > > > > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost- > > > > > > > > > > > startStop- > > > > > > > > > > > 1] > > > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > > > Framework > > > > > > > > > Listener > > > > > > > > > > > execution : class > > > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot > > > > > > > > > > > create > > > > > > > > > > > cache > > > > > > > > > > > dir > > > > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > > > > server/data/convertcache > > > > > > > > > > > -- > > > > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost- > > > > > > > > > > > startStop- > > > > > > > > > > > 1] > > > > > > > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.Nuxeo > > > > > > > > > Co > > > > > > > > > nn > > > > > > > > > ec > > > > > > > > > to > > > > > > > > > rE > > > > > > > > > mb > > > > > > > > > ed > > > > > > > > > de > > > > > > > > > > > d: > > > > > > > > > > > 137] No repository defined > > > > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost- > > > > > > > > > > > startStop- > > > > > > > > > > > 1] > > > > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBase: > > > > > > > > > > > 12 > > > > > > > > > > > 3] > > > > > > > > > > > Creation > > > > > > > > > of > > > > > > > > > > > SecureRandom instance for session ID generation > > > > > > > > > > > using > > > > > > > > > [SHA1PRNG] > > > > > > > > > > took > > > > > > > > > > > [5,003] milliseconds. > > > > > > > > > > > -- > > > > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost- > > > > > > > > > > > startStop- > > > > > > > > > > > 1] > > > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > > > Framework > > > > > > > > > Listener > > > > > > > > > > > execution : class > > > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > > > java.lang.RuntimeException: java.io.IOException: > > > > > > > > > > > Failed > > > > > > > > > > > to > > > > > > > > > > > list > > > > > > > > > > > contents of /usr/local/share/apache-tomcat- > > > > > > > > > > > 8.5.40/nuxeo- > > > > > > > > > > > server/tmp/schemas > > > > > > > > > > > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: > > > > > > > > > > > > Hi Toralf, > > > > > > > > > > > > That usually means the server wasn't able to > > > > > > > > > > > > start > > > > > > > > > > > > up. > > > > > > > > > > > > Take > > > > > > > > > > > > a > > > > > > > > > > look > > > > > > > > > > > > at > > > > > > > > > > > > catalina.out in the logs directory under > > > > > > > > > > > > tomcat. > > > > > > > > > > > > Are > > > > > > > > > > > > there > > > > > > > > > any > > > > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > > From: Talk < > > > > > > > > > > > > talk-bounces@lists.collectionspace.org> > > > > > > > > > > > > on > > > > > > > > > > > > behalf > > > > > > > > > of > > > > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > > > > Cc: TJ > > > > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > > > > > > > Please see the below question from a new > > > > > > > > > > > > implementer > > > > > > > > > > > > - > > > > > > > > > > > > I've > > > > > > > > > cc'd > > > > > > > > > > > > him > > > > > > > > > > > > on this as his note couldn't get through talk > > > > > > > > > > > > for > > > > > > > > > > > > some > > > > > > > > > reason, so > > > > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > > > > 917.267.9676 Cell > > > > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > > > > To: info@collectionspace.org > > > > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > > > > > (i tried sending this to > > > > > > > > > > > > talk@collectionspace.org > > > > > > > > > > > > as > > > > > > > > > suggested in > > > > > > > > > > > > the > > > > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > > > > > > > I installed collection space (and apache) > > > > > > > > > > > > according > > > > > > > > > > > > to > > > > > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > > > > and > > > > > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > > > > everything went smooth > > > > > > > > > > > > but: > > > > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > > > > but that doesn't work at all and gets me a 404 > > > > > > > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page and > > > > > > > > > > > > refers > > > > > > > > > > > > to > > > > > > > > > > > > the > > > > > > > > > > login > > > > > > > > > > > > "You should be able to log in to the default > > > > > > > > > > > > core > > > > > > > > > > > > tenant > > > > > > > > > using > > > > > > > > > > the > > > > > > > > > > > > user > > > > > > > > > > > > admin@core.collectionspace.org and the password > > > > > > > > > Administrator." > > > > > > > > > > > > but no matter if I try this or any other > > > > > > > > > > > > combination > > > > > > > > > > > > of > > > > > > > > > admin@ > > > > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook > > > > > > > > > > > > something? > > > > > > > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > > > > --------- > > > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > > > > -u > > > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > HTTP/1.1 404 > > > > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > > > > Content-Language: en > > > > > > > > > > > > Content-Length: 1111 > > > > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > > > > > > > <!doctype html><html > > > > > > > > > > > > lang="en"><head><title>HTTP > > > > > > > > > > > > Status > > > > > > > > > > > > 404 > > > > > > > > > > > > - > > > > > > > > > Not > > > > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > color:#525D76;font- > > > > > > > > > > > > size:22px;} > > > > > > > > > h2 > > > > > > > > > > > > {font- > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > color:#525D76;font- > > > > > > > > > > > > size:14px;} > > > > > > > > > body > > > > > > > > > > > > {font- > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > serif;color:black;background- > > > > > > > > > > color:white;} > > > > > > > > > > > > b > > > > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > color:#525D76;} p {font- > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > serif;background:white;color:black;font- > > > > > > > > > > > > size:12px;} > > > > > > > > > > > > a > > > > > > > > > > > > {color:black;} > > > > > > > > > > > > a.name {color:black;} .line > > > > > > > > > > > > {height:1px;background- > > > > > > > > > > > > color:#525D76;border:none;}</style></head><body > > > > > > > > > > > > >< > > > > > > > > > > > > h1 > > > > > > > > > > > > > H > > > > > > > > > > > > TT > > > > > > > > > > > > P > > > > > > > > > Status > > > > > > > > > > 404 > > > > > > > > > > > > - > > > > > > > > > > > > Not Found</h1><hr class="line" /><p><b>Type</b> > > > > > > > > > > > > Status > > > > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > > > > services&#47;collectionobjects</p><p><b>Descrip > > > > > > > > > > > > ti > > > > > > > > > > > > on > > > > > > > > > > > > </ > > > > > > > > > > > > b> > > > > > > > > > > > > The > > > > > > > > > > origin > > > > > > > > > > > > server did not find a current representation > > > > > > > > > > > > for > > > > > > > > > > > > the > > > > > > > > > > > > target > > > > > > > > > > > > resource > > > > > > > > > > > > or > > > > > > > > > > > > is not willing to disclose that one > > > > > > > > > > > > exists.</p><hr > > > > > > > > > class="line" > > > > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > > > > Content-Type: text/html > > > > > > > > > > > > Content-Length: 276 > > > > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > > > > <head> > > > > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > > > > </head> > > > > > > > > > > > > <body> > > > > > > > > > > > > <div id="cspace"></div> > > > > > > > > > > > > <script src=" > > > > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > > > > "></ > > > > > > > > > > sc > > > > > > > > > > > > ri > > > > > > > > > > > > pt > > > > > > > > > > > > <script> > > > > > > > > > > > > cspaceUI({ > > > > > > > > > > > > basename: > > > > > > > > > > > > '/cspace/core', > > > > > > > > > > > > prettyUrls: > > > > > > > > > > > > true, > > > > > > > > > > > > tenantId: '1', > > > > > > > > > > > > }); > > > > > > > > > > > > </script> > > > > > > > > > > > > </body> > > > > > > > > > > > > </html> > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Talk mailing list > > > > > > > > > Talk@lists.collectionspace.org > > > > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > > > > > > > _______________________________________________ > > > > > > Talk mailing list > > > > > > Talk@lists.collectionspace.org > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
T
TJ
Thu, May 14, 2020 6:42 PM

Hello Ray,
had to adjust the nginx.conf and got the login screen and could login!
This looks much better now.Will contact Rob and see how far we get on
his VM.
Kind regardsToralf

On Thu, 2020-05-14 at 13:29 -0500, TJ wrote:

Hello Ray,
the run completed much better (cspace db go created)but the website
shows "/cspace/core/login is unreachable."
cspace services log:root@home:/opt/collectionspace/server/logs# grep
-i error cspace-services.log 2020-05-13 19:33:44,648 ERROR
[localhost-startStop-1]
[org.nuxeo.runtime.model.impl.RegistrationInfoImpl:388] Component
service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent
notification of application started failed: Unable to commit:
Transaction timeout2020-05-13 19:33:45,831 ERROR [localhost-
startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService:484] Nuxeo
Platform Started2020-05-13 19:33:46,304 ERROR [localhost-startStop-1]
[org.postgresql.Driver:125] Connection error: 2020-05-14 17:43:47,409
ERROR [localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/publicart-tenant-bindings-
proto.xml - For tenant: publicart2020-05-14 17:43:47,420 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/anthro-tenant-bindings-
proto.xml - For tenant: anthro2020-05-14 17:43:47,421 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/materials-tenant-bindings-
proto.xml - For tenant: materials2020-05-14 17:43:47,422 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/bonsai-tenant-bindings-
proto.xml - For tenant: bonsai2020-05-14 17:43:47,422 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/botgarden-tenant-bindings-
proto.xml - For tenant: botgarden2020-05-14 17:43:47,423 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/herbarium-tenant-bindings-
proto.xml - For tenant: herbarium2020-05-14 17:43:47,424 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/testsci-tenant-bindings-
proto.xml - For tenant: testsci2020-05-14 17:43:48,756 ERROR
[localhost-startStop-2]
[org.collectionspace.services.common.config.TenantBindingConfigReader
Impl:338] Expected to, but could not, find the tenant proto
configuration file: /opt/collectionspace/apache-tomcat-
8.5.51/cspace/config/services/tenants/fcart-tenant-bindings-proto.xml

  • For tenant: fcart2020-05-14 17:43:48,756 ERROR [localhost-
    startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReader
    Impl:338] Expected to, but could not, find the tenant proto
    configuration file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/dvp-tenant-bindings-proto.xml -
    For tenant: dvp2020-05-14 17:43:48,757 ERROR [localhost-startStop-2]
    [org.collectionspace.services.common.config.TenantBindingConfigReader
    Impl:338] Expected to, but could not, find the tenant proto
    configuration file: /opt/collectionspace/apache-tomcat-
    8.5.51/cspace/config/services/tenants/lhmc-tenant-bindings-proto.xml
  • For tenant: lhmc2020-05-14 17:44:22,930 ERROR [localhost-startStop-
    2] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener
    execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService2020-05-14
    17:44:23,104 ERROR [localhost-startStop-2]
    [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedde
    d:137] No such repository: default2020-05-14 18:18:59,945 ERROR
    [localhost-startStop-3] [org.nuxeo.osgi.OSGiAdapter:226] Error during
    Framework Listener execution : class
    org.nuxeo.runtime.osgi.OSGiRuntimeService2020-05-14 18:19:00,211
    ERROR [localhost-startStop-3]
    [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedde
    d:137] No such repository: default

On Thu, 2020-05-14 at 12:57 -0500, TJ wrote:

Hello Ray,
I didnt't. Now I did and got this:BUILD
FAILED/opt/collectionspace/services/build.xml:305: The following
erroroccurred while executing this
line:/opt/collectionspace/services/cspace-ui/build.xml:31: Execute
failed:java.io.IOException: Cannot run program "curl" (in
directory"/opt/collectionspace/services/cspace-ui"): error=2, No
such file ordirectory        at
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)...

Installed curl now (can this be added to the ansible playbook?and
rerunning the ant as user collectionspace
Kind regardsToralf
On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote:

Hi Toralf,That's not a problem. Your error is this:
Could not transfer
artifactorg.collectionspace.services:org.collectionspace.services
.common:jar:6.0.0 from/to cspace-libs-release-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local
): GET request
of:org/collectionspace/services/org.collectionspace.services.comm
on/6.0.0/org.collectionspace.services.common-6.0.0.jar from
cspace-libs-release-local failed: Read timed out -> [Help 1]
Are you able to download
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/org.collectionspace.services.common-6.0.0.jar
?
Either way, you shouldn't even need to download that jar at
thatpoint in the process. Are you running ant as the
collectionspaceuser?
Thanks,Ray
═Ray LeeCollectionSpace Senior
DeveloperLYRASISray.lee@lyrasis.org
________________________________________From: TJ <
toralf.jabs@gmail.com>Sent: Thursday, May 14, 2020 11:47 AMTo:
Ray LeeCc: talk@lists.collectionspace.org; Rob ClarkSubject: Re:
[Talk] collectionspace installation/login
Hello Ray,
when I execute the get request from last mail manually:
wget
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar--2020-05-14
10:46:31--
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jarResolving
maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130Connecting to
maven.nuxeo.org
(maven.nuxeo.org)|50.18.122.130|:443...connected.HTTP request
sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.

On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote:

Hi Toralf,How are you capturing that ant output? Either there's
somethingwrongwith that, or ant is silently terminating before
it gets to thecreate_db target -- which is a possibility, since
that's what wouldcreate the cspace database.
Is there anything interesting in the syslog at the time of the
lastmessage in the ant output?
Ray
═Ray LeeCollectionSpace Senior
DeveloperLYRASISray.lee@lyrasis.org
________________________________________From: TJ <
toralf.jabs@gmail.com>Sent: Wednesday, May 13, 2020 4:45 PMTo:
Ray LeeCc: talk@lists.collectionspace.org; Rob ClarkSubject:
Re: [Talk] collectionspace installation/login
Hello Ray,
no, that's all I got...
Kind regardsToralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:

Hi Toralf,Is there any more to the ant log? It looks like
it's cut offbeforethe part I'm interested in.
Thanks,Ray
═Ray LeeCollectionSpace Senior
DeveloperLYRASISray.lee@lyrasis.org
________________________________________From: TJ <
toralf.jabs@gmail.com>Sent: Wednesday, May 13, 2020 3:45
PMTo: Ray LeeCc: talk@lists.collectionspace.org; Rob
ClarkSubject: Re: [Talk] collectionspace installation/login
Hello Ray,
just tested (again) on a fresh machine,like last time(s) no
cspace db got created...root@home:~# su - postgrespsql
postgres@home:~$ psql
-l                                          List of
databases    Name      |    Owner    | Encoding

Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+--
-----------+--------------------------------- nuxeo_default |
nuxeo_default | UTF8    | en_US.UTF-8 |en_US.UTF-
8=Tc/nuxeo_default              +              |
|          |            | |nuxeo_default=CTc/nuxeo_defaul
t+              |              |          |            | |
reader_default=c/nuxeo_default postgres      |
postgres      | UTF8    | en_US.UTF-8 |en_US.UTF-
8 template0    | postgres      | UTF8    | en_US.UTF-8
|en_US.UTF-
8=c/postgres                    +              |
|          |            | |postgres=CTc/postgres template
1    | postgres      | UTF8    | en_US.UTF-8 |en_US.UTF-
8=c/postgres                    +              |
|          |            | |postgres=CTc/postgres(4 rows)
attached the complete ansible run, both maven runs and the
antrun
Kind regardsToralf
On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:

Sorry, you should be able to see that page now.
Can you attach the complete output from the installer up
tothaterror?
Thanks,Ray
═Ray LeeCollectionSpace Senior
DeveloperLYRASISray.lee@lyrasis.org
________________________________________From: TJ <
toralf.jabs@gmail.com>Sent: Wednesday, May 13, 2020 9:50
AMTo: Ray LeeCc: talk@lists.collectionspace.org; Rob
ClarkSubject: Re: [Talk] collectionspace installation/login
Hello Ray,
as well I cant run the installer (and parts of it)
becausefetchingartifacts from your maven repository still
gets me
Connecting to cspace-maven-repo.s3-us-west-
2.amazonaws.com(cspace-maven-repo.s3-us-west-
2.amazonaws.com)|52.218.233.129|:443...connected.HTTP
request sent, awaiting response... 403 Forbidden
Kind reagrdsToralf
On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:

Hi Toralf,
In advance of the 6.0 release, I've updated the manual
install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated
installer
is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you
prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on
behalf
of
Ray
Lee ray.lee@lyrasis.org
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2,
and
then
went to the new ansible installer, which is going to try
to
install
6.0, which hasn't been released yet. At this point I'd
suggest
waiting until 6.0 is released (should be next week), and
starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got
overlooked):
at the moment I cant install, build or run anything as
the
maven
(re)runs fail with:

 [exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services
.acc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not
be
reattempted
until the update interval of cspace-libs-snapshot-local
has
elapsed
or
updates are forced. Original error: Could not transfer
metadata
org.collectionspace.services:org.collectionspace.services
.acc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services
.aut
ho
ri
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to
cspace-
libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

  [exec] [INFO] --------------------------------------

--

--

--

  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] --------------------------------------

--

--

--

  [exec] [INFO] Total time:  39.114 s
  [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
  [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
.aut
ho
ri
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect
dependencies
at
org.collectionspace.services:org.collectionspace.services
.aut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact
descriptor
for
org.collectionspace.services:org.collectionspace.services
.aut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services
.aut
he
nt
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The
following
error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:

Hello,
I did exactly that (via the ansible run)I also included
the logs from both maven runs...the ant task did not
execute the create_db target (itseems)and from the
postgres logs I see something expectssomethingtobeinthe
DB as well...
#cspace services startup2020-05-01 19:57:08,295 DEBUG
[localhost-startStop-
1][org.collectionspace.services.common.storage.jpa.JpaS
torageUtils:376]Could not find entity with
key={roleName=ROLE_1_TENANT_READER}javax.persistence.No
ResultException: No entity found forquery
#postgres2020-05-01 16:08:31.942 EDT [10216]
cspace_default@cspace_defaultLOG:  execute <unnamed>:
SET application_name = 'PostgreSQLJDBCDriver'2020-05-01
16:08:31.946 EDT [10216] cspace_default@cspace_defaultL
OG:  execute <unnamed>: SELECT id,name FROM
tenants2020-05-01 16:08:33.908 EDT [10213]
cspace_default@cspace_defaultLOG:  execute <unnamed>:
BEGIN2020-05-01 16:08:33.963 EDT [10213]
cspace_default@cspace_defaultLOG:  execute <unnamed>:
select role0_.csid as csid10_,role0_.created_at as
created2_10_, role0_.description
asdescript3_10_,role0_.displayname as
displayn4_10_,role0_.metadata_protectionasmetadata5_10_
, role0_.perms_protection as
perms6_10_,role0_.rolegroupas rolegroup10_,
role0_.rolename as
rolename10_,role0_.tenant_idastenant9_10_,
role0_.updated_at as updated10_10_ from
rolesrole0_whererole0_.rolename=$1 and
role0_.tenant_id=$2 limit $32020-05-01 16:08:33.963 EDT
[10213] cspace_default@cspace_defaultDETAIL:  parameter
s: $1 = 'ROLE_1_TENANT_ADMINISTRATOR',
$2='1',$3='2'2020-05-01 16:08:34.008 EDT [10213]
cspace_default@cspace_defaultLOG:  execute <unnamed>:
select role0_.csid as csid10_,role0_.created_at as
created2_10_, role0_.description
asdescript3_10_,role0_.displayname as
displayn4_10_,role0_.metadata_protectionasmetadata5_10_
, role0_.perms_protection as
perms6_10_,role0_.rolegroupas rolegroup10_,
role0_.rolename as
rolename10_,role0_.tenant_idastenant9_10_,
role0_.updated_at as updated10_10_ from
rolesrole0_whererole0_.rolename=$1 and
role0_.tenant_id=$2 limit $32020-05-01 16:08:34.008 EDT
[10213] cspace_default@cspace_defaultDETAIL:  parameter
s: $1 = 'ROLE_1_TENANT_READER', $2 = '1',$3='2'2020-05-
01 16:08:34.022 EDT [10213] cspace_default@cspace_defau
ltLOG:  execute S_1: ROLLBACK
On Mon, 2020-05-04 at 13:32 -0700, Richard Millet
wrote:

TJ,
You may need to run the following commands BEFORE
runningthe'antundeploy deploy created_db import'
command:
From the top "services" directory:
mvn clean install -DskipTests
From the top "application" directory:
mvn clean install -DskipTests
Back to the top "services" directory:
ant undeploy deploy create_db import
I hope that works for you,
Richard
On Mon, May 4, 2020 at 5:44 AM TJ <
toralf.jabs@gmail.com>wrote:

ansible didn't show any errors
I logged the ant run into a file(attached as a.log,
I
also
included
the
logs from both maven runs)
the db/user did not get created so after ansible
completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-
local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] --------------------------------

--

--

--



  [exec] [INFO] BUILD FAILURE
  [exec] [INFO] --------------------------------

--

--

--



  [exec] [INFO] Total time:  7.089 s
  [exec] [INFO] Finished at: 2020-05-

02T11:17:58-
04:00
[exec] [INFO] --------------------------------

--

--

--



  [exec] [ERROR] Failed to execute goal on

project
org.collectionspace.services.listener.reindex:
Could
not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.se
rvic
es
.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect
dependencies at
org.collectionspace.services:org.collectionspace.se
rvic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.se
rvic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.se
rvic
es
.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The
following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:12
1:
The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.
xml:
15
3:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error
occurred
while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:

Hi Toralf,
The cspace_default user and database and those
administrator

roles

are created when you run the ant import command
during
the
installation. (The manual installation
instructions
include
a

step to

run ant undeploy deploy create_db import, but ant
import
can
be

run

on its own). The ansible installer should be
doing
that,
though.

I'm

not sure what's going on there.

Ray
From: TJ toralf.jabs@gmail.com
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee ray.lee@lyrasis.org; Megan Forbes <
megan.forbes@lyrasis.org>;
talk@lists.collectionspace.org
<
talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the
ansible
procedure
it got me a bit further but cspace-services could
not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-
startStop-1]
[org.collectionspace.services.common.ServiceMain:
266]
Default
create/update of tenants, accounts, roles and
permissions
setup
failed
with exception(s): One or more of the required
default
CollectionSpace
administrator roles is missing or was never
created.
java.lang.RuntimeException: One or more of the
required
default
CollectionSpace administrator roles is missing or
was
never

created.

Kind regardsToralf
On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:

Hi Toralf,
My first thought is that there's a permissions
problem.
Is

everything

in the tomcat directory owned by the user that
runs
tomcat

(typically

named cspace)?

Ray


From: TJ toralf.jabs@gmail.com
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first
i
said
it
could

create

convertcache, but the directory exists, so i
deleted
it
and

restarted

and now it says something about nuxeo-schemas

root@9201739f540c:/usr/local/share/apache-
tomcat-
8.5.40/logs#

grep

-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-
startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot
create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

--
2020-04-29 21:52:23,147 ERROR [localhost-
startStop-
1]

[org.collectionspace.services.nuxeo.client.java.Nux
eoCo
nn
ec
to
rE
mb
ed
de

d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-
startStop-
1]
[org.apache.catalina.util.SessionIdGeneratorBas
e:12
3]
Creation

of

SecureRandom instance for session ID generation
using

[SHA1PRNG]

took

[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-
startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener

execution :
classorg.nuxeo.runtime.osgi.OSGiRuntimeServicej
ava.lang.RuntimeException:
java.io.IOException:Failedtolistcontents of
/usr/local/share/apache-tomcat-8.5.40/nuxeo-
server/tmp/schemas
On Thu, 2020-04-30 at 16:52 +0000, Ray Lee
wrote:

Hi Toralf,
That usually means the server wasn't able to
start
up.
Take
a

look

at
catalina.out in the logs directory under
tomcat.
Are
there

any

exceptions or error messages?

Ray


From: Talk <
talk-bounces@lists.collectionspace.org>
on
behalf

of

Megan Forbes megan.forbes@lyrasis.org
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new
implementer

I've

cc'd

him
on this as his note couldn't get through talk
for
some

reason, so

please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ toralf.jabs@gmail.com
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to
talk@collectionspace.org
as

suggested in

the
DOCs but it could not be delivered)

I installed collection space (and apache)
according
to

and

everything went smooth
but:
the link/url in the mentioned index.html is

but that doesn't work at all and gets me a
404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page
and
refers
to
the

login

"You should be able to log in to the default
core
tenant

using

the

user
admin@core.collectionspace.org and the
password

Administrator."

but no matter if I try this or any other
combination
of

admin@

the page says:

Sign in failed.

Any suggestion? Did I miss or overlook
something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not

Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-
size:22px;}

h2

{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-

serif;color:white;background-
color:#525D76;font-
size:14px;}

body

{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}

b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-
family:Tahoma,Arial,sans-
serif;background:white;color:black;font-
size:12px;}
a
{color:black;}
a.name {color:black;} .line
{height:1px;background-
color:#525D76;border:none;}</style></head><bo dy><
h1

H

TT
P

Status

404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Descr
ipti
on
</
b>
The

origin

server did not find a current representation
for
the
target
resource
or
is not willing to disclose that one
exists.</p><hr

class="line"

/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js

"></

sc

ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls:
true,
tenantId:
'1',
});
</script>
</body>

</html>
Hello Ray, had to adjust the nginx.conf and got the login screen and could login! This looks much better now.Will contact Rob and see how far we get on his VM. Kind regardsToralf On Thu, 2020-05-14 at 13:29 -0500, TJ wrote: > Hello Ray, > the run completed much better (cspace db go created)but the website > shows "/cspace/core/login is unreachable." > cspace services log:root@home:/opt/collectionspace/server/logs# grep > -i error cspace-services.log 2020-05-13 19:33:44,648 ERROR > [localhost-startStop-1] > [org.nuxeo.runtime.model.impl.RegistrationInfoImpl:388] Component > service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent > notification of application started failed: Unable to commit: > Transaction timeout2020-05-13 19:33:45,831 ERROR [localhost- > startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService:484] Nuxeo > Platform Started2020-05-13 19:33:46,304 ERROR [localhost-startStop-1] > [org.postgresql.Driver:125] Connection error: 2020-05-14 17:43:47,409 > ERROR [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/publicart-tenant-bindings- > proto.xml - For tenant: publicart2020-05-14 17:43:47,420 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/anthro-tenant-bindings- > proto.xml - For tenant: anthro2020-05-14 17:43:47,421 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/materials-tenant-bindings- > proto.xml - For tenant: materials2020-05-14 17:43:47,422 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/bonsai-tenant-bindings- > proto.xml - For tenant: bonsai2020-05-14 17:43:47,422 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/botgarden-tenant-bindings- > proto.xml - For tenant: botgarden2020-05-14 17:43:47,423 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/herbarium-tenant-bindings- > proto.xml - For tenant: herbarium2020-05-14 17:43:47,424 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/testsci-tenant-bindings- > proto.xml - For tenant: testsci2020-05-14 17:43:48,756 ERROR > [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/fcart-tenant-bindings-proto.xml > - For tenant: fcart2020-05-14 17:43:48,756 ERROR [localhost- > startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/dvp-tenant-bindings-proto.xml - > For tenant: dvp2020-05-14 17:43:48,757 ERROR [localhost-startStop-2] > [org.collectionspace.services.common.config.TenantBindingConfigReader > Impl:338] Expected to, but could not, find the tenant proto > configuration file: /opt/collectionspace/apache-tomcat- > 8.5.51/cspace/config/services/tenants/lhmc-tenant-bindings-proto.xml > - For tenant: lhmc2020-05-14 17:44:22,930 ERROR [localhost-startStop- > 2] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener > execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService2020-05-14 > 17:44:23,104 ERROR [localhost-startStop-2] > [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedde > d:137] No such repository: default2020-05-14 18:18:59,945 ERROR > [localhost-startStop-3] [org.nuxeo.osgi.OSGiAdapter:226] Error during > Framework Listener execution : class > org.nuxeo.runtime.osgi.OSGiRuntimeService2020-05-14 18:19:00,211 > ERROR [localhost-startStop-3] > [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedde > d:137] No such repository: default > > > On Thu, 2020-05-14 at 12:57 -0500, TJ wrote: > > Hello Ray, > > I didnt't. Now I did and got this:BUILD > > FAILED/opt/collectionspace/services/build.xml:305: The following > > erroroccurred while executing this > > line:/opt/collectionspace/services/cspace-ui/build.xml:31: Execute > > failed:java.io.IOException: Cannot run program "curl" (in > > directory"/opt/collectionspace/services/cspace-ui"): error=2, No > > such file ordirectory at > > java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)... > > > > Installed curl now (can this be added to the ansible playbook?and > > rerunning the ant as user collectionspace > > Kind regardsToralf > > On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote: > > > Hi Toralf,That's not a problem. Your error is this: > > > Could not transfer > > > artifactorg.collectionspace.services:org.collectionspace.services > > > .common:jar:6.0.0 from/to cspace-libs-release-local ( > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local > > > ): GET request > > > of:org/collectionspace/services/org.collectionspace.services.comm > > > on/6.0.0/org.collectionspace.services.common-6.0.0.jar from > > > cspace-libs-release-local failed: Read timed out -> [Help 1] > > > Are you able to download > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/org.collectionspace.services.common-6.0.0.jar > > > ? > > > Either way, you shouldn't even need to download that jar at > > > thatpoint in the process. Are you running ant as the > > > collectionspaceuser? > > > Thanks,Ray > > > ═Ray LeeCollectionSpace Senior > > > DeveloperLYRASISray.lee@lyrasis.org > > > ________________________________________From: TJ < > > > toralf.jabs@gmail.com>Sent: Thursday, May 14, 2020 11:47 AMTo: > > > Ray LeeCc: talk@lists.collectionspace.org; Rob ClarkSubject: Re: > > > [Talk] collectionspace installation/login > > > Hello Ray, > > > when I execute the get request from last mail manually: > > > wget > > > https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar--2020-05-14 > > > 10:46:31-- > > > https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jarResolving > > > maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130Connecting to > > > maven.nuxeo.org > > > (maven.nuxeo.org)|50.18.122.130|:443...connected.HTTP request > > > sent, awaiting response... 401 Unauthorized > > > Username/Password Authentication Failed. > > > > > > On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote: > > > > Hi Toralf,How are you capturing that ant output? Either there's > > > > somethingwrongwith that, or ant is silently terminating before > > > > it gets to thecreate_db target -- which is a possibility, since > > > > that's what wouldcreate the cspace database. > > > > Is there anything interesting in the syslog at the time of the > > > > lastmessage in the ant output? > > > > Ray > > > > ═Ray LeeCollectionSpace Senior > > > > DeveloperLYRASISray.lee@lyrasis.org > > > > ________________________________________From: TJ < > > > > toralf.jabs@gmail.com>Sent: Wednesday, May 13, 2020 4:45 PMTo: > > > > Ray LeeCc: talk@lists.collectionspace.org; Rob ClarkSubject: > > > > Re: [Talk] collectionspace installation/login > > > > Hello Ray, > > > > no, that's all I got... > > > > Kind regardsToralf > > > > > > > > On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: > > > > > Hi Toralf,Is there any more to the ant log? It looks like > > > > > it's cut offbeforethe part I'm interested in. > > > > > Thanks,Ray > > > > > ═Ray LeeCollectionSpace Senior > > > > > DeveloperLYRASISray.lee@lyrasis.org > > > > > ________________________________________From: TJ < > > > > > toralf.jabs@gmail.com>Sent: Wednesday, May 13, 2020 3:45 > > > > > PMTo: Ray LeeCc: talk@lists.collectionspace.org; Rob > > > > > ClarkSubject: Re: [Talk] collectionspace installation/login > > > > > Hello Ray, > > > > > just tested (again) on a fresh machine,like last time(s) no > > > > > cspace db got created...root@home:~# su - postgrespsql > > > > > postgres@home:~$ psql > > > > > -l List of > > > > > databases Name | Owner | Encoding > > > > > > Collate | Ctype | Access privileges > > > > > > > > > > ---------------+---------------+----------+-------------+-- > > > > > -----------+--------------------------------- nuxeo_default | > > > > > nuxeo_default | UTF8 | en_US.UTF-8 |en_US.UTF- > > > > > 8=Tc/nuxeo_default + | > > > > > | | | |nuxeo_default=CTc/nuxeo_defaul > > > > > t+ | | | | | > > > > > reader_default=c/nuxeo_default postgres | > > > > > postgres | UTF8 | en_US.UTF-8 |en_US.UTF- > > > > > 8 template0 | postgres | UTF8 | en_US.UTF-8 > > > > > |en_US.UTF- > > > > > 8=c/postgres + | > > > > > | | | |postgres=CTc/postgres template > > > > > 1 | postgres | UTF8 | en_US.UTF-8 |en_US.UTF- > > > > > 8=c/postgres + | > > > > > | | | |postgres=CTc/postgres(4 rows) > > > > > attached the complete ansible run, both maven runs and the > > > > > antrun > > > > > Kind regardsToralf > > > > > On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: > > > > > > Sorry, you should be able to see that page now. > > > > > > Can you attach the complete output from the installer up > > > > > > tothaterror? > > > > > > Thanks,Ray > > > > > > ═Ray LeeCollectionSpace Senior > > > > > > DeveloperLYRASISray.lee@lyrasis.org > > > > > > ________________________________________From: TJ < > > > > > > toralf.jabs@gmail.com>Sent: Wednesday, May 13, 2020 9:50 > > > > > > AMTo: Ray LeeCc: talk@lists.collectionspace.org; Rob > > > > > > ClarkSubject: Re: [Talk] collectionspace installation/login > > > > > > Hello Ray, > > > > > > as well I cant run the installer (and parts of it) > > > > > > becausefetchingartifacts from your maven repository still > > > > > > gets me > > > > > > Connecting to cspace-maven-repo.s3-us-west- > > > > > > 2.amazonaws.com(cspace-maven-repo.s3-us-west- > > > > > > 2.amazonaws.com)|52.218.233.129|:443...connected.HTTP > > > > > > request sent, awaiting response... 403 Forbidden > > > > > > Kind reagrdsToralf > > > > > > On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: > > > > > > > Hi Toralf, > > > > > > > In advance of the 6.0 release, I've updated the manual > > > > > > > install > > > > > > > instructions, and verified that they work: > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS > > > > > > > > > > > > > > I've also verified that the Ansible-based automated > > > > > > > installer > > > > > > > is > > > > > > > working: > > > > > > > > > > > > > > https://github.com/collectionspace/cspace-installer > > > > > > > > > > > > > > If you can, try your install again (whichever way you > > > > > > > prefer), > > > > > > > and > > > > > > > let us know how it goes. > > > > > > > > > > > > > > Thanks, > > > > > > > Ray > > > > > > > > > > > > > > ═ > > > > > > > Ray Lee > > > > > > > CollectionSpace Senior Developer > > > > > > > LYRASIS > > > > > > > ray.lee@lyrasis.org > > > > > > > > > > > > > > ________________________________________ > > > > > > > From: Talk <talk-bounces@lists.collectionspace.org> on > > > > > > > behalf > > > > > > > of > > > > > > > Ray > > > > > > > Lee <ray.lee@lyrasis.org> > > > > > > > Sent: Friday, May 8, 2020 4:12 PM > > > > > > > To: TJ; Richard Millet > > > > > > > Cc: talk@lists.collectionspace.org > > > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > > > > > Hi Toralf, > > > > > > > It sounds like you started with a manual install of 5.2, > > > > > > > and > > > > > > > then > > > > > > > went to the new ansible installer, which is going to try > > > > > > > to > > > > > > > install > > > > > > > 6.0, which hasn't been released yet. At this point I'd > > > > > > > suggest > > > > > > > waiting until 6.0 is released (should be next week), and > > > > > > > starting > > > > > > > from scratch with the ansible installer. > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > ═ > > > > > > > Ray Lee > > > > > > > CollectionSpace Senior Developer > > > > > > > LYRASIS > > > > > > > ray.lee@lyrasis.org > > > > > > > > > > > > > > ________________________________________ > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > Sent: Wednesday, May 6, 2020 5:17 PM > > > > > > > To: Richard Millet > > > > > > > Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org > > > > > > > Subject: Re: [Talk] collectionspace installation/login > > > > > > > > > > > > > > In addition as I said earlier (I dont know if it got > > > > > > > overlooked): > > > > > > > at the moment I cant install, build or run anything as > > > > > > > the > > > > > > > maven > > > > > > > (re)runs fail with: > > > > > > > > > > > > > > [exec] [WARNING] Failure to transfer > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .acc > > > > > > > ou > > > > > > > nt > > > > > > > .c > > > > > > > li > > > > > > > en > > > > > > > t:6.0-SNAPSHOT/maven-metadata.xml from > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > was cached in the local repository, resolution will not > > > > > > > be > > > > > > > reattempted > > > > > > > until the update interval of cspace-libs-snapshot-local > > > > > > > has > > > > > > > elapsed > > > > > > > or > > > > > > > updates are forced. Original error: Could not transfer > > > > > > > metadata > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .acc > > > > > > > ou > > > > > > > nt > > > > > > > .c > > > > > > > li > > > > > > > en > > > > > > > t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- > > > > > > > snapshot- > > > > > > > local > > > > > > > ( > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > ): Access denied to: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > > > , ReasonPhrase:Forbidden. > > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom > > > > > > > [exec] Downloading from cspace-libs-snapshot-local: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > > > [exec] [WARNING] Could not transfer metadata > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .aut > > > > > > > ho > > > > > > > ri > > > > > > > za > > > > > > > ti > > > > > > > on > > > > > > > -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to > > > > > > > cspace- > > > > > > > libs- > > > > > > > snapshot-local ( > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > ): Access denied to: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml > > > > > > > , ReasonPhrase:Forbidden. > > > > > > > ... > > > > > > > > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > ---- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -------------------- > > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > > [exec] [INFO] -------------------------------------- > > > > > > > ---- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -- > > > > > > > -------------------- > > > > > > > [exec] [INFO] Total time: 39.114 s > > > > > > > [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 > > > > > > > [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 > > > > > > > .aut > > > > > > > ho > > > > > > > ri > > > > > > > za > > > > > > > ti > > > > > > > on > > > > > > > -mgt.import:jar:6.0-SNAPSHOT: Failed to collect > > > > > > > dependencies > > > > > > > at > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .aut > > > > > > > he > > > > > > > nt > > > > > > > ic > > > > > > > at > > > > > > > io > > > > > > > n.service:jar:6.0-SNAPSHOT: Failed to read artifact > > > > > > > descriptor > > > > > > > for > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .aut > > > > > > > he > > > > > > > nt > > > > > > > ic > > > > > > > at > > > > > > > io > > > > > > > n.service:jar:6.0-SNAPSHOT: Could not transfer artifact > > > > > > > org.collectionspace.services:org.collectionspace.services > > > > > > > .aut > > > > > > > he > > > > > > > nt > > > > > > > ic > > > > > > > at > > > > > > > io > > > > > > > n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot- > > > > > > > local > > > > > > > ( > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > ): Access denied to: > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom > > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > > /opt/collectionspace/services/build.xml:295: The > > > > > > > following > > > > > > > error > > > > > > > occurred while executing this line: > > > > > > > /opt/collectionspace/services/services/build.xml:148: The > > > > > > > following > > > > > > > error occurred while executing this line: > > > > > > > /opt/collectionspace/services/services/authorization- > > > > > > > mgt/build.xml:120: > > > > > > > The following error occurred while executing this line: > > > > > > > /opt/collectionspace/services/services/authorization- > > > > > > > mgt/import/build.xml:53: exec returned: 1 > > > > > > > > > > > > > > > > > > > > > On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: > > > > > > > > Hello, > > > > > > > > I did exactly that (via the ansible run)I also included > > > > > > > > the logs from both maven runs...the ant task did not > > > > > > > > execute the create_db target (itseems)and from the > > > > > > > > postgres logs I see something expectssomethingtobeinthe > > > > > > > > DB as well... > > > > > > > > #cspace services startup2020-05-01 19:57:08,295 DEBUG > > > > > > > > [localhost-startStop- > > > > > > > > 1][org.collectionspace.services.common.storage.jpa.JpaS > > > > > > > > torageUtils:376]Could not find entity with > > > > > > > > key={roleName=ROLE_1_TENANT_READER}javax.persistence.No > > > > > > > > ResultException: No entity found forquery > > > > > > > > #postgres2020-05-01 16:08:31.942 EDT [10216] > > > > > > > > cspace_default@cspace_defaultLOG: execute <unnamed>: > > > > > > > > SET application_name = 'PostgreSQLJDBCDriver'2020-05-01 > > > > > > > > 16:08:31.946 EDT [10216] cspace_default@cspace_defaultL > > > > > > > > OG: execute <unnamed>: SELECT id,name FROM > > > > > > > > tenants2020-05-01 16:08:33.908 EDT [10213] > > > > > > > > cspace_default@cspace_defaultLOG: execute <unnamed>: > > > > > > > > BEGIN2020-05-01 16:08:33.963 EDT [10213] > > > > > > > > cspace_default@cspace_defaultLOG: execute <unnamed>: > > > > > > > > select role0_.csid as csid10_,role0_.created_at as > > > > > > > > created2_10_, role0_.description > > > > > > > > asdescript3_10_,role0_.displayname as > > > > > > > > displayn4_10_,role0_.metadata_protectionasmetadata5_10_ > > > > > > > > , role0_.perms_protection as > > > > > > > > perms6_10_,role0_.rolegroupas rolegroup10_, > > > > > > > > role0_.rolename as > > > > > > > > rolename10_,role0_.tenant_idastenant9_10_, > > > > > > > > role0_.updated_at as updated10_10_ from > > > > > > > > rolesrole0_whererole0_.rolename=$1 and > > > > > > > > role0_.tenant_id=$2 limit $32020-05-01 16:08:33.963 EDT > > > > > > > > [10213] cspace_default@cspace_defaultDETAIL: parameter > > > > > > > > s: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', > > > > > > > > $2='1',$3='2'2020-05-01 16:08:34.008 EDT [10213] > > > > > > > > cspace_default@cspace_defaultLOG: execute <unnamed>: > > > > > > > > select role0_.csid as csid10_,role0_.created_at as > > > > > > > > created2_10_, role0_.description > > > > > > > > asdescript3_10_,role0_.displayname as > > > > > > > > displayn4_10_,role0_.metadata_protectionasmetadata5_10_ > > > > > > > > , role0_.perms_protection as > > > > > > > > perms6_10_,role0_.rolegroupas rolegroup10_, > > > > > > > > role0_.rolename as > > > > > > > > rolename10_,role0_.tenant_idastenant9_10_, > > > > > > > > role0_.updated_at as updated10_10_ from > > > > > > > > rolesrole0_whererole0_.rolename=$1 and > > > > > > > > role0_.tenant_id=$2 limit $32020-05-01 16:08:34.008 EDT > > > > > > > > [10213] cspace_default@cspace_defaultDETAIL: parameter > > > > > > > > s: $1 = 'ROLE_1_TENANT_READER', $2 = '1',$3='2'2020-05- > > > > > > > > 01 16:08:34.022 EDT [10213] cspace_default@cspace_defau > > > > > > > > ltLOG: execute S_1: ROLLBACK > > > > > > > > On Mon, 2020-05-04 at 13:32 -0700, Richard Millet > > > > > > > > wrote: > > > > > > > > > TJ, > > > > > > > > > You may need to run the following commands BEFORE > > > > > > > > > runningthe'antundeploy deploy created_db import' > > > > > > > > > command: > > > > > > > > > From the top "services" directory: > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > From the top "application" directory: > > > > > > > > > mvn clean install -DskipTests > > > > > > > > > Back to the top "services" directory: > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > I hope that works for you, > > > > > > > > > Richard > > > > > > > > > On Mon, May 4, 2020 at 5:44 AM TJ < > > > > > > > > > toralf.jabs@gmail.com>wrote: > > > > > > > > > > ansible didn't show any errors > > > > > > > > > > I logged the ant run into a file(attached as a.log, > > > > > > > > > > I > > > > > > > > > > also > > > > > > > > > > included > > > > > > > > > > the > > > > > > > > > > logs from both maven runs) > > > > > > > > > > the db/user did not get created so after ansible > > > > > > > > > > completely > > > > > > > > > > running > > > > > > > > > > through, I rerun manually the command > > > > > > > > > > ant undeploy deploy create_db import > > > > > > > > > > > > > > > > > > > > but now I get this: > > > > > > > > > > ... > > > > > > > > > > [exec] Downloading from cspace-libs-snapshot- > > > > > > > > > > local: > > > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > > > > [exec] [INFO] -------------------------------- > > > > > > > > > > ---- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > ---- > > > > > > > > > > -------------------- > > > > > > > > > > [exec] [INFO] BUILD FAILURE > > > > > > > > > > [exec] [INFO] -------------------------------- > > > > > > > > > > ---- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > ---- > > > > > > > > > > -------------------- > > > > > > > > > > [exec] [INFO] Total time: 7.089 s > > > > > > > > > > [exec] [INFO] Finished at: 2020-05- > > > > > > > > > > 02T11:17:58- > > > > > > > > > > 04:00 > > > > > > > > > > [exec] [INFO] -------------------------------- > > > > > > > > > > ---- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > -- > > > > > > > > > > ---- > > > > > > > > > > -------------------- > > > > > > > > > > [exec] [ERROR] Failed to execute goal on > > > > > > > > > > project > > > > > > > > > > org.collectionspace.services.listener.reindex: > > > > > > > > > > Could > > > > > > > > > > not > > > > > > > > > > resolve > > > > > > > > > > dependencies for project > > > > > > > > > > org.collectionspace.services:org.collectionspace.se > > > > > > > > > > rvic > > > > > > > > > > es > > > > > > > > > > .l > > > > > > > > > > is > > > > > > > > > > te > > > > > > > > > > ne > > > > > > > > > > r. > > > > > > > > > > rein > > > > > > > > > > dex:jar:6.0-SNAPSHOT: Failed to collect > > > > > > > > > > dependencies at > > > > > > > > > > org.collectionspace.services:org.collectionspace.se > > > > > > > > > > rvic > > > > > > > > > > es > > > > > > > > > > .c > > > > > > > > > > om > > > > > > > > > > mo > > > > > > > > > > n: > > > > > > > > > > ja > > > > > > > > > > r:6. > > > > > > > > > > 0-SNAPSHOT: Failed to read artifact descriptor for > > > > > > > > > > org.collectionspace.services:org.collectionspace.se > > > > > > > > > > rvic > > > > > > > > > > es > > > > > > > > > > .c > > > > > > > > > > om > > > > > > > > > > mo > > > > > > > > > > n: > > > > > > > > > > ja > > > > > > > > > > r:6. > > > > > > > > > > 0-SNAPSHOT: Could not transfer artifact > > > > > > > > > > org.collectionspace.services:org.collectionspace.se > > > > > > > > > > rvic > > > > > > > > > > es > > > > > > > > > > .c > > > > > > > > > > om > > > > > > > > > > mo > > > > > > > > > > n: > > > > > > > > > > po > > > > > > > > > > m:6. > > > > > > > > > > 0-SNAPSHOT from/to cspace-libs-snapshot-local ( > > > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local > > > > > > > > > > ): Access denied to: > > > > > > > > > > https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom > > > > > > > > > > , ReasonPhrase:Forbidden. -> [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 > > > > > > > > > > /opt/collectionspace/services/build.xml:303: The > > > > > > > > > > following > > > > > > > > > > error > > > > > > > > > > occurred while executing this line: > > > > > > > > > > /opt/collectionspace/services/3rdparty/build.xml:12 > > > > > > > > > > 1: > > > > > > > > > > The > > > > > > > > > > following > > > > > > > > > > error occurred while executing this line: > > > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/build. > > > > > > > > > > xml: > > > > > > > > > > 15 > > > > > > > > > > 3: > > > > > > > > > > The > > > > > > > > > > following error occurred while executing this line: > > > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > > > > platform- > > > > > > > > > > listener/build.xml:118: The following error > > > > > > > > > > occurred > > > > > > > > > > while > > > > > > > > > > executing > > > > > > > > > > this line: > > > > > > > > > > /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- > > > > > > > > > > platform- > > > > > > > > > > listener/reindex/build.xml:67: exec returned: 1 > > > > > > > > > > > > > > > > > > > > Total time: 1 minute 3 seconds > > > > > > > > > > > > > > > > > > > > On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: > > > > > > > > > > > Hi Toralf, > > > > > > > > > > > The cspace_default user and database and those > > > > > > > > > > > administrator > > > > > > > > > > > > > > > > > > > > roles > > > > > > > > > > > are created when you run the ant import command > > > > > > > > > > > during > > > > > > > > > > > the > > > > > > > > > > > installation. (The manual installation > > > > > > > > > > > instructions > > > > > > > > > > > include > > > > > > > > > > > a > > > > > > > > > > > > > > > > > > > > step to > > > > > > > > > > > run ant undeploy deploy create_db import, but ant > > > > > > > > > > > import > > > > > > > > > > > can > > > > > > > > > > > be > > > > > > > > > > > > > > > > > > > > run > > > > > > > > > > > on its own). The ansible installer should be > > > > > > > > > > > doing > > > > > > > > > > > that, > > > > > > > > > > > though. > > > > > > > > > > > > > > > > > > > > I'm > > > > > > > > > > > not sure what's going on there. > > > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > > Sent: Friday, May 1, 2020 4:52 PM > > > > > > > > > > > To: Ray Lee <ray.lee@lyrasis.org>; Megan Forbes < > > > > > > > > > > > megan.forbes@lyrasis.org>; > > > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > > > < > > > > > > > > > > > talk@lists.collectionspace.org> > > > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > > > hello, > > > > > > > > > > > > > > > > > > > > > > yes permissions and such all were fine. > > > > > > > > > > > I gave up on the manual install and tried the > > > > > > > > > > > ansible > > > > > > > > > > > procedure > > > > > > > > > > > it got me a bit further but cspace-services could > > > > > > > > > > > not > > > > > > > > > > > start > > > > > > > > > > > due > > > > > > > > > > > > > > > > > > > > to > > > > > > > > > > > - the user cspace_default was not in the db > > > > > > > > > > > - the database cspace_default was not created > > > > > > > > > > > > > > > > > > > > > > I tried to create them both via the scripts in > > > > > > > > > > > tomcat.../cspace/services/db/postgres/*.sql > > > > > > > > > > > > > > > > > > > > > > Q: how are they supposed to get created normally? > > > > > > > > > > > > > > > > > > > > > > but now cspace-services.log gives me > > > > > > > > > > > > > > > > > > > > > > 2020-05-01 18:35:41,999 ERROR [localhost- > > > > > > > > > > > startStop-1] > > > > > > > > > > > [org.collectionspace.services.common.ServiceMain: > > > > > > > > > > > 266] > > > > > > > > > > > Default > > > > > > > > > > > create/update of tenants, accounts, roles and > > > > > > > > > > > permissions > > > > > > > > > > > setup > > > > > > > > > > > failed > > > > > > > > > > > with exception(s): One or more of the required > > > > > > > > > > > default > > > > > > > > > > > CollectionSpace > > > > > > > > > > > administrator roles is missing or was never > > > > > > > > > > > created. > > > > > > > > > > > java.lang.RuntimeException: One or more of the > > > > > > > > > > > required > > > > > > > > > > > default > > > > > > > > > > > CollectionSpace administrator roles is missing or > > > > > > > > > > > was > > > > > > > > > > > never > > > > > > > > > > > > > > > > > > > > created. > > > > > > > > > > > Kind regardsToralf > > > > > > > > > > > On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: > > > > > > > > > > > > Hi Toralf, > > > > > > > > > > > > My first thought is that there's a permissions > > > > > > > > > > > > problem. > > > > > > > > > > > > Is > > > > > > > > > > > > > > > > > > > > > > everything > > > > > > > > > > > > in the tomcat directory owned by the user that > > > > > > > > > > > > runs > > > > > > > > > > > > tomcat > > > > > > > > > > > > > > > > > > > > > > (typically > > > > > > > > > > > > named cspace)? > > > > > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > > > Sent: Thursday, April 30, 2020 1:57 PM > > > > > > > > > > > > To: Ray Lee; Megan Forbes; > > > > > > > > > > > > talk@lists.collectionspace.org > > > > > > > > > > > > Subject: Re: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > > > yes indeed cspace-services doesnt start, first > > > > > > > > > > > > i > > > > > > > > > > > > said > > > > > > > > > > > > it > > > > > > > > > > > > could > > > > > > > > > > > > > > > > > > > > > > create > > > > > > > > > > > > convertcache, but the directory exists, so i > > > > > > > > > > > > deleted > > > > > > > > > > > > it > > > > > > > > > > > > and > > > > > > > > > > > > > > > > > > > > > > restarted > > > > > > > > > > > > and now it says something about nuxeo-schemas > > > > > > > > > > > > > > > > > > > > > > > > root@9201739f540c:/usr/local/share/apache- > > > > > > > > > > > > tomcat- > > > > > > > > > > > > 8.5.40/logs# > > > > > > > > > > > > > > > > > > > > grep > > > > > > > > > > > > -A1 > > > > > > > > > > > > ERR cspace-services.log > > > > > > > > > > > > 2020-04-29 21:52:23,014 ERROR [localhost- > > > > > > > > > > > > startStop- > > > > > > > > > > > > 1] > > > > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > > > > Framework > > > > > > > > > > > > > > > > > > > > Listener > > > > > > > > > > > > execution : class > > > > > > > > > > > > org.nuxeo.runtime.osgi.OSGiRuntimeService > > > > > > > > > > > > org.nuxeo.ecm.core.api.NuxeoException: Cannot > > > > > > > > > > > > create > > > > > > > > > > > > cache > > > > > > > > > > > > dir > > > > > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > > > > > > > > > > > > > > > > server/data/convertcache > > > > > > > > > > > > -- > > > > > > > > > > > > 2020-04-29 21:52:23,147 ERROR [localhost- > > > > > > > > > > > > startStop- > > > > > > > > > > > > 1] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [org.collectionspace.services.nuxeo.client.java.Nux > > > > > > > > > > eoCo > > > > > > > > > > nn > > > > > > > > > > ec > > > > > > > > > > to > > > > > > > > > > rE > > > > > > > > > > mb > > > > > > > > > > ed > > > > > > > > > > de > > > > > > > > > > > > d: > > > > > > > > > > > > 137] No repository defined > > > > > > > > > > > > 2020-04-29 21:52:28,564 WARN [localhost- > > > > > > > > > > > > startStop- > > > > > > > > > > > > 1] > > > > > > > > > > > > [org.apache.catalina.util.SessionIdGeneratorBas > > > > > > > > > > > > e:12 > > > > > > > > > > > > 3] > > > > > > > > > > > > Creation > > > > > > > > > > > > > > > > > > > > of > > > > > > > > > > > > SecureRandom instance for session ID generation > > > > > > > > > > > > using > > > > > > > > > > > > > > > > > > > > [SHA1PRNG] > > > > > > > > > > > took > > > > > > > > > > > > [5,003] milliseconds. > > > > > > > > > > > > -- > > > > > > > > > > > > 2020-04-29 21:56:29,647 ERROR [localhost- > > > > > > > > > > > > startStop- > > > > > > > > > > > > 1] > > > > > > > > > > > > [org.nuxeo.osgi.OSGiAdapter:226] Error during > > > > > > > > > > > > Framework > > > > > > > > > > > > > > > > > > > > Listener > > > > > > > > > > > > execution : > > > > > > > > > > > > classorg.nuxeo.runtime.osgi.OSGiRuntimeServicej > > > > > > > > > > > > ava.lang.RuntimeException: > > > > > > > > > > > > java.io.IOException:Failedtolistcontents of > > > > > > > > > > > > /usr/local/share/apache-tomcat-8.5.40/nuxeo- > > > > > > > > > > > > server/tmp/schemas > > > > > > > > > > > > On Thu, 2020-04-30 at 16:52 +0000, Ray Lee > > > > > > > > > > > > wrote: > > > > > > > > > > > > > Hi Toralf, > > > > > > > > > > > > > That usually means the server wasn't able to > > > > > > > > > > > > > start > > > > > > > > > > > > > up. > > > > > > > > > > > > > Take > > > > > > > > > > > > > a > > > > > > > > > > > > > > > > > > > > > > look > > > > > > > > > > > > > at > > > > > > > > > > > > > catalina.out in the logs directory under > > > > > > > > > > > > > tomcat. > > > > > > > > > > > > > Are > > > > > > > > > > > > > there > > > > > > > > > > > > > > > > > > > > any > > > > > > > > > > > > > exceptions or error messages? > > > > > > > > > > > > > > > > > > > > > > > > > > Ray > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > > > From: Talk < > > > > > > > > > > > > > talk-bounces@lists.collectionspace.org> > > > > > > > > > > > > > on > > > > > > > > > > > > > behalf > > > > > > > > > > > > > > > > > > > > of > > > > > > > > > > > > > Megan Forbes <megan.forbes@lyrasis.org> > > > > > > > > > > > > > Sent: Thursday, April 30, 2020 8:59 AM > > > > > > > > > > > > > To: talk@lists.collectionspace.org > > > > > > > > > > > > > Cc: TJ > > > > > > > > > > > > > Subject: [Talk] Fw: collectionspace > > > > > > > > > > > > > installation/login > > > > > > > > > > > > > > > > > > > > > > > > > > Please see the below question from a new > > > > > > > > > > > > > implementer > > > > > > > > > > > > > - > > > > > > > > > > > > > I've > > > > > > > > > > > > > > > > > > > > cc'd > > > > > > > > > > > > > him > > > > > > > > > > > > > on this as his note couldn't get through talk > > > > > > > > > > > > > for > > > > > > > > > > > > > some > > > > > > > > > > > > > > > > > > > > reason, so > > > > > > > > > > > > > please include him on any response. Thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > Megan Forbes > > > > > > > > > > > > > CollectionSpace Program Manager > > > > > > > > > > > > > megan.forbes@lyrasis.org > > > > > > > > > > > > > 917.267.9676 Cell > > > > > > > > > > > > > meganbforbes Skype > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________ > > > > > > > > > > > > > From: TJ <toralf.jabs@gmail.com> > > > > > > > > > > > > > Sent: Wednesday, April 29, 2020 5:37 PM > > > > > > > > > > > > > To: info@collectionspace.org > > > > > > > > > > > > > Subject: collectionspace installation/login > > > > > > > > > > > > > > > > > > > > > > > > > > (i tried sending this to > > > > > > > > > > > > > talk@collectionspace.org > > > > > > > > > > > > > as > > > > > > > > > > > > > > > > > > > > suggested in > > > > > > > > > > > > > the > > > > > > > > > > > > > DOCs but it could not be delivered) > > > > > > > > > > > > > > > > > > > > > > > > > > I installed collection space (and apache) > > > > > > > > > > > > > according > > > > > > > > > > > > > to > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS > > > > > > > > > > > > > and > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace > > > > > > > > > > > > > everything went smooth > > > > > > > > > > > > > but: > > > > > > > > > > > > > the link/url in the mentioned index.html is > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://home.collectionspace.lan/collectionspace/ui/core/html/index.html > > > > > > > > > > > > > but that doesn't work at all and gets me a > > > > > > > > > > > > > 404 > > > > > > > > > > > > > > > > > > > > > > > > > > I changed that to > > > > > > > > > > > > > http://home.collectionspace.lan/cspace/core/login > > > > > > > > > > > > > > > > > > > > > > > > > > that gives me the collectionspace demo page > > > > > > > > > > > > > and > > > > > > > > > > > > > refers > > > > > > > > > > > > > to > > > > > > > > > > > > > the > > > > > > > > > > > > > > > > > > > > > > login > > > > > > > > > > > > > "You should be able to log in to the default > > > > > > > > > > > > > core > > > > > > > > > > > > > tenant > > > > > > > > > > > > > > > > > > > > using > > > > > > > > > > > the > > > > > > > > > > > > > user > > > > > > > > > > > > > admin@core.collectionspace.org and the > > > > > > > > > > > > > password > > > > > > > > > > > > > > > > > > > > Administrator." > > > > > > > > > > > > > but no matter if I try this or any other > > > > > > > > > > > > > combination > > > > > > > > > > > > > of > > > > > > > > > > > > > > > > > > > > admin@ > > > > > > > > > > > > > the page says: > > > > > > > > > > > > > > > > > > > > > > > > > > Sign in failed. > > > > > > > > > > > > > > > > > > > > > > > > > > Any suggestion? Did I miss or overlook > > > > > > > > > > > > > something? > > > > > > > > > > > > > > > > > > > > > > > > > > Thank you and kind regards > > > > > > > > > > > > > Toralf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I also tried to verify the installion... > > > > > > > > > > > > > --------- > > > > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > > > > http://localhost:8180/cspace-services/collectionobjects > > > > > > > > > > > > > -u > > > > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > HTTP/1.1 404 > > > > > > > > > > > > > Content-Type: text/html;charset=utf-8 > > > > > > > > > > > > > Content-Language: en > > > > > > > > > > > > > Content-Length: 1111 > > > > > > > > > > > > > Date: Wed, 29 Apr 2020 21:06:31 GMT > > > > > > > > > > > > > > > > > > > > > > > > > > <!doctype html><html > > > > > > > > > > > > > lang="en"><head><title>HTTP > > > > > > > > > > > > > Status > > > > > > > > > > > > > 404 > > > > > > > > > > > > > - > > > > > > > > > > > > > > > > > > > > Not > > > > > > > > > > > > > Found</title><style type="text/css">h1 {font- > > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > > color:#525D76;font- > > > > > > > > > > > > > size:22px;} > > > > > > > > > > > > > > > > > > > > h2 > > > > > > > > > > > > > {font- > > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > > color:#525D76;font-size:16px;} h3 {font- > > > > > > > > > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > > color:#525D76;font- > > > > > > > > > > > > > size:14px;} > > > > > > > > > > > > > > > > > > > > body > > > > > > > > > > > > > {font- > > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > > serif;color:black;background- > > > > > > > > > > > > > > > > > > > > > > color:white;} > > > > > > > > > > > > > b > > > > > > > > > > > > > {font-family:Tahoma,Arial,sans- > > > > > > > > > > > > > serif;color:white;background- > > > > > > > > > > > > > color:#525D76;} p {font- > > > > > > > > > > > > > family:Tahoma,Arial,sans- > > > > > > > > > > > > > serif;background:white;color:black;font- > > > > > > > > > > > > > size:12px;} > > > > > > > > > > > > > a > > > > > > > > > > > > > {color:black;} > > > > > > > > > > > > > a.name {color:black;} .line > > > > > > > > > > > > > {height:1px;background- > > > > > > > > > > > > > color:#525D76;border:none;}</style></head><bo > > > > > > > > > > > > > dy>< > > > > > > > > > > > > > h1 > > > > > > > > > > > > > > H > > > > > > > > > > > > > > > > > > > > > > > > > > TT > > > > > > > > > > > > > P > > > > > > > > > > > > > > > > > > > > Status > > > > > > > > > > > 404 > > > > > > > > > > > > > - > > > > > > > > > > > > > Not Found</h1><hr class="line" > > > > > > > > > > > > > /><p><b>Type</b> > > > > > > > > > > > > > Status > > > > > > > > > > > > > Report</p><p><b>Message</b> &#47;cspace- > > > > > > > > > > > > > services&#47;collectionobjects</p><p><b>Descr > > > > > > > > > > > > > ipti > > > > > > > > > > > > > on > > > > > > > > > > > > > </ > > > > > > > > > > > > > b> > > > > > > > > > > > > > The > > > > > > > > > > > > > > > > > > > > > > origin > > > > > > > > > > > > > server did not find a current representation > > > > > > > > > > > > > for > > > > > > > > > > > > > the > > > > > > > > > > > > > target > > > > > > > > > > > > > resource > > > > > > > > > > > > > or > > > > > > > > > > > > > is not willing to disclose that one > > > > > > > > > > > > > exists.</p><hr > > > > > > > > > > > > > > > > > > > > class="line" > > > > > > > > > > > > > /><h3>Apache Tomcat/8.5.40</h3></body></html> > > > > > > > > > > > > > > > > > > > > > > > > > > --------- > > > > > > > > > > > > > root@9201739f540c:/var/www/html# curl -i > > > > > > > > > > > > > http://localhost:8180/cspace/core/login -u > > > > > > > > > > > > > admin@core.collectionspace.org:Administrator > > > > > > > > > > > > > > > > > > > > > > > > > > HTTP/1.1 200 > > > > > > > > > > > > > Cache-Control: max-age=7200 > > > > > > > > > > > > > Expires: Wed, 29 Apr 2020 23:05:32 GMT > > > > > > > > > > > > > Accept-Ranges: bytes > > > > > > > > > > > > > ETag: W/"276-1588188662000" > > > > > > > > > > > > > Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT > > > > > > > > > > > > > Content-Type: text/html > > > > > > > > > > > > > Content-Length: 276 > > > > > > > > > > > > > Date: Wed, 29 Apr 2020 21:05:32 GMT > > > > > > > > > > > > > > > > > > > > > > > > > > <html> > > > > > > > > > > > > > <head> > > > > > > > > > > > > > <meta charset="UTF-8" /> > > > > > > > > > > > > > </head> > > > > > > > > > > > > > <body> > > > > > > > > > > > > > <div id="cspace"></div> > > > > > > > > > > > > > <script src=" > > > > > > > > > > > > > /cspace-ui/cspaceUI@3.1.2.min.js > > > > > > > > > > > > > > > > > > > > "></ > > > > > > > > > > > sc > > > > > > > > > > > > > ri > > > > > > > > > > > > > pt > > > > > > > > > > > > > <script> > > > > > > > > > > > > > cspaceUI({ > > > > > > > > > > > > > basename: > > > > > > > > > > > > > '/cspace/core', > > > > > > > > > > > > > prettyUrls: > > > > > > > > > > > > > true, > > > > > > > > > > > > > tenantId: > > > > > > > > > > > > > '1', > > > > > > > > > > > > > }); > > > > > > > > > > > > > </script> > > > > > > > > > > > > > </body> > > > > > > > > > > > > > </html> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Talk mailing list > > > > > > > > > > Talk@lists.collectionspace.org > > > > > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Talk mailing list > > > > > > > Talk@lists.collectionspace.org > > > > > > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
RL
Ray Lee
Thu, May 14, 2020 7:14 PM

Great!

I just had a thought: Are you using Ubuntu Desktop or Server? If you're using Ubuntu Desktop, it might explain why curl is missing. I wouldn't be surprised if all our testing has been with Server.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: TJ toralf.jabs@gmail.com
Sent: Thursday, May 14, 2020 2:42 PM
To: Ray Lee
Cc: talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

had to adjust the nginx.conf and got the login screen and
could login! This looks much better now.
Will contact Rob and see how far we get on his VM.

Kind regards
Toralf

[cid:dbcc54a9e618b1f37f16e88ae631f1d8857db8fe.camel@gmail.com]

On Thu, 2020-05-14 at 13:29 -0500, TJ wrote:
Hello Ray,

the run completed much better (cspace db go created)
but the website shows
"/cspace/core/login is unreachable."

cspace services log:
root@homemailto:root@home:/opt/collectionspace/server/logs# grep -i error cspace-services.log
2020-05-13 19:33:44,648 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl:388] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed: Unable to commit: Transaction timeout
2020-05-13 19:33:45,831 ERROR [localhost-startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService:484] Nuxeo Platform Started
2020-05-13 19:33:46,304 ERROR [localhost-startStop-1] [org.postgresql.Driver:125] Connection error:
2020-05-14 17:43:47,409 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/publicart-tenant-bindings-proto.xml - For tenant: publicart
2020-05-14 17:43:47,420 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/anthro-tenant-bindings-proto.xml - For tenant: anthro
2020-05-14 17:43:47,421 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/materials-tenant-bindings-proto.xml - For tenant: materials
2020-05-14 17:43:47,422 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/bonsai-tenant-bindings-proto.xml - For tenant: bonsai
2020-05-14 17:43:47,422 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/botgarden-tenant-bindings-proto.xml - For tenant: botgarden
2020-05-14 17:43:47,423 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/herbarium-tenant-bindings-proto.xml - For tenant: herbarium
2020-05-14 17:43:47,424 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/testsci-tenant-bindings-proto.xml - For tenant: testsci
2020-05-14 17:43:48,756 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/fcart-tenant-bindings-proto.xml - For tenant: fcart
2020-05-14 17:43:48,756 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/dvp-tenant-bindings-proto.xml - For tenant: dvp
2020-05-14 17:43:48,757 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/lhmc-tenant-bindings-proto.xml - For tenant: lhmc
2020-05-14 17:44:22,930 ERROR [localhost-startStop-2] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService
2020-05-14 17:44:23,104 ERROR [localhost-startStop-2] [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded:137] No such repository: default
2020-05-14 18:18:59,945 ERROR [localhost-startStop-3] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService
2020-05-14 18:19:00,211 ERROR [localhost-startStop-3] [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded:137] No such repository: default

On Thu, 2020-05-14 at 12:57 -0500, TJ wrote:
Hello Ray,

I didnt't. Now I did and got this:
BUILD FAILED
/opt/collectionspace/services/build.xml:305: The following error
occurred while executing this line:
/opt/collectionspace/services/cspace-ui/build.xml:31: Execute failed:
java.io.IOException: Cannot run program "curl" (in directory
"/opt/collectionspace/services/cspace-ui"): error=2, No such file or
directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
...

Installed curl now (can this be added to the ansible playbook?
and rerunning the ant as user collectionspace

Kind regards
Toralf

On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote:
Hi Toralf,
That's not a problem. Your error is this:

Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.common:jar:
6.
0.0 from/to cspace-libs-release-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local
): GET request of:
org/collectionspace/services/org.collectionspace.services.common/6.0.
0/
org.collectionspace.services.common-6.0.0.jar from cspace-libs-
release-
local failed: Read timed out -> [Help 1]

Are you able to download
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/
org.collectionspace.services.common-6.0.0.jar?

Either way, you shouldn't even need to download that jar at that
point in the process. Are you running ant as the collectionspace
user?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Thursday, May 14, 2020 11:47 AM
To: Ray Lee
Cc: talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

when I execute the get request from last mail manually:

wget
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
--2020-05-14 10:46:31--
https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar
Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130
Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443...
connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote:
Hi Toralf,
How are you capturing that ant output? Either there's something
wrong
with that, or ant is silently terminating before it gets to the
create_db target -- which is a possibility, since that's what would
create the cspace database.

Is there anything interesting in the syslog at the time of the last
message in the ant output?

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Wednesday, May 13, 2020 4:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

no, that's all I got...

Kind regards
Toralf

On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote:
Hi Toralf,
Is there any more to the ant log? It looks like it's cut off
before
the part I'm interested in.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Wednesday, May 13, 2020 3:45 PM
To: Ray Lee
Cc: talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

just tested (again) on a fresh machine,
like last time(s) no cspace db got created...
root@homemailto:root@home:~# su - postgres
psql postgres@homemailto:postgres@home:~$ psql -l
List of databases
Name      |    Owner    | Encoding
Collate  |    Ctype    |        Access privileges

---------------+---------------+----------+-------------+------


+---------------------------------
nuxeo_default | nuxeo_default | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=Tc/nuxeo_default              +
|              |          |            |
|
nuxeo_default=CTc/nuxeo_default+
|              |          |            |
|
reader_default=c/nuxeo_default
postgres      | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
template0    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
template1    | postgres      | UTF8    | en_US.UTF-8 |
en_US.UTF-8
=c/postgres                    +
|              |          |            |
|
postgres=CTc/postgres
(4 rows)

attached the complete ansible run, both maven runs and the ant
run

Kind regards
Toralf

On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote:
Sorry, you should be able to see that page now.

Can you attach the complete output from the installer up to
that
error?

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Wednesday, May 13, 2020 9:50 AM
To: Ray Lee
Cc: talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org; Rob Clark
Subject: Re: [Talk] collectionspace installation/login

Hello Ray,

as well I cant run the installer (and parts of it) because
fetching
artifacts from your maven repository still gets me

Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com
(cspace-
maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden

Kind reagrds
Toralf

On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote:
Hi Toralf,
In advance of the 6.0 release, I've updated the manual
install
instructions, and verified that they work:

https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS

I've also verified that the Ansible-based automated installer
is
working:

https://github.com/collectionspace/cspace-installer

If you can, try your install again (whichever way you
prefer),
and
let us know how it goes.

Thanks,
Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org


From: Talk <talk-bounces@lists.collectionspace.orgmailto:talk-bounces@lists.collectionspace.org> on behalf
of
Ray
Lee <ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org>
Sent: Friday, May 8, 2020 4:12 PM
To: TJ; Richard Millet
Cc: talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

Hi Toralf,
It sounds like you started with a manual install of 5.2, and
then
went to the new ansible installer, which is going to try to
install
6.0, which hasn't been released yet. At this point I'd
suggest
waiting until 6.0 is released (should be next week), and
starting
from scratch with the ansible installer.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Wednesday, May 6, 2020 5:17 PM
To: Richard Millet
Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org
Subject: Re: [Talk] collectionspace installation/login

In addition as I said earlier (I dont know if it got
overlooked):
at the moment I cant install, build or run anything as the
maven
(re)runs fail with:

[exec] [WARNING] Failure to transfer

org.collectionspace.services:org.collectionspace.services.acc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
was cached in the local repository, resolution will not be
reattempted
until the update interval of cspace-libs-snapshot-local has
elapsed
or
updates are forced. Original error: Could not transfer
metadata
org.collectionspace.services:org.collectionspace.services.acc
ou
nt
.c
li
en
t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs-
snapshot-
local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom
[exec] Downloading from cspace-libs-snapshot-local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
[exec] [WARNING] Could not transfer metadata
org.collectionspace.services:org.collectionspace.services.aut
ho
ri
za
ti
on
-mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-
libs-
snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml
, ReasonPhrase:Forbidden.
...

 [exec] [INFO] ------------------------------------------

--

--

--

 [exec] [INFO] BUILD FAILURE
 [exec] [INFO] ------------------------------------------

--

--

--

 [exec] [INFO] Total time:  39.114 s
 [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00
 [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.aut
ho
ri
za
ti
on
-mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies
at
org.collectionspace.services:org.collectionspace.services.aut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Failed to read artifact
descriptor
for
org.collectionspace.services:org.collectionspace.services.aut
he
nt
ic
at
io
n.service:jar:6.0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.services.aut
he
nt
ic
at
io
n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local
(
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:295: The following
error
occurred while executing this line:
/opt/collectionspace/services/services/build.xml:148: The
following
error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/build.xml:120:
The following error occurred while executing this line:
/opt/collectionspace/services/services/authorization-
mgt/import/build.xml:53: exec returned: 1

On Mon, 2020-05-04 at 16:12 -0500, TJ wrote:
Hello,

I did exactly that (via the ansible run)
I also included the logs from both maven runs...
the ant task did not execute the create_db target (it
seems)
and from the postgres logs I see something expects
something
to
be
in
the DB as well...

#cspace services startup
2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1]
[org.collectionspace.services.common.storage.jpa.JpaStorage
Ut
il
s:
37
6]
Could not find entity with key
={roleName=ROLE_1_TENANT_READER}
javax.persistence.NoResultException: No entity found for
query

#postgres
2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspacemailto:cspace_default@cspaced
ef
au
lt
LOG:  execute <unnamed>: SET application_name = 'PostgreSQL
JDBC
Driver'
2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspacemailto:cspace_default@cspaced
ef
au
lt
LOG:  execute <unnamed>: SELECT id,name FROM tenants
2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspacemailto:cspace_default@cspaced
ef
au
lt
LOG:  execute <unnamed>: BEGIN
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspacemailto:cspace_default@cspaced
ef
au
lt
LOG:  execute <unnamed>: select role0
.csid as csid10
,
role0
.created_at as created2_10
, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspacemailto:cspace_default@cspace_d
ef
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2

'1',
$3

'2'
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspacemailto:cspace_default@cspaced
ef
au
lt
LOG:  execute <unnamed>: select role0
.csid as csid10_,
role0_.created_at as created2_10_, role0_.description as
descript3_10_,
role0_.displayname as displayn4_10_,
role0_.metadata_protection
as
metadata5_10_, role0_.perms_protection as perms6_10_,
role0_.rolegroup
as rolegroup10_, role0_.rolename as rolename10_,
role0_.tenant_id
as
tenant9_10_, role0_.updated_at as updated10_10_ from roles
role0_
where
role0_.rolename=$1 and role0_.tenant_id=$2 limit $3
2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspacemailto:cspace_default@cspace_d
ef
au
lt
DETAIL:  parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1',
$3

'2'
2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspacemailto:cspace_default@cspace_d
ef
au
lt
LOG:  execute S_1: ROLLBACK

On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote:
TJ,

You may need to run the following commands BEFORE running
the
'ant
undeploy deploy created_db import' command:

From the top "services" directory:

mvn clean install -DskipTests

From the top "application" directory:

mvn clean install -DskipTests

Back to the top "services" directory:

ant undeploy deploy create_db import

I hope that works for you,

Richard

On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
wrote:
ansible didn't show any errors
I logged the ant run into a file(attached as a.log, I
also
included
the
logs from both maven runs)
the db/user did not get created so after ansible
completely
running
through, I rerun manually the command
ant undeploy deploy create_db import

but now I get this:
...
[exec] Downloading from cspace-libs-snapshot-
local:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
[exec] [INFO] ------------------------------------

--

--

--


 [exec] [INFO] BUILD FAILURE
 [exec] [INFO] ------------------------------------

--

--

--



 [exec] [INFO] Total time:  7.089 s
 [exec] [INFO] Finished at: 2020-05-02T11:17:58-

04:00
[exec] [INFO] ------------------------------------

--

--

--


 [exec] [ERROR] Failed to execute goal on project

org.collectionspace.services.listener.reindex: Could
not
resolve
dependencies for project
org.collectionspace.services:org.collectionspace.servic
es
.l
is
te
ne
r.
rein
dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at
org.collectionspace.services:org.collectionspace.servic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Failed to read artifact descriptor for
org.collectionspace.services:org.collectionspace.servic
es
.c
om
mo
n:
ja
r:6.
0-SNAPSHOT: Could not transfer artifact
org.collectionspace.services:org.collectionspace.servic
es
.c
om
mo
n:
po
m:6.
0-SNAPSHOT from/to cspace-libs-snapshot-local (
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local
): Access denied to:
https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom
, ReasonPhrase:Forbidden. -> [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
/opt/collectionspace/services/build.xml:303: The
following
error
occurred while executing this line:
/opt/collectionspace/services/3rdparty/build.xml:121:
The
following
error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/build.xml:
15
3:
The
following error occurred while executing this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/build.xml:118: The following error occurred
while
executing
this line:
/opt/collectionspace/services/3rdparty/nuxeo/nuxeo-
platform-
listener/reindex/build.xml:67: exec returned: 1

Total time: 1 minute 3 seconds

On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote:
Hi Toralf,
The cspace_default user and database and those
administrator

roles
are created when you run the ant import command
during
the
installation. (The manual installation instructions
include
a

step to
run ant undeploy deploy create_db import, but ant
import
can
be

run
on its own). The ansible installer should be doing
that,
though.

I'm
not sure what's going on there.

Ray
From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Friday, May 1, 2020 4:52 PM
To: Ray Lee <ray.lee@lyrasis.orgmailto:ray.lee@lyrasis.org>; Megan Forbes <
megan.forbes@lyrasis.orgmailto:megan.forbes@lyrasis.org>;
talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org
<
talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org>
Subject: Re: collectionspace installation/login

hello,

yes permissions and such all were fine.
I gave up on the manual install and tried the ansible
procedure
it got me a bit further but cspace-services could not
start
due

to

  • the user cspace_default was not in the db
  • the database cspace_default was not created

I tried to create them both via the scripts in
tomcat.../cspace/services/db/postgres/*.sql

Q: how are they supposed to get created normally?

but now cspace-services.log gives me

2020-05-01 18:35:41,999 ERROR [localhost-startStop-1]
[org.collectionspace.services.common.ServiceMain:266]
Default
create/update of tenants, accounts, roles and
permissions
setup
failed
with exception(s): One or more of the required
default
CollectionSpace
administrator roles is missing or was never created.
java.lang.RuntimeException: One or more of the
required
default
CollectionSpace administrator roles is missing or was
never

created.
Kind regards
Toralf

On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote:
Hi Toralf,
My first thought is that there's a permissions
problem.
Is

everything
in the tomcat directory owned by the user that runs
tomcat

(typically
named cspace)?

Ray


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Thursday, April 30, 2020 1:57 PM
To: Ray Lee; Megan Forbes;
talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org
Subject: Re: collectionspace installation/login

Hello,

yes indeed cspace-services doesnt start, first i
said
it
could

create
convertcache, but the directory exists, so i
deleted
it
and

restarted
and now it says something about nuxeo-schemas

root@9201739f540cmailto:root@9201739f540c:/usr/local/share/apache-tomcat-
8.5.40/logs#

grep
-A1
ERR cspace-services.log
2020-04-29 21:52:23,014 ERROR [localhost-startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener
execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
org.nuxeo.ecm.core.api.NuxeoException: Cannot
create
cache
dir
/usr/local/share/apache-tomcat-8.5.40/nuxeo-

server/data/convertcache

2020-04-29 21:52:23,147 ERROR [localhost-startStop-
1]

[org.collectionspace.services.nuxeo.client.java.NuxeoCo
nn
ec
to
rE
mb
ed
de
d:
137] No repository defined
2020-04-29 21:52:28,564 WARN  [localhost-startStop-
1]
[org.apache.catalina.util.SessionIdGeneratorBase:12
3]
Creation

of
SecureRandom instance for session ID generation
using

[SHA1PRNG]
took
[5,003] milliseconds.

2020-04-29 21:56:29,647 ERROR [localhost-startStop-
1]
[org.nuxeo.osgi.OSGiAdapter:226] Error during
Framework

Listener
execution : class
org.nuxeo.runtime.osgi.OSGiRuntimeService
java.lang.RuntimeException: java.io.IOException:
Failed
to
list
contents of /usr/local/share/apache-tomcat-
8.5.40/nuxeo-
server/tmp/schemas

On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote:
Hi Toralf,
That usually means the server wasn't able to
start
up.
Take
a

look
at
catalina.out in the logs directory under tomcat.
Are
there

any
exceptions or error messages?

Ray


From: Talk <
talk-bounces@lists.collectionspace.orgmailto:talk-bounces@lists.collectionspace.org>
on
behalf

of
Megan Forbes <megan.forbes@lyrasis.orgmailto:megan.forbes@lyrasis.org>
Sent: Thursday, April 30, 2020 8:59 AM
To: talk@lists.collectionspace.orgmailto:talk@lists.collectionspace.org
Cc: TJ
Subject: [Talk] Fw: collectionspace
installation/login

Please see the below question from a new
implementer

I've

cc'd
him
on this as his note couldn't get through talk for
some

reason, so
please include him on any response. Thanks!

Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.orgmailto:megan.forbes@lyrasis.org
917.267.9676 Cell
meganbforbes Skype


From: TJ <toralf.jabs@gmail.commailto:toralf.jabs@gmail.com>
Sent: Wednesday, April 29, 2020 5:37 PM
To: info@collectionspace.orgmailto:info@collectionspace.org
Subject: collectionspace installation/login

(i tried sending this to talk@collectionspace.orgmailto:talk@collectionspace.org
as

suggested in
the
DOCs but it could not be delivered)

I installed collection space (and apache)
according
to

https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS
and

https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace
everything went smooth
but:
the link/url in the mentioned index.html is

http://home.collectionspace.lan/collectionspace/ui/core/html/index.html
but that doesn't work at all and gets me a 404

I changed that to
http://home.collectionspace.lan/cspace/core/login

that gives me the collectionspace demo page and
refers
to
the

login
"You should be able to log in to the default core
tenant

using
the
user
admin@core.collectionspace.orgmailto:admin@core.collectionspace.org and the password

Administrator."
but no matter if I try this or any other
combination
of

admin@
the page says:

Sign in failed.

Any suggestion? Did I miss or overlook something?

Thank you and kind regards
Toralf

I also tried to verify the installion...

root@9201739f540cmailto:root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace-services/collectionobjects
-u
admin@core.collectionspace.orgmailto:admin@core.collectionspace.org:Administrator
HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1111
Date: Wed, 29 Apr 2020 21:06:31 GMT

<!doctype html><html lang="en"><head><title>HTTP
Status
404

Not
Found</title><style type="text/css">h1 {font-
family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:22px;}

h2
{font-
family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;font-size:16px;} h3 {font-

family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-
size:14px;}

body
{font-
family:Tahoma,Arial,sans-
serif;color:black;background-

color:white;}
b
{font-family:Tahoma,Arial,sans-
serif;color:white;background-
color:#525D76;} p {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-
size:12px;}
a
{color:black;}
a.name {color:black;} .line
{height:1px;background-
color:#525D76;border:none;}</style></head><body><
h1
H

TT
P

Status
404

Not Found</h1><hr class="line" /><p><b>Type</b>
Status
Report</p><p><b>Message</b> /cspace-
services/collectionobjects</p><p><b>Descripti
on
</
b>
The

origin
server did not find a current representation for
the
target
resource
or
is not willing to disclose that one
exists.</p><hr

class="line"
/><h3>Apache Tomcat/8.5.40</h3></body></html>


root@9201739f540cmailto:root@9201739f540c:/var/www/html# curl -i
http://localhost:8180/cspace/core/login -u
admin@core.collectionspace.orgmailto:admin@core.collectionspace.org:Administrator

HTTP/1.1 200
Cache-Control: max-age=7200
Expires: Wed, 29 Apr 2020 23:05:32 GMT
Accept-Ranges: bytes
ETag: W/"276-1588188662000"
Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT
Content-Type: text/html
Content-Length: 276
Date: Wed, 29 Apr 2020 21:05:32 GMT

<html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js<mailto:/cspace-ui/cspaceUI@3.1.2.min.js>

"></
sc
ri
pt
<script>
cspaceUI({
basename:
'/cspace/core',
prettyUrls: true,
tenantId: '1',
});
</script>
</body>

</html>

Talk mailing list
Talk@lists.collectionspace.orgmailto:Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org


Talk mailing list
Talk@lists.collectionspace.orgmailto:Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Great! I just had a thought: Are you using Ubuntu Desktop or Server? If you're using Ubuntu Desktop, it might explain why curl is missing. I wouldn't be surprised if all our testing has been with Server. Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org ________________________________________ From: TJ <toralf.jabs@gmail.com> Sent: Thursday, May 14, 2020 2:42 PM To: Ray Lee Cc: talk@lists.collectionspace.org; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, had to adjust the nginx.conf and got the login screen and could login! This looks much better now. Will contact Rob and see how far we get on his VM. Kind regards Toralf [cid:dbcc54a9e618b1f37f16e88ae631f1d8857db8fe.camel@gmail.com] On Thu, 2020-05-14 at 13:29 -0500, TJ wrote: Hello Ray, the run completed much better (cspace db go created) but the website shows "/cspace/core/login is unreachable." cspace services log: root@home<mailto:root@home>:/opt/collectionspace/server/logs# grep -i error cspace-services.log 2020-05-13 19:33:44,648 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl:388] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed: Unable to commit: Transaction timeout 2020-05-13 19:33:45,831 ERROR [localhost-startStop-1] [org.nuxeo.runtime.osgi.OSGiRuntimeService:484] Nuxeo Platform Started 2020-05-13 19:33:46,304 ERROR [localhost-startStop-1] [org.postgresql.Driver:125] Connection error: 2020-05-14 17:43:47,409 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/publicart-tenant-bindings-proto.xml - For tenant: publicart 2020-05-14 17:43:47,420 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/anthro-tenant-bindings-proto.xml - For tenant: anthro 2020-05-14 17:43:47,421 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/materials-tenant-bindings-proto.xml - For tenant: materials 2020-05-14 17:43:47,422 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/bonsai-tenant-bindings-proto.xml - For tenant: bonsai 2020-05-14 17:43:47,422 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/botgarden-tenant-bindings-proto.xml - For tenant: botgarden 2020-05-14 17:43:47,423 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/herbarium-tenant-bindings-proto.xml - For tenant: herbarium 2020-05-14 17:43:47,424 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/testsci-tenant-bindings-proto.xml - For tenant: testsci 2020-05-14 17:43:48,756 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/fcart-tenant-bindings-proto.xml - For tenant: fcart 2020-05-14 17:43:48,756 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/dvp-tenant-bindings-proto.xml - For tenant: dvp 2020-05-14 17:43:48,757 ERROR [localhost-startStop-2] [org.collectionspace.services.common.config.TenantBindingConfigReaderImpl:338] Expected to, but could not, find the tenant proto configuration file: /opt/collectionspace/apache-tomcat-8.5.51/cspace/config/services/tenants/lhmc-tenant-bindings-proto.xml - For tenant: lhmc 2020-05-14 17:44:22,930 ERROR [localhost-startStop-2] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService 2020-05-14 17:44:23,104 ERROR [localhost-startStop-2] [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded:137] No such repository: default 2020-05-14 18:18:59,945 ERROR [localhost-startStop-3] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService 2020-05-14 18:19:00,211 ERROR [localhost-startStop-3] [org.collectionspace.services.nuxeo.client.java.NuxeoConnectorEmbedded:137] No such repository: default On Thu, 2020-05-14 at 12:57 -0500, TJ wrote: Hello Ray, I didnt't. Now I did and got this: BUILD FAILED /opt/collectionspace/services/build.xml:305: The following error occurred while executing this line: /opt/collectionspace/services/cspace-ui/build.xml:31: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "/opt/collectionspace/services/cspace-ui"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ... Installed curl now (can this be added to the ansible playbook? and rerunning the ant as user collectionspace Kind regards Toralf On Thu, 2020-05-14 at 16:21 +0000, Ray Lee wrote: Hi Toralf, That's not a problem. Your error is this: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.common:jar: 6. 0.0 from/to cspace-libs-release-local ( https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local ): GET request of: org/collectionspace/services/org.collectionspace.services.common/6.0. 0/ org.collectionspace.services.common-6.0.0.jar from cspace-libs- release- local failed: Read timed out -> [Help 1] Are you able to download https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-release-local/org/collectionspace/services/org.collectionspace.services.common/6.0.0/ org.collectionspace.services.common-6.0.0.jar? Either way, you shouldn't even need to download that jar at that point in the process. Are you running ant as the collectionspace user? Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org> ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Thursday, May 14, 2020 11:47 AM To: Ray Lee Cc: talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org>; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, when I execute the get request from last mail manually: wget https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar --2020-05-14 10:46:31-- https://maven.nuxeo.org/nexus/content/repositories/hotfix-releases/org/nuxeo/elasticsearch/nuxeo-elasticsearch-core/9.10-HF30/nuxeo-elasticsearch-core-9.10-HF30.jar Resolving maven.nuxeo.org (maven.nuxeo.org)... 50.18.122.130 Connecting to maven.nuxeo.org (maven.nuxeo.org)|50.18.122.130|:443... connected. HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed. On Thu, 2020-05-14 at 00:54 +0000, Ray Lee wrote: Hi Toralf, How are you capturing that ant output? Either there's something wrong with that, or ant is silently terminating before it gets to the create_db target -- which is a possibility, since that's what would create the cspace database. Is there anything interesting in the syslog at the time of the last message in the ant output? Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org> ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Wednesday, May 13, 2020 4:45 PM To: Ray Lee Cc: talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org>; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, no, that's all I got... Kind regards Toralf On Wed, 2020-05-13 at 20:22 +0000, Ray Lee wrote: Hi Toralf, Is there any more to the ant log? It looks like it's cut off before the part I'm interested in. Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org> ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Wednesday, May 13, 2020 3:45 PM To: Ray Lee Cc: talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org>; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, just tested (again) on a fresh machine, like last time(s) no cspace db got created... root@home<mailto:root@home>:~# su - postgres psql postgres@home<mailto:postgres@home>:~$ psql -l List of databases Name | Owner | Encoding Collate | Ctype | Access privileges ---------------+---------------+----------+-------------+------ ---- --- +--------------------------------- nuxeo_default | nuxeo_default | UTF8 | en_US.UTF-8 | en_US.UTF-8 =Tc/nuxeo_default + | | | | | nuxeo_default=CTc/nuxeo_default+ | | | | | reader_default=c/nuxeo_default postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 =c/postgres + | | | | | postgres=CTc/postgres (4 rows) attached the complete ansible run, both maven runs and the ant run Kind regards Toralf On Wed, 2020-05-13 at 15:25 +0000, Ray Lee wrote: Sorry, you should be able to see that page now. Can you attach the complete output from the installer up to that error? Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org> ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Wednesday, May 13, 2020 9:50 AM To: Ray Lee Cc: talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org>; Rob Clark Subject: Re: [Talk] collectionspace installation/login Hello Ray, as well I cant run the installer (and parts of it) because fetching artifacts from your maven repository still gets me Connecting to cspace-maven-repo.s3-us-west-2.amazonaws.com (cspace- maven-repo.s3-us-west-2.amazonaws.com)|52.218.233.129|:443... connected. HTTP request sent, awaiting response... 403 Forbidden Kind reagrds Toralf On Wed, 2020-05-13 at 03:59 +0000, Ray Lee wrote: Hi Toralf, In advance of the 6.0 release, I've updated the manual install instructions, and verified that they work: https://collectionspace.atlassian.net/wiki/spaces/CSPACE53/pages/701599363/Installing+on+Ubuntu+LTS I've also verified that the Ansible-based automated installer is working: https://github.com/collectionspace/cspace-installer If you can, try your install again (whichever way you prefer), and let us know how it goes. Thanks, Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org> ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org<mailto:talk-bounces@lists.collectionspace.org>> on behalf of Ray Lee <ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org>> Sent: Friday, May 8, 2020 4:12 PM To: TJ; Richard Millet Cc: talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org> Subject: Re: [Talk] collectionspace installation/login Hi Toralf, It sounds like you started with a manual install of 5.2, and then went to the new ansible installer, which is going to try to install 6.0, which hasn't been released yet. At this point I'd suggest waiting until 6.0 is released (should be next week), and starting from scratch with the ansible installer. Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org> ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Wednesday, May 6, 2020 5:17 PM To: Richard Millet Cc: Ray Lee; Megan Forbes; talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org> Subject: Re: [Talk] collectionspace installation/login In addition as I said earlier (I dont know if it got overlooked): at the moment I cant install, build or run anything as the maven (re)runs fail with: [exec] [WARNING] Failure to transfer org.collectionspace.services:org.collectionspace.services.acc ou nt .c li en t:6.0-SNAPSHOT/maven-metadata.xml from https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local was cached in the local repository, resolution will not be reattempted until the update interval of cspace-libs-snapshot-local has elapsed or updates are forced. Original error: Could not transfer metadata org.collectionspace.services:org.collectionspace.services.acc ou nt .c li en t:6.0-SNAPSHOT/maven-metadata.xml from/to cspace-libs- snapshot- local ( https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local ): Access denied to: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/maven-metadata.xml , ReasonPhrase:Forbidden. [exec] Downloading from cspace-libs-snapshot-local: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.account.client/6.0-SNAPSHOT/org.collectionspace.services.account.client-6.0-SNAPSHOT.pom [exec] Downloading from cspace-libs-snapshot-local: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml [exec] [WARNING] Could not transfer metadata org.collectionspace.services:org.collectionspace.services.aut ho ri za ti on -mgt.client:6.0-SNAPSHOT/maven-metadata.xml from/to cspace- libs- snapshot-local ( https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local ): Access denied to: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authorization-mgt.client/6.0-SNAPSHOT/maven-metadata.xml , ReasonPhrase:Forbidden. ... [exec] [INFO] ------------------------------------------ -- -- -- -- -- -------------------- [exec] [INFO] BUILD FAILURE [exec] [INFO] ------------------------------------------ -- -- -- -- -- -------------------- [exec] [INFO] Total time: 39.114 s [exec] [INFO] Finished at: 2020-05-06T17:17:13-04:00 [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.aut ho ri za ti on -mgt.import:jar:6.0-SNAPSHOT: Failed to collect dependencies at org.collectionspace.services:org.collectionspace.services.aut he nt ic at io n.service:jar:6.0-SNAPSHOT: Failed to read artifact descriptor for org.collectionspace.services:org.collectionspace.services.aut he nt ic at io n.service:jar:6.0-SNAPSHOT: Could not transfer artifact org.collectionspace.services:org.collectionspace.services.aut he nt ic at io n.service:pom:6.0-SNAPSHOT from/to cspace-libs-snapshot-local ( https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local ): Access denied to: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.authentication.service/6.0-SNAPSHOT/org.collectionspace.services.authentication.service-6.0-SNAPSHOT.pom , ReasonPhrase:Forbidden. -> [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 /opt/collectionspace/services/build.xml:295: The following error occurred while executing this line: /opt/collectionspace/services/services/build.xml:148: The following error occurred while executing this line: /opt/collectionspace/services/services/authorization- mgt/build.xml:120: The following error occurred while executing this line: /opt/collectionspace/services/services/authorization- mgt/import/build.xml:53: exec returned: 1 On Mon, 2020-05-04 at 16:12 -0500, TJ wrote: Hello, I did exactly that (via the ansible run) I also included the logs from both maven runs... the ant task did not execute the create_db target (it seems) and from the postgres logs I see something expects something to be in the DB as well... #cspace services startup 2020-05-01 19:57:08,295 DEBUG [localhost-startStop-1] [org.collectionspace.services.common.storage.jpa.JpaStorage Ut il s: 37 6] Could not find entity with key ={roleName=ROLE_1_TENANT_READER} javax.persistence.NoResultException: No entity found for query #postgres 2020-05-01 16:08:31.942 EDT [10216] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt LOG: execute <unnamed>: SET application_name = 'PostgreSQL JDBC Driver' 2020-05-01 16:08:31.946 EDT [10216] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt LOG: execute <unnamed>: SELECT id,name FROM tenants 2020-05-01 16:08:33.908 EDT [10213] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt LOG: execute <unnamed>: BEGIN 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt LOG: execute <unnamed>: select role0_.csid as csid10_, role0_.created_at as created2_10_, role0_.description as descript3_10_, role0_.displayname as displayn4_10_, role0_.metadata_protection as metadata5_10_, role0_.perms_protection as perms6_10_, role0_.rolegroup as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id as tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_ where role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 2020-05-01 16:08:33.963 EDT [10213] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt DETAIL: parameters: $1 = 'ROLE_1_TENANT_ADMINISTRATOR', $2 = '1', $3 = '2' 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt LOG: execute <unnamed>: select role0_.csid as csid10_, role0_.created_at as created2_10_, role0_.description as descript3_10_, role0_.displayname as displayn4_10_, role0_.metadata_protection as metadata5_10_, role0_.perms_protection as perms6_10_, role0_.rolegroup as rolegroup10_, role0_.rolename as rolename10_, role0_.tenant_id as tenant9_10_, role0_.updated_at as updated10_10_ from roles role0_ where role0_.rolename=$1 and role0_.tenant_id=$2 limit $3 2020-05-01 16:08:34.008 EDT [10213] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt DETAIL: parameters: $1 = 'ROLE_1_TENANT_READER', $2 = '1', $3 = '2' 2020-05-01 16:08:34.022 EDT [10213] cspace_default@cspace<mailto:cspace_default@cspace>_d ef au lt LOG: execute S_1: ROLLBACK On Mon, 2020-05-04 at 13:32 -0700, Richard Millet wrote: TJ, You may need to run the following commands BEFORE running the 'ant undeploy deploy created_db import' command: >From the top "services" directory: mvn clean install -DskipTests >From the top "application" directory: mvn clean install -DskipTests Back to the top "services" directory: ant undeploy deploy create_db import I hope that works for you, Richard On Mon, May 4, 2020 at 5:44 AM TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> wrote: ansible didn't show any errors I logged the ant run into a file(attached as a.log, I also included the logs from both maven runs) the db/user did not get created so after ansible completely running through, I rerun manually the command ant undeploy deploy create_db import but now I get this: ... [exec] Downloading from cspace-libs-snapshot- local: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom [exec] [INFO] ------------------------------------ -- -- -- -- -- -- ---- -------------------- [exec] [INFO] BUILD FAILURE [exec] [INFO] ------------------------------------ -- -- -- -- -- -- ---- -------------------- [exec] [INFO] Total time: 7.089 s [exec] [INFO] Finished at: 2020-05-02T11:17:58- 04:00 [exec] [INFO] ------------------------------------ -- -- -- -- -- -- ---- -------------------- [exec] [ERROR] Failed to execute goal on project org.collectionspace.services.listener.reindex: Could not resolve dependencies for project org.collectionspace.services:org.collectionspace.servic es .l is te ne r. rein dex:jar:6.0-SNAPSHOT: Failed to collect dependencies at org.collectionspace.services:org.collectionspace.servic es .c om mo n: ja r:6. 0-SNAPSHOT: Failed to read artifact descriptor for org.collectionspace.services:org.collectionspace.servic es .c om mo n: ja r:6. 0-SNAPSHOT: Could not transfer artifact org.collectionspace.services:org.collectionspace.servic es .c om mo n: po m:6. 0-SNAPSHOT from/to cspace-libs-snapshot-local ( https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local ): Access denied to: https://cspace-maven-repo.s3-us-west-2.amazonaws.com/libs-snapshot-local/org/collectionspace/services/org.collectionspace.services.common/6.0-SNAPSHOT/org.collectionspace.services.common-6.0-SNAPSHOT.pom , ReasonPhrase:Forbidden. -> [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 /opt/collectionspace/services/build.xml:303: The following error occurred while executing this line: /opt/collectionspace/services/3rdparty/build.xml:121: The following error occurred while executing this line: /opt/collectionspace/services/3rdparty/nuxeo/build.xml: 15 3: The following error occurred while executing this line: /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- platform- listener/build.xml:118: The following error occurred while executing this line: /opt/collectionspace/services/3rdparty/nuxeo/nuxeo- platform- listener/reindex/build.xml:67: exec returned: 1 Total time: 1 minute 3 seconds On Sat, 2020-05-02 at 01:34 +0000, Ray Lee wrote: Hi Toralf, The cspace_default user and database and those administrator roles are created when you run the ant import command during the installation. (The manual installation instructions include a step to run ant undeploy deploy create_db import, but ant import can be run on its own). The ansible installer should be doing that, though. I'm not sure what's going on there. Ray From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Friday, May 1, 2020 4:52 PM To: Ray Lee <ray.lee@lyrasis.org<mailto:ray.lee@lyrasis.org>>; Megan Forbes < megan.forbes@lyrasis.org<mailto:megan.forbes@lyrasis.org>>; talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org> < talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org>> Subject: Re: collectionspace installation/login hello, yes permissions and such all were fine. I gave up on the manual install and tried the ansible procedure it got me a bit further but cspace-services could not start due to - the user cspace_default was not in the db - the database cspace_default was not created I tried to create them both via the scripts in tomcat.../cspace/services/db/postgres/*.sql Q: how are they supposed to get created normally? but now cspace-services.log gives me 2020-05-01 18:35:41,999 ERROR [localhost-startStop-1] [org.collectionspace.services.common.ServiceMain:266] Default create/update of tenants, accounts, roles and permissions setup failed with exception(s): One or more of the required default CollectionSpace administrator roles is missing or was never created. java.lang.RuntimeException: One or more of the required default CollectionSpace administrator roles is missing or was never created. Kind regards Toralf On Fri, 2020-05-01 at 20:39 +0000, Ray Lee wrote: Hi Toralf, My first thought is that there's a permissions problem. Is everything in the tomcat directory owned by the user that runs tomcat (typically named cspace)? Ray ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Thursday, April 30, 2020 1:57 PM To: Ray Lee; Megan Forbes; talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org> Subject: Re: collectionspace installation/login Hello, yes indeed cspace-services doesnt start, first i said it could create convertcache, but the directory exists, so i deleted it and restarted and now it says something about nuxeo-schemas root@9201739f540c<mailto:root@9201739f540c>:/usr/local/share/apache-tomcat- 8.5.40/logs# grep -A1 ERR cspace-services.log 2020-04-29 21:52:23,014 ERROR [localhost-startStop- 1] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService org.nuxeo.ecm.core.api.NuxeoException: Cannot create cache dir /usr/local/share/apache-tomcat-8.5.40/nuxeo- server/data/convertcache -- 2020-04-29 21:52:23,147 ERROR [localhost-startStop- 1] [org.collectionspace.services.nuxeo.client.java.NuxeoCo nn ec to rE mb ed de d: 137] No repository defined 2020-04-29 21:52:28,564 WARN [localhost-startStop- 1] [org.apache.catalina.util.SessionIdGeneratorBase:12 3] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5,003] milliseconds. -- 2020-04-29 21:56:29,647 ERROR [localhost-startStop- 1] [org.nuxeo.osgi.OSGiAdapter:226] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService java.lang.RuntimeException: java.io.IOException: Failed to list contents of /usr/local/share/apache-tomcat- 8.5.40/nuxeo- server/tmp/schemas On Thu, 2020-04-30 at 16:52 +0000, Ray Lee wrote: Hi Toralf, That usually means the server wasn't able to start up. Take a look at catalina.out in the logs directory under tomcat. Are there any exceptions or error messages? Ray ________________________________________ From: Talk < talk-bounces@lists.collectionspace.org<mailto:talk-bounces@lists.collectionspace.org>> on behalf of Megan Forbes <megan.forbes@lyrasis.org<mailto:megan.forbes@lyrasis.org>> Sent: Thursday, April 30, 2020 8:59 AM To: talk@lists.collectionspace.org<mailto:talk@lists.collectionspace.org> Cc: TJ Subject: [Talk] Fw: collectionspace installation/login Please see the below question from a new implementer - I've cc'd him on this as his note couldn't get through talk for some reason, so please include him on any response. Thanks! Megan Forbes CollectionSpace Program Manager megan.forbes@lyrasis.org<mailto:megan.forbes@lyrasis.org> 917.267.9676 Cell meganbforbes Skype ________________________________________ From: TJ <toralf.jabs@gmail.com<mailto:toralf.jabs@gmail.com>> Sent: Wednesday, April 29, 2020 5:37 PM To: info@collectionspace.org<mailto:info@collectionspace.org> Subject: collectionspace installation/login (i tried sending this to talk@collectionspace.org<mailto:talk@collectionspace.org> as suggested in the DOCs but it could not be delivered) I installed collection space (and apache) according to https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465498/Installing+on+Ubuntu+LTS and https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/701465672/Add+Apache+TLS+SSL+landing+page+for+CollectionSpace everything went smooth but: the link/url in the mentioned index.html is http://home.collectionspace.lan/collectionspace/ui/core/html/index.html but that doesn't work at all and gets me a 404 I changed that to http://home.collectionspace.lan/cspace/core/login that gives me the collectionspace demo page and refers to the login "You should be able to log in to the default core tenant using the user admin@core.collectionspace.org<mailto:admin@core.collectionspace.org> and the password Administrator." but no matter if I try this or any other combination of admin@ the page says: Sign in failed. Any suggestion? Did I miss or overlook something? Thank you and kind regards Toralf I also tried to verify the installion... --------- root@9201739f540c<mailto:root@9201739f540c>:/var/www/html# curl -i http://localhost:8180/cspace-services/collectionobjects -u admin@core.collectionspace.org<mailto:admin@core.collectionspace.org>:Administrator HTTP/1.1 404 Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 1111 Date: Wed, 29 Apr 2020 21:06:31 GMT <!doctype html><html lang="en"><head><title>HTTP Status 404 - Not Found</title><style type="text/css">h1 {font- family:Tahoma,Arial,sans- serif;color:white;background-color:#525D76;font- size:22px;} h2 {font- family:Tahoma,Arial,sans- serif;color:white;background- color:#525D76;font-size:16px;} h3 {font- family:Tahoma,Arial,sans- serif;color:white;background-color:#525D76;font- size:14px;} body {font- family:Tahoma,Arial,sans- serif;color:black;background- color:white;} b {font-family:Tahoma,Arial,sans- serif;color:white;background- color:#525D76;} p {font-family:Tahoma,Arial,sans- serif;background:white;color:black;font- size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background- color:#525D76;border:none;}</style></head><body>< h1 H TT P Status 404 - Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> &#47;cspace- services&#47;collectionobjects</p><p><b>Descripti on </ b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/8.5.40</h3></body></html> --------- root@9201739f540c<mailto:root@9201739f540c>:/var/www/html# curl -i http://localhost:8180/cspace/core/login -u admin@core.collectionspace.org<mailto:admin@core.collectionspace.org>:Administrator HTTP/1.1 200 Cache-Control: max-age=7200 Expires: Wed, 29 Apr 2020 23:05:32 GMT Accept-Ranges: bytes ETag: W/"276-1588188662000" Last-Modified: Wed, 29 Apr 2020 19:31:02 GMT Content-Type: text/html Content-Length: 276 Date: Wed, 29 Apr 2020 21:05:32 GMT <html> <head> <meta charset="UTF-8" /> </head> <body> <div id="cspace"></div> <script src=" /cspace-ui/cspaceUI@3.1.2.min.js<mailto:/cspace-ui/cspaceUI@3.1.2.min.js> "></ sc ri pt <script> cspaceUI({ basename: '/cspace/core', prettyUrls: true, tenantId: '1', }); </script> </body> </html> _______________________________________________ Talk mailing list Talk@lists.collectionspace.org<mailto:Talk@lists.collectionspace.org> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org _______________________________________________ Talk mailing list Talk@lists.collectionspace.org<mailto:Talk@lists.collectionspace.org> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org