TC 3.1 Not Getting ALL files

Hello all,
I have an .NET 2.0 web application that builds fine through a direct NAnt script. The application is in the form of a .SLN which contains NTiers and has a Web Deployment project as a way to grab a "clean" output.

I have a stand alone nant script that has been building the application just fine for months. I am now trying to move this into Team City and I seem to be getting the error:
*
vbc error BC2001: file 'My Project\Application.Designer.vb' could not be found
*

I had this problem with another application as well. I am running TC 3.1

Message was edited by:
Dave

29 comments
Comment actions Permalink

So my problem just seems to be that not ALL files are being pulled down. The project has been in source control (source Safe) since August of last year. For some reason, TC will not grab files that are that old.

Is there anything I can do to force something like a "build for the first time"

0
Comment actions Permalink

Just to follow up on this. TC does not seem be grabbing all of my files from the project in source control. This includes the first time I ran the build.

Am I missing something? The project was in source control prior to setting up the build in TC.

0
Comment actions Permalink

Hello Dave,

TeamCity should checkout all of the project files unless you configured checkout rules excluding some of the paths. Please submit issue with detailed description of your configuration, we will try to investigate the problem.

--
Pavel Sher

0
Comment actions Permalink

Hi Pavel,
My configuration settings are as follows:

Source Control: Visual Source Safe
- Access is fine, the entire project builds with the same username in a 100% nant script (outside of TC)
- No check out rules have been defined.
VCS checkout mode: Automatically on server
Checkout directory: blank
Clean all files before build: enabled
VCS labeling mode: do not label

When I run build, it gets the entire tree, but random files are missing. For example (as indicated earlier) the My Project\Application.Designer.vb file was missing, thus the build failed.

It should not matter what the last modified date was however, I noticed that if I checked out the file, touched it, and then check it back in (to updated the last modified date), it gets the file.

So, it looks like something is not working right.

0
Comment actions Permalink

Hello,

I've submitted issue to our tracker, please watch: http://jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4586

--
Pavel Sher

0
Comment actions Permalink

Thanks Pavel, I will remember to submit that next time.
I appreciate your help.

0
Comment actions Permalink

I wanted to follow up on this. I was able to work around the issue by checking out and "tweaking" the file(s) that were not found and then checking them back in.

TC will then recognize that there is a change to that file. After iterating through this process over and over for each missing file I was finally able to get the project to build. After that point it worked just fine.

So, perhaps it has something to do with an initial "get" of a project tree from Visual Source Safe? I am interested to hear back on this.

0
Comment actions Permalink

Hello,

Do you use url's and IIS for building project?
Could you please make sure that all files are taken from version control
to the agent.
Do you use NAnt build runner?
Please check that build agent service user has enough rights to run the build.

Could you please attach you .sln file.

What way do you start builing the solution from NAnt?

Thanks!

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello all,
I have an .NET 2.0 web application that builds fine through a direct
NAnt script. The application is in the form of a .SLN which contains
NTiers and has a Web Deployment project as a way to grab a "clean"
output.
I have a stand alone nant script that has been building the
application just fine for months. I am now trying to move this into
Team City and I seem to be getting the error:

*

vbc error BC2001: file 'My Project\Application.Designer.vb' could not
be found

*

I had this problem with another application as well. I am running TC
3.1



0
Comment actions Permalink

Hello,

Do you use url's and IIS for building project?
Could you please make sure that all files are taken
from version control
to the agent.
Do you use NAnt build runner?
Please check that build agent service user has enough
rights to run the build.

Could you please attach you .sln file.

What way do you start builing the solution from NAnt?

Thanks!


ugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello all,
I have an .NET 2.0 web application that builds fine

through a direct

NAnt script. The application is in the form of a

.SLN which contains

NTiers and has a Web Deployment project as a way to

grab a "clean"

output.
I have a stand alone nant script that has been

building the

application just fine for months. I am now trying

to move this into

Team City and I seem to be getting the error:

*

vbc error BC2001: file 'My

Project\Application.Designer.vb' could not

be found

*

I had this problem with another application as

well. I am running TC

3.1



Hi Eugene,
To answer your questions:

Do you use url's and IIS for building project?
I am not quite sure I understand your question. Can you please rephrase?

*Could you please make sure that all files are taken from version control
to the agent.*
I checked the build agent and it is not retrieving all of the files. Meaning the version control agent is not returning all of the files to the working directory.

Do you use NAnt build runner?
Yes we do.

Please check that build agent service user has enough rights to run the build.
The account for the build agent is an administrator on both the build server and the server(s) we deploy to after the build.

What way do you start building the solution from NAnt?
The msbuild task is pointed to the solution file. Below you will find my excerpt:

* ]]>*

The problem is however; that at this point, not all files have been obtained from Visual Source Safe. I can confirm that this works once you update the "last modified date" to the files and check them back into Source Safe. When you do this, Team City will recognize the files and bring them down to the build agent.

Once all of the critical files are resolved (ie: no longer missing), the build runs without any issues.

If it is run for the first time, shouldn't it obtain all files from VSS to the build agent regardless of when they were last modified?

0
Comment actions Permalink

Hello,

What is wrong with "get" command? Do you mean clean checkout, or just "get"
command, for
example to open web-diff?

What was the procedure of tweaking?
Is that possible to reproduce changes set for an item to make it skipped
by VSS?

If you have such items, I can send you logging-enabled version of VSS-NATIVE
to try.

Did clean checkout helped before applying the "tweaking"?

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I wanted to follow up on this. I was able to work around the issue by
checking out and "tweaking" the file(s) that were not found and then
checking them back in.

TC will then recognize that there is a change to that file. After
iterating through this process over and over for each missing file I
was finally able to get the project to build. After that point it
worked just fine.

So, perhaps it has something to do with an initial "get" of a project
tree from Visual Source Safe? I am interested to hear back on this.



0
Comment actions Permalink

Hi Eugene,
I am not quite sure what is wrong with the get command, I was hoping you could tell me. It only seems to happen under this scenario:

-You have an existing project in source Safe
-create a new Team City project
-point your vss root to the root of the branch (in Source Safe) you would like to build.
-create a nant script that builds the solution in the agent's working directory

So, when I tell nant to build "src/projectroot/myproject.sln", it fails the first few times because files are missing under src/projectroot/something/something/

I know that security is okay because when I do the same tasks through Nant via batch script, it works just fine. All files are retrieved.

However, when I point Team City to the same branch, with the same account, some files end up missing. Using the "clean checkout" did not seem to effect the behavior.

Please let me know if you cannot reproduce the issue.

Message was edited by:
Dave

0
Comment actions Permalink

I've been able to reproduce the problem but I do not know how.

I have a web deployment project as part of my solution. In the middle of a working set of builds, the file stopped getting pulled down with the rest of the source files.

If I tweak the wdproj file, it works just fine however, only for the next build. If I run another build, it is no longer there - it just completely disapears.

0
Comment actions Permalink

Hello,

I found the issue on VSS support for taking files to wrong directories.
Especially it repoduces
for files where parent folder was renamed. At least two folder have to
be renamed.

Does that file has parent folders which was renamed?

Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I've been able to reproduce the problem but I do not know how.

I have a web deployment project as part of my solution. In the middle
of a working set of builds, the file stopped getting pulled down with
the rest of the source files.

If I tweak the wdproj file, it works just fine however, only for the
next build. If I run another build, it is no longer there - it just
completely disapears.



0
Comment actions Permalink

Yes it is possible the folders were renamed.

However, the issue I experienced yesterday was not related. It just suddenly stopped bringing the wdproj file down to the agent for no know reason.

0
Comment actions Permalink

I've run into the same issue when trying to checkout (or, "get" in VSS lingo) files from a VSS repository. It appears that any files in VSS with only a single version are not being fetched. Files with revisions are fetched correctly.

