SVN operation exception fix log

Source: Internet
Author: User
Tags eol subversion client svn client svn update
1 SVN locked a directory-cannot be updated

This is mostly because the svn command failed last time and is locked. If cleanup is ineffective, You have to manually delete the locked file.

Run CD at the command prompt to the directory where the svn project has a problem, and then run the following command:

Del lock/Q/s deletes the lock. :

 

2. SVN remains in conflict error solution: when someone is modifying a file, assume it is file a and submit it to the svn server. If you are modifying a page at this time, and update it. Some residual file information appears. If you submit these files without deleting them, the preceding exception occurs. Solution: delete these files.

 

Subversion error information list
Note:

1. The error information of different clients (such as command line, tortoisesvn, ankhsvn, and subclipse) may be slightly different.

2. The error information in the following table is used as an example in the http://svn.moon.ossxp.com/svn/test version library for reference only.



No.
Error Message
Problem Analysis
Solution

1.
SVN: server sent unexpected return value (500 internal server error) in response to options request for 'http: // svn.moon.ossxp.com/svn/test'
Incorrect user name
Check whether the logon user name is incorrect

SVN: the server sends an unexpected return value (500 internal server error). In the response to the "options" request "http://svn.moon.ossxp.com/svn/test”,

2.
SVN: Options of 'HTTP: // svn.moon.ossxp.com/svn/test': authorization failed: cocould not authenticate to server: rejected basic challenge (http://svn.moon.ossxp.com)
Incorrect password
Log On with the correct username/password

SVN: method options failed on "http://svn.moon.ossxp.com/svn/testfailed: authentication failed: cocould not authenticate to server: rejected basic challenge (http://svn.moon.ossxp.com)

3.
SVN: server sent unexpected return value (403 Forbidden) in response to options request for 'http: // svn.moon.ossxp.com/svn/test'
The user has no permissions.
Contact the Administrator to assign permissions to the user.

SVN: the server sends an unexpected return value (403 Forbidden). In the response to the "options" request "http://svn.moon.ossxp.com/svn/test”,

4.
SVN: Options of 'HTTP: // www.moon.ossxp.com/svn/test': 200 OK (http://www.moon.ossxp.com)
The server address is incorrect. It is a common web page and does not support the WebDAV protocol of SVN.
Confirm the correct SVN service address. You can enter this address in the browser to confirm

SVN: method options failed on "http://www.moon.ossxp.com/svn/test#: 200 OK (http://www.moon.ossxp.com)

5.
The version of your subversion (client) is below 1.5.0, upgrade to 1.5.0 or abve. SVN below 1.5.0 can not handle mergeinfo properly. It can mess up our automated merge tracking!
The software version of the client is earlier than 1.5.0. The server imposes restrictions on the client software version to avoid merging and tracking damages.
Upgrade the local subversion client software to version 1.5.0 or later.

6.
SVN: this client is too old to work with working copy '.'. You need to get a newer subversion client, or to downgrade this working copy. See http://subversion.tigris.org/faq.html#working-copy-format-change for details.
Multiple versions of SVN clients (tsvn, subclipse,...) are installed, and the versions of each client are different. The SVN client of a higher version automatically updates the file format under the. SVN directory in the local working directory. As a result, the svn client of the earlier version cannot continue to access the local working directory.
Update all SVN clients installed on the local machine to the same large version to avoid inconsistent local working directory formats.

SVN: this client is too old for the working copy. You need to obtain the updated subversion client or downgrade the working copy. See http://subversion.tigris.org/faq.html#working-copy-format-change for more details.

7.
SVN: working copy 'trunk/src' locked SVN: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
The directory is not unlocked due to abnormal operations.
A simple reproduction method: Create an empty file named lock under the. SVN directory.
Use the command line "SVN cleanup" or similar "Cleanup" action to delete a lock

SVN: the working copy "trunk/src" has locked SVN: Run "SVN cleanup" to delete the lock (enter "SVN help cleanup" for usage)

8.
No author information in the log: ---------------------------------- R9 | (no author information) |... Ossxp.com anonymous commit Test
Anonymous Submission causes no author information
Check the version library permission control and prohibit anonymous submission.

9.
Sending... transfer file data. SVN: submission failed (details are as follows): SVN: commit blocked by pre-commit hook (exit code 1) with output: The submission description should contain at least 4 characters, or it is too easy.
This is because the submission description (commit log) submitted by the user is too simple. You must enter a meaningful commit log during submission.
Write meaningful submission instructions, or request the Administrator to change the version library plug-in.

10.
Add logger. c. Transfer file data. SVN: submission failed (details are as follows): SVN: commit blocked by pre-commit hook (exit code 1) with output: wide character in print at/opt/SVN/svnroot/myrepos/hooks/scripts/check-case-insensitive.pl line 259. the file name is case-insensitive: Trunk/src/logger. c already exists in logger. c
The Administrator checks whether the new file has the same name (only case-insensitive. File names are case-insensitive, which may cause trouble when detecting files on Windows.
Do not add duplicate files (case-insensitive only)

Added src/file abc.txt to transfer file data. SVN: submission failed (details are as follows): SVN: commit blocked by pre-commit hook (exit code 1) with output: clash: '/trunk/src/file abc.txt'

11.
SVN: while preparing '/home/jiangxin/tmp/SVN. Test/trunk/src/readme.txt' For commit SVN: inconsistent line ending Style
The SVN: EOL-style attribute has been set for the submitted file, but the linefeed in the text contains the DOS linefeed CRLF and the Unix linefeed lf, Which is inconsistent!
Unify the line breaks in the text file. In Linux, dos2unix, unix2dos, sed, and other commands can be used. In Windows, ultraedit can be used for conversion.

SVN: When "/home/jiangxin/tmp/SVN. Test/trunk/src/readme.txt" is prepared for the Submission operation, SVN: inconsistent row end Style

12.
SVN: failed to add file 'makefile': An unversioned file of the same name already exists
An error is reported when an update is executed (SVN up. Because another person adds a file to the server, but a local file with the same name exists (no Version Control)
First rename the local duplicate name file, then execute "SVN up", and then compare and merge the file. Or run "SVN up -- force"

SVN: An error occurred while adding the 'makefile' file: the file with the same name but not version control already exists.

13.
Adding src/makefile SVN: commit failed (details follow): SVN: File '/SVN/test/trunk/src/makefile 'already exists
When a new file is added, an error is returned. Because other people have added this file before me.
Execute the update operation ("SVN up") first, and then follow the prompts to perform the operation: Merge/submit...

Add src/makefile SVN: submission failed (details are as follows): SVN: the file "/SVN/test/trunk/src/makefile" already exists

14.
$ SVN up conflict discovered in 'makefile '. select: (p) postpone, (DF) diff-full, (e) edit, (MC) Mine-conflict, (TC) theirs-conflict, (s) show all options: p c makefile updated to Revision 5. summary of conflicts: text conflicts: 1
Conflicts may occur when multiple users edit the same file at the same time. If someone else submits the request before me, it must be updated when I submit the request. Conflicts that cannot be automatically resolved during updates
Use tools to resolve conflicts

$ SVN up found a conflict in "makefile. Select: (p) postponed, (DF) show all differences, (e) edited, (MC) My version, (TC) others' version, (s) show all options: update p c makefile to version 5. Conflict Summary: Body conflict: 1

15.
SVN: commit failed (details follow): SVN: file 'makefile' is out of date SVN: file not found: Transaction '6-d ', path '/trunk/src/makefile'
The submitted file has been deleted by another user.
Execute the update operation ("SVN up") first, and then follow the prompts to solve the tree conflict: delete the file or continue to add...

SVN: submission failed (details): SVN: the file "makefile" is outdated SVN: file not found: Transaction '6-C', path'/trunk/src/makefile'

16.
SVN: commit failed (details follow): SVN: file or directory '/trunk/XXX' is out of date; try updating SVN: resource out of date; try updating
Modification Based on the old version is not allowed
Update ("SVN Update") before submitting

SVN: submission failed (details are as follows): SVN: the file or directory "/trunk/XXX" is out of date; update SVN: resource out of date first; try updating

17.
SVN: Dav request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent SVN: at least one Property Change failed; repository is unchanged SVN: Error setting property 'log': repository has not been enabled to accept revision propchanges; Ask the Administrator to create a pre-revprop-change hook
Modification submission instructions and other operations are high-risk operations, because the operation is not version-controlled and cannot be recovered. Disabled by default.
Contact the Administrator to enable the hooks for this version and allow you to modify "version attributes ". See administrator hook settings

SVN: The dav request failed. It may be that the pre-revprop-change hook of the version library fails to be executed or SVN does not exist: at least one attribute change fails; the version library does not change SVN: error setting attribute "log": repository has not been enabled to accept revision propchanges; Ask the Administrator to create a pre-revprop-change hook

18.
Transfer file data. SVN: submission failed (details are as follows): SVN: commit blocked by pre-commit hook (exit code 1) with output: ============================== trunk/src/file. c: attribute SVN: mime-type or SVN: the EOL-style is not set to ======================= the Administrator has enabled the linefeed attribute check. A line break must be specified for each newly added file. If the svn: mime-type attribute is a text file, you must set the svn: EOL-style attribute. For binary files, run the following command: SVN propset SVN: mime-type application/octet-stream path/of/file. For text files, run the following command: SVN propset SVN: mime-type text/plain path/of/file SVN propset SVN: EOL-style native path/of/file to avoid manual setting of each added file, you can enable automatic attribute setting...
The Administrator enabled the extension for checking the new file line breaks
Set the correct SVN: mime-type and/or SVN: EOL-style attributes for the new file.

 

 

Address: http://blog.csdn.net/techbirds_bao/article/details/8437255

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.