<div dir="ltr">Hi there,<div><br></div><div>I am trying to sync my desktop version wiki to a remote wiki (freshly installed, single wiki not in a farm) running under apache2 using moin.wsgi and running into two problems. </div>
<div><br></div><div>1. For a page deleted locally, say, it seems the directory of the corresponding page is still kept, such that when I run sync, it gives the following error mesg:</div><div><br></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\action\SyncPages.py", line 220, in render</i></div>
<div><i>self.sync(params, local, remote)</i></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\action\SyncPages.py", line 511, in sync</i></div><div><i>rpc_aggregator.scheduler(remote.create_multicall_object, handle_page, m_pages, 8, remote.prepare_multicall)</i></div>
<div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\util\rpc_aggregator.py", line 73, in scheduler</i></div><div><i>call = gen.fetch_call()</i></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\util\rpc_aggregator.py", line 32, in fetch_call</i></div>
<div><i>next_item = self._gen.next()</i></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\action\SyncPages.py", line 453, in run</i></div><div><i>current_page.saveText(merged_text, sp.local_rev or 0, comment=comment) # YYY direct access</i></div>
<div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\PageEditor.py", line 1081, in saveText</i></div><div><i>raise self.EmptyPage(msg)</i></div><div><i>EmptyPage: You cannot save empty pages.</i></div><div><br></div>
<div>The problem disappeared when I manually deleted the directory under wiki/data/page/, so is this a bug or did I miss something after deleting the wiki page?</div><div><br></div><div>2. I am currently stumbled at is that sync script reports  a page not existing while it actually exists. What strikes me is that some of the pages are being synced like I see BioStat, and the GeneralConcepts/p53 pages on remote wiki, but it always stopped at one certain page, say here is the  ProteasesAndFusionTags page. If I delete this page, the sync process will stop another page. Following is the log info from the SyncWiki page. I am really confused.</div>
<div><br></div><div><div><i>Synchronisation started - 2014-01-16 11:24:50</i></div><div><i>Got a list of 156 local and 3 remote pages. This results in 156 pages to process.</i></div><div><i>After filtering: 140 pages</i></div>
<div><i>Synchronising page Resources with remote page Resources ...</i></div><div><i>Synchronising page Systems with remote page Systems ...</i></div><div><i>Synchronising page GeneralConcepts/p53 with remote page GeneralConcepts/p53 ...</i></div>
<div><i>Synchronising page LearnMath with remote page LearnMath ...</i></div><div><i>Synchronising page Systems/NACHTFamily with remote page Systems/NACHTFamily ...</i></div><div><i>Synchronising page BioStat with remote page BioStat ...</i></div>
<div><i>Synchronising page GeneralConcepts/Organelles with remote page GeneralConcepts/Organelles ...</i></div><div><i>Synchronising page Systems/APP with remote page Systems/APP ...</i></div><div><i>Synchronising page ProteasesAndFusionTags with remote page ProteasesAndFusionTags ...</i></div>
<div><i>/!\</i></div><div><i>A severe error occurred:Traceback (most recent call last):</i></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\action\SyncPages.py", line 220, in render</i></div><div><i>self.sync(params, local, remote)</i></div>
<div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\action\SyncPages.py", line 507, in sync</i></div><div><i>rpc_aggregator.scheduler(remote.create_multicall_object, handle_page, m_pages, 8, remote.prepare_multicall)</i></div>
<div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\util\rpc_aggregator.py", line 73, in scheduler</i></div><div><i>call = gen.fetch_call()</i></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\util\rpc_aggregator.py", line 32, in fetch_call</i></div>
<div><i>next_item = self._gen.next()</i></div><div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\action\SyncPages.py", line 385, in run</i></div><div><i>diff_result = remote.get_diff_post(yielder.fetch_result())</i></div>
<div><i>File "C:\GreenTools\moin-1.9.7\MoinMoin\wikisync.py", line 221, in get_diff_post</i></div><div><i>raise value</i></div><div><i>Fault: <Fault NOT_EXIST: 'Page does not exist.'></i></div><div>
~</div></div><div><br></div><div><br></div><div>Chuck</div><div><br></div><div><br></div></div>