Notifications
Clear all

Workspace switch error in Perforce on the Virtual Machine

4 Posts
4 Users
0 Likes
9,065 Views
0
Topic starter
MicrosoftTeams image (1)

In some cases, when you want to switch to another workspace, the workspace with an error alert appears. 

This topic was modified 2 years ago by Yana Kalinichenko
2 Answers
0
Topic starter

It can happen because of incorrect host address of your VM was mentioned.

How you can solve this problem:

1. Click on the Actions tab and choose the 'Workspaces' option

image

2. Choose the workspace on what you want to switch --> Click on the right mouse button--> Chose the Edit workspace option

image

3. Click on the Advanced tab on the Settings page --> Update the Host name of your VM and save changes

image

4. Try to switch on the workspace again-->Click on the Filter Workspace--> Chose the Workspace Root

image

Where you can find out the Hostname of your computer or VM?

1. Settings-->System option-->About

image

 

Greg Merrill 2022-03-30 21:11:26

@yana-kalinichenko Thank you for the tip.

A word of caution to those using this tip - if you create and sync a workspace on one host, it's not a good idea to change the host on that workspace to a new host. It's better to create a new workspace. If you *do* decide you really want to change host, make sure you do a Get Revision ... "Force" before using it. This will ensure the it pulls down the correct files, and that perforce doesn't have the wrong idea about what files you have locally on your machine relative to the workspace definition.

0

How to delete workspaces on a machine that no longer exists as a user who does not have 'admin' access? These are old or unused workspaces that were created on an outdated virtual machine or an old computer that is no longer running.

Marco Gouveia 2022-04-21 14:38:04

@muhammad-majid Workspace configurations are stored in perforce and not associated with any particular machine. If you don't have admin in p4 you can ask someone who does to purge them. I can do it for you