Restarted the Jira and confluence services
Jira service Normal, webpage normal access, confluence port is pass, ping ip,ping domain name All pass, just can't open webpage, report 404
Cd/home/confluence/logs
Tail-f catalina.out waiting to view boot log
New open a server SSH connection
Cd/home/confluence/bin
./stop-confluence.sh #停止之前的服务,
Ps-ef to see if the process exists, if there is a kill-9 process number
#等待查看日志的连接会显示出关闭服务的日志, enter the empty travel, easy to see the following startup log
./start-confluence.sh #启动服务同时查看
View Startup Log # Here is a little bit, a face, error check a lot of useless
Focus: Online to find out that the start of the log is not so detailed, you need to/home/confluence/confluence/web-inf/classes in this directory to create a new logging.properties, add a configuration file
Cd/home/confluence/bin
./stop-confluence.sh #先停止服务
Cd/home/confluence/confluence/web-inf/classes
LS check See already contains logging.properties this file, then put inside the configuration directly annotated, add on the search to the configuration
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
Save
Cd/home/confluence/bin
./start-confluence.sh #启动服务
Check the startup log at the same time, the log is much older ....
Find the log in severe representative serious, other info information, warning warning will not look at the first
Severe:exception Starting filter Legacyremoteapieventpublishingfilter
#严重: Abnormal start filter 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 beans 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 beans with Name ' Osgipluginfactory ' defined in class path resource [Services/pluginservicecontext.xml]: Cannot resolve reference to Bean ' O Sgipersistentcache ' while SettiNg constructor argument; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans 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
#标红的重点: Unable to clean cache directory:/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 fail Ed Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans 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 beans with Name ' Useri18nbeanfactory ' defined in class path resource [I18ncontext.xml]: Cannot resolve reference to bean ' Localemanager ' wh Ile Setting bean property ' Localemanager '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Localemanager ' defined in CLass path resource [I18ncontext.xml]: Cannot resolve reference to beans ' languagemanager ' while setting bean property ' lang Uagemanager '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Languagemanager ' defined in class path resource [Applicationcontext.xml]: Cannot resolve reference to bean ' settingsmanage R ' while setting beans property ' SettingsManager '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans 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 beans with Name ' Upgrademanager ' defined in class path resource [Upgradesubsystemcontext.xml]: Cannot resolve reference to bean ' Conditiona Llyenablemailarchivepluginupgradetask ' while setting beans property ' PlugindePendentupgradetasks ' with key [0]; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Conditionallyenablemailarchivepluginupgradetask ' defined in class path resource [Upgradesubsystemcontext.xml]: Cannot Resolve reference to Beans ' plugincontroller ' while setting constructor argument; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Plugincontroller ' defined in class path resource [Services/pluginservicecontext.xml]: Cannot resolve reference to bean ' pl Uginmanager ' while setting beans property ' Plugincontroller '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' PlugInManager ' defined in class path resource [Services/pluginservicecontext.xml]: Cannot resolve reference to bean ' Plugi Nloaders ' 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 Referen Ce to Bean ' bundledpluginloader ' and setting constructor argument with key [0]; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans 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 beans with Name ' Osgipluginfactory ' defined in class path resource [Services/pluginservicecontext.xml]: Cannot resolve reference to Bean ' O Sgipersistentcache ' while setting constructor argument; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans 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 BEA N ' databasepluginloadertarget ' while setting beans property ' target '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Databasepluginloadertarget ' defined in class path resource [Services/pluginservicecontext.xml]: Cannot resolve Reference to Bean ' osgipluginfactory ' and setting constructor argument with key [1]; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Osgipluginfactory ' defined in class path resource [Services/pluginservicecontext.xml]: Cannot resolve reference to Bean ' O Sgipersistentcache ' while setting constructor argument; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans 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
Should be to clean up these caches, the Internet in search, there are similar is to delete them all, in the start service, insurance, first dozen a bag to copy a copy and then delete
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
After the successful launch, browsing the Web page opened, the whole two days ...
Confluence and Jira restart after confluence error, open the page