Problem about svnadmin load

55 views
Skip to first unread message

李斌

unread,
Sep 9, 2022, 6:13:45 AM9/9/22
to users

Hi

There is a problem when load file via 'svnadmin load'.

Command: 'nohup svnadmin load /data/UEProject < /data/UEProject-clear.svn > ./nohup.log 2>&1 &'.

UEProject-clear.svn is a dump file generated by 'nohup svnadmin dump /root/SVN/UEProject > /data/UEProject.svn &' &&  'nohup grep --binary-files=text -v '^* Dumped revision' ./UEProject.svn > ./UEProject-clear.svn &'.

But when the file be loaded, I get the following error log from nohup.log.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/FeaturePack/manifest.json ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv.png ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv_Preview.png ... done.

     * adding path : UnrealEngine/4.26.2/UE4.sln ... done.

     * adding path : UnrealEngine/4.26.2/UE4Games.uprojectdirs ... done.

     * adding path : UnrealEngine/4.26.2/cpp.hint ... done.

svnadmin: E140001: Unrecognized record type in stream

svn, version 1.8.10 (r1615264)

can you tell me how to resolve it?

Best regards
Lee

Daniel Sahlberg

unread,
Sep 9, 2022, 6:59:33 AM9/9/22
to 李斌, users
Den fre 9 sep. 2022 kl 12:14 skrev 李斌 <li...@s-game.com.cn>:

Hi

There is a problem when load file via 'svnadmin load'.

Command: 'nohup svnadmin load /data/UEProject < /data/UEProject-clear.svn > ./nohup.log 2>&1 &'.

UEProject-clear.svn is a dump file generated by 'nohup svnadmin dump /root/SVN/UEProject > /data/UEProject.svn &' &&  'nohup grep --binary-files=text -v '^* Dumped revision' ./UEProject.svn > ./UEProject-clear.svn &'.

Why grep -v?
 

But when the file be loaded, I get the following error log from nohup.log.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/FeaturePack/manifest.json ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv.png ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv_Preview.png ... done.

     * adding path : UnrealEngine/4.26.2/UE4.sln ... done.

     * adding path : UnrealEngine/4.26.2/UE4Games.uprojectdirs ... done.

     * adding path : UnrealEngine/4.26.2/cpp.hint ... done.

svnadmin: E140001: Unrecognized record type in stream

svn, version 1.8.10 (r1615264)

can you tell me how to resolve it?


Wild guess: You had the string "* Dumped revision" somewhere in the contents or properties and your grep filtered this out of the file so the file doesn't match the expected dump file format. If you compare the UEProject.svn and UEProject-clear.svn files you will probably find some missing data.

Kind regards,
Daniel

Jon Daley via users

unread,
Sep 9, 2022, 10:25:40 AM9/9/22
to 李斌, users
Your command looks wrong to me. Having both jobs background themselves
but the one wants the return code of the first seems like it wouldn't
work.

Maybe you didn't mean the && as a literal command, and you ran both jobs
independently, and so all & and && should be removed?

(I actually had to go try it myself because I wasn't sure how that would
work, but, on my shell (bash) it gives a syntac error with the & inside
single quotes)



On Fri, 9 Sep 2022, 李斌 wrote:

> Hi
>
> There is a problem when load file via 'svnadmin load'.
>
> Command: 'nohup svnadmin load /data/UEProject < /data/UEProject-clear.svn &gt; ./nohup.log 2&gt;&amp;1 &amp;'.
>
> UEProject-clear.svn&nbsp;is a dump file generated by 'nohup svnadmin dump /root/SVN/UEProject &gt; /data/UEProject.svn &amp;' &amp;&amp; &nbsp;'nohup grep --binary-files=text -v '^* Dumped revision' ./UEProject.svn &gt; ./UEProject-clear.svn &amp;'.
>
> But when the file be loaded, I get the following error log from nohup.log.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/FeaturePack/manifest.json ... done.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media ... done.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv.png ... done.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv_Preview.png ... done.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/UE4.sln ... done.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/UE4Games.uprojectdirs ... done.
>
> &nbsp; &nbsp; &nbsp;* adding path : UnrealEngine/4.26.2/cpp.hint ... done.

李斌

unread,
Sep 9, 2022, 1:45:02 PM9/9/22
to Jon Daley, users
Sorry, it is my presentation error. They are two different commands. I mean that first I run svnadmin dump … and next I run grep …
Because the command takes too long time, so i use nohup … &

发自我的iPhone

> 在 2022年9月9日,22:25,Jon Daley <subve...@jon.limedaley.com> 写道:
>
> Your command looks wrong to me. Having both jobs background themselves but the one wants the return code of the first seems like it wouldn't work.

李斌

unread,
Sep 9, 2022, 2:21:32 PM9/9/22
to Daniel Sahlberg, users
Thank you for replying.

Yeah, when I used svnadmin load I got an error about  “* dump version” so I used grep -v.  As you have said. I will try it again. But due to the project “UEProject” used 900G hard disk space, so maybe it is hard to compare two files different.

Best regards
Lee

发自我的iPhone

在 2022年9月9日,18:58,Daniel Sahlberg <daniel.l...@gmail.com> 写道:


Den fre 9 sep. 2022 kl 12:14 skrev 李斌 <li...@s-game.com.cn>:

Hi

There is a problem when load file via 'svnadmin load'.

Command: 'nohup svnadmin load /data/UEProject < /data/UEProject-clear.svn > ./nohup.log 2>&1 &'.

UEProject-clear.svn is a dump file generated by 'nohup svnadmin dump /root/SVN/UEProject > /data/UEProject.svn &' &&  'nohup grep --binary-files=text -v '^* Dumped revision' ./UEProject.svn > ./UEProject-clear.svn &'.

Why grep -v?
 

But when the file be loaded, I get the following error log from nohup.log.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/FeaturePack/manifest.json ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv.png ... done.

     * adding path : UnrealEngine/4.26.2/Templates/TemplateResources/Standard/VehicleAdv/Media/VehicleAdv_Preview.png ... done.

     * adding path : UnrealEngine/4.26.2/UE4.sln ... done.

     * adding path : UnrealEngine/4.26.2/UE4Games.uprojectdirs ... done.

     * adding path : UnrealEngine/4.26.2/cpp.hint ... done.

svnadmin: E140001: Unrecognized record type in stream

svn, version 1.8.10 (r1615264)

can you tell me how to resolve it?

Daniel Sahlberg

unread,
Sep 9, 2022, 3:01:29 PM9/9/22
to 李斌, users
Den fre 9 sep. 2022 kl 19:53 skrev 李斌 <li...@s-game.com.cn>:
Thank you for replying.

Yeah, when I used svnadmin load I got an error about  “* dump version” so I used grep -v.  As you have said. I will try it again. But due to the project “UEProject” used 900G hard disk space, so maybe it is hard to compare two files different.

So if you get a further error message when loading the unmodified dump file, please come back and we will look at it again.

svn, version 1.8.10 (r1615264)


Any chance you can try with a newer version? 1.8.10 has been out of support for a really long time.

Kind regards,
Daniel
Reply all
Reply to author
Forward
0 new messages