SVN-KIT - svn: E140000: Can't read length line from file

I have observed that the SCM-Manager would slowdown while managing the API-KEY based requests with the SVN clients.

  1. SCM-Manager: v2.3.40
  2. SVN-KIT: Default
  3. LDAP Integrated: YES
  4. LDAP CLient version: v2.4.0
  5. API-KEY Created: YES

It would try to check the LDAP authentication eventhough API-KEY is supplied.

How to reproduce:

  1. Create a SVN repository using the SCM-Manager WEB-UI
  2. Enable required permissions on the WEB-UI
  3. Restore the old repository using svnadmin load
  4. Check and fix the permission: chown -R scm:scm <repo_path>
  5. Check the scm-logs and we can see flooding logs as shown below.
  6. The flooding logs will hinder the SCM-Manager performance drastically forcing to restart within an hour

Note: I have also verified the same on APache+SVN-DAV without any issues and this indicates that the issue is specific to SVN-KIT

LOGS:

./scm-manager-6.log:2022-06-02 01:07:29.718 [qtp1642534850-377051] [CAT7aNFAUxTu] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.718 [qtp1642534850-382456] [7UT7aNFATxTr] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.719 [qtp1642534850-373283] [DVT7aNFATxTt] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.719 [qtp1642534850-366828] [EHT7aNFATxTs] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.720 [qtp1642534850-377051] [CAT7aNFAUxTu] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.720 [qtp1642534850-382456] [7UT7aNFATxTr] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.724 [qtp1642534850-382885] [AaT7aNFAexTv] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.725 [qtp1642534850-382885] [AaT7aNFAexTv] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format
./scm-manager-6.log:2022-06-02 01:07:29.729 [qtp1642534850-376965] [BXT7aNFAkxTw] DEBUG svnkit - svn: E140000: Can't read length line from file /svndata/repositories/BST7ZOlCuW/data/db/format

Thank you @girishkg for sharing this issue. We will have a look at it and will come back to you soon.

1 Like

The content of the format file is as shown below:
cat /svndata/repositories/BST7ZOlCuW/data/db/format
7
layout sharded 1000

Is this issue related to this?

Hi @girishkg , this is hard to analyse without an example. Can you create a small repository with this issue, zip it and share it with us?

Hi @pfeuffer
I will come back with example repo.

I am closing this topic as there has been no activity for more than 30 days.