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

wasi-virt throws error in wasm-compose (redirected from wasi-virt to Wasm-tools) #1565

Open
thesuhas opened this issue May 17, 2024 · 3 comments
Labels
wasm-compose Issues related to the `wasm-compose` crate

Comments

@thesuhas
Copy link
Contributor

Hi,

I'm trying to use wasi-virt with a micro service that I have written in rust. I want to give it a pre-opened file directory so that I can read a json file.
I am using this command: wasi-virt --debug --stderr=allow composed-cinema.wasm --preopen microservices/cinema-1/users=/data --allow-http -o virt-cinema.wasm
And I get the following error:
image

It seems to be an error in wasm-compose. For some additional context, the micro service was composed by using the [email protected] draft from here.

I initially posted this in wasi-virt but was redirected here as it was an issue stemming from wasm-tools.

@alexcrichton alexcrichton added the wasm-compose Issues related to the `wasm-compose` crate label May 21, 2024
@rvolosatovs
Copy link
Member

Looks like I just hit the same issue #1811

@alexcrichton
Copy link
Member

Would it be possible to get a standalone invocation of wasm-tools compose to reproduce this @rvolosatovs perhaps? (or @thesuhas, but I realize it's been awhile since you originally opened this). If that's possible it might be best to try out such an invocation with wac as well. If it works in wac and doesn't work with wasm-compose then the best solution here is to probably migrate wasi-virt to wac instead of wasm-compose.

@brian14708
Copy link

brian14708 commented Sep 26, 2024

I’ve been encountering a similar problem. When custom component functions references wasi: resources, it will fail to compose with wasi-virt.

Here is a minimal reproducible example: https://github.com/brian14708/wasm-tools-1565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasm-compose Issues related to the `wasm-compose` crate
Projects
None yet
Development

No branches or pull requests

4 participants