Tomcat6 Teamcity 5.x WAR 部署数据库错误
我正在尝试将 Teamcity 部署到我的 Tomcat 服务器 [由 Apache2 负责]。但是,当我尝试访问 Teamcity 时,出现以下数据库错误。我希望它使用内部数据库,并且在使用与 Tomcat6 捆绑在一起的安装时工作正常,但现在我尝试将其解耦,但它失败了。
SQL error when doing: Connecting to HSQLDB
SQL exception: The database is already in use by another process: lockFile: org.hsqldb.persist.LockFile@d54a1b4d[file =/etc/tomcat6/.BuildServer/system/buildserver.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /etc/tomcat6/.BuildServer/system/buildserver.lck (No such file or directory)
I'm trying to deploy Teamcity to my Tomcat server [fronted by Apache2]. However, when I try to access Teamcity I get the following DB error. I am wanting it to use the internal DB and it was working fine when using the installation that comes bundled with Tomcat6, but now I've tried to decouple it it is failing.
SQL error when doing: Connecting to HSQLDB
SQL exception: The database is already in use by another process: lockFile: org.hsqldb.persist.LockFile@d54a1b4d[file =/etc/tomcat6/.BuildServer/system/buildserver.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /etc/tomcat6/.BuildServer/system/buildserver.lck (No such file or directory)
我认为您尝试部署 TeamCity 的 war 文件。
要解决此问题,您不必部署 war 文件,而是部署扩展的 TeamCity.war 目录。
否则,您可能同时部署 war 和未打包的 war,这将导致错误。
I think you tried to deploy TeamCity's war file.
To fix the problem, you have to deploy not the war file, but expanded TeamCity.war directory.
Otherwise, you may deploy both war and unpacked war, and this will lead to the error.