Giter Club home page Giter Club logo

Comments (7)

athomaj avatar athomaj commented on May 25, 2024

getting the same issue here.

EDIT:
I actually fixed it by creating the env/function in another namespace than fission, like default for example.

from fission.

KunkaiLin1205 avatar KunkaiLin1205 commented on May 25, 2024

I will try this out.

from fission.

sanketsudake avatar sanketsudake commented on May 25, 2024

Kindly tryout latest release https://github.com/fission/fission/releases/tag/v1.20.0-rc2

from fission.

dmitry-mightydevops avatar dmitry-mightydevops commented on May 25, 2024

Same on my side, followed tutorial

➜ fission function test --name hello-py
Error: Error calling function hello-py: 404; Please try again or fix the error: 404 page not found

Error: Error getting function logs from controller: error executing get logs request: no active pods found. Try to get logs from log database.
Warning: version<1.18 used fission-function as pod's default namespace. Specify appropriate namespace with --pod-namespace tag or export an environment variable for function-namespace FUNCTION_NAMESPACE

Options:
  --name=''               Function name
  --method=[GET]          HTTP Methods: GET,POST,PUT,DELETE,HEAD. To mention single method: --method GET
                          and for multiple methods --method GET --method POST. [DEPRECATED for 'fn create',
                          use 'route create' instead]
  --header=[] (-H)        Request headers
  --body='' (-b)          Request body
  --query=[] (-q)         Request query parameters: -q key1=value1 -q key2=value2
  --timeout=1m0s (-t)     Length of time to wait for the response. If set to zero or negative number, no
                          timeout is set
  --dbtype='kubernetes'   Log database type, e.g. influxdb (currently influxdb and kubernetes logs are
                          supported)
  --subpath=''            Sub Path to check if function internally supports routing

Global Options:
  --server=''          Server URL
  --verbosity=1 (-v)   CLI verbosity (0 is quiet, 1 is the default, 2 is verbose)
  --kube-context=''    Kubernetes context to be used for the execution of Fission commands
  --namespace='' (-n)  If present, the namespace scope for this CLI request

Usage:
  fission function test [options]

Error: error getting function response
✗  fission check                        
fission-services
--------------------
√ executor is running fine
√ router is running fine
√ storagesvc is running fine
√ webhook is running fine

fission-version
--------------------
√ fission is up-to-date

➜ kgpo
NAME                             READY   STATUS    RESTARTS   AGE
buildermgr-55c97d5ccf-4ntf6      1/1     Running   0          61m
executor-6b55bb598c-ph2zz        1/1     Running   0          61m
kubewatcher-546bb56c54-kncpt     1/1     Running   0          61m
mqtrigger-keda-8595bc96f-4r988   1/1     Running   0          61m
router-5896d48fc5-574gv          1/1     Running   0          61m
storagesvc-56f446767b-j6mns      1/1     Running   0          61m
timer-7ff4bf79b8-m8kgs           1/1     Running   0          61m
webhook-869bf995bb-khsnf         1/1     Running   0          61m

➜ fission version
client:
  fission/core:
    BuildDate: "2023-05-18T12:33:09Z"
    GitCommit: f955d118
    Version: v1.19.0
server:
  fission/core:
    BuildDate: "2023-05-18T12:33:09Z"
    GitCommit: f955d118
    Version: v1.19.0

➜ k version  
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.0", GitCommit:"1b4df30b3cdfeaba6024e81e559a6cd09a089d65", GitTreeState:"clean", BuildDate:"2023-04-11T17:10:18Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"27+", GitVersion:"v1.27.7-eks-4f4795d", GitCommit:"3719c8491f81867f591e895a43b4f5aab4145794", GitTreeState:"clean", BuildDate:"2023-10-20T23:21:04Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}

using v1.20.0-rc2 has failed as well

@sanketsudake

➜ ./fission-v1.20.0-rc2-linux-amd64 function test --name hello-py       
Error: calling function hello-py: 404; Please try again or fix the error: 404 page not found

Error: getting function logs: no active pods found for function in namespace fission. Try to get logs from log database.

Options:
  --name=''               Function name
  --method=[GET]          HTTP Methods: GET,POST,PUT,DELETE,HEAD. To mention single method: --method GET
                          and for multiple methods --method GET --method POST. [DEPRECATED for 'fn create',
                          use 'route create' instead]
  --header=[] (-H)        Request headers
  --body='' (-b)          Request body
  --query=[] (-q)         Request query parameters: -q key1=value1 -q key2=value2
  --timeout=1m0s (-t)     Length of time to wait for the response. If set to zero or negative number, no
                          timeout is set
  --dbtype='kubernetes'   Log database type, e.g. influxdb (currently influxdb and kubernetes logs are
                          supported)
  --subpath=''            Sub Path to check if function internally supports routing

Global Options:
  --verbosity=1 (-v)   CLI verbosity (0 is quiet, 1 is the default, 2 is verbose)
  --kube-context=''    Kubernetes context to be used for the execution of Fission commands
  --namespace='' (-n)  If present, the namespace scope for this CLI request

Usage:
  fission function test [options]

Error: error getting function response
✗  fission function list                
NAME     ENV    EXECUTORTYPE MINSCALE MAXSCALE MINCPU MAXCPU MINMEMORY MAXMEMORY SECRETS CONFIGMAPS NAMESPACE
hello-py python poolmgr      0        0        0      0      0         0                            fission

from fission.

GD-Dheer avatar GD-Dheer commented on May 25, 2024

from fission.

sanketsudake avatar sanketsudake commented on May 25, 2024

@GD-Dheer @dmitry-mightydevops

Please check #2860 (comment) comment here.

Also see if any network policies configured etc.

from fission.

sanketsudake avatar sanketsudake commented on May 25, 2024

Mostly seems you have create function in fission namespace and configured fission to use default namespace.

Please see above comment and try out. The latest release 1.20 also gives that all namespaces are configured with fission.
This is observed helm notes post installation.

Closing this issue. Feel free to reopen if you are unable to resolve after trying out above methods.

from fission.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.