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

Invalid memory address or nil pointer dereference #6884

Closed
jasonviviano opened this issue Nov 30, 2023 · 2 comments
Closed

Invalid memory address or nil pointer dereference #6884

jasonviviano opened this issue Nov 30, 2023 · 2 comments
Labels
bug Something is broken or not working as expected

Comments

@jasonviviano
Copy link
Contributor

jasonviviano commented Nov 30, 2023

Bug information

Trying to consume a manifest.yaml and deploy a Radius Application with Bicep.

Steps to reproduce (required)

  1. Manifest.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-microservice # Required for Radius validation
  labels:
    app: my-microservice # Radius will perform a synthetic validation but a hard requirement
spec:
  selector:
  template:
    spec:
      containers:
        - name: my-microservice
  1. Bicep file
import radius as radius

resource app 'Applications.Core/applications@2023-10-01-preview' = {
  name: 'ktest'
}

resource container 'Applications.Core/containers@2023-10-01-preview' = {
  name: 'demo'
  properties: {
    application: app.id
    container: {}
    runtimes: {
      kubernetes: {
        base: loadTextContent('./manifest.yaml')
      }
    }
  }
}

  1. Run rad deploy ./test.bicep
    Console output:
Building test.bicep...
/workspaces/samples/test.bicep(11,5) : Warning BCP035: The specified "object" declaration is missing the following required properties: "image". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
Deploying template 'test.bicep' into environment 'default' from workspace 'default'...

Deployment In Progress...

...                  ktest           Applications.Core/applications
Error: {
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
  "target": "/planes/radius/local/resourceGroups/default/providers/Microsoft.Resources/deployments/rad-deploy-f2b7fc0f-41b3-4812-b790-6e8752455295",
  "details": [
    {
      "code": "Internal",
      "message": "unexpected error: runtime error: invalid memory address or nil pointer dereference",
      "target": "/planes/radius/local/resourceGroups/default/providers/Applications.Core/applications/ktest"
    }
  ]
}

TraceId:  593dc7810bf264812f5e345583dbb560

Observed behavior (required)

Desired behavior (required)

Workaround (optional)

System information

rad Version (required)

RELEASE   VERSION   BICEP     COMMIT
0.27.1    v0.27.1   0.27.1    a0fa10b71c2517934cbea90ddb87486f55652f82

Operating system (required)

Codespace

Additional context

AB#10596

@jasonviviano jasonviviano added the bug Something is broken or not working as expected label Nov 30, 2023
@radius-triage-bot
Copy link

👋 @jasonviviano Thanks for filing this bug report.

A project maintainer will review this report and get back to you soon. If you'd like immediate help troubleshooting, please visit our Discord server.

For more information on our triage process please visit our triage overview

@jasonviviano
Copy link
Contributor Author

Closing, duplicate of #6882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken or not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant