VSS2SVN - File not found: transaction '1-1', path

RoscoeRush

VSS2SVN - File not found: transaction '1-1', path

Postby RoscoeRush » Sun Aug 28, 2005 3:02 pm

I have the following 3 errors when processing a VSS project -
Wrong entry on labeled version
commit already has another revision 3 of file
svnadmin: File not found: transaction '1-1', path
See below for specific text from the svnimporter.log file.

I'm not sure if the 'wrong entry' is significant. I assume that multiple versions and svnadmin not finding a file are related.

Any ideas on how to resolve these issues?

Roscoe

====================================================================
07:55:27,389 [main] INFO Exec:84 - exec C:\VSS\win32\ss.exe history $/cscNet/dev/dbcon.asp -N -Oc:\temp\local\vss.tempdir\history.tmp
07:55:27,436 [main] ERROR VssHistoryParser:96 - wrong entry **********************
Label: "update"
User: Mpeters Date: 9/10/04 Time: 2:25p
Labeled
Label comment: corrections to depts/tools.asp and inventory Master Reserver for August 2004
====================================================================
07:55:41,875 [main] ERROR CommitsCollection:96 - commit already has another revision 3 of file dev/dbcon.asp
07:55:41,875 [main] ERROR CommitsCollection:96 - drop prev revision: dev/dbcon.asp 3
07:55:41,906 [main] ERROR CommitsCollection:96 - commit already has another revision 3 of file splash.asp
07:55:41,906 [main] ERROR CommitsCollection:96 - drop prev revision: splash.asp 3
07:55:42,000 [main] INFO VssProvider:84 - VSS model has been created.
=========================================================================
08:54:35,522 [main] INFO Exec:84 - exec svnadmin.exe load -q --parent-dir . c:\temp\SVN
08:54:35,725 [stderr pumper] ERROR Exec:96 - svnadmin: File not found: transaction '1-1', path 'cscNet/trunk/dev/dbcon.asp'
08:54:35,725 [Thread-12517] ERROR SvnAdminImportExec:100 - can't copy dump file to svnadmin stdin:
java.io.IOException: The pipe has been ended
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.write(Unknown Source)
at org.polarion.svnimporter.common.Util.copy(Util.java:384)
at org.polarion.svnimporter.svnprovider.internal.svnadmin.SvnAdminImportExec$1.run(SvnAdminImportExec.java:58)
===============================================================================

Polarion team

Postby Polarion team » Sat Sep 03, 2005 8:43 am

