Hi Trúc, Andrea and Tim,

Yes, i see and i can install Dspace with these informations.
But with Dspace Cris, after build successfully with the command #ant
fresh_install, i run the command
#cd c:\Dspace\bin
#dspace database migrate
I get these errors as below:

C:\dspace\bin>dspace database migrate
Using DSpace installation in: C:\dspace

Database URL: jdbc:postgresql://localhost:5432/dspace
Migrating database to latest version... (Check dspace logs for details)
Migration exception:
java.sql.SQLException: Flyway migration error occurred
        at
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:752)
        at
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:644)
        at
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:639)
        at
org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:235)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:297)
        at
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:152)
        at
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:124)
        at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)
Caused by:
org.flywaydb.core.internal.command.DbMigrate$FlywayMigrateException:
Migration V7.0_2020.11.19__cris_metrics.sql failed
--------------------------------------------------
SQL State  : 42P01
Error Code : 0
Message    : ERROR: relation "public.cris_metrics" does not exist
Location   :
org/dspace/storage/rdbms/sqlmigration/postgres/V7.0_2020.11.19__cris_metrics.sql
(C:\dspace\file:\C:\dspace\lib\dspace-api-cris-2021.02.00.jar!\org\dspace\storage\rdbms\sqlmigration\postgres\V7.0_2020.11.19__cris_metrics.sql)
Line       : 30
Statement  : CREATE INDEX metrics_last_idx
ON public.cris_metrics
USING btree
(last)

        at
org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:369)
        at
org.flywaydb.core.internal.command.DbMigrate.access$200(DbMigrate.java:54)
        at
org.flywaydb.core.internal.command.DbMigrate$3.call(DbMigrate.java:282)
        at
org.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate.execute(TransactionalExecutionTemplate.java:66)
        at
org.flywaydb.core.internal.command.DbMigrate.applyMigrations(DbMigrate.java:279)
        at
org.flywaydb.core.internal.command.DbMigrate.migrateGroup(DbMigrate.java:244)
        at
org.flywaydb.core.internal.command.DbMigrate.access$100(DbMigrate.java:54)
        at
org.flywaydb.core.internal.command.DbMigrate$2.call(DbMigrate.java:162)
        at
org.flywaydb.core.internal.command.DbMigrate$2.call(DbMigrate.java:159)
        at
org.flywaydb.core.internal.database.postgresql.PostgreSQLAdvisoryLockTemplate.execute(PostgreSQLAdvisoryLockTemplate.java:71)
        at
org.flywaydb.core.internal.database.postgresql.PostgreSQLConnection.lock(PostgreSQLConnection.java:99)
        at
org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory.lock(JdbcTableSchemaHistory.java:140)
        at
org.flywaydb.core.internal.command.DbMigrate.migrateAll(DbMigrate.java:159)
        at
org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:137)
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:206)
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:158)
        at org.flywaydb.core.Flyway.execute(Flyway.java:527)
        at org.flywaydb.core.Flyway.migrate(Flyway.java:158)
        at
org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:743)
        ... 11 more
Caused by: org.flywaydb.core.internal.sqlscript.FlywaySqlScriptException:
Migration V7.0_2020.11.19__cris_metrics.sql failed
--------------------------------------------------
SQL State  : 42P01
Error Code : 0
Message    : ERROR: relation "public.cris_metrics" does not exist
Location   :
org/dspace/storage/rdbms/sqlmigration/postgres/V7.0_2020.11.19__cris_metrics.sql
(C:\dspace\file:\C:\dspace\lib\dspace-api-cris-2021.02.00.jar!\org\dspace\storage\rdbms\sqlmigration\postgres\V7.0_2020.11.19__cris_metrics.sql)
Line       : 30
Statement  : CREATE INDEX metrics_last_idx
ON public.cris_metrics
USING btree
(last)

        at
org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.handleException(DefaultSqlScriptExecutor.java:275)
        at
org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:220)
        at
org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.execute(DefaultSqlScriptExecutor.java:127)
        at
org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.executeOnce(SqlMigrationExecutor.java:88)
        at
org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.access$000(SqlMigrationExecutor.java:33)
        at
org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor$1.call(SqlMigrationExecutor.java:77)
        at
org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor$1.call(SqlMigrationExecutor.java:74)
        at
org.flywaydb.core.internal.database.DefaultExecutionStrategy.execute(DefaultExecutionStrategy.java:28)
        at
org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:74)
        at
org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:366)
        ... 29 more
Caused by: org.postgresql.util.PSQLException: ERROR: relation
"public.cris_metrics" does not exist
        at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2505)
        at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2241)
        at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:310)
        at
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:447)
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:368)
        at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:309)
        at
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:295)
        at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:272)
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:267)
        at
org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:194)
        at
org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:194)
        at
org.flywaydb.core.internal.jdbc.JdbcTemplate.executeStatement(JdbcTemplate.java:244)
        at
org.flywaydb.core.internal.sqlscript.ParsedSqlStatement.execute(ParsedSqlStatement.java:111)
        at
