Page MenuHomePhabricator

webservice buildservice not starting Rust webservice
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
No webservice
The tool responsible for the URL you have requested, https://ac2wd.toolforge.org/, is not currently responding.

What should have happened instead?:
Website appears.

Other information (browser name/version, screenshots, etc.):
If I run a binary with "webservice start" it works fine. The port from the procfile get picked up correctly when testing on local machine.

Event Timeline

taavi claimed this task.
taavi subscribed.

kubectl describe pod was showing this:

Warning  Failed     7s (x3 over 28s)  kubelet            Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "auth2wd/target/release/auth2wd": stat auth2wd/target/release/auth2wd: no such file or directory: unknown

Which was indicating that extra_args in service.template was overriding what was set in Procfile. I commented that out, restarted, and now it seems to work fine.

Just tried starting it on a test tool and it worked for me: https://dcaro-test11.toolforge.org/

tools.dcaro-test11@tools-sgebastion-10:~$ toolforge webservice buildservice start --mount=none --buildservice-image tool-ac2wd/tool-ac2wd:latest  # the image is needed as it's not the tool image itself

It has no logs at all though.

It takes a few seconds to update the proxy, maybe that's what you saw? can you try again?