首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >dspace创建-管理员失败

dspace创建-管理员失败
EN

Stack Overflow用户
提问于 2017-08-15 15:38:50
回答 2查看 2.2K关注 0票数 1

我正在安装dspace6.1src发行版。我在Suse 12.2。我仔细地遵循了installation instructions,遵循了this post中的思想,并在昨天和今天多次清理-重新安装-重试了创建管理员脚本和用户脚本。我总是得到相同的错误:

代码语言:javascript
复制
dspace@mycomputer:~/dspace_install> bin/dspace create-administrator
Exception: The schema validator returned: Unable to create requested 
service [org.hibernate.engine.spi.CacheImplementor]
org.dspace.core.exception.DatabaseSchemaValidationException: The 
schema validator returned: Unable to create requested service 
[org.hibernate.engine.spi.CacheImplementor]
    at org.dspace.core.Context.init(Context.java:170)
    at org.dspace.core.Context.<init>(Context.java:126)
    at org.dspace.administer.CreateAdministrator.<init>
(CreateAdministrator.java:101)
    at (org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)

我在网上的任何地方都没有发现这个错误。最接近的是上面那篇2015年的帖子。我的数据库在epersongroup表中没有默认条目,所以我添加了上面建议的条目(添加“匿名”和“管理员”组)。尽管如此,我还是得到了相同的错误。

如果有任何帮助,我将不胜感激!

EN

回答 2

Stack Overflow用户

发布于 2017-08-16 00:49:35

由于该错误报告了数据库模式的问题,因此我建议使用以下方法。

运行以下命令以查看数据库模式的状态

代码语言:javascript
复制
bin/dspace database info

您将看到如下所示的输出

代码语言:javascript
复制
+----------------+-----------------------------------------------------+---------------------+---------+
| Version        | Description                                         | Installed on        | State   |
+----------------+-----------------------------------------------------+---------------------+---------+
| 1              | << Flyway Baseline >>                               | 2017-07-25 18:26:49 | Baselin |
| 1.1            | Initial DSpace 1.1 database schema                  | 2017-07-25 18:26:50 | Success |
| 1.2            | Upgrade to DSpace 1.2 schema                        | 2017-07-25 18:26:50 | Success |
| 1.3            | Upgrade to DSpace 1.3 schema                        | 2017-07-25 18:26:50 | Success |
| 1.3.9          | Drop constraint for DSpace 1 4 schema               | 2017-07-25 18:26:50 | Success |
| 1.4            | Upgrade to DSpace 1.4 schema                        | 2017-07-25 18:26:50 | Success |
| 1.5            | Upgrade to DSpace 1.5 schema                        | 2017-07-25 18:26:51 | Success |
| 1.5.9          | Drop constraint for DSpace 1 6 schema               | 2017-07-25 18:26:51 | Success |
| 1.6            | Upgrade to DSpace 1.6 schema                        | 2017-07-25 18:26:51 | Success |
| 1.7            | Upgrade to DSpace 1.7 schema                        | 2017-07-25 18:26:51 | Success |
| 1.8            | Upgrade to DSpace 1.8 schema                        | 2017-07-25 18:26:51 | Success |
| 3.0            | Upgrade to DSpace 3.x schema                        | 2017-07-25 18:26:51 | Success |
| 4.0            | Upgrade to DSpace 4.x schema                        | 2017-07-25 18:26:51 | Success |
| 4.9.2015.10.26 | DS-2818 registry update                             | 2017-07-25 18:26:51 | Success |
| 5.0.2014.08.08 | DS-1945 Helpdesk Request a Copy                     | 2017-07-25 18:26:51 | Success |
| 5.0.2014.09.25 | DS 1582 Metadata For All Objects drop constraint    | 2017-07-25 18:26:51 | Success |
| 5.0.2014.09.26 | DS-1582 Metadata For All Objects                    | 2017-07-25 18:26:51 | Success |
| 5.6.2016.08.23 | DS-3097                                             | 2017-07-25 18:26:51 | Success |
| 5.7.2017.04.11 | DS-3563 Index metadatavalue resource type id column | 2017-07-25 18:26:51 | Success |
| 5.7.2017.05.05 | DS 3431 Add Policies for BasicWorkflow              | 2017-07-25 18:26:51 | Success |
| 6.0.2015.03.06 | DS 2701 Dso Uuid Migration                          | 2017-07-25 18:26:51 | Success |
| 6.0.2015.03.07 | DS-2701 Hibernate migration                         | 2017-07-25 18:26:51 | Success |
| 6.0.2015.08.31 | DS 2701 Hibernate Workflow Migration                | 2017-07-25 18:26:52 | Success |
| 6.0.2016.01.03 | DS-3024                                             | 2017-07-25 18:26:52 | Success |
| 6.0.2016.01.26 | DS 2188 Remove DBMS Browse Tables                   | 2017-07-25 18:26:52 | Success |
| 6.0.2016.02.25 | DS-3004-slow-searching-as-admin                     | 2017-07-25 18:26:52 | Success |
| 6.0.2016.04.01 | DS-1955 Increase embargo reason                     | 2017-07-25 18:26:52 | Success |
| 6.0.2016.04.04 | DS-3086-OAI-Performance-fix                         | 2017-07-25 18:26:52 | Success |
| 6.0.2016.04.14 | DS-3125-fix-bundle-bitstream-delete-rights          | 2017-07-25 18:26:52 | Success |
| 6.0.2016.05.10 | DS-3168-fix-requestitem item id column              | 2017-07-25 18:26:52 | Success |
| 6.0.2016.07.21 | DS-2775                                             | 2017-07-25 18:26:52 | Success |
| 6.0.2016.07.26 | DS-3277 fix handle assignment                       | 2017-07-25 18:26:52 | Success |
| 6.0.2016.08.23 | DS-3097                                             | 2017-07-25 18:26:52 | Success |
| 6.1.2017.01.03 | DS 3431 Add Policies for BasicWorkflow              | 2017-07-25 18:26:52 | Success |
+----------------+-----------------------------------------------------+---------------------+---------+

如果看到任何状态为"Success“的项目,请运行以下命令

代码语言:javascript
复制
bin/dspace database repair

如果您没有看到条目包含release 6.1,请运行以下命令

代码语言:javascript
复制
bin/dspace database migrate

希望这能解决这个问题。

票数 3
EN

Stack Overflow用户

发布于 2017-08-16 16:30:40

我刚和我的同事谈过,他发现了真正的问题。我们在同一台服务器上安装了两个Dspace实例,他在dspace-src/dspace/config目录中找到了hibernate ehcache (hibernate-ehcache-config.xml)的设置。我在上面的问题中发布的异常消息中提到了这一点。在hibernate- ehcache -config.xml中有一个警告,当您在同一台服务器上有多个dspace实例时,您需要单独的diskStore文件夹来存放hibernate ehcache。我为我的Dspace实例创建了一个单独的服务器,然后在local.cfg文件中颠倒了我对dspace.hostname的设置,这样它就可以在命令行上显示服务器域名和创建管理员。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45688408

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档