4
votes

I have managed to install TeamCity successfully, with a BuildAgent running.

However, after running runall stop, followed by runall start, I get the following error:

error in script file line: 41 file input/output errorerror java.io.FileNotFoundException: C:\ProgramData\JetBrains\TeamCity\system\buildserver.data (Access is denied) opening file - file C:/ProgramData/JetBrains/TeamCity/system/buildserver.data
SQL exception: error in script file line: 41 file input/output errorerror java.io.FileNotFoundException: C:\ProgramData\JetBrains\TeamCity\system\buildserver.data (Access is denied) opening file - file C:/ProgramData/JetBrains/TeamCity/system/buildserver.data

The file exists in the directory What could be the issue?

I am using TeamCity 8.1

3
Did you find the solution?Jake Lin

3 Answers

3
votes

Looks like the problem is one of folder permissions which causes me to suspect that the user that the TeamCity Windows service runs as doesn't have read/write access to the folder where you chose to store your TeamCity data.

0
votes

I had the same problem for my local windows installation. The solution is easy run startup.but script as administrator.

-1
votes

The answer is the oldest trick in the book..

After restarting the computer, it works.