Moving the .BuildServer folder

Hi,

I'm running TeamCity Server 5.0 (Build 10669). The .BuildServer folder currently lives in a User directory i.e. c:\users\build\.BuildServer. This was the default during install but it is now causing problems because of its size. I have another drive on this server where I would like to move the .BuildServer folder to i.e. d:\.BuildServer. Based on the docs and discussions in this forum, I have tried to the following to change this:



1. Shutdown TeamCity service
2. Copied the .BuildServer from the users directory to the other drive
3. Run tomcat6w.exe //ES//TeamCity and set the teamcity.data.path option to the new directory:  -Dteamcity.data.path=d:\.BuildServer
4. Restarted the TeamCity service

However, after all this I get the following error:

[2010-05-27 14:56:49,152]   WARN -   jetbrains.buildServer.SERVER - Server startup exception: jetbrains.buildServer.serverSide.db.UnexpectedDBException: SQL error when doing: Connecting to HSQLDB
SQL exception: The database is already in use by another process: lockFile: org.hsqldb.persist.LockFile@977e828c[file =D:\.BuildServer\system\buildserver.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: D:\.BuildServer\system\buildserver.lck (The system cannot find the path specified)


Any ideas how I can achieve this?


Thanks
Colin
5 comments

Hello Colin,

This problem might occur when the  database has not be shut down correct.
Usually, in order to solve it you can just kill all java processes and then delete the HSQL lock file (it is D:\.BuildServer\system\buildserver.lck in your case).

Kind regards,
Marina

0

Hi Marina,

I made sure there wasn't anything running prior to beginning this process. And the lck file wasn't present on the system either.

Is there anything else that could cause this?

Thanks
Colin

0

Hi Colin,

if there are no .lck files in the system subdirectory, it seam HSQL could not create one because it has no enough rights. As you said you're starting TC using a Windows service. This service has no write rights for this directory, am I right?

Best regards,
Leonid

0

Hi Leonid,

Sorry I'm just returning to this after a few days doing other things.

You may be right about permissions I'll have a play about again to see if I can get it working and then report back.

Thanks
Colin

0

Hi,

I changed the TeamCity service to log in as a user that has write permissions to the new directory and that solved the problem.

Thanks for the help.
Colin

0

Please sign in to leave a comment.