.BuildServer - Cannot find physical location

hi,

I've opened the ' 

logs/teamcity-server.log' file and looked inside and this is what i see:

[2015-09-14 10:04:28,011]   INFO - The TeamCity Data Directory path 'C:\Windows\System32\config\systemprofile\.BuildServer' is stored in 'C:\TeamCity\conf\teamcity-startup.properties'
[2015-09-14 10:04:28,011]   INFO -  jetbrains.buildServer.STARTUP - Creating Data Directory: C:\Windows\System32\config\systemprofile\.BuildServer

However when i use explorer to get to this path there is no /BuildServer there.

Can anyone tell me where the Data Directory is actually?
13 comments
Comment actions Permalink

Hi Stephen,

According to the log the actual TeamCity data directory path is 'C:\Windows\System32\config\systemprofile\.BuildServer', the folder name begins with a dot. You can double check it on the Administration | Global Settings page for a running TeamCity server instance. If path is the same, but you still do not see the Data directory, then please check that this folder is not hidden and should be visible for this user.

0
Comment actions Permalink

I have the same error. I went to the folder specified in Global Settings -> Data Directory but i dont see .BuildServer folder. I already enabled showing hidden folders and files but still have no luck. When i click browse besides the data directory path it shows the files. See logs and screenshots below.

Planning to restore project that i deleted by moving it from _trash to project.

teamcity-server.log
[2015-10-28 23:06:43,733]   INFO -  jetbrains.buildServer.STARTUP - The TeamCity Data Directory "C:\Windows\System32\config\systemprofile\.BuildServer" exists
[2015-10-28 23:06:43,744]   INFO -  jetbrains.buildServer.STARTUP - The main configuration file "C:\Windows\System32\config\systemprofile\.BuildServer\config\main-config.xml" exists
[2015-10-28 23:06:43,744]   INFO -  jetbrains.buildServer.STARTUP - The database properties file "C:\Windows\System32\config\systemprofile\.BuildServer\config\database.properties" exists



Attachment(s):
buildserver.png
0
Comment actions Permalink

Hi Rod,

Please check that TeamCity server installed on the same machine where you try to find the Data directory. Under which user is TeamCity server running? Could you please login under the same user and check if the Data directory is visible?

0
Comment actions Permalink

Hi Alina,

I verified its the same server as the team city is installed. I also tried openning explorer as administrator but still the same. See attached screnshot. In screenshot at the top is explorer using my account, second window is the exploerer using adminstrator account (usng run as administrator), and third window at the bottom is the team city global settings where it points the location of Data Directory.

Still have no luck. But when I click browse link besides the Data Directory, it shows all the contents of the folder. Not sure what i missed.

Need this to restore the project i accidentally deleted by moving it from _trash folder to projects folder.

Thanks!
Rod



Attachment(s):
teamcity-dir.png
0
Comment actions Permalink

Does the folder C:\ProgramData\JetBrains\TeamCity\ exist?

0
Comment actions Permalink

Hi Helios, there is hidden ProgramData folder but no Jetbrains or TeamCity folder under it. see screenshots.



Attachment(s):
programdata.png
0
Comment actions Permalink
Did you try to search for the folder named artifacts?
0
Comment actions Permalink

No artifacts foldr or file under Programdata folder. Tried also searching jetbrains and teamcity under programdata folder no file/folder found.

0
Comment actions Permalink
Please search the c:\ drive. (sometimes we have to apply non-sophisticated methods :-))
0
Comment actions Permalink

No artifacts/artifact folder or file in drive c either

0
Comment actions Permalink

Rod,

It's really strange.
What user Teamcity runs under? Could you try to open explorer under the same user and search all disks for "main-config.xml" file for example?

0
Comment actions Permalink

Yep it is. I tried searching the file see attached for the result. It found it in the backup file i created. The drive C is the drive where team city is installed.



Attachment(s):
teamcityfonfig.png
0
Comment actions Permalink

Hi Rod,

As a wild guess please check C:\Windows\SysWOW64\config\systemprofile\ directory. If TeamCity is running using 32-bit JRE and Windows system is 64-bit, 32-bit process will place resources at "C:\Windows\sysWOW64\config\systemprofile"

0

Please sign in to leave a comment.