TEAMCITY_APP_DIR environment variable not found.

Hi, I am trying to move our teamcity database onto a new server in hopes to upgrading a to a new version of teamcity. I have been following a tutorial on how to set it up and everything is going good until I run this command "C:\ProgramData\JetBrains\TeamCity\bin\maintainDB restore -F C:\Users\XXX\Downloads\test_20151105_154716.zip -A c:\ProgramData\JetBrains\TeamCity\Server\.BuildServer -T C:\database.properties" When I run this command it gives me the error "TEAMCITY_APP_DIR environment variable not found." I have checked and made sure the path is correct, Set the enviroment variable to the correct path in windows, along with made sure all the jave variables are correct.The version of teamcity is 6.0 and plan on upgrading to 9.0 if I can get this working. Any ideas would be super helpful, I have been tasked with getting this complete around christmas time when we have down time and have been fighting this error for the pass couple days.

5 comments

Some more information, I seemed to have fixed the variable issue, but now when trying to run that command I get a 'append.bat' is not recognized as an internal or external command, operable program or batch file.

0

Hello,

TeamCity 6.0 is outdate version that is not currently supported.

If you want to migrate to a new environment and upgrade at the same time, you should first upgrade. If something goes wrong it will be easier to investigate the current TeamCity version. After upgrade please run the new version of TeamCity and check that everything works as expected, then migrate to a new server. Also please note that the latest TeamCity version is 9.1.4, please use it to get access to all the recent bug fixes and lots of new features.

0

I will go ahead and try it with the new version then, I just wasnt sure if it would cause any issue installing a new version of teamcity and then trying to restore a backup from a older version. I will go ahead and test this out and if I have any more issues I will go from there.

0

Restoration of the backup created with TeamCity versions earlier than 6.0 can only be performed with the same TeamCity version as the one which created the backup. Backups created with TeamCity 6.0+ can be restored using the same or more recent TeamCity versions.
So you can install new TeamCity version and restore old backup into it. Did you perform it? I didn't catch it from your first post.

0

Im currently working on it now, I will let you know if any other issues arise. Thanks for the support on this issue.

0

Please sign in to leave a comment.