"Wrong entry on labeled version" - it is known issue, labels are not supported by svnimporter (it's not fatal error).

"commit already has another revision 3 of file dev/dbcon.asp "
"svnadmin: File not found: transaction '1-1', path 'cscNet/trunk/dev/dbcon.asp' "
Error 2 is the reason of error 3.

To fix it you can temporarily remove dev/dbcon.asp and splash.asp from vss repository, convert vss repository using svnimporter and add these files to svn repository manually.

To help us detect bug, show file history.tmp from C:\temp\local\vss.tempdir\
(it's will be created after svnimporter run, config option disable_cleanup must be set to "yes")

srt

Same Problem

Postby srt » Mon Sep 05, 2005 9:59 pm

The svn-import failed with:
22:47:21,780 [stderr pumper] ERROR Exec:96 - svnadmin: File not found: Transaction '1335-1', Path '/test/trunk/THOR.Util/AssemblyInfo.cs'

The error from the log-file:
15:59:39,219 [main] ERROR CommitsCollection:96 - commit already has another revision 2 of file THOR.Util/AssemblyInfo.cs
15:59:39,219 [main] ERROR CommitsCollection:96 - drop cur revision: THOR.Util/AssemblyInfo.cs 1

The corresponding vss-history.temp:
History of $/dotNET/THOR.Util/AssemblyInfo.cs ...

***************** Version 2 *****************
User: srt Date: 19.09.03 Time: 16:22
Checked in $/dotNET/THOR.Util
Comment:

***************** Version 1 *****************
User: srt Date: 19.09.03 Time: 16:22
Created
Comment:




Is there already a fix available?!?!

Thx,
Olli

Guest

Same issue...but worse

Postby Guest » Tue Sep 06, 2005 2:18 pm

The proposed workaround is a non-started for us:

"To fix it you can temporarily remove dev/dbcon.asp and splash.asp from vss repository, convert vss repository using svnimporter and add these files to svn repository manually"

We get literally hundreds of the "Wrong entry on labeled version" messages when exporting our VSS db so there would be too much manual intervention for the tool to be useful.

-geoff

Polarion team

Re: Same Problem

Postby Polarion team » Mon Sep 12, 2005 4:04 am

srt wrote:The svn-import failed with:
22:47:21,780 [stderr pumper] ERROR Exec:96 - svnadmin: File not found: Transaction '1335-1', Path '/test/trunk/THOR.Util/AssemblyInfo.cs'

The error from the log-file:
15:59:39,219 [main] ERROR CommitsCollection:96 - commit already has another revision 2 of file THOR.Util/AssemblyInfo.cs
15:59:39,219 [main] ERROR CommitsCollection:96 - drop cur revision: THOR.Util/AssemblyInfo.cs 1

The corresponding vss-history.temp:
History of $/dotNET/THOR.Util/AssemblyInfo.cs ...

***************** Version 2 *****************
User: srt Date: 19.09.03 Time: 16:22
Checked in $/dotNET/THOR.Util
Comment:

***************** Version 1 *****************
User: srt Date: 19.09.03 Time: 16:22
Created
Comment:

Is there already a fix available?!?!

Thx,
Olli


Svnimporter can't work properly if different revisions of one file has equal date, user, time and comment.

It's a bug, fix now is not available.

Guest

Re: Same issue...but worse

Postby Guest » Mon Sep 12, 2005 4:10 am

Anonymous wrote:The proposed workaround is a non-started for us:

"To fix it you can temporarily remove dev/dbcon.asp and splash.asp from vss repository, convert vss repository using svnimporter and add these files to svn repository manually"

We get literally hundreds of the "Wrong entry on labeled version" messages when exporting our VSS db so there would be too much manual intervention for the tool to be useful.

-geoff


"Wrong entry on labeled version" is not a fatal error, you don't need to fix it.
You need to temporarily remove only files which has following error:

07:55:41,875 [main] ERROR CommitsCollection:96 - commit already has another revision 3 of file dev/dbcon.asp

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Re: Same Problem

Postby dobisekm » Mon Sep 19, 2005 12:54 pm

Polarion team wrote:Svnimporter can't work properly if different revisions of one file has equal date, user, time and comment.

It's a bug, fix now is not available.


This is now trackeed as defect SVNIMP-13.

srt

Postby srt » Mon Sep 26, 2005 8:29 am

Hm, I will try to fix this problem. Where can I download the source-package (I cannot find it).
If I can fix it, I'll will post the patch here.

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Mon Sep 26, 2005 12:07 pm

Hi Srt,

you can get the SVNImporter sources from SVN repository located at http://svn.polarion.org/repos/community/svnimporter/trunk/.

Best,

Michal Dobíšek, Polarion Team

srt

patch for fixing the "File not found: transaction ...&q

Postby srt » Thu Sep 29, 2005 11:49 pm

Hi,
here's the patch...
This error generally occurs, if 2 revisions of one file have the same timestamp/user/comment. Actually it's not a problem for the importer, because it only imports the revision with the highest number within a svn transaction. But one exception exists: If the first revision, which creates the file in the svn-import-dump, is affected.
So what we have to do is to ensure that the first revision is imported.
The patch examines the timestamps of the first 2 revisions and decreases the timestamp of the first revision by one minute if the next revision has the same timestamp.
The user is ignored at ths point, because i think it's not possible that one user creates a file and another user checks this out, changes the file and checks the file in within the same minute.
----------------------------------------

Code: Select all

Index: org.polarion.svnimporter.vssprovider/src/org/polarion/svnimporter/vssprovider/internal/VssHistoryParser.java
===================================================================
--- org.polarion.svnimporter.vssprovider/src/org/polarion/svnimporter/vssprovider/internal/VssHistoryParser.java   (revision 423)
+++ org.polarion.svnimporter.vssprovider/src/org/polarion/svnimporter/vssprovider/internal/VssHistoryParser.java   (working copy)
@@ -61,7 +61,8 @@
          try {
             String line;
             String oldLine = null;
-
+            VssFileRevision lastEntry = null;
+            VssFileRevision beforeLastEntry = null;
             while (true) {
                if (oldLine != null) {
                   line = oldLine;
@@ -79,9 +80,18 @@
                      line = in.readLine();
                   }
                   oldLine = line;
-                  parseEntry(vssEntry, vssFile);
+                  beforeLastEntry = lastEntry;
+                  lastEntry = parseEntry(vssEntry, vssFile);
                }
             }
+
+            if(lastEntry != null && beforeLastEntry != null && lastEntry.getDate().getTime() == beforeLastEntry.getDate().getTime())
+            {
+               long t = lastEntry.getDate().getTime();
+               t -= 1000;                           
+               lastEntry.setDate(new Date(t));
+               LOG.info("correct date of first revision: " + lastEntry.getModelFile().getPath() + " " + lastEntry.getNumber());
+            }
          } finally {
             in.close();
          }
@@ -90,10 +100,10 @@
       }
    }
 
