Perforce Problems

Hi,

I had to upgrade the TeamCity server because the test license expired.
The new version (build 1529) has a changed perforce settings
configuration. It looks like that a could simply add my perforce client
view template name, but all I get is the following error:

Could not get project sources: for build #422
jetbrains.buildServer.vcs.VcsException: No target file(s) in both client
and branch view. jetbrains.buildServer.vcs.VcsException: No target
file(s) in both client and branch view. at
jetbrains.buildServer.buildTriggers.vcs.perforce.PerforcePatchProvider.processPatch(PerforcePatchProvider.java:114)
at
jetbrains.buildServer.buildTriggers.vcs.perforce.PerforcePatchProvider.buildPatch(PerforcePatchProvider.java:28)
at
jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.buildPatch(PerforceSupport.java:92)
at
jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:12)
at
jetbrains.buildServer.serverSide.impl.BuildServerImpl.buildPatch(BuildServerImpl.java:405)
at
jetbrains.buildServer.controllers.CreatePatchController.doHandle(CreatePatchController.java:18)
...

The client view template has 50+ lines and I'm not really sure were to
start searching for the problem. I tried to find something in the
server's log file, but it seems, it doesn't log perforce related stuff.

Regards,

--
Stefan Matthias Aust

10 comments
Comment actions Permalink

Are you using client name or configuration specific mapping in the root
setting?

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


"Stefan Matthias Aust" <nobody@3plus4.de> wrote in message
news:ec3u3o$7io$1@is.intellij.net...

Hi,

>

I had to upgrade the TeamCity server because the test license expired.
The new version (build 1529) has a changed perforce settings
configuration. It looks like that a could simply add my perforce client
view template name, but all I get is the following error:

>

Could not get project sources: for build #422
jetbrains.buildServer.vcs.VcsException: No target file(s) in both client
and branch view. jetbrains.buildServer.vcs.VcsException: No target
file(s) in both client and branch view. at
jetbrains.buildServer.buildTriggers.vcs.perforce.PerforcePatchProvider.processPatch(PerforcePatchProvider.java:114)
at
jetbrains.buildServer.buildTriggers.vcs.perforce.PerforcePatchProvider.buildPatch(PerforcePatchProvider.java:28)
at
jetbrains.buildServer.buildTriggers.vcs.perforce.PerforceSupport.buildPatch(PerforceSupport.java:92)
at
jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:12)
at
jetbrains.buildServer.serverSide.impl.BuildServerImpl.buildPatch(BuildServerImpl.java:405)
at
jetbrains.buildServer.controllers.CreatePatchController.doHandle(CreatePatchController.java:18)
...

>

The client view template has 50+ lines and I'm not really sure were to
start searching for the problem. I tried to find something in the
server's log file, but it seems, it doesn't log perforce related stuff.

>

Regards,

>

--
Stefan Matthias Aust



0
Comment actions Permalink

Olesya Smirnova schrieb:

Are you using client name or configuration specific mapping in the root
setting?


I've created one perforce setting, specifying the port (perforce:1666)
and the client. The template looks similar to this:

Client: sma-xxx
Owner: sma
Host: the-host
Root: /home/sma/p4
View:
//path1/... //sma-xxx/path1/...
//path2/... //sma-xxx/path2/...

I can manually checkout and build the project on "the-host", so Perforce
works in principle.

--
Stefan Matthias Aust

0
Comment actions Permalink

As a data point I can say that the new perforce interface is working
great for me. I'm providing the name of an existing client spec
instead of filling out the client view box in teamcity. But at 6 or
so lines, my client spec is not as complex as Stefan's.

BTW - Thanks Olesya for implementing the new perforce interface!

Stefan Matthias Aust <nobody@3plus4.de> writes:

>Olesya Smirnova schrieb:
>> Are you using client name or configuration specific mapping in the root
>> setting?
>
>I've created one perforce setting, specifying the port (perforce:1666)
>and the client. The template looks similar to this:
>

Client: sma-xxx
Owner: sma
Host: the-host
Root: /home/sma/p4
View:
//path1/... //sma-xxx/path1/...
//path2/... //sma-xxx/path2/...

>
>I can manually checkout and build the project on "the-host", so Perforce
>works in principle.
>
>--
>Stefan Matthias Aust

--
-- Steve

0
Comment actions Permalink

I mean TeamCity settings. In what way do you set client mapping - using
client name or specifying mapping directly in the vcs root setitngs?
--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Stefan Matthias Aust" <nobody@3plus4.de> wrote in message
news:ec49jr$gpj$1@is.intellij.net...

Olesya Smirnova schrieb:

>> Are you using client name or configuration specific mapping in the root
>> setting?
>

I've created one perforce setting, specifying the port (perforce:1666)
and the client. The template looks similar to this:

>

Client: sma-xxx
Owner: sma
Host: the-host
Root: /home/sma/p4
View:
//path1/... //sma-xxx/path1/...
//path2/... //sma-xxx/path2/...

>

I can manually checkout and build the project on "the-host", so Perforce
works in principle.

>

--
Stefan Matthias Aust



0
Comment actions Permalink

Olesya Smirnova schrieb:

