[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "Commit failed" / "Invalid UTF-8 sequence" messages when doing a commit in SVN 1.5.1

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 22 Aug 2008 16:07:20 +0300 (Jerusalem Daylight Time)

JP Slavinsky wrote on Thu, 21 Aug 2008 at 16:02 -0700:
> Howdy,
> My problem: every time I commit to the repository, I get a "Commit failed"
> message talking about an "invalid UTF-8 sequence". While the message says
> that the commit failed, the commit is actually always successful in the
> repository. However, on the client-side (both command line and Subclipse),
> the working copy isn't up-to-date and calls to update seem to produce lots
> of issues (conflicts, etc).
> My setup: yesterday, I upgraded from from SVN 1.4.4 to SVN 1.5.1. I built
> 1.5.1 from source, as I did for 1.4.4. I access my repositories over HTTP
> using Apache 2.0.59. The SVN server is on RedHat 4. Things in 1.4.4 used to
> work fine, both from a linux command line and from Eclipse/Subclipse on
> Windows. Now, both the command line and subclipse attempts at committing
> give the error message described above and in the example below.
> My fellow users recently experiencing similar (if not exactly the same)
> problems
> http://svn.haxx.se/users/archive-2008-08/0444.shtml
> http://svn.haxx.se/users/archive-2008-08/0725.shtml
> (For the life of me I couldn't figure out how to add to their threads -
> sorry about that).
> Any thoughts on why this error is being presented and how to get rid of it?
> Below, I have pasted a log of the steps I take to reproduce the problem. I
> create a repository, check it out, add a file, do a commit (which gives the
> nasty error message), show that my client doesn't believe the commit worked,
> then show that the repository has indeed been updated.

Thanks for the transcript, very helpful (and saves a bunch of questions).

> --------------------------------------------------
> [root_at_cutlass v1.5]$ svnadmin create sandbox

Does the error go away if you create a BDB repository instead?

> [root_at_cutlass v1.5]$ chown -R apache:apache sandbox
> [root_at_cutlass v1.5]$ exit
> [slavinsk_at_cutlass v1.5]$ cd ~/temp/workspace/
> [slavinsk@cutlass workspace]$ svn co http://localhost/svn/sandbox
> Authentication realm: <http://localhost:80> Sandbox SVN Repository (v1.5)
> Password for 'slavinsk':
> Checked out revision 0.
> [slavinsk_at_cutlass workspace]$ cd sandbox/
> [slavinsk_at_cutlass sandbox]$ touch test.txt
> [slavinsk_at_cutlass sandbox]$ svn add test.txt
> A test.txt
> [slavinsk_at_cutlass sandbox]$ svn commit -m "Committing a dummy file"
> Adding test.txt
> Transmitting file data .svn: Commit failed (details follow):
> svn: Valid UTF-8 data
> (hex: 1c)
> followed by invalid UTF-8 sequence
> (hex: a4 01)

All reports of this error have "a4 01" as the non-UTF-8 sequence.

> [slavinsk_at_cutlass sandbox]$ svn status
> A test.txt
> [slavinsk_at_cutlass sandbox]$ svnlook tree /svn/v1.5/sandbox
> /
> test.txt
> --------------------------------------------------

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-22 15:08:04 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.