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

Wing Console doesn't indicate that a container failed to start #7005

Open
eladb opened this issue Aug 8, 2024 · 1 comment
Open

Wing Console doesn't indicate that a container failed to start #7005

eladb opened this issue Aug 8, 2024 · 1 comment
Labels
🐛 bug Something isn't working 🫙 containers Related to support for running containers 🎨 sdk SDK 🕹️ simulator Related to the `sim` compilation target

Comments

@eladb
Copy link
Contributor

eladb commented Aug 8, 2024

I tried this:

bring sim;

new sim.Container(
  name: "http-echo",
  image: "hashicorp/http-echox",
);

I also tried to use containers.Workload:

bring containers;

new containers.Workload(
  name: "http-echo",
  image: "hashicorp/http-echox",
  port: 5678,
  public: true,
  replicas: 2,
  args: ["-text=hello1234"],
);

This happened:

  1. The Wing Console starts with status: Success,
  2. The Container node doesn't have any status indicator

If I change to "verbose" log level I see:

Error response from daemon: pull access denied for hashicorp/http-echox, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

When I used containers.Workload, the Console showed a blue screen:

Failed to start simulator.

Failed to start resources: "root/Default/Workload/http-echo/Field/Handler", "root/Default/Workload/http-echo/readiness", "root/Default/Workload/internal_url/Handler", "root/Default/Workload/public_url/Handler"


Internal error: An internal compiler error occurred. Please report this bug by creating an issue on GitHub (github.com/winglang/wing/issues) with your code and this trace.

I expected this:

In both cases (sim.Container and containers.Workload), I expected the error to show in the logs and the Container node to have a RED indicator.

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
@eladb eladb added the 🐛 bug Something isn't working label Aug 8, 2024
@eladb eladb changed the title Wing Console doesn't indicate that a sim.Container failed to start Wing Console doesn't indicate that a container failed to start Aug 8, 2024
@skyrpex
Copy link
Contributor

skyrpex commented Aug 8, 2024

@Chriscbr we should discuss this BSOD behavior when some resources can't be resolved (e.g. Failed to start resources). Off the top of my head, I'm not sure if I can change the behavior without altering the SDK or the simulator.

@Chriscbr Chriscbr added 🎨 sdk SDK 🕹️ simulator Related to the `sim` compilation target labels Aug 12, 2024
@Chriscbr Chriscbr added the 🫙 containers Related to support for running containers label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🫙 containers Related to support for running containers 🎨 sdk SDK 🕹️ simulator Related to the `sim` compilation target
Projects
Status: 🆕 New - not properly defined
Development

No branches or pull requests

3 participants