Resolution
If a process template you deleted still appears in Platform Hub, first confirm whether the template is still in your Platform Hub Git repository. If it's gone from the repository, the template you see is stale data in your browser session. Refresh the process templates list, then reload the Octopus Web Portal. If it still appears, check it in a private/incognito window or as a different user. If the deleted template only appears in one browser or for one user, clear the cached files for your Octopus Deploy site in that browser.
Symptom
There's usually no error message. Instead, you'll see one or more of the following after deleting a process template:
- The deleted template is still listed on the Process templates page in Platform Hub.
- Two templates with the same name appear, where one is the template you deleted and one is a template you created or renamed afterward.
- Opening the deleted template shows details from before it was deleted, or the page fails to load its details.
- Different team members see different lists of process templates.
Scope: when this is the right article
This article applies when all of the following are true:
- You deleted a process template in Platform Hub, or removed its OCL file from the Platform Hub Git repository.
- The template, or a duplicate-looking copy of it, still appears in the Octopus Web Portal.
- You can't see a matching OCL file for the template on the branch Platform Hub uses in your Git repository.
This isn't the right article if:
- The template's OCL file is still in the Platform Hub Git repository. The template hasn't been deleted, so delete the template again from the UI or remove the OCL from the repo.
- You see
Failed to fetch dynamically imported moduleerrors after an upgrade. Use the article about JavaScript errors after an Octopus upgrade instead. - The deleted template appears for every user, in every browser, after the checks in this article. Go straight to the escalation step in Diagnosis and fix.
Cause
Platform Hub stores process templates as code (OCL files) in the Git repository you configure for Platform Hub. Octopus stores the published versions and the spaces each template is shared with in the Octopus database.
The process templates list you see in the Web Portal is a view of that data. A browser tab that was open before the template was deleted can keep showing the earlier list until the page reloads, and the browser can serve cached responses for the Octopus Deploy site. In these cases, the template only looks like it still exists. It's a visibility issue in that session, not a template that came back.
This also explains duplicate-looking templates. If you deleted a template and created or renamed another with the same name, a stale session can show both: the old entry from its cached list and the new one it has just loaded. There's still only one template in the repository.
Diagnosis and fix
- Check the Platform Hub Git repository. In your Git provider, open the repository and branch configured in Platform Hub and look for the template's OCL file. If the file is still there, the template hasn't been deleted. Delete the template from Platform Hub, or remove the file and commit the change, then stop here. If the file is gone, continue to the next step.
- Refresh the process templates list. In Platform Hub, open Process templates and use the refresh option on the list so Octopus reloads templates from the Git repository. Changes made directly in Git, rather than through the UI, can take a short time to show in Platform Hub. Wait a minute, then refresh the list again.
- Reload the Octopus Web Portal. Close any other Octopus tabs that were open before you deleted the template, then reload the page. Older tabs can keep showing data from before the deletion.
- Check in a private/incognito window. Sign in to Octopus in a private/incognito window or a different browser and open Process templates.
- If the deleted template doesn't appear, the problem is limited to your usual browser. Clear the cached files for your Octopus Deploy site in that browser, then reload.
- If the deleted template still appears, continue to the next step.
- Ask another user to check. Ask a team member with access to Platform Hub to open Process templates in their browser.
- If they don't see the deleted template, the stale data is limited to your user or machine. Clear your browser cache for the site and sign out and back in to Octopus.
- If they also see it, the problem isn't limited to one browser or user. Continue to the next step.
- Check for a caching proxy or CDN. If your Octopus instance is behind a reverse proxy, load balancer, or CDN that caches responses, ask the team that manages it whether Octopus API responses are cached. Cached API responses can show stale data to every user.
- Contact Octopus Support. If the deleted template still appears for every user, in a private/incognito window, after refreshing the list and waiting, contact Octopus Support. Include:
- Your Octopus Server version, and whether you use Octopus Cloud or self-host Octopus Server.
- The name of the process template and roughly when you deleted it.
- How you deleted it: through the Platform Hub UI, or by removing the OCL file in Git.
- Confirmation that the OCL file is no longer on the branch Platform Hub uses, with the commit that removed it if you have it.
- Whether the template appears for all users, in private/incognito windows, and in different browsers.
- Whether the template is still selectable when you add a step to a project's deployment process, and whether any projects still use it.
- Whether you see one copy or duplicate-looking copies of the template.
- Whether a caching proxy or CDN sits in front of Octopus.
Verify
Open Process templates in Platform Hub in a fresh browser session. Confirm that:
- The deleted template no longer appears in the list.
- Only one template appears for each name.
- Another user with Platform Hub access sees the same list as you.
Related
- Platform Hub templates documentation: explains how Platform Hub stores templates as OCL files in a Git repository.
- Process templates troubleshooting documentation: covers known limitations and common process template issues.
- Deleted process template is still selectable when adding a step (GitHub issue 9864): a reported issue where a deleted template can still be added to a deployment process.
- Clear cache in Google Chrome
- Clear cookies and site data in Firefox
- Manage cookies and website data in Safari
- Javascript errors after an Octopus upgrade