Giter Club home page Giter Club logo

fw-chatgpt's Introduction

Hi 👋, I'm Geury Torres

Network Engineer with a passion for Network Automation

gt732

Connect with me:

geury-torres

Languages and Tools:

aws bash css3 docker express flask git html5 javascript linux nodejs postgresql postman python react sqlite tailwind

gt732

 gt732

gt732

fw-chatgpt's People

Contributors

gt732 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fw-chatgpt's Issues

Start Debug -> 504 Gateway Time-Out

Hey!
First of all hats off for developing this tool! I was quite excited about it and just wanted to test it on my FW but every time when i try to "Start Debug" for "System > High CPU" it throws a "504 Gateway Time-Out" error.. any idea what it could be?

Textarea output is this:

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.23.4</center>
</body>
</html>

When i look into the FW logs then i can see that a few commands are successfully performed:

  • diagnose sys session full-stat
  • diagnose sys top 5 20 3
  • get system performance status
  • get system console

On my admin account it even throws following:
/bin/sh: 1: Syntax error: "(" unexpected

Fortigate 200E (HA cluster) running 7.2.4

No response from fortigpt when clicking "run fortigpt"

First,fortigpt can communicate with chatgpt normally in chatmode,this indicates that API key is configured correctly. then i test the troubleshooting assistant function, clicking "run fortigpt" when i get the debug output, nothing is displayed in gui. i found an typeError in cli:
api_1 | child process exited with code 0
api_1 | TypeError: Cannot read properties of undefined (reading '0')
api_1 | at file:///app/server.js:108:37
api_1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
api_1 | child process exited with code 0
Does anyone could give me the direction on this issue?

API container Illegal instruction exit code 132

I am attempting to run either the local or repository compose files but for some reason the API container crashes with exit code 132 and that's about it in terms of log information. I changed the API key in the compose file with a valid one from my OpenAI account.

root@revel:~/FortiGPT-2.2.0# docker compose build --force-rm --no-cache