Enforcing a clean checkout doesn't help.

0
Comment actions Permalink

Hello,

I found issue in our tracker for that problem, please watch it
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4586

Does files that were not checked out have some renamed parent folders?

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I've run into the same issue when trying to checkout (or, "get" in VSS
lingo) files from a VSS repository. It appears that any files in VSS
with only a single version are not being fetched. Files with
revisions are fetched correctly.

Enforcing a clean checkout doesn't help.



0
Comment actions Permalink

Hello,

It seems to be connected with wrong checkout, because VSS-NATIVE uses rename
information
to decide if a file is needed to be checked out.

I found issue in our tracker for that problem, please have a look at
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4586


--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Yes it is possible the folders were renamed.

However, the issue I experienced yesterday was not related. It just
suddenly stopped bringing the wdproj file down to the agent for no
know reason.



0
Comment actions Permalink

Hello,
Please try applying the patch.
For detail, please visit
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4091

Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello,

I found issue in our tracker for that problem, please watch it
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4586
Does files that were not checked out have some renamed parent
folders?

>> I've run into the same issue when trying to checkout (or, "get" in
>> VSS lingo) files from a VSS repository. It appears that any files in
>> VSS with only a single version are not being fetched. Files with
>> revisions are fetched correctly.
>>
>> Enforcing a clean checkout doesn't help.
>>


0
Comment actions Permalink

Hello,
Please try applying the patch.
For detail, please visit
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4091

Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello,

It seems to be connected with wrong checkout, because VSS-NATIVE
uses rename
information
to decide if a file is needed to be checked out.
I found issue in our tracker for that problem, please have a look at
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4586

>> Yes it is possible the folders were renamed.
>>
>> However, the issue I experienced yesterday was not related. It just
>> suddenly stopped bringing the wdproj file down to the agent for no
>> know reason.
>>


0
Comment actions Permalink

Unfortunately the patch didn't seem to help. Files with only a single version were not checked out.

To answer your previous question -- none of the files in question have renamed parent folders.

0
Comment actions Permalink

Eugene,
I too tried the patch and did not see any improvement on the issue.
The parent folders have not been renamed.

0
Comment actions Permalink

Hello,

Please try running this utility from console and check the results.
For doing this, plase copy vss-native.exe from my patch to some directory,
start it with the commandline:

vss-native.exe /log output error /login: /pwd: patch $/]]> data

Please, check is all files mentioned in 'output' xml file contains all files
that are to be checked out.

Please copy output*, error files somewhere.
Plaase start the same unility for the vss project where some missed files
are.

Please attach logs from first and second runs.

Thanks!

--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Eugene,
I too tried the patch and did not see any improvement on the issue.
The parent folders have not been renamed.



0
Comment actions Permalink

Does it miss only files or are there some missed folders?
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Eugene,
I too tried the patch and did not see any improvement on the issue.
The parent folders have not been renamed.



0
Comment actions Permalink

Hello,
Please have a look to the discussion in the thread.
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Unfortunately the patch didn't seem to help. Files with only a single
version were not checked out.

To answer your previous question -- none of the files in question have
renamed parent folders.



0
Comment actions Permalink

Hi Eugene,

I've sent an email to you with the files you requested. I did see on my system that there were a couple of directories that did not get created either.

0
Comment actions Permalink

It is missing only files but if a "missed" file is the only file, that entire folder is not brought down.

0
Comment actions Permalink

Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

It is missing only files but if a "missed" file is the only file, that
entire folder is not brought down.



0
Comment actions Permalink

Thanks!
I check it today.
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi Eugene,

I've sent an email to you with the files you requested. I did see on
my system that there were a couple of directories that did not get
created either.



0
Comment actions Permalink

Please have a look/watch/vote for the issue on that problem:
http://www.jetbrains.net/tracker/_htmlTemplate/Issue?issue=25-4586

0

Please sign in to leave a comment.