我正在运行Ubuntu:
# 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的本地实例:
# psql --version
psql (PostgreSQL) 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)这在OpenJDK 8上运行。
我在这里遵循了安装过程:
https://dotcms.com/docs/latest/installing-from-release
但是所有web请求都在客户端无声地失败,在服务器端,日志中充斥着这样的消息:
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页面.。
发布于 2019-03-08 21:54:59
因此,可能的罪魁祸首是DotCMS需要Java8,而我一直在运行OpenJDK 10,这导致了大量与持久性相关的NoClassDefFound错误,特别是有关激活库的错误。清除10和安装8,清除整个数据库和DotCMS实例,并再次重新启动,结果是一个成功的实例。
https://serverfault.com/questions/957420
复制相似问题