-   private void parseEntry(List entry, VssFile vssFile) {
+   private VssFileRevision parseEntry(List entry, VssFile vssFile) {
       if (entry.size() < 3) {
          LOG.error("wrong entry: " + Util.toString(entry, "\n"));
-         return;
+         return null;
       }
       String firstLine = (String) entry.get(0);
       String secondLine = (String) entry.get(1);
@@ -109,7 +119,9 @@
       if (revision != null) {
          revision.setModelFile(vssFile);
          vssFile.addRevision(revision);
+         return revision;
       }
+      return null;
    }
 
    private static final String VERSION_SUBS = "Version ";

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Fri Sep 30, 2005 9:12 am

Hi Srt,

thanks for the patch. It was merged and comitted, so it will appear in next nightly build at community.polarion.org.

Could you please send here or to svnimporter AT polarion.org your name so that we can give you a credit?

Thanks,

Michal Dobisek, Polarion Team

hou5e
Posts: 1
Joined: Fri Nov 25, 2005 9:20 am
Location: Reno, NV

Same error for any history with labels?

Postby hou5e » Fri Nov 25, 2005 11:55 am

I'm using version 1.1-M6 of the import tool. I get the same error message for VSS to SVN conversion at the beginning of the second phase of the conversion process. I think the problem happens when there is a labeled version of a file in the history. (I don't need the labels, but all of my sources got labeled) I know the labels don't cause a fatal error in the first part of the conversion, but it seems like in the second phase the file doesn't get created to be checked-in for the labeled versions of the file. This causes the same error that I get for files with non-existent VSS version history (bitmaps and icons, which I've moved out of the VSS directory and will check in later to SVN). Thanks!
---------------------------------------
From the end of svnimporter.log:
---------------------------------------
22:58:33,431 [main] INFO historyLogger:84 - check repository...
22:58:33,431 [main] INFO Exec:84 - exec C:/Program Files/Subversion/bin/svn.exe co --non-recursive --non-interactive file:///C:/svn_sources/Connection Foundry
22:58:34,102 [stdout pumper] INFO Exec:84 - Checked out revision 1.
22:58:34,102 [main] INFO historyLogger:84 - repository is exist
22:58:34,102 [main] INFO historyLogger:84 - check parent dir in repository...
22:58:34,102 [main] INFO Exec:84 - exec C:/Program Files/Subversion/bin/svn.exe ls --non-interactive file:///C:/svn_sources/Connection Foundry/.
22:58:34,227 [stdout pumper] INFO Exec:84 - trunk/
22:58:34,227 [main] INFO historyLogger:84 - parent dir is exist
22:58:34,227 [main] INFO historyLogger:84 - clear svn parent dir...
22:58:34,227 [main] INFO Exec:84 - exec C:/Program Files/Subversion/bin/svn.exe ls --non-interactive file:///C:/svn_sources/Connection Foundry/.
22:58:34,337 [stdout pumper] INFO Exec:84 - trunk/
22:58:34,352 [main] INFO SvnAdmin:84 - deleting repository path: ./trunk
22:58:34,352 [main] INFO Exec:84 - exec C:/Program Files/Subversion/bin/svn.exe delete -m deleting ./trunk --non-interactive file:///C:/svn_sources/Connection Foundry/./trunk
22:58:34,509 [stdout pumper] INFO Exec:84 -
22:58:34,509 [stdout pumper] INFO Exec:84 - Committed revision 2.
22:58:34,509 [main] INFO historyLogger:84 - import dump into svn...
22:58:34,509 [main] INFO Exec:84 - exec C:/Program Files/Subversion/bin/svnadmin.exe load -q --parent-dir . C:\svn_sources\Connection Foundry
22:58:34,665 [stderr pumper] ERROR Exec:96 - svnadmin: File not found: transaction '3-1', path 'trunk/GraphArchitecture.cpp'
22:58:34,665 [Thread-4355] ERROR SvnAdminImportExec:100 - can't copy dump file to svnadmin stdin:
java.io.IOException: The pipe has been ended
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.write(Unknown Source)
at org.polarion.svnimporter.common.Util.copy(Util.java:384)
at org.polarion.svnimporter.svnprovider.internal.svnadmin.SvnAdminImportExec$1.run(SvnAdminImportExec.java:58)
22:58:34,665 [main] INFO historyLogger:84 - svnadmin import dump finished
22:58:34,759 [main] INFO historyLogger:84 - successfully finished
22:58:34,759 [main] INFO historyLogger:84 - duration: 92 seconds

-------------------------------------------------------
From [vss.tempdir] history.tmp (the entire file):
-------------------------------------------------------
History of $/STAArchitecture/res/STAArchitectureDoc.ico ...

**********************
Label: "Version 0.5.0"
User: Kirk Date: 1/03/00 Time: 11:13a
Labeled
Label comment: This is the first release of the software to the public

**********************
Label: "NIAC Atlanta Demo"
User: Kirk Date: 11/05/99 Time: 6:09p
Labeled
Label comment: This version went to the NIAC fellows meeting in Atlanta in November

***************** Version 1 *****************
User: Kirk Date: 8/05/99 Time: 9:39a
Created
Comment: Bitmaps and icons

pcgoober
Posts: 100
Joined: Thu Dec 01, 2005 9:40 pm

Getting similiar error when doing svnadmin load <args>

Postby pcgoober » Fri Dec 02, 2005 7:01 pm

[Using svn-importer-1.1-M6]

The message returned by svnadmin before exiting to command prompt is:

<<< Started new transaction, based on original revision 1
svnadmin: File not found: transaction '9-1', path '/svnrepo/webcode/trunk'
* adding path : /svnrepo/webcode/trunk ...

Command used for execution was:

svnadmin load --parent-dir /svnrepo/webcode /svnrepo < full_dump_<timestamp>.txt

The pertinent messages from the svnimporter.log (file names removed for security):

11:01:05,730 [main] ERROR CommitsCollection:96 - commit already has another revision 16 of file XXXXX
11:01:05,740 [main] ERROR CommitsCollection:96 - drop cur revision: XXXXX 15
11:01:05,890 [main] ERROR CommitsCollection:96 - commit already has another revision 5 of file XXXXX
11:01:05,890 [main] ERROR CommitsCollection:96 - drop cur revision: XXXXX 4
11:01:06,091 [main] ERROR CommitsCollection:96 - commit already has another revision 23 of file XXXXX
11:01:06,091 [main] ERROR CommitsCollection:96 - drop cur revision: XXXXX 22
11:01:06,191 [main] ERROR CommitsCollection:96 - commit already has another revision 7 of file XXXXX
11:01:06,191 [main] ERROR CommitsCollection:96 - drop cur revision: XXXXX 6
11:01:06,621 [main] ERROR CommitsCollection:96 - commit already has another revision 3 of file XXXXX
11:01:06,621 [main] ERROR CommitsCollection:96 - drop cur revision: XXXXX 2
11:01:06,741 [main] ERROR CommitsCollection:96 - commit already has another revision 3 of file XXXXX
11:01:06,741 [main] ERROR CommitsCollection:96 - drop prev revision: XXXXX 3

pcgoober
Posts: 100
Joined: Thu Dec 01, 2005 9:40 pm

Re: Getting similiar error when doing svnadmin load <args

Postby pcgoober » Fri Dec 02, 2005 8:19 pm

Even with a full dump of a vss code base that does not have the problem reported here I still get the same behavior when trying to load the data....

svnadmin: File not found: transaction '13-1', path '/svnrepo/techdoc/trunk'

Any ideas why I would receive this error? I'll try a search too to see if anyone else has reported the same error.

pcgoober
Posts: 100
Joined: Thu Dec 01, 2005 9:40 pm

Re: Getting similiar error when doing svnadmin load <args

Postby pcgoober » Fri Dec 02, 2005 8:30 pm

From the docs I got the impression that by using the full dump the target server didn't need file level access to the source server? I am running the svnimporter from my windows workstation then copying the full dump file over to the linux server that is running svn, must I exec the svnimporter from the linux server and mount the windows share via Samba?


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 7 guests