You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bert van Oort <bv...@usgpeople.nl> on 2008/10/01 14:02:04 UTC

Svn co - exit code 128

Hi,

I'm trying to write a program that calls the svn client to do a
checkout, using the ExecuteProcess win32 api call. This program works
fine when executed locally but when executed from the scheduler van
Business Objects 6.5 the svn execution fails with exit code 128 and
output " (8)" (without the double quotes, ofc). With verbose off the svn
output is empty.

The commandline I'm executing is:
svn checkout https://<server IP>/svn/BO/trunk/Doc/AsaPlaza <localpath>
--verbose --non-interactive --username <windomain>\<username> --password
<password>

The URL for the server is correct;
<localpath> exists, is writeable and is not a working copy;

When I login to the server where the Business Objects scheduler is
running and I login with the same username as the scheduler is running,
I can execute the commandline above with no problems so the client is
working from that user account.

Any ideas?

Kind regards,

Bert van Oort


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Svn co - exit code 128

Posted by Bert van Oort <bv...@usgpeople.nl>.
>On Oct 1, 2008, at 9:02 AM, Bert van Oort wrote:
>
>> I'm trying to write a program that calls the svn client to do a 
>> checkout, using the ExecuteProcess win32 api call. This program works

>> fine when executed locally but when executed from the scheduler van 
>> Business Objects 6.5 the svn execution fails with exit code 128 and 
>> output " (8)" (without the double quotes, ofc). With verbose off the 
>> svn output is empty.
>
>I suspect you're not capturing the stderr output in your script, only
>the stdout output. Look at stderr to see what error is occurring.

First, thanks for your suggestion. The program captures the output via
pipes and used the DuplicateHandle winapi function to create a handle
from StdOut for StdErr. So I suppose both child handles write to the
same pipe. To test this I added " 2>&1" to the commandline to redirect
stderr output to stdout, but the output did not change.
To test if another error did change the output I changed the password on
the commandline and the exitcode did not change. I tried to execute a
batch file with "C:\Windows\System32\cmd.exe /C C:\test.bat" and it
failed too with exitcode 128. So it doesn't have anything to do with the
svn client.

Then I found this article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;184802

Seems a security issue. This now seems logical to me as it runs
correctly stand alone but fails from the scheduler wich is a kind of
service. Maybe the program is started from the service with limited
rights and the console I try to start with CreateProcess from the
program inherits those limited rights and therefore fails.

Back to the drawing board :-)

Kind regards,

Bert van Oort


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Svn co - exit code 128

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 1, 2008, at 9:02 AM, Bert van Oort wrote:

> I'm trying to write a program that calls the svn client to do a
> checkout, using the ExecuteProcess win32 api call. This program works
> fine when executed locally but when executed from the scheduler van
> Business Objects 6.5 the svn execution fails with exit code 128 and
> output " (8)" (without the double quotes, ofc). With verbose off  
> the svn
> output is empty.

I suspect you're not capturing the stderr output in your script, only  
the stdout output. Look at stderr to see what error is occurring.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org