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

Issues with rust #325

Closed
1 of 2 tasks
klausfyhn opened this issue Mar 28, 2023 · 1 comment
Closed
1 of 2 tasks

Issues with rust #325

klausfyhn opened this issue Mar 28, 2023 · 1 comment

Comments

@klausfyhn
Copy link

klausfyhn commented Mar 28, 2023

Due diligence

My actions before raising this issue

I tried updating the rust-http-templates my actions is available in this PR openfaas-incubator/rust-http-template#9

Why do you need this?

It would be great to be able to easily create a function written in rust.

Who is this for?

nightingale.io and for personal projects. We are not registered as adopters yet, as we are still in early evaluation state.

Expected Behaviour

A function based on the rust or rust-http template should be possible to deploy to faasd.

Current Behaviour

Deploying to faasd results in:

root@faas1:~# faas-cli logs test-rust
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Version: 0.9.11	SHA: ae2f5089ae66f81a1475c4664cb8f5edb6c096bf
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Forking: main, arguments: []
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Started logging: stderr from function.
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Started logging: stdout from function.
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Watchdog mode: http	fprocess: "main"
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Timeouts: read: 30s write: 30s hard: 30s health: 30s
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Listening on port: 8080
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Writing lock-file to: /tmp/.lock
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Error scanning stderr: read |0: file already closed
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Error scanning stdout: read |0: file already closed
2023-03-28T17:04:54Z 2023/03/28 17:04:54 Forked function has terminated: exec: not started

However a docker/ctr run runs fine as mentioned in openfaas-incubator/rust-http-template#9

Are you a GitHub Sponsor (Yes/No?)

No, not yet. I have only been contributing buying the https://openfaas.gumroad.com/l/serverless-for-everyone-else

Check at: https://github.com/sponsors/openfaas

  • Yes
  • No

List All Possible Solutions and Workarounds

I do not have enough knowledge about what the difference in faas and direct container deployment is.

Which Solution Do You Recommend?

Implement the function I need in javascript or go instead of rust. It could be considered to remove templates from the store if they are outdated and therefore doesn't work out of the box.

Steps to Reproduce (for bugs)

openfaas-incubator/rust-http-template#9

Your Environment

New vm with ubuntu 22.04 and a fresh install of ./hack/install.sh

containerd github.com/containerd/containerd v1.6.8
faasd version: 0.16.8-rc1 commit: 4d6b6df

@alexellis
Copy link
Member

Hi there, thanks for your interest in openfaas.

We'll need you to raise this issue on the Rust repo itself, not on faasd.

faasd is a runtime for OpenFaaS Community Edition and doesn't have anything to do with custom templates written in Rust.

I'll get this closed and keep an eye out on the other repo.

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants