Koozali.org: home of the SME Server

Upgrade from 9.2 to 10.1 fails due to custom template fragments

Offline Knyte

  • ***
  • 41
  • +0/-0
    • knyte.org
...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)

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.
SME 10.1 running in ESXi 5.5

Offline Jean-Philippe Pialasse

  • *
  • 2,844
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Upgrade from 9.2 to 10.1 fails due to custom template fragments
« Reply #1 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

Offline Knyte

  • ***
  • 41
  • +0/-0
    • knyte.org
Re: Upgrade from 9.2 to 10.1 fails due to custom template fragments
« Reply #2 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.
« Last Edit: May 09, 2024, 04:38:48 AM by Knyte »
SME 10.1 running in ESXi 5.5

Offline Jean-Philippe Pialasse

  • *
  • 2,844
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Upgrade from 9.2 to 10.1 fails due to custom template fragments
« Reply #3 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