Skip to content

Error: creating File (File Share "nginx" / Account "account"): executing request: unexpected status (404 The specified parent path does not exist.) with ParentNotFound: The specified parent path does not exist. #12

@mamift

Description

@mamift

Hello,

I'm getting the following errors after hitting terraform apply - it runs for about 4 minutes, and partially creates the resources in the Azure resource group, but then fails. It references share.tf in all the errors, but I have not changed it as of commit d84f45 which as of writing is the latest commit.

Can I seek some guidance on how to resolve these errors? I did have to register the Microsoft.App resource provider with my Azure subscription to fix an initial error with terraform plan.

The errors all seem to be the same (unexpected status 404), but affect multiple files:

Here's the body of the (first of many) error:

│ Error: creating File "ngx_http_xslt_filter_module.so" (File Share "nginx" / Account "difysa69d3"): executing request: unexpected status 404 (404 The specified parent path does not exist.) with ParentNotFound: The specified parent path does not exist.
│ RequestId:4f12a128-e01a-004a-0164-8becd0000000
│ Time:2025-03-02T11:18:57.7547790Z
│
│   with module.nginx_fileshare.azurerm_storage_share_file.subdir_files["mountfiles/nginx/modules/ngx_http_xslt_filter_module.so"],
│   on fileshare_module\share.tf line 41, in resource "azurerm_storage_share_file" "subdir_files":
│   41: resource "azurerm_storage_share_file" "subdir_files" {
│
╵

The above error repeats for multiple files:

Error: creating File "ngx_http_xslt_filter_module.so"        (File Share "nginx" / Account "account"):
Error: creating File "ngx_http_geoip_module.so"              (File Share "nginx" / Account "account"):
Error: creating File "ngx_stream_js_module.so"               (File Share "nginx" / Account "account"):
Error: creating File "ngx_http_xslt_filter_module-debug.so"  (File Share "nginx" / Account "account"):
Error: creating File "ngx_stream_geoip_module.so"            (File Share "nginx" / Account "account"):
Error: creating File "ngx_http_geoip_module-debug.so"        (File Share "nginx" / Account "account"):
Error: creating File "ngx_http_js_module-debug.so"           (File Share "nginx" / Account "account"):
Error: creating File "ngx_http_js_module.so"                 (File Share "nginx" / Account "account"):
Error: creating File "ngx_stream_geoip_module-debug.so"      (File Share "nginx" / Account "account"):
Error: creating File "ngx_http_image_filter_module.so"       (File Share "nginx" / Account "account"):
Error: creating File "rock.conf"                             (File Share "ssrfproxy" / Account "account"):
Error: creating File "debian.conf"                           (File Share "ssrfproxy" / Account "account"):
Error: creating File "ngx_http_image_filter_module-debug.so" (File Share "nginx" / Account "account"):
Error: creating File "ngx_stream_js_module-debug.so"         (File Share "nginx" / Account "account"):
Error: creating File "default.conf"                          (File Share "nginx" / Account "account"):

Terraform info:

Terraform v1.11.0
on windows_amd64

  • provider registry.terraform.io/hashicorp/azurerm v3.116.0
  • provider registry.terraform.io/hashicorp/local v2.5.2
  • provider registry.terraform.io/hashicorp/random v3.6.3

The full body of errors is in the below attachment.

errors.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions