Teamcity (7.1.5) is not working

Hi,

I am getting error:

[2015-01-19 05:03:11,091]   INFO -   jetbrains.buildServer.SERVER - Done prefetching changes
[2015-01-19 05:03:11,091]   INFO -   jetbrains.buildServer.SERVER - Start loading cache of build committers...
[2015-01-19 05:03:21,106]  ERROR -   jetbrains.buildServer.SERVER - Failed to load TeamCity configuration. jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
java.lang.RuntimeException: jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl.calculateFirstBuilds(ModificationStateCalculatorImpl.java:116)
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl.getFirstBuildsWithModificationIncluded(ModificationStateCalculatorImpl.java:33)
at jetbrains.buildServer.vcs.impl.AbstractVcsModification.getFirstBuilds(AbstractVcsModification.java:36)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.loadBuildsFromHistory(CommittedBuildsHolderImpl.java:48)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.getBuildsMap(CommittedBuildsHolderImpl.java:151)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.loadCache(CommittedBuildsHolderImpl.java:6)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.start(CommittedBuildsHolderImpl.java:45)
at jetbrains.buildServer.web.impl.BuildServerConfigurator.setupBuildServer(BuildServerConfigurator.java:39)
at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:38)
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:17)
at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:137)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:369)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:20)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:378)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:507)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Unknown Source)
Caused by: jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
at jetbrains.buildServer.vcs.impl.AbstractVcsModification.getVcsRoot(AbstractVcsModification.java:51)
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl$3.run(ModificationStateCalculatorImpl.java:8)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl$2.run(SecurityContextImpl.java:1)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:24)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:12)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:2)
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl.calculateFirstBuilds(ModificationStateCalculatorImpl.java:149)
... 16 more
[2015-01-19 05:03:21,106]  ERROR -  jetbrains.buildServer.STARTUP - Exception UnknownServerStartupError in stage APPLICATION_STARTING: Could not create the main application servlet: Failed to load TeamCity configuration. jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
jetbrains.buildServer.maintenance.exceptions.UnknownServerStartupError: Could not create the main application servlet: Failed to load TeamCity configuration. jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:12)
at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:137)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:369)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:20)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:378)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:507)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Failed to load TeamCity configuration. jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:12)
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:17)
... 7 more
Caused by: java.lang.RuntimeException: jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl.calculateFirstBuilds(ModificationStateCalculatorImpl.java:116)
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl.getFirstBuildsWithModificationIncluded(ModificationStateCalculatorImpl.java:33)
at jetbrains.buildServer.vcs.impl.AbstractVcsModification.getFirstBuilds(AbstractVcsModification.java:36)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.loadBuildsFromHistory(CommittedBuildsHolderImpl.java:48)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.getBuildsMap(CommittedBuildsHolderImpl.java:151)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.loadCache(CommittedBuildsHolderImpl.java:6)
at jetbrains.buildServer.status.CommittedBuildsHolderImpl.start(CommittedBuildsHolderImpl.java:45)
at jetbrains.buildServer.web.impl.BuildServerConfigurator.setupBuildServer(BuildServerConfigurator.java:39)
at jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:38)
... 8 more
Caused by: jetbrains.buildServer.vcs.VcsRootNotFoundException: VCS root does not exist
at jetbrains.buildServer.vcs.impl.AbstractVcsModification.getVcsRoot(AbstractVcsModification.java:51)
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl$3.run(ModificationStateCalculatorImpl.java:8)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl$2.run(SecurityContextImpl.java:1)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:24)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:12)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:2)
at jetbrains.buildServer.serverSide.impl.ModificationStateCalculatorImpl.calculateFirstBuilds(ModificationStateCalculatorImpl.java:149)
... 16 more
[2015-01-19 05:03:21,200]   INFO -  jetbrains.buildServer.STARTUP - Current stage: TeamCity server startup error
[2015-01-19 05:03:21,200]   INFO -  jetbrains.buildServer.STARTUP - Administrator login is required from web UI using authentication token: 6254005618877017370

Any Idea?

Is there any way i could clean existing teamcity database  ?

7 comments
Comment actions Permalink

Hi, what lead TC to generate these errors?

It looks like you've deleted one of the configuration file under <TC Data Directory>/config/projects/<project name>/vcsRoots

0
Comment actions Permalink

I am using version 7.1.5 and could see

vcs-roots.xml under \TEAMCITY\.BuildServer\config .. I am not sure what is deleted ? Could you please help me to understand it? I don;t see Projects folder <TC Data Directory>/config though could see vcs-roots.xml only.

0
Comment actions Permalink

Are there files named vcs-roots.xml.1, .2, etc.?

0
Comment actions Permalink

Yes..

getting one more error:

[2015-01-23 09:47:07,482]   INFO -  jetbrains.buildServer.STARTUP - Database version is 0
[2015-01-23 09:47:07,482]  ERROR -  jetbrains.buildServer.STARTUP - Could not determine database version.
[2015-01-23 09:47:07,482]   INFO -  jetbrains.buildServer.STARTUP - Current stage: TeamCity server startup error

0
Comment actions Permalink

Please check that your database contains table called db_version and that TC has an access to it.

Also, what happened to the database?

0
Comment actions Permalink

Upgraded to 9 but getting error:

[2015-01-23 11:37:36,133] FileTaskSettings                  [Info] Parsing service settings
[2015-01-23 11:37:36,133] FileTaskSettings                  [Info] Program to execute:   C:\WINNT\system32\cmd.exe
[2015-01-23 11:37:36,133] FileTaskSettings                  [Info] Program arguments:    /c teamcity-server.bat run service
[2015-01-23 11:37:36,133] FileTaskSettings                  [Info] Program work dir:     F:\TEAMCITY\bin
[2015-01-23 11:37:36,133] FileTaskSettings                  [Info] Program stop timeout: 900000
[2015-01-23 11:37:36,133] CreateServiceSettingsAction       [Info] Service log file is set to: F:\TEAMCITY\logs\teamcity-winservice.log
[2015-01-23 11:37:36,320] CheckLogonAsServiceCommand        [Info] User logged in as service
[2015-01-23 11:37:36,680] CreateServiceCommand              [Info] Service 'TeamCity' was created
[2015-01-23 11:37:36,758] ServiceGrantDACLCommand          [Error] Failed to get service object security. Attempt to access invalid address. (487)
[2015-01-23 11:37:36,758] CreateServiceAction               [Warn] Failed to grant rights for user.
[2015-01-23 11:37:36,758] CreateServiceAction               [Warn] To disable this check add '/changeDACL=false' commandline parameter
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]
[2015-01-23 11:37:36,758] CreateServiceAction               [Info] Use the folloging commands to start/stop the service:
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]   net.exe start TeamCity
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]     to start service
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]   net.exe stop TeamCity
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]     to stop service
[2015-01-23 11:37:36,758] CreateServiceAction               [Info]

0
Comment actions Permalink

What command do you execute to get this error?

0

Please sign in to leave a comment.