<p>I've got a Subversion repository, backed by the berkeley DB. Occasionally it breaks down due to some locks and such not being released, but this morning it was impossible to recover it using the 'svnadmin recover' command. Instead it failed with the following error:</p>

<pre><code>svnadmin: Berkeley DB error for filesystem 'db' while opening 'nodes' table:
Invalid argument
svnadmin: bdb: file nodes (meta pgno = 0) has LSN [1083][429767].
svnadmin: bdb: end of log is [1083][354707]
svnadmin: bdb: db/nodes: unexpected file type or format
</code></pre>

<p>I'm going to restore the repository from the last known good backup, but it would be good to know if there is a way this repository could be fixed.</p>

<p>edit: even the db_recover utility does not make a difference. It shows recovery is completed, but the same error persists when verifying the repository using svnadmin.</p>

I've got a Subversion repository, backed by the berkeley DB.
Sorry to hear that. I would suggest that at your earliest convenience, you dump that repository (
```
svnadmin dump
```
) and reload it into a new one backed by FSFS (
```
svnadmin load
```
).