org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:208)
        ... 37 more

C:\dspace\bin>

It seem the Dspace Cris does not use this command "dspace database migrate
" to initialize database as Dspace.
I don't want use Tomcat to build Database (by copy server folder from
C:\dspace\webapps to C:\apache-tomcat-9.0.54\webapps).
I attached the Dpace Cris log file after i run the commend " dspace
database migrate ".
Could you please help us to check it?

Thanks you so much,
Toipx

On Sat, 6 Nov 2021 at 17:04, Bollini Andrea <[email protected]>
wrote:

> Hi Toipx,
> if you are just starting your journey and you want to take a look to
> dspace-cris I would recommend to install it from scratch, without a
> previous installation of DSpace.
> The installation process is basically the same but you need to use the
> DSpace-CRIS source code instead than the plain DSpace.
> Once the basic installation is done you should follow the step detailed in
> the getting started page 6 of the documentation
>
> https://github.com/4Science/DSpace/releases/download/dspace-cris-2021.02.00/dspace-cris7-2021_02_00-technical-documentation.pdf
>
> If you need additional help with DSpace-CRIS feel free to send email to
> this list or join the dspace slack workspace
> https://wiki.lyrasis.org/display/DSPACE/Slack
> where a specific dspace-cris channel exists.
>
> As Tim says, DSpace-CRIS is a different codebase and a separate project
> but it is part of the DSpace community at large and we like to keep the
> conversation and users together.
>
> At 4Science we are obviously also available for direct enquire on your
> specific project.
> Best,
> Andrea
>
> ------------------------------
> *From:* 'Tim Donohue' via DSpace Technical Support <
> [email protected]>
> *Sent:* Friday, November 5, 2021 3:42 PM
> *To:* DSpace Technical Support <[email protected]>
> *Subject:* [dspace-tech] Re: How can i install Dspace Cris 7 from Dspace 7
>
> Hi Toipx,
>
> DSpace-CRIS and DSpace are two separate systems & cannot be "installed" on
> each other.
>
>    - The DSpace-CRIS system is an open-source system
>    built/maintained/supported by 4Science, and their documentation can be
>    found at https://wiki.lyrasis.org/display/DSPACECRIS/  If you need
>    support on DSpace-CRIS, you will need to contact the 4Science team directly
>    (they are also on this list so they'll likely see your message here too).
>    DSpace-CRIS is based on DSpace, but it's a separate codebase & system with
>    separate support channels.
>    - The DSpace system is the open-source, community-supported platform
>    which is stewarded by LYRASIS & built/supported/maintained by members of
>    our worldwide community. It's documentation is available at
>    https://wiki.lyrasis.org/display/DSDOC7x/ and support questions
>    obviously may be asked on this list or any of the support options listed at
>    https://wiki.lyrasis.org/display/DSPACE/Support   As of v7, DSpace
>    also supports a few basic CRIS-like Entities which are documented at
>    https://wiki.lyrasis.org/display/DSDOC7x/Configurable+Entities
>
> Hopefully that helps clarify the differences between these systems.  Let
> us know on this list if you have other questions.
>
> Tim
>
> On Friday, November 5, 2021 at 6:46:17 AM UTC-5 [email protected] wrote:
>
> Hi support team,
> I installed Dspace 7, but i can not install Dspace Cris 7 on Dspace 7.
> I can not see any document which explain how to install Cris 7 on Dspace 7.
> Could you please give us the step to install Cris 7 on Dspace 7 .
>
> Thanks you so much,
> Toipx
>
> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.lyrasis.org%2Fabout%2FPages%2FCode-of-Conduct.aspx&data=04%7C01%7Candrea.bollini%404science.it%7Cc8565d90445148c86f9f08d9a06a8821%7C1d2fb68847ea4f129da3c222aa05a78c%7C1%7C0%7C637717201675341885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CX8Jw2Z46gepR%2F1KufWgbKJwNI3rP%2FJdHlVtHZ6rNIw%3D&reserved=0>
> ---
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/731f6daf-b689-4a5b-a4e8-efdd8b0ee081n%40googlegroups.com
> <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdspace-tech%2F731f6daf-b689-4a5b-a4e8-efdd8b0ee081n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Candrea.bollini%404science.it%7Cc8565d90445148c86f9f08d9a06a8821%7C1d2fb68847ea4f129da3c222aa05a78c%7C1%7C0%7C637717201675351838%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YtKi4%2BHR6DxypNUY6G7yvy22bTrcK6drZ5nIMUiHATk%3D&reserved=0>
> .
>
> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/DB9P189MB17075D13542194370D45D590D98F9%40DB9P189MB1707.EURP189.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/dspace-tech/DB9P189MB17075D13542194370D45D590D98F9%40DB9P189MB1707.EURP189.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
> .
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CABObMnoHL0_04Y03YFHF2gfwO3Qb9DDgwdDCKL4H7a397eeq9w%40mail.gmail.com.

Attachment: dspace.log
Description: Binary data

Reply via email to