docker启动iserver多进程失败。

0 投票
学习docker过程中安装了iserver最新镜像,能正常使用,然后我开启了多进程并重启iserver容器,报404错误,请问如何解决?(如果不开启多进程重启iserver容器是正常的)
4月 7 分类:  119次浏览 | 用户: Q行天下 学富五车 (543 分)

1个回答

0 投票
你好,1.只开两个进程是否正常,2.看下端口是否正常,3.iserver.log和catlina.log有什么报错
4月 8 用户: 李熙y 名扬四海 (4,524 分)

开两个进程也不正常。日志如下,评论800字限制,部分日志没贴全。/etc/icloud/SuperMap/logs/iserver.log

	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:170)
	... 45 more
2020-4-8 02:21:45 - ERROR - 启动服务失败。  
java.lang.IllegalStateException: org.sqlite.SQLiteException: [SQLITE_BUSY]  The database file is locked (database is locked)
	at com.supermap.server.impl.RequestPerformanceRecordDAO.a(SourceFile:129)
	at com.supermap.server.impl.RequestPerformanceRecordDAO.<init>(SourceFile:59)
	at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:179)
	at com.supermap.server.host.webapp.ApplicationFilter.a(SourceFile:80)
	at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:123)
	at com.supermap.server.host.webapp.ApplicationFilter$1.call(SourceFile:120)
	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 com.supermap.services.util.DelegatingErrorHandlingCallable$ReflectInvoker.a(SourceFile:177)
	at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(SourceFile:102)
	at com.supermap.server.host.webapp.ApplicationFilter.init(SourceFile:158)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:283)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4546)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5191)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.sqlite.SQLiteException: [SQLITE_BUSY]  The database file is locked (database is locked)
	at org.sqlite.core.DB.newSQLException(DB.java:941)
	at org.sqlite.core.DB.newSQLException(DB.java:953)
	at org.sqlite.core.DB.throwex(DB.java:918)
	at org.sqlite.core.NativeDB._exec_utf8(Native Method)
	at org.sqlite.core.NativeDB._exec(NativeDB.java:94)
	at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:109)
	at com.supermap.server.impl.RequestPerformanceRecordDAOInitializer.init(SourceFile:36)
	at com.supermap.server.impl.RequestPerformanceRecordDAO.a(SourceFile:127)
	... 28 more

...