I mean TeamCity settings. In what way do you set client mapping - using
client name or specifying mapping directly in the vcs root setitngs?


Oh, I thought I wrote it already:

>> I've created one perforce setting, specifying the port
>> (perforce:1666) and the client.

I'm using the client name setting. I also tried to paste everything into
the mapping input field, but that didn't work out - perhaps it requires
a special perforce user and I cannot create that.

HTH,

--
Stefan Matthias Aust

0
Comment actions Permalink

Thanks, I just wanted to be sure you're actually using client name.

I also tried to paste everything into

the mapping input field, but that didn't work out - perhaps it requires
a special perforce user


It doesn't require anything special, just use 'team-city-agent' instead of
real client name in the mapping. What does 'Test Connection' say?
Could you try to use the mapping?
BTW, could you attach your mapping or client spec?

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


"Stefan Matthias Aust" <nobody@3plus4.de> wrote in message
news:eccc07$hs1$1@is.intellij.net...

Olesya Smirnova schrieb:

>> I mean TeamCity settings. In what way do you set client mapping - using
>> client name or specifying mapping directly in the vcs root setitngs?
>

Oh, I thought I wrote it already:

>
>>> I've created one perforce setting, specifying the port
>>> (perforce:1666) and the client.
>

I'm using the client name setting. I also tried to paste everything into
the mapping input field, but that didn't work out - perhaps it requires
a special perforce user and I cannot create that.

>

HTH,

>

--
Stefan Matthias Aust



0
Comment actions Permalink

Olesya Smirnova schrieb:

It doesn't require anything special, just use 'team-city-agent' instead of
real client name in the mapping. What does 'Test Connection' say?


It displayed a larger-than-the-screen dialog blog listing a client view
template.

Could you try to use the mapping?


I tried (renaming my client name, depicted as "//sma-xxx/" in my
previous example, to //team-city-agent) and it gave me the same error
message as already posted.

BTW, could you attach your mapping or client spec?


Unfortunately, I cannot do that. Because I'm currently on vacations, I
guess, I'll wait for the next EAP and when back at the office, will try
it again, comming back to you if there are still problems.

Thanks so far,

--
Stefan Matthias Aust

0
Comment actions Permalink

You don't have to do any renaming if you're using mapping directly in root
specification.
Just enter smth like

//path1/... //team-city-agent/path1/...
//path2/... //team-city-agent/path2/...

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


"Stefan Matthias Aust" <nobody@3plus4.de> wrote in message
news:ecerbc$fgi$1@is.intellij.net...

Olesya Smirnova schrieb:

>
>> It doesn't require anything special, just use 'team-city-agent' instead
>> of
>> real client name in the mapping. What does 'Test Connection' say?
>

It displayed a larger-than-the-screen dialog blog listing a client view
template.

>
>> Could you try to use the mapping?
>

I tried (renaming my client name, depicted as "//sma-xxx/" in my
previous example, to //team-city-agent) and it gave me the same error
message as already posted.

>
>> BTW, could you attach your mapping or client spec?
>

Unfortunately, I cannot do that. Because I'm currently on vacations, I
guess, I'll wait for the next EAP and when back at the office, will try
it again, comming back to you if there are still problems.

>

Thanks so far,

>

--
Stefan Matthias Aust



0
Comment actions Permalink

Olesya Smirnova schrieb:

You don't have to do any renaming if you're using mapping directly in root
specification.
Just enter smth like

//path1/... //team-city-agent/path1/...
//path2/... //team-city-agent/path2/...


Allow me to follow up on this old thread. I'm back from vacations and
managed to find the problem. One of our 50+ perforce path entries was
wrong and missing on the server. That caused the strange error message.
It would be very helpful to learn which path the perforce plugin has
problems with. You can reproduce the error if you change for example

//thirdparty/apache/tomcat/5.5.18 (an existing path)

to

//thirdparty/apache/tomcat/5.5.88 (a non-existing path)

Seems that the P4 command line tool simply ignores such an empty path,
but TeamCity throws the exception I mentioned earlier in this thread.

--
Stefan Matthias Aust

0
Comment actions Permalink

Thanks!
I submitted bug request, you can watch it:
http://www.jetbrains.net/jira/browse/TW-790

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


"Stefan Matthias Aust" <nobody@3plus4.de> wrote in message
news:edr7jk$ns3$1@is.intellij.net...

Olesya Smirnova schrieb:

>> You don't have to do any renaming if you're using mapping directly in
>> root
>> specification.
>> Just enter smth like
>>
>> //path1/... //team-city-agent/path1/...
>> //path2/... //team-city-agent/path2/...
>

Allow me to follow up on this old thread. I'm back from vacations and
managed to find the problem. One of our 50+ perforce path entries was
wrong and missing on the server. That caused the strange error message.
It would be very helpful to learn which path the perforce plugin has
problems with. You can reproduce the error if you change for example

>

//thirdparty/apache/tomcat/5.5.18 (an existing path)

>

to

>

//thirdparty/apache/tomcat/5.5.88 (a non-existing path)

>

Seems that the P4 command line tool simply ignores such an empty path,
but TeamCity throws the exception I mentioned earlier in this thread.

>

--
Stefan Matthias Aust



0

Please sign in to leave a comment.