You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by 李斌 <li...@s-game.com.cn> on 2022/09/09 03:32:42 UTC
Problem about svnadmin load
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
Re: Problem about svnadmin load
Posted by Daniel Sahlberg <da...@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?
>
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
Re: Problem about svnadmin load
Posted by 李斌 <li...@s-game.com.cn>.
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 <su...@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.
>
> 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 > ./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
Re: Problem about svnadmin load
Posted by Jon Daley via users <us...@subversion.apache.org>.
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 > ./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