Discussion:
[p4] Urgent Help: Connect to server failed; check $P4PORT
Bhavbhuti Nathwani
2005-09-06 06:08:39 UTC
Permalink
Hi all

This is my first question (apart from the test message) and have a
pretty urgent situation.

All of a sudden I am getting an error as below:

Connect to server failed; check $P4PORT.
TCP connect to 1666 failed.
connect: 1666: WSAECONNREFUSED

The only change that has happened between the last access to Perforce
in the last week and today is that I have yesterday aquired an ADSL
connection via a second (but already installed) LAN card.

I have tried to change the settings but all the menu options related
to user seems to have been disabled.

Please advise as I am totally lost here.
Regards
Bhavbhuti
Lee Marzke
2005-09-06 22:56:32 UTC
Permalink
Sounds like your routing to the Perforce server is now incorrect with
the new
ADSL connection.

What is P4PORT set to ?
Can you ping the P4 server by IP? , by hostname ?

Get your Network administrator to fix the routing on your PC.

Lee Marzke
Post by Bhavbhuti Nathwani
Hi all
This is my first question (apart from the test message) and have a
pretty urgent situation.
Connect to server failed; check $P4PORT.
TCP connect to 1666 failed.
connect: 1666: WSAECONNREFUSED
The only change that has happened between the last access to Perforce
in the last week and today is that I have yesterday aquired an ADSL
connection via a second (but already installed) LAN card.
I have tried to change the settings but all the menu options related
to user seems to have been disabled.
Please advise as I am totally lost here.
Regards
Bhavbhuti
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Bhavbhuti Nathwani
2005-09-07 05:51:34 UTC
Permalink
Hi Lee

Thanks for your response. Please read inline.
Post by Lee Marzke
What is P4PORT set to ?
Issuing p4 set at the command prompt I got: 1666
Post by Lee Marzke
Can you ping the P4 server by IP? , by hostname ?
at the command prompt I did the following which were successful:

ping 169.254.22.52
ping deve1

deve1 is the machine which houses the perforce depot and the perforce
server and client programs. I am the whole and soul of this setup. I
am using a single user (myself) on a single pc (this one).

I have tried pining the ip address and it works for my internal
network card named 'Venus NIC' the other card named 'DIAS NIC' was
not pinging till I connected to the ADSL network using it's connection
icon.

Both these cards are configured to allow the system to provide the IP
address automatically / dynamically, in fact I have a feeling it has
also created some other problems on my local network as I cannot
access the shared files on the other machine but the other machine can
still access my shared files. But I still could VNC to the other
machine so I am not worried for the time being.
Post by Lee Marzke
Get your Network administrator to fix the routing on your PC.
I am sorry but I am the Network Administrator and I don't know what to
do.

Thanks a lot. I appreciate your response, but I am sorry I don't know
much about configurations due to the exposure to a limited lan setup.

Any solutions or pointers will be helpful.
Regards
Bhavbhuti
Karl-König Königsson
2005-09-07 07:59:00 UTC
Permalink
Hi,

Remember that P4PORT not only specifies the port you connect to but also the host. This can be mildly confusing from time to time. :-)

First check that your environment variable P4PORT is set to "devel:1666" (or "169.254.22.52:1666" which one is more appropriate):

Windows: "set P4PORT"
unix: "echo $P4PORT"

If not, you have to set it

Windows: "set P4PORT=devel:1666"
unix (bash): "export P4PORT=devel:1666

and then try to connect, for example using "p4 info", to verify.

I'm not sure what OS you are running but if it is WinXP then I should also have a look at the built-in firewall. If that one is enabled you might as well have a block on port 1666 since that one is a non-standard port from a windows perspective.


Cheers,


Karl-Koenig Koenigsson
-----Original Message-----
Sent: Wednesday, September 07, 2005 7:52 AM
Subject: Re: [p4] Urgent Help: Connect to server failed; check $P4PORT
Hi Lee
Thanks for your response. Please read inline.
Post by Lee Marzke
What is P4PORT set to ?
Issuing p4 set at the command prompt I got: 1666
Post by Lee Marzke
Can you ping the P4 server by IP? , by hostname ?
ping 169.254.22.52
ping deve1
deve1 is the machine which houses the perforce depot and the perforce
server and client programs. I am the whole and soul of this setup. I
am using a single user (myself) on a single pc (this one).
I have tried pining the ip address and it works for my internal
network card named 'Venus NIC' the other card named 'DIAS NIC' was
not pinging till I connected to the ADSL network using it's connection
icon.
Both these cards are configured to allow the system to provide the IP
address automatically / dynamically, in fact I have a feeling it has
also created some other problems on my local network as I cannot
access the shared files on the other machine but the other machine can
still access my shared files. But I still could VNC to the other
machine so I am not worried for the time being.
Post by Lee Marzke
Get your Network administrator to fix the routing on your PC.
I am sorry but I am the Network Administrator and I don't know what to
do.
Thanks a lot. I appreciate your response, but I am sorry I don't know
much about configurations due to the exposure to a limited lan setup.
Any solutions or pointers will be helpful.
Regards
Bhavbhuti
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Lee Marzke
2005-09-08 00:01:09 UTC
Permalink
If the following doesn't work you should set P4PORT to the
fully-qualified hostname
not just the hostname, as many Windows machines don't do the correct thing
with domain search suffixes.

