Jump to content


Will

Member Since 04 Feb 2019
Offline Last Active Feb 08 2019 12:52 PM
-----

Posts I've Made

In Topic: Question/Problem setting up multiple projects with separate changelists.

05 February 2019 - 09:53 PM

Ah, that's likely the issue. Looking at the properties for the services "Perforce" and the newly created "Perforce2", the later doesn't have the full path to the executable. It has p4s.exe, but not "D:\Program Files\Perforce\Server\p4s.exe" like the original has. Obviously it would need to be adjusted for the separate directory, but yeah.

I'll look up how to set that and see if that fixes the issue. Please hold. :P

Edit 1:
Hm, standard windows sc config command is saying:
Set-Content : A positional parameter cannot be found that accepts argument 'binPath='.
At line:1 char:1
+ sc config Perforce2 binPath= "D:\Program Files\Perforce\Server2\p4s.e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo		 : InvalidArgument: (:) [Set-Content], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetContentCommand

I assume that means the service's definition lacks the binPath value to be set, so fun. I'll start checking perforce commands, maybe there's something there.

Edit 2:
Turns out it does, I was just using the CMD command rather than Powershell's command. It -appears- to be fixed, it started, so now I'll see if I can connect.

Edit 3:
Success! I can connect. ^_^
Thank you. I'll have to make note of how to verify and set the service path. Seems like that should be a step in the creation process that isn't listed on that page or is out of date.

In Topic: Question/Problem setting up multiple projects with separate changelists.

05 February 2019 - 09:01 PM

No problem. For context, in case something there was wrong:
- Using Windows Powershell as Administrator.
- In the directory of the second server I set up following the instructions here.
- Using the final start command:
svcinst start -n Perforce2

I get the following:
Starting Service
Service stopped... starting
StartService(): failed, The system cannot find the file specified

Checking both services for errors/inconsistencies, the only thing I see is I don't have the following on server 2:
P4_1667_CHARSET=none

This is the output for said checks:
PS D:\Program Files\Perforce> p4 set -S Perforce
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4JOURNAL=journal (set -S)
P4LOG=log (set -S)
P4PORT=1666 (set -S)
P4ROOT=D:\Program Files\Perforce\Server (set -S)
P4USER=William (set)
P4_1666_CHARSET=none (set)
PS D:\Program Files\Perforce> p4 set -S Perforce2
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4JOURNAL=journal (set -S)
P4LOG=journal2 (set -S)
P4PORT=1667 (set -S)
P4ROOT=D:\Program Files\Perforce\Server2 (set -S)
P4USER=William (set)

And finally a little proof that the files needed are there: