[p4] P4HOST issues

Sambwise <[email protected]> Tue, 27 Mar 2018 07:45:01 -0700
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'Sambwise'.


P4HOST's job is to keep you from using the same workspace from different
machines. If you use the same workspace from different machines, you're
going to have a bad time. (Why exactly is its own topic -- if you haven't
already had experience with this situation, take my word for the moment that you
do not want to use one workspace from different client machines. Dead rising
from their graves, cats and dogs living together, that kind of thing. Bad time.)
When you create a workspace, its Host: value is set to your current P4HOST value
(which defaults to the client machine hostname). If you try to use that
workspace with a DIFFERENT host value, it's a strong clue to the server that
you're trying to use it from more than one machine (which, as established,
is a Bad Time), and so the server gives you that error (in a desperate attempt
to stop what you're about to do before you have a BAD TIME).
So it sounds like this workspace that you're trying to use was created on a
different client host machine -- which means that using that workspace is
probably going to lead to a bad time. The solution is to create a new workspace
for the client machine that you're on rather than trying to re-use one you
created on a different machine.
Alternatively (and only if you're really sure it's the right thing to
do), you can change the Host in that workspace to match your current machine.
Note that if you find yourself having to do this more than once, you're
probably in the process of generating a bad time for yourself.  The
only time when this is typically appropriate is when you've done something
like moved a hard drive with your workspace on it to a different client host
machine, or you've changed the hostname (although in that case it would have
changed for ALL your connections and so setting P4HOST globally is an easier
solution than changing all your client specs).



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5668-p4host-issues
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user