Problem about svnadmin load

2022-09-09 Thread 李斌
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

2022-09-09 Thread Daniel Sahlberg
Den fre 9 sep. 2022 kl 12:14 skrev 李斌 :

> 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

2022-09-09 Thread Jon Daley via 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 > ./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

2022-09-09 Thread 李斌
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  写道:
> 
> 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

2022-09-09 Thread 李斌
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  写道:
> 
> Den fre 9 sep. 2022 kl 12:14 skrev 李斌 :
>> 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

2022-09-09 Thread Daniel Sahlberg
Den fre 9 sep. 2022 kl 19:53 skrev 李斌 :

> 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


> 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
>
>