Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porter: "The installation cannot be upgraded, because it is not installed" #4291

Open
jonnyry opened this issue Jan 29, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jonnyry
Copy link
Collaborator

jonnyry commented Jan 29, 2025

When a resource fails its initial installation say because of a transient network issue, it is impossible to recover using the "Update" function.

The following error is returned:

Error message: The installation cannot be upgraded, because it is not installed. Verify the installation name and namespace, and if correct, use porter install. The installation cannot be upgraded, because it is not installed. Verify the installation name and namespace, and if correct, use porter install. ; Command executed: porter upgrade "7ba7d3d6-86db-4dc7-9cf2-c68fddeaa6e0" --reference mytreacr.azurecr.io/tre-workspace-service-azuresql:v1.0.0 --param arm_environment="public" --param arm_use_msi="true" --param azuresql_identity="/subscriptions/XXXXXX/resourcegroups/rg-mytre-mgmt/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-azuresql-mytre" --param id="xxxxxx" --param sql_sku="S2 | 50 DTUs" --param storage_gb="5" --param tfstate_container_name="tfstate" --param tfstate_resource_group_name="rg-mytre-mgmt" --param tfstate_storage_account_name="mytremgmtstore" --param tre_id="mytree" --param workspace_id="6ded63ed-81c7-4758-bc63-61b0b7c86967" --force --credential-set arm_auth --credential-set aad_auth...

This behaviour was introduced in Porter 1.2.0 here:

	if !i.IsInstalled() {
		return span.Errorf("The installation cannot be upgraded, because it is not installed. Verify the installation name and namespace, and if correct, use porter install.")
	}

The RP was recently upgraded from 1.1.1 to 1.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant