Open HenrikBach1 opened 5 months ago
I use the latest fn client and server:
Script started on 2024-06-13 10:17:16+02:00 [COMMAND="fn version" TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="103" LINES="12"]
Client version is latest version: 0.6.34
Server version: 0.3.750
Script done on 2024-06-13 10:17:17+02:00 [COMMAND_EXIT_CODE="0"]
Using echo in the invoke of the revfunc gives a similar result:
sad@sad-HP-ZBook-17-G2:~/projects/fn/revfunc$ echo "Hello World" | fn invoke revapp revfunc
time="2024-06-13T08:21:01Z" level=info msg="hot function terminated" app_id=01J08894CFNG8G00RZJ0000003 container_id=01J08AZ5RYNG8G00RZJ0000009 cpus= error="container exit code 1" fn_id=01J088Q1D4NG8G00RZJ0000004 idle_timeout=30 image="sad/revfunc:0.0.1" memory=128
time="2024-06-13T08:21:01Z" level=info msg="hot function failure" app_id=01J08894CFNG8G00RZJ0000003 container_id=01J08AZ5RYNG8G00RZJ0000009 cpus= error="Container failed to initialize, please ensure you are using the latest fdk and check the logs" fn_id=01J088Q1D4NG8G00RZJ0000004 idle_timeout=30 image="sad/revfunc:0.0.1" memory=128
time="2024-06-13T08:21:01Z" level=info msg="container wait error, sending error to client" action="server.handleFnInvokeCall)-fm" app_id=01J08894CFNG8G00RZJ0000003 call_id=01J08AZ5RYNG8G00RZJ0000008 error="Container failed to initialize, please ensure you are using the latest fdk and check the logs" fn_id=01J088Q1D4NG8G00RZJ0000004
time="2024-06-13T08:21:01Z" level=error msg="api error" action="server.handleFnInvokeCall)-fm" code=502 error="Container failed to initialize, please ensure you are using the latest fdk and check the logs" fn_id=01J088Q1D4NG8G00RZJ0000004
Error invoking function. status: 502 message: Container failed to initialize, please ensure you are using the latest fdk and check the logs
Can verify that I have the same issue with the hotfunc revfunc...
time="2024-07-15T19:10:26Z" level=info msg="Fn serving on `:8080`" type=full version=0.3.750
time="2024-07-15T19:10:34Z" level=info msg="hot function terminated" app_id=01J2VVNWATNG8G00GZJ0000001 container_id=01J2VWVGGQNG8G00GZJ0000002 cpus= error="container exit code 1" fn_id=01J2VVPCYPNG8G00GZJ0000002 idle_timeout=30 image="revfunc:0.0.1" memory=128
time="2024-07-15T19:10:34Z" level=info msg="hot function failure" app_id=01J2VVNWATNG8G00GZJ0000001 container_id=01J2VWVGGQNG8G00GZJ0000002 cpus= error="Container failed to initialize, please ensure you are using the latest fdk and check the logs" fn_id=01J2VVPCYPNG8G00GZJ0000002 idle_timeout=30 image="revfunc:0.0.1" memory=128
time="2024-07-15T19:10:34Z" level=info msg="container wait error, sending error to client" action="server.handleFnInvokeCall)-fm" app_id=01J2VVNWATNG8G00GZJ0000001 call_id=01J2VWVGGQNG8G00GZJ0000001 error="Container failed to initialize, please ensure you are using the latest fdk and check the logs" fn_id=01J2VVPCYPNG8G00GZJ0000002
time="2024-07-15T19:10:34Z" level=error msg="api error" action="server.handleFnInvokeCall)-fm" code=502 error="Container failed to initialize, please ensure you are using the latest fdk and check the logs" fn_id=01J2VVPCYPNG8G00GZJ0000002
helper/scratch/rev on main [!?] via 🐳 rancher-desktop
❯ echo "Hello World" | fn invoke revapp revfunc
Error invoking function. status: 502 message: Container failed to initialize, please ensure you are using the latest fdk and check the logs
helper/scratch/rev on main [!?] via 🐳 rancher-desktop
❯ curl --data "Hello World" -H "Content-Type: text/plain" -X POST http://localhost:8080/t/revapp/revfunc
{"message":"Container failed to initialize, please ensure you are using the latest fdk and check the logs"}
Hi
I'm following your tutorial for hotwrap. Previously, I've followed it successfully. However, now I get an error message with:
Container failed to initialize, please ensure you are using the latest fdk and check the logs
:The fnserver was started without debug log level:
fn start
and the complete log from fnserver is:What am i doing wrong?
I've attached my used Dockerfile and func.yaml files to this post as *.txt files: func.yaml.txt Dockerfile.txt
Regards Henrik