Azure-Samples / azure-search-openai-demo-java

This repo is the Java version of Microsoft's sample app for ChatGPT + Enterprise data.
MIT License
67 stars 66 forks source link

Getting error on azd up #59

Closed jongio closed 1 month ago

jongio commented 7 months ago

Open project in local devcontainer,

Run azd up

Get this


- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 2m 31s
  (x) Failed: Packaging service backend

ERROR: failed packaging service 'backend': failing invoking action 'package', mvn package on project '/workspaces/azure-search-openai-demo-java/app/backend' failed: fork/exec /workspaces/azure-search-openai-demo-java/app/backend/mvnw: no such file or directory
charris-msft commented 7 months ago

@brunoborges for review.

brunoborges commented 7 months ago

@jongio can you confirm the file /workspaces/azure-search-openai-demo-java/app/backend/mvnw does not exist on your devcontainer instance?

jongio commented 7 months ago
image
brunoborges commented 7 months ago

I need more info. What environment is this?

jongio commented 7 months ago

This is in a local devcontainer. I think if you clone and then open in devcontainer you'll be able to repro.

kostka-tech commented 5 months ago

@jongio I was also getting this error. I had run azd init -t azure-search-openai-demo-java.

However when I instead went to the github project page for azure-search-openai-demo-java and clicked the blue OPEN NOW button, it opened my VSCode with a Dev Container. Then azd up worked for me without that error.

brunoborges commented 1 month ago

I could not reproduce this error anymore.

brunoborges commented 1 month ago

@jongio let me know if you still see an error with azd up