soscmnd error

If you are having a problem using SourceOffSite, post a message here.

Moderator: SourceGear

Post Reply
jpeaches1221
Posts: 5
Joined: Mon May 22, 2006 12:02 pm

soscmnd error

Post by jpeaches1221 » Mon May 22, 2006 12:07 pm

I am trying to use soscmd but am getting an error message. Here is my command and error message.

soscmd -soshome C:\Documents and Settings\user\Application Data\SourceGear\SOS -command GetFile -server server1:8081 -user user1 -password qwerty -database f:\vss\srcsafe.ini -project $/Host/Source -file test.txt -workdir C:\Test

Erros Message: Unable to open key file: C:\Doucments\server1.key

Thanks.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon May 22, 2006 2:35 pm

This error indicates you are connecting to the secure port (8081), but SOS cannot find the server key file.

The <Servername>.key file is created when you import a user key into your SOS Client so that you can connect securely to the SOS Server.

User keys are created in the SOS Server Manager. Did you get a user key (<username>.iky) from your SOS admin?

For details about encryption, see SOS Help->Server Manager->User Keys and in the Index->Import Encryption Key.


http://download.sourcegear.com/misc/sos ... efault.htm
Linda Bauer
SourceGear
Technical Support Manager

jpeaches1221
Posts: 5
Joined: Mon May 22, 2006 12:02 pm

Post by jpeaches1221 » Mon May 22, 2006 2:41 pm

Yes, there is a <server>.key file in the folder that I pointed the soshome to.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon May 22, 2006 4:36 pm

Can you connect to the SOS Server with the SOS GUI Client, using the same server name or IP that you used with the Command Line Client?
Linda Bauer
SourceGear
Technical Support Manager

jpeaches1221
Posts: 5
Joined: Mon May 22, 2006 12:02 pm

Post by jpeaches1221 » Mon May 22, 2006 11:08 pm

Yes, I can connect using the SOS GUI Client, using the same server name and database as I used in the soscmd.

I was recently able to use the soscmd until I installed .NET 2003 on my computer. Does that affect soscmd in any way? I tried uninstalling .NET and reinstalling SOS but it still doesn't work.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue May 23, 2006 4:02 pm

No, .NET shouldn't affect it. Did this exact command work before?

Is this the exact error message (except for the servername)?

Unable to open key file: C:\Doucments\server1.key

I would think it would be looking in C:\Documents and Settings\user\Application Data\SourceGear\SOS for the key file.
Linda Bauer
SourceGear
Technical Support Manager

jpeaches1221
Posts: 5
Joined: Mon May 22, 2006 12:02 pm

Post by jpeaches1221 » Tue May 23, 2006 4:23 pm

I just figured it out. I need to put quotes around the path name of the soshome.

Thanks for you help :D

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue May 23, 2006 8:19 pm

Of course -- there are spaces in the path. Well, I would have been more helpful if I had remembered that. :roll:

Glad it's working!
Linda Bauer
SourceGear
Technical Support Manager

Post Reply