set P4PORT=devel.company.com:1666 (instead of devel:1666)

Often the DNS search suffix is set on the client, or by DHCP, but it
varies by
operating system and version.

Lee Marzke
Post by Karl-König Königsson
Hi,
Remember that P4PORT not only specifies the port you connect to but also the host. This can be mildly confusing from time to time. :-)
Windows: "set P4PORT"
unix: "echo $P4PORT"
If not, you have to set it
Windows: "set P4PORT=devel:1666"
unix (bash): "export P4PORT=devel:1666
and then try to connect, for example using "p4 info", to verify.
I'm not sure what OS you are running but if it is WinXP then I should also have a look at the built-in firewall. If that one is enabled you might as well have a block on port 1666 since that one is a non-standard port from a windows perspective.
Cheers,
Karl-Koenig Koenigsson
-----Original Message-----
Sent: Wednesday, September 07, 2005 7:52 AM
Subject: Re: [p4] Urgent Help: Connect to server failed; check $P4PORT
Hi Lee
Thanks for your response. Please read inline.
Post by Lee Marzke
What is P4PORT set to ?
Issuing p4 set at the command prompt I got: 1666
Post by Lee Marzke
Can you ping the P4 server by IP? , by hostname ?
ping 169.254.22.52
ping deve1
deve1 is the machine which houses the perforce depot and the perforce
server and client programs. I am the whole and soul of this setup. I
am using a single user (myself) on a single pc (this one).
I have tried pining the ip address and it works for my internal
network card named 'Venus NIC' the other card named 'DIAS NIC' was
not pinging till I connected to the ADSL network using it's connection
icon.
Both these cards are configured to allow the system to provide the IP
address automatically / dynamically, in fact I have a feeling it has
also created some other problems on my local network as I cannot
access the shared files on the other machine but the other machine can
still access my shared files. But I still could VNC to the other
machine so I am not worried for the time being.
Post by Lee Marzke
Get your Network administrator to fix the routing on your PC.
I am sorry but I am the Network Administrator and I don't know what to
do.
Thanks a lot. I appreciate your response, but I am sorry I don't know
much about configurations due to the exposure to a limited lan setup.
Any solutions or pointers will be helpful.
Regards
Bhavbhuti
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Bhavbhuti Nathwani
2005-09-08 10:25:29 UTC
Permalink
Hi Lee

Thanks for your continuing support.
Post by Lee Marzke
set P4PORT=devel.company.com:1666 (instead of devel:1666)
I have tried to specify the IP address as this is a single machine
(client and server are both same and one), yet no luck
Post by Lee Marzke
operating system and version.
I have Win2K Prof.

Please advise.
Regards
Bhavbhuti
Bhavbhuti Nathwani
2005-09-08 05:31:06 UTC
Permalink
Hi Karl

Thanks for your help. Please read inline.

On Wed, 7 Sep 2005 09:59:00 +0200, Karl-König Königsson
It didn't have deve1: in it just 1666.
Post by Karl-König Königsson
Windows: "set P4PORT=devel:1666"
I tried this as well as "p4 set P4PORT=devel:1666" but still "p4 info"
gives the same error just new port no. like deve1:1666.

I have tried the same using the IP no. of the LAN card but the same
status.
Post by Karl-König Königsson
I'm not sure what OS you are running
I have a W2K Prof.

Sorry about being a slow student.
Regards
Bhavbhuti
K***@thomson.com
2005-09-08 14:01:59 UTC
Permalink
Hi Bhavbuti,

The suggestions you've gotten on the list are good ones, but I think the
most obvious piece of advice is: when "urgent help" is on your mind,
pick up the phone and call Perforce support. You're paying for it, and
that's what they're there for.

-Ken
-----Original Message-----
Bhavbhuti Nathwani
Sent: Tuesday, September 06, 2005 1:09 AM
Subject: [p4] Urgent Help: Connect to server failed; check $P4PORT
Hi all
This is my first question (apart from the test message) and
have a pretty urgent situation.
Connect to server failed; check $P4PORT.
TCP connect to 1666 failed.
connect: 1666: WSAECONNREFUSED
The only change that has happened between the last access to
Perforce in the last week and today is that I have yesterday
aquired an ADSL connection via a second (but already
installed) LAN card.
I have tried to change the settings but all the menu options
related to user seems to have been disabled.
Melissa Kacher
2005-09-08 20:39:47 UTC
Permalink
What p4 info has to say is a very key piece of data. I'm not convinced that all of the experts on the list have been answering the right question. I'm assuming that they have been assuming that your P4PORT is set to what you stated in your e-mail. I don't think it is.

DO this:

P4 set P4PORT=
P4 set -s P4PORT=

Take P4PORT out of your windows environment.

P4 set

Now make sure P4PORT is not in the list returned by p4 set

P4 set -s P4PORT=devel:1666

(Or use whatever port setting is correct based on what all of the experts have been telling you.)

Now your port setting will take. If not, can you please post (copy and paste) the full results from "p4 info" and "p4 set".


-----Original Message-----
From: perforce-user-***@perforce.com [mailto:perforce-user-***@perforce.com] On Behalf Of Bhavbhuti Nathwani
Sent: Wednesday, September 07, 2005 10:31 PM
To: perforce-***@perforce.com
Subject: Re: [p4] Urgent Help: Connect to server failed; check $P4PORT

Hi Karl

Thanks for your help. Please read inline.

On Wed, 7 Sep 2005 09:59:00 +0200, Karl-König Königsson
It didn't have deve1: in it just 1666.
Post by Karl-König Königsson
Windows: "set P4PORT=devel:1666"
I tried this as well as "p4 set P4PORT=devel:1666" but still "p4 info"
gives the same error just new port no. like deve1:1666.

I have tried the same using the IP no. of the LAN card but the same
status.
Post by Karl-König Königsson
I'm not sure what OS you are running
I have a W2K Prof.

Sorry about being a slow student.
Regards
Bhavbhuti

_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
Bhavbhuti Nathwani
2005-09-09 07:03:23 UTC
Permalink
Hi Melissa

Thanks for your reponse.

On Thu, 8 Sep 2005 13:39:47 -0700, "Melissa Kacher"
Post by Melissa Kacher
Now make sure P4PORT is not in the list returned by p4 set
P4 set -s P4PORT=deve1:1666
Done
Post by Melissa Kacher
Now your port setting will take. If not, can you please post (copy and paste) the full results from "p4 info" and "p4 set".
C:\PROGRA~1\Perforce>p4 info
Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to deve1:1666 failed.
connect: deve1:1666: WSAECONNREFUSED

C:\PROGRA~1\Perforce>p4 set
P4CLIENT=Bhavbhuti (set)
P4EDITOR=C:\PROGRA~1\NOTETA~1\NoteTab.exe (set)
P4JOURNAL=C:\PerforceDepot\journal (set -s)
P4LOG=C:\PerforceDepot\log (set -s)
P4PORT=deve1:1666 (set -s)
P4ROOT=C:\PerforceDepot (set -s)
P4USER=Administrator (set)

Melissa, I am now also in touch with the Perforce support people and
the comminucation is leading to missing service of Workstation. So
maybe all the suggestions were right and I may have also done things
right but the problem seems to be elsewhere. I will update here as
soon as I get some solution.

Thanks for your help. Trouble you when this line of solution needs
more feedback.
Regards
Bhavbhuti
Kenneth Olwing
2005-09-09 07:14:43 UTC
Permalink
Post by Melissa Kacher
What p4 info has to say is a very key piece of data. I'm not
convinced that all of the experts on the list have been
answering the right question.
Agree :-)
Post by Melissa Kacher
I'm assuming that they have
been assuming that your P4PORT is set to what you stated in
your e-mail. I don't think it is.
Actually, regarding issues with all the p4 variables which can be
present in a bunch of places, personally I would sidestep the whole
issue during troubleshooting by explicitly using the flags on the
command line, e.g. 'p4 -p computername:1234 ...'. Fill in rest of the
settings such as p4 user, pw etc. Much more reliable, I think...

Getting back to the original point made by Melissa: is the right
question answered? The thing no one has on is simply: Is the server
even running? If it is, what port does it listen on? Answer that and we
should be closer to a solution IMO..

ken1
K***@thomson.com
2005-09-09 14:38:36 UTC
Permalink
-----Original Message-----
Bhavbhuti Nathwani
Sent: Friday, September 09, 2005 2:03 AM
Subject: Re: [p4] Urgent Help: Connect to server failed; check $P4PORT
Hi Melissa
Thanks for your reponse.
On Thu, 8 Sep 2005 13:39:47 -0700, "Melissa Kacher"
Post by Melissa Kacher
Now make sure P4PORT is not in the list returned by p4 set
P4 set -s P4PORT=deve1:1666
Done
Are you sure it's "deve1" and not "devel" ("one" versus "ell" at the
end)? A previous message you sent said it was "devel".

-Ken
Bhavbhuti Nathwani
2005-09-09 15:02:19 UTC
Permalink
Hi Ken
Post by K***@thomson.com
Are you sure it's "deve1" and not "devel" ("one" versus "ell" at the
end)? A previous message you sent said it was "devel".
It was probably copy-paste error but the machine name is definately
DEVE1 (DEVEone)
Regards
Bhavbhuti
Bhavbhuti Nathwani
2005-09-15 14:37:12 UTC
Permalink
Hi all

I am glad to say that the problem has now been successfully resolved
and would like to thank all of you for the support I received here and
too on my very first post here.

The problem was with the W2K wherein the service Workstation was not
working thus Perforce could not work.

A format and install of W2K and related stuff got Perforce back in
action.

Thanks.
Regards
Bhavbhuti

Continue reading on narkive:
Loading...