Skip to content

FlowSaga Tutorial: Error at Deploying flight-book to app: travel #123

Description

@bellrauthien

There is an error when trying to deploy flight-book.

Seems like jdk9-1.0.73 tag does not exist for fn-java-fdk-build image.

Here is the error message:

Current Context:  default
Sending build context to Docker daemon  84.48kB
Step 1/11 : FROM fnproject/fn-java-fdk-build:jdk9-1.0.73 as build-stage
manifest for fnproject/fn-java-fdk-build:jdk9-1.0.73 not found

Fn: deploy error on /u01/app/fn/tutorials/FlowSaga/flight/book/func.yaml: error running docker build: exit status 1

Looking at DockerHub > fnproject/fn-java-fdk-build, there is no jdk9-1.0.73 tag. The latest one is jdk9-1.0.72.

Activity

  1. zootalures commented on Oct 12, 2018

    @zootalures
    Member

    Thanks, it looks like something broke in the last deploy, I’m investigating now

  2. zootalures commented on Oct 12, 2018

    @zootalures
    Member

    I’ve had to roll back the broken 1.0.73 release, can you try again now, thanks

  3. bellrauthien commented on Oct 12, 2018

    @bellrauthien
    Author

    It worked now. Thanks for your time and help.

    With the new version of Fn Server, I think this command structure should change as well:

    root@spsapigateway:/u01/app/fn/tutorials/FlowSaga# fn list routes travel
    
    Fn: 'routes' is not a Fn Command
    
    See 'fn <command> --help' for more information. Note the fn CLI command structure has changed, please change your command to use the new structure.
    
  4. rcarrascosps commented on Oct 20, 2018

    @rcarrascosps

    Hi. I managed to deploy everything and update the commands for the latest version of Fn, but when I call the functions I am getting this error:
    root@spsapigateway:~/demo/tutorials/FlowSaga# fn get logs travel trip 01CT9DQNMXNG8G00GZJ000014Q
    Exception in thread "main" java.lang.NoSuchMethodError: com.fnproject.fn.api.OutputEvent.fromBytes([BLcom/fnproject/fn/api/OutputEvent$Status;Ljava/lang/String;)Lcom/fnproject/fn/api/OutputEvent;
    at com.fnproject.fn.runtime.exception.InternalFunctionInvocationException.(InternalFunctionInvocationException.java:22)
    at com.fnproject.fn.runtime.MethodFunctionInvoker.tryInvoke(MethodFunctionInvoker.java:39)
    at com.fnproject.fn.runtime.FunctionRuntimeContext.tryInvoke(FunctionRuntimeContext.java:180)
    at com.fnproject.fn.runtime.EntryPoint.lambda$run$0(EntryPoint.java:98)
    at com.fnproject.fn.runtime.HttpEventCodec.runCodec(HttpEventCodec.java:178)
    at com.fnproject.fn.runtime.EntryPoint.run(EntryPoint.java:94)
    at com.fnproject.fn.runtime.EntryPoint.main(EntryPoint.java:43)

    Any ideas?

  5. denismakogon commented on Oct 21, 2018

    @denismakogon
    Member

    @rcarrascosps maybe because flow lib API changed, no? Which version of Java FDK do you use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions