重启了jira和confluence服务
jira服务正常,网页正常访问,confluence端口是通的,ping IP,ping域名都通,就是打不开网页,报404
cd /home/confluence/logs
tail -f catalina.out 等待查看启动日志
新打开一个服务器ssh连接
cd /home/confluence/bin
./stop-confluence.sh #停止之前的服务,
ps -ef 查看进程是否存在,如果还存在kill -9 进程号
#等待查看日志的连接会显示出关闭服务的日志,回车空出行,方便看下面的启动日志
./start-confluence.sh #启动服务同时查看
查看启动日志#这里就略了,一脸懵,报错查了很多没什么用
重点:网上查到了说启动的日志不是那么详细,需要在这个目录下/home/confluence/confluence/WEB-INF/classes新建logging.properties,添加配置文件
cd /home/confluence/bin
./stop-confluence.sh #先停止服务
cd /home/confluence/confluence/WEB-INF/classes
ls查看到已经包含了logging.properties这个文件,那就把里面配置直接注释了,添加上搜索到的配置
vi logging.properties
#略
#略
#略
##新的配置文件
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = error-debug.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
保存
cd /home/confluence/bin
./start-confluence.sh #启动服务
同时查看启动日志,日志老多了。。。。。。。
找到日志中SEVERE代表严重,其他的INFO信息,WARNING警告就先不看了
SEVERE: Exception starting filter legacyRemoteApiEventPublishingFilter
#严重:异常启动过滤器legacyRemoteApiEventPublishingFilter
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hostComponentProvider‘: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.plugin.spring.SpringHostComponentProviderFactoryBean.setSpringHostComponentProviderConfig(com.atlassian.plugin.spring.SpringHostComponentProviderConfig); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bundledPluginLoader‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘osgiPluginFactory‘ while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘osgiPluginFactory‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘osgiPersistentCache‘ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘osgiPersistentCache‘: FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /mnt/atlassian/confluence/plugins-osgi-cache/felix
#标红的重点:无法清理缓存目录:/mnt/atlassian/confluence/plugins-osgi-cache/felix
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cacheStatisticsManager‘ defined in class path resource [services/cacheServiceContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ehCacheStatisticsManager‘ defined in URL [jar:file:/home/confluence/webapps/../confluence/WEB-INF/lib/confluence-cache-ehcache-6.4.0.jar!/cacheProviderContext.xml]: Cannot resolve reference to bean ‘userI18NBeanFactory‘ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userI18NBeanFactory‘ defined in class path resource [i18NContext.xml]: Cannot resolve reference to bean ‘localeManager‘ while setting bean property ‘localeManager‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘localeManager‘ defined in class path resource [i18NContext.xml]: Cannot resolve reference to bean ‘languageManager‘ while setting bean property ‘languageManager‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘languageManager‘ defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean ‘settingsManager‘ while setting bean property ‘settingsManager‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘settingsManager‘ defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean ‘upgradeManager‘ while setting bean property ‘upgradeManager‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘upgradeManager‘ defined in class path resource [upgradeSubsystemContext.xml]: Cannot resolve reference to bean ‘conditionallyEnableMailArchivePluginUpgradeTask‘ while setting bean property ‘pluginDependentUpgradeTasks‘ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘conditionallyEnableMailArchivePluginUpgradeTask‘ defined in class path resource [upgradeSubsystemContext.xml]: Cannot resolve reference to bean ‘pluginController‘ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pluginController‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘pluginManager‘ while setting bean property ‘pluginController‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pluginManager‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘pluginLoaders‘ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pluginLoaders‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘bundledPluginLoader‘ while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bundledPluginLoader‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘osgiPluginFactory‘ while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘osgiPluginFactory‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘osgiPersistentCache‘ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘osgiPersistentCache‘: FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /mnt/atlassian/confluence/plugins-osgi-cache/felix
#又一次看到
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘databasePluginLoader‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘databasePluginLoaderTarget‘ while setting bean property ‘target‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘databasePluginLoaderTarget‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘osgiPluginFactory‘ while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘osgiPluginFactory‘ defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean ‘osgiPersistentCache‘ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘osgiPersistentCache‘: FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /mnt/atlassian/confluence/plugins-osgi-cache/felix
#又出现了
cd /mnt/atlassian/confluence/plugins-osgi-cache/felix
ls
felix-cache #存在目录
cd felix-cache
ls
应该是要清理这些缓存,上网在搜一下,有相似的就是把它们都删了,在启动服务,保险起见先打个包往出拷一份再删
cd /home/confluence/bin
./stop-confluence.sh
cd /mnt/atlassian/confluence/plugins-osgi-cache/felix
tar -czf felix-cache.tar.gz felix-cache/
sz felix-cache.tar.gz #考到我的本地电脑里
rm -rf felix-cache
cd /home/confluence/bin
./start-confluence.sh
启动成功后,浏览网页打开了,整了两天。。。
原文地址:https://www.cnblogs.com/gz-eternity/p/9359783.html