首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DotCMS所有请求都失败

DotCMS所有请求都失败
EN

Server Fault用户
提问于 2019-03-08 19:01:01
回答 1查看 164关注 0票数 0

我正在运行Ubuntu:

代码语言:javascript
复制
# uname -a
Linux host-38sigregt 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"

将DotCMS 5.0.3放在其嵌入实例Tomcat 8.5.32上,配置为命中PostgreSQL 10.6的本地实例:

代码语言:javascript
复制
# psql --version
psql (PostgreSQL) 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)

这在OpenJDK 8上运行。

我在这里遵循了安装过程:

https://dotcms.com/docs/latest/installing-from-release

但是所有web请求都在客户端无声地失败,在服务器端,日志中充斥着这样的消息:

代码语言:javascript
复制
13:47:56.025  WARN  cache.LegacyContentTypeCacheImpl - Structure with inode: 'host' not found in db
13:47:56.027  WARN  web.HostWebAPIImpl - Content Index is fouled up, need to try db: Failed to execute phase [query], all shards failed; shardFailures {[jW
PklQWCTuWnXaHsidwH1w][working_20190308122136][0]: RemoteTransportException[[a2e07940-4a77-4937-9e50-470504ff25e9][127.0.0.1:9300][indices:data/read/search[
phase/query]]]; nested: QueryShardException[No mapping found for [moddate] in order to sort on]; }
13:47:56.029  ERROR business.HostAPIImpl - Content Type with id:'Host' not found
com.dotcms.contenttype.exception.NotFoundInDbException: Content Type with id:'Host' not found
13:47:56.029  ERROR filters.ThreadNameFilter - Unable to retrieve current request host for URI /
13:47:56.030  ERROR filters.CookiesFilter - Exception processing Cookies
javax.servlet.ServletException: Content Type with id:'Host' not found

我曾试图研究这个问题,但已干巴巴的。我有交叉张贴到DotCMS Github页面.

EN

回答 1

Server Fault用户

发布于 2019-03-08 21:54:59

因此,可能的罪魁祸首是DotCMS需要Java8,而我一直在运行OpenJDK 10,这导致了大量与持久性相关的NoClassDefFound错误,特别是有关激活库的错误。清除10和安装8,清除整个数据库和DotCMS实例,并再次重新启动,结果是一个成功的实例。

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

https://serverfault.com/questions/957420

复制
相关文章

相似问题

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