Network Edition Restore -- Documents


Please reference overview of Zimbra Documents (aka "wiki") initialization and management at: Documents - Enabling for 4.0 Upgrade

Following bare-metal restore of Zimbra platform, end-user may see following error when viewing contents of Notebooks:

"Error: Document templates missing. Please notify administrator." 

Note: Notebook is collection of Zimbra wiki topics -- under the Documents tab in Web UI. End-user Notebook contents are part of end-user account backup (ie. you can't differentiate between mail/cal and documents with zmbackup). ref: CLI_-_zmbackup_Network_Edition_Only


Specific details:

(1) error present as result of "bare metal restore" of Zimbra 4.0.5 platform.

(2) end-users already using documents for default domain on "old" system. On sample Zimbra system, I had created additional Notebooks and topics within.

(3) when we re-built "new" zimbra platform, we used default installer options. This means Zimbra "global documents user" is different between two hosts.

(4) the additional notebooks and topics were correctly restored as part of restoring end-user data.

(5) open of any notebook shows error listed above at top of content pane.

(6) after data restore (all accounts) on new system, we had two "global docs user". One valid -- per zimbra config -- one restored and orphaned from doc sub-system.

(7) Per instructions in wiki topic - Documents - Enabling for 4.0 Upgrade - I used 'zmprov gacf .." to determine which "global docs user" was valid for current 'new' install -- I deleted the orphaned account.

(8) Per wiki topic, I executed commands at bottom (after reset of GlobalDocs user pwd to something I know...).

[zimbra@zim1 ~]$ zmprov mc default zimbraFeatureNotebookEnabled TRUE
[zimbra@zim1 ~]$ zmprov in ldm2r0hyj@domain.com <pwd> /opt/zimbra/wiki/Template Template

At this point, the template error still present.

(9) The fix provided by re-creation of domain wiki account and re-init (note the line entry about changing default domain account).

[zimbra@zim1 ~]$ zmprov idn domain-wiki@domain.com <pwd> domain.com /opt/zimbra/wiki/Template Template
Initializing folders
Creating folder Template
[] INFO: updating default account from old-acct-wiki@domain.com to domain-wiki@domain.com
Initializing...
Creating file document Logo.gif in folder Template
Creating wiki page _PathSeparator in folder Template
Creating wiki page _SideBar in folder Template
Creating wiki page _TitleBar in folder Template
Creating wiki page _PathItemTemplate in folder Template
Creating wiki page _Footer in folder Template
Creating wiki page _Template in folder Template
Creating wiki page _TemplateStyles in folder Template
Creating wiki page _TocBodyTemplate in folder Template
Creating wiki page _TocItemTemplate in folder Template
Creating wiki page _TemplateStyles_unused in folder Template
Creating wiki page _PathBodyTemplate in folder Template
Creating wiki page _Header in folder Template
Creating wiki page _Index in folder Template
[zimbra@zim1 ~]$

(10) Finally, restart zimbra services (ie. tomcat restart). (zmcontrol stop|start).

Verified Against: unknown Date Created: 2/11/2007
Article ID: https://wiki.zimbra.com/index.php?title=Network_Edition_Restore_--_Documents Date Modified: 03/23/2015



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search