[+] Building 55.3s (30/30) FINISHED                                                                                                                                                                                                                                                                                                                                                                     
 => [fortigpt-220_client internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                                           0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                                                                                                                                                                                0.0s
 => [fortigpt-220_api internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                                              0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                                                                                                                                                                                                0.0s
 => [fortigpt-220_nginx internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                                            0.0s
 => => transferring dockerfile: 31B                                                                                                                                                                                                                                                                                                                                                                0.0s
 => [fortigpt-220_client internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                              0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                                                    0.0s
 => [fortigpt-220_nginx internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                                                    0.0s
 => [fortigpt-220_api internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                                                    0.0s
 => [fortigpt-220_client internal] load metadata for docker.io/library/nginx:latest                                                                                                                                                                                                                                                                                                                0.2s
 => [fortigpt-220_client internal] load metadata for docker.io/library/node:18.15-alpine3.16                                                                                                                                                                                                                                                                                                       0.2s
 => [fortigpt-220_api internal] load metadata for docker.io/nikolaik/python-nodejs:latest                                                                                                                                                                                                                                                                                                          0.1s
 => [fortigpt-220_api internal] load build context                                                                                                                                                                                                                                                                                                                                                 0.0s
 => => transferring context: 2.76kB                                                                                                                                                                                                                                                                                                                                                                0.0s
 => [fortigpt-220_api 1/7] FROM docker.io/nikolaik/python-nodejs:latest@sha256:260e16762b2564cec61756c9acd0cdf861daa49737268863598792d423444fca                                                                                                                                                                                                                                                    0.0s
 => CACHED [fortigpt-220_api 2/7] WORKDIR /app                                                                                                                                                                                                                                                                                                                                                     0.0s
 => [fortigpt-220_nginx internal] load build context                                                                                                                                                                                                                                                                                                                                               0.0s
 => => transferring context: 34B                                                                                                                                                                                                                                                                                                                                                                   0.0s
 => CACHED [fortigpt-220_client 1/2] FROM docker.io/library/nginx@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19c0                                                                                                                                                                                                                                                          0.0s
 => [fortigpt-220_client internal] load build context                                                                                                                                                                                                                                                                                                                                              0.0s
 => => transferring context: 1.44kB                                                                                                                                                                                                                                                                                                                                                                0.0s
 => [fortigpt-220_client builder 1/6] FROM docker.io/library/node:18.15-alpine3.16@sha256:318090ba36a4f9ca5ec50fcca33d26dd19e0e3f658419c9d2b408a99d99a4938                                                                                                                                                                                                                                         0.0s
 => CACHED [fortigpt-220_client builder 2/6] WORKDIR /app                                                                                                                                                                                                                                                                                                                                          0.0s
 => [fortigpt-220_api 3/7] COPY ./package.json ./                                                                                                                                                                                                                                                                                                                                                  0.0s
 => [fortigpt-220_nginx 2/2] COPY ./default.conf /etc/nginx/conf.d/default.conf                                                                                                                                                                                                                                                                                                                    0.0s
 => [fortigpt-220_client stage-1 2/3] COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf                                                                                                                                                                                                                                                                                                     0.1s
 => [fortigpt-220_client builder 3/6] COPY ./package.json ./                                                                                                                                                                                                                                                                                                                                       0.0s
 => [fortigpt-220_api 4/7] RUN npm i                                                                                                                                                                                                                                                                                                                                                               3.4s
 => [fortigpt-220_client] exporting to image                                                                                                                                                                                                                                                                                                                                                       1.7s
 => => exporting layers                                                                                                                                                                                                                                                                                                                                                                            0.0s
 => => writing image sha256:c099f38702aa6a16796cb0738fb69ea768066362dd9f282c9e59c750e3f98066                                                                                                                                                                                                                                                                                                       0.0s
 => => naming to docker.io/library/fortigpt-220_nginx                                                                                                                                                                                                                                                                                                                                              0.0s
 => => writing image sha256:56a2eb3c30dcd7a651a6cf30a02d0630b5edd36be300c1978d9bf9dd6f3f8600                                                                                                                                                                                                                                                                                                       0.0s
 => => naming to docker.io/library/fortigpt-220_api                                                                                                                                                                                                                                                                                                                                                0.0s
 => => writing image sha256:eb7c0967935d8ca9ec44d7e32963fe63cf1d183378f0a4ae6d7a669c91d8860f                                                                                                                                                                                                                                                                                                       0.0s 
 => => naming to docker.io/library/fortigpt-220_client                                                                                                                                                                                                                                                                                                                                             0.0s 
 => [fortigpt-220_client builder 4/6] RUN npm i                                                                                                                                                                                                                                                                                                                                                   37.5s 
 => [fortigpt-220_api 5/7] COPY . .                                                                                                                                                                                                                                                                                                                                                                0.1s 
 => [fortigpt-220_api 6/7] COPY requirements.txt ./                                                                                                                                                                                                                                                                                                                                                0.0s 
 => [fortigpt-220_api 7/7] RUN pip install -r requirements.txt                                                                                                                                                                                                                                                                                                                                    17.9s 
 => [fortigpt-220_client builder 5/6] COPY . .                                                                                                                                                                                                                                                                                                                                                     0.1s 
 => [fortigpt-220_client builder 6/6] RUN npm run build                                                                                                                                                                                                                                                                                                                                           16.8s 
 => [fortigpt-220_client stage-1 3/3] COPY --from=builder /app/build /usr/share/nginx/html                                                                                                                                                                                                                                                                                                         0.0s 
root@revel:~/FortiGPT-2.2.0# docker compose up                                                                                                                                                                                                                                                                                                                                                          
[+] Running 4/0
 ⠿ Network fortigpt-220_default     Created                                                                                                                                                                                                                                                                                                                                                        0.0s
 ⠿ Container fortigpt-220-client-1  Created                                                                                                                                                                                                                                                                                                                                                        0.0s
 ⠿ Container fortigpt-220-api-1     Created                                                                                                                                                                                                                                                                                                                                                        0.0s
 ⠿ Container fortigpt-220-nginx-1   Created                                                                                                                                                                                                                                                                                                                                                        0.0s
Attaching to fortigpt-220-api-1, fortigpt-220-client-1, fortigpt-220-nginx-1
fortigpt-220-client-1  | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
fortigpt-220-client-1  | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
fortigpt-220-client-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
fortigpt-220-client-1  | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
fortigpt-220-client-1  | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
fortigpt-220-client-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
fortigpt-220-client-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
fortigpt-220-client-1  | /docker-entrypoint.sh: Configuration complete; ready for start up
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: using the "epoll" event method
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: nginx/1.23.4
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) 
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: OS: Linux 5.15.0-69-generic
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1024:524288
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker processes
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 28
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 29
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 30
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 31
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 32
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 33
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 34
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 35
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 36
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 37
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 38
fortigpt-220-client-1  | 2023/04/04 16:33:28 [notice] 1#1: start worker process 39
fortigpt-220-api-1     | Listening on port 5005
fortigpt-220-nginx-1   | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
fortigpt-220-nginx-1   | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
fortigpt-220-nginx-1   | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
fortigpt-220-nginx-1   | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
fortigpt-220-nginx-1   | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
fortigpt-220-nginx-1   | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
fortigpt-220-nginx-1   | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
fortigpt-220-nginx-1   | /docker-entrypoint.sh: Configuration complete; ready for start up
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: using the "epoll" event method
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: nginx/1.23.4
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6) 
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: OS: Linux 5.15.0-69-generic
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1024:524288
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker processes
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 28
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 29
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 30
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 31
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 32
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 33
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 34
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 35
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 36
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 37
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 38
fortigpt-220-nginx-1   | 2023/04/04 16:33:29 [notice] 1#1: start worker process 39
fortigpt-220-api-1     | INFO:     Started server process [8]
fortigpt-220-api-1     | INFO:     Waiting for application startup.
fortigpt-220-api-1     | Illegal instruction (core dumped)
fortigpt-220-api-1 exited with code 132

Any ideas?

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.