Extrakun
Extrakun

Reputation: 19305

TeamCity installed successfully, but unable to restart after shutdown

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

Upvotes: 4

Views: 1040

Answers (3)

Extrakun
Extrakun

Reputation: 19305

The answer is the oldest trick in the book..

After restarting the computer, it works.

Upvotes: -1

yaroslavTir
yaroslavTir

Reputation: 721

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

Upvotes: 0

Codatrix
Codatrix

Reputation: 126

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.

Upvotes: 3

Related Questions