首页 / 浏览问题 / 云GIS / 问题详情
iserver linux部署,启动失败
4EXP 2022年03月05日
2022-3-5 11:04:35 - INFO - iServer的home目录为:/home/supermap-iserver-10.2.0/webapps/iserver/  
2022-3-5 11:04:35 - INFO - iServer的ContextPath为:/iserver  
2022-3-5 11:04:35 - INFO - iServer的配置文件路径为:/home/supermap-iserver-10.2.0/webapps/iserver/WEB-INF  
2022-3-5 11:04:38 - INFO - com.supermap.services.rest.encoders.BigDataJsonDecoderResolver  
2022-3-5 11:04:39 - INFO - tokenName is blank  
2022-3-5 11:04:40 - INFO - 环境检查是否开启:true  
2022-3-5 11:04:40 - INFO - 许可检查是否通过:true  
2022-3-5 11:04:40 - INFO - iServer期望使用的UGO版本是:10.2.0.20128  
2022-3-5 11:04:40 - INFO - iServer实际使用的UGO版本是:10.2.0.20128  
2022-3-5 11:04:40 - INFO - iServer实际使用的UGO路径是:/home/supermap-iserver-10.2.0/support/objectsjava/bin  
2022-3-5 11:04:40 - INFO - UGO版本检查是否通过:true  
2022-3-5 11:04:40 - INFO - iServer期望使用的Java最低版本是:1.8  
2022-3-5 11:04:40 - INFO - iServer实际使用的Java版本是:1.8.0_77-Ubuntu  
2022-3-5 11:04:40 - INFO - iServer实际使用的Java路径是:/home/supermap-iserver-10.2.0/support/jre  
2022-3-5 11:04:40 - INFO - Java版本检查是否通过: true  
2022-3-5 11:04:42 - ERROR - 启动服务失败。  
java.lang.UnsatisfiedLinkError: com.supermap.data.EnvironmentNative.jni_GetBasePath()Ljava/lang/String;
    at com.supermap.data.EnvironmentNative.jni_GetBasePath(Native Method)
    at com.supermap.data.Environment.getUGOBasePath(Environment.java:617)
    at com.supermap.data.Environment.<clinit>(Environment.java:47)
    at com.supermap.services.providers.WorkspaceContainer.<clinit>(WorkspaceContainer.java:55)
    at com.supermap.server.impl.ServerImpl.setCheckDatasourceConnectionInterval(ServerImpl.java:1140)
    at com.supermap.server.impl.ServerImpl.doStart(ServerImpl.java:1047)
    at com.supermap.server.impl.ServerImpl.start(ServerImpl.java:400)
    at com.supermap.server.host.webapp.handlers.BasicHandler.startServer(BasicHandler.java:689)
    at com.supermap.server.host.webapp.handlers.BasicHandler.loadServer(BasicHandler.java:375)
    at com.supermap.server.host.webapp.handlers.BasicHandler.doInit(BasicHandler.java:656)
    at com.supermap.server.host.webapp.handlers.BasicHandler.init(BasicHandler.java:187)
    at com.supermap.server.host.webapp.ApplicationFilter.doInit(ApplicationFilter.java:214)
    at com.supermap.server.host.webapp.ApplicationFilter.access$000(ApplicationFilter.java:80)
    at com.supermap.server.host.webapp.ApplicationFilter$1.call(ApplicationFilter.java:123)
    at com.supermap.server.host.webapp.ApplicationFilter$1.call(ApplicationFilter.java: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.invoke(DelegatingErrorHandlingCallable.java:177)
    at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(DelegatingErrorHandlingCallable.java:102)
    at com.supermap.server.host.webapp.ApplicationFilter.init(ApplicationFilter.java:158)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4607)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5258)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1177)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925)
    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:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2022-3-5 11:04:43 - INFO - 许可检查是否通过:true  
2022-3-5 11:04:43 - INFO - 正在销毁所有服务!  
2022-3-5 11:11:51 - ERROR - 启动服务失败。  
java.lang.IllegalStateException: org.sqlite.SQLiteException: [SQLITE_BUSY]  The database file is locked (database is locked)
    at com.supermap.server.impl.RequestPerformanceRecordDAO.init(RequestPerformanceRecordDAO.java:129)
    at com.supermap.server.impl.RequestPerformanceRecordDAO.<init>(RequestPerformanceRecordDAO.java:59)
    at com.supermap.server.host.webapp.ApplicationFilter.doInit(ApplicationFilter.java:179)
    at com.supermap.server.host.webapp.ApplicationFilter.access$000(ApplicationFilter.java:80)
    at com.supermap.server.host.webapp.ApplicationFilter$1.call(ApplicationFilter.java:123)
    at com.supermap.server.host.webapp.ApplicationFilter$1.call(ApplicationFilter.java: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.invoke(DelegatingErrorHandlingCallable.java:177)
    at com.supermap.services.util.DelegatingErrorHandlingCallable.invokeQuietly(DelegatingErrorHandlingCallable.java:102)
    at com.supermap.server.host.webapp.ApplicationFilter.init(ApplicationFilter.java:158)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4607)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5258)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1177)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1925)
    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:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.sqlite.SQLiteException: [SQLITE_BUSY]  The database file is locked (database is locked)
    at org.sqlite.core.DB.newSQLException(DB.java:1030)
    at org.sqlite.core.DB.newSQLException(DB.java:1042)
    at org.sqlite.core.DB.throwex(DB.java:1007)
    at org.sqlite.core.NativeDB._exec_utf8(Native Method)
    at org.sqlite.core.NativeDB._exec(NativeDB.java:97)
    at org.sqlite.jdbc3.JDBC3Statement.executeUpdate(JDBC3Statement.java:102)
    at com.supermap.server.impl.RequestPerformanceRecordDAOInitializer.init(RequestPerformanceRecordDAOInitializer.java:36)
    at com.supermap.server.impl.RequestPerformanceRecordDAO.init(RequestPerformanceRecordDAO.java:127)
    ... 28 more

1个回答

您好,根据您的报错信息可能是因为iserver之前启动的相关进程还在没有完全关闭,内置数据库重复启动就会导致被锁。检查是否存在有遗留进程,如iServer守护进程仍有驻留,ps -ef |grep iserver查看iServer进程,如有kill掉该进程,(当iServer尚未完全关闭时又重新启动iServer会出现数据库被锁定的现象[SQLITE_BUSY]  The database file is locked (database is locked)),然后多执行几遍shutdown,再启动iserver。

3,148EXP 2022年03月07日
...