Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: Knyte on May 07, 2024, 08:54:13 PM

Title: Upgrade from 9.2 to 10.1 fails due to custom template fragments
Post by: Knyte on May 07, 2024, 08:54:13 PM
...I'm not completely certain how to remove them.  I think it was because I used SiteMaker way back when to install Wordpress to /opt (which I got working from some very helpful replies here https://forums.koozali.org/index.php/topic,53800.msg280177.html#msg280177 (https://forums.koozali.org/index.php/topic,53800.msg280177.html#msg280177))

Thanks for any suggestions.  I've read and read and read about templates and understand the theory, but am uncertain how to identify what fragment does what, or if removing them will break anything.
Title: Re: Upgrade from 9.2 to 10.1 fails due to custom template fragments
Post by: Jean-Philippe Pialasse on May 08, 2024, 01:16:49 AM
first define « fails ». what do you see, what do you expect?



run this

Code: [Select]
/sbin/e-smith/audittools/templates
this will list you all custom template fragments you have


after a migration we really encourage you to remove ALL your custom template fragments and only add back those which are essential for you after testing without.


hence i suggest, after listing those templates, doing :
Code: [Select]
mkdir /root/templates-custom
mv /etc/e-smith/templates-custom/*  /root/templates-custom/
signal-event post-upgrade
signal-event reboot
Title: Re: Upgrade from 9.2 to 10.1 fails due to custom template fragments
Post by: Knyte on May 09, 2024, 04:22:41 AM
When attempting to install 10.1 & restore from backup, the process would fail / halt with an error about custom templates (I didn't screengrab it).

That's all it took, thank you!!  Now running 10.1 at long last.
Title: Re: Upgrade from 9.2 to 10.1 fails due to custom template fragments
Post by: Jean-Philippe Pialasse on May 09, 2024, 02:04:32 PM
error and at which step it occurs would be helpful to fix any bug.

also a list of these custom templates