soscmd Checkout Project fails after 1 file, ok in windows

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

Moderator: SourceGear

Post Reply
garethk
Posts: 2
Joined: Wed Oct 20, 2004 3:23 am

soscmd Checkout Project fails after 1 file, ok in windows

Post by garethk » Wed Oct 20, 2004 3:25 am

I have soscmd version 3.5 running on both windows XP and Solaris
The CheckOutProject works fine from windows, but not from Solaris

I get this error:

bash-2.03$ soscmd -command CheckOutProject -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java" -database "C:\vss\Remedy-VSS\srcsafe.ini"
Checked out file: /export/home/kellyga/HelloWorld/java/GoodbyeWorld.java
Error: Server response = 401 NoSuchFileOrProject
Error: Server response = 401 NoSuchFileOrProject

For info, when I try to check back in:

bash-2.03$ soscmd -command CheckInProject -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java" -database "C:\vss\Remedy-VSS\srcsafe.ini"
File GoodbyeWorld.java successfully checked in.
Could not open file admin. Error Num=2

The GetProject works perfectly:

bash-2.03$ soscmd -command GetProject -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java" -database "C:\vss\Remedy-VSS\srcsafe.ini"
Finished retrieving project files.

Here is an extract from the server log file:
20/10/2004 09:49:47 - Connection accepted from 1.12.0.227:1857 on local address 1.12.0.227:8080, session id is 1.
20/10/2004 09:50:22 - Connection accepted from 1.12.0.227:1858 on local address 1.12.0.227:8080, session id is 2.
20/10/2004 09:51:19 - Connection accepted from 1.12.0.227:1859 on local address 1.12.0.227:8080, session id is 3.
20/10/2004 10:03:29 - Connection accepted from 1.12.0.227:1873 on local address 1.12.0.227:8080, session id is 4.
20/10/2004 10:03:39 - Connection accepted from 172.16.116.142:19549 on local address 1.12.0.227:8080, session id is 5.
20/10/2004 10:04:08 - Connection accepted from 172.16.116.142:19550 on local address 1.12.0.227:8080, session id is 6.
20/10/2004 10:04:09 - 20/10/2004 10:04:09 - Server Exception (401): [$/HelloWorld/java] - NO_SUCH_FILE_OR_PROJECT
20/10/2004 10:04:09 - 6: Server Error: 401
20/10/2004 10:04:30 - Connection accepted from 172.16.116.142:19551 on local address 1.12.0.227:8080, session id is 7.
20/10/2004 10:04:30 - 20/10/2004 10:04:30 - Server Exception (401): [$/HelloWorld/java\admin] - NO_SUCH_FILE_OR_PROJECT
20/10/2004 10:04:30 - 7: Server Error: 401
20/10/2004 10:06:40 - Connection accepted from 172.16.116.142:19552 on local address 1.12.0.227:8080, session id is 8.
20/10/2004 10:08:39 - Connection accepted from 172.16.116.142:19564 on local address 1.12.0.227:8080, session id is 9.
20/10/2004 10:09:18 - Connection accepted from 172.16.116.142:19565 on local address 1.12.0.227:8080, session id is 10.
20/10/2004 10:10:09 - Connection accepted from 172.16.116.142:19566 on local address 1.12.0.227:8080, session id is 11.
20/10/2004 10:10:45 - Connection accepted from 172.16.116.142:19567 on local address 1.12.0.227:8080, session id is 12.


There are only 2 files in the project:
/export/home/kellyga/HelloWorld/java/GoodbyeWorld.java
/export/home/kellyga/HelloWorld/java/HelloWorld.java

Any idea why it will only "Check Out" one file?

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

Post by lbauer » Thu Oct 21, 2004 3:59 pm

Can you checkout the file using the CheckOutFile -command? What's the name of the second file in the project? Does CheckOutProject work on other projects in the VSS tree?

Do other "Project" operations also fail on this project? IE, does GetProject retrieve all the files, or just the first then fail?
Linda Bauer
SourceGear
Technical Support Manager

garethk
Posts: 2
Joined: Wed Oct 20, 2004 3:23 am

Post by garethk » Fri Oct 22, 2004 3:29 am

2 files:
GoodbyeWorld.java and HelloWorld.java

GetProject successfully retrieves all files

GetFile command works on both files:

bash-2.03$ soscmd -command CheckOutFile -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java/" -file "HelloWorld.java" -database "C:\vss\Remedy-VSS\srcsafe.ini"
Checked out file: HelloWorld.java
bash-2.03$ soscmd -command CheckOutFile -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java/" -file "GoodbyeWorld.java" -database "C:\vss\Remedy-VSS\srcsafe.ini"
Checked out file: GoodbyeWorld.java
bash-2.03$ soscmd -command CheckInFile -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java/" -file "GoodbyeWorld.java" -database "C:\vss\Remedy-VSS\srcsafe.ini"
File GoodbyeWorld.java successfully checked in.
bash-2.03$ soscmd -command CheckInFile -server "1.12.0.227:8080" -name "admin" -password "admin" -project "$/HelloWorld/java/" -file "HelloWorld.java" -database "C:\vss\Remedy-VSS\srcsafe.ini"

Any ideas?

oleg164
Posts: 2
Joined: Tue Dec 09, 2008 2:07 pm

Re: soscmd Checkout Project fails after 1 file, ok in windows

Post by oleg164 » Wed Dec 10, 2008 6:30 am

I have the same problem when I run CheckInProject from SourceOffsite command line.

When I run
soscmd.exe -command CheckInProject -server svh001:5150 -name UserName -password MyPass -database "\\svh001\ss6$\srcsafe.ini" -project $/My1/
-workdir "C:\My\Subdir" -recursive
then only first file successfully checked in.
The rest of files from project remain checked out.
Can anybody help to resolve this problem?

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

Re: soscmd Checkout Project fails after 1 file, ok in windows

Post by lbauer » Mon Dec 15, 2008 7:53 am

Are there any errors in the SOS Server log when you try to check in these files? The SOS Server log is called log.txt and is in the SOS Server directory on the SOS Server machine. You can send the log to support at sourcegear.com, Attn: Linda. Be sure to add a link to this post in your email.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply