Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Dan_Riddleberge
Contributor
Contributor
Jump to solution

GAIA_API Status shows REDIS Stopped

GAIA_API Status shows REDIS is Stopped (see photo attached)

GAIA API scripts are not working

Seeing this on various devices running R81.10 HF-150 and R81.20 HF-99

gaia_api status shows build 991255299

cpinfo -y all | grep GAIA_API - shows Take: 6

Reboots do not resolve and

Expert>gaia_api restart -f all (does not resolve)

api_status-for-checkmates-1.png

 

0 Kudos
1 Solution

Accepted Solutions
23 Replies
Lesley
Mentor Mentor
Mentor

Can you still reach it on 443? If no did you maybe turned off the ssl portal and then automatic also the API? -> https://support.checkpoint.com/results/sk/sk166692

-------
If you like this post please give a thumbs up(kudo)! 🙂
the_rock
Legend
Legend

Just wondering, if you try to run api stop and api start, does it give any error? If it does and its complaining about a file, I can send you whatever needed from my working lab.

Andy

Dan_Riddleberge
Contributor
Contributor

<Lesley> yes we can still access over 443, no recent changes except for periodic policy installs.

<Andy> Checking and trying the api stop/start. Also do you know if there is an $FWDIR/gaia_api.elg file or is everything related to gaia_api also going to be in the api.elg file? We're not finding a gaia_api.elg anywhere so far. 

0 Kudos
the_rock
Legend
Legend

I dont see that one anywhere, but you have api.elg* files in $FWDIR/log dir

Andy

Duane_Toler
Advisor

Yes, but it's /var/log/gaia_api_server.log

Restart it with:

gaia_api stop
gaia_api restart -f all

 

--
Ansible for Check Point APIs series: https://www.youtube.com/@EdgeCaseScenario and Substack
the_rock
Legend
Legend

Good to know! Though, considering Dan indicated fw was rebooted, that 100% would have started the process...

Andy

0 Kudos
Timothy_Hall
Legend Legend
Legend

The Gaia API log file is /var/log/gaia_api_server.log.

Gaia 4.18 (R82) Immersion Tips, Tricks, & Best Practices
Self-Guided Video Series Coming Soon
0 Kudos
the_rock
Legend
Legend

Did more checks on this and found some online forums where people were saying this could be related to cpu/memory issue, but also to make sure port 6379 is allowed as well.

Andy

From my lab:

 

[Expert@R82:0]# netstat -na | grep 6379
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6379 127.0.0.1:40596 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40544 ESTABLISHED
tcp 0 0 127.0.0.1:40536 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40582 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40490 ESTABLISHED
tcp 0 0 127.0.0.1:40582 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40556 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40508 ESTABLISHED
tcp 0 0 127.0.0.1:40564 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40490 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40610 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40592 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40616 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40552 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40524 ESTABLISHED
tcp 0 0 127.0.0.1:40508 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40592 ESTABLISHED
tcp 0 0 127.0.0.1:40616 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40544 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40536 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40610 ESTABLISHED
tcp 0 0 127.0.0.1:40524 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40596 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:40552 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40556 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:40564 ESTABLISHED
[Expert@R82:0]#

0 Kudos
Dan_Riddleberge
Contributor
Contributor

ok, so let the weirdness begin.

R81.20 HF-65 SMS and Gateways are all ok no gaia_api issues, stops, starts, reboots, restarts all AOK.

R81.10 HF-150 and R81.20 HF-99 gateways not ok

all have the same build gaia_api status shows build 991255299 (including the HF-65 devices)

Get ready to mark your bingo card, all problematic gateways show...

[Expert@cp_fw1:0]# netstat -na | grep 6379
[Expert@cp_fw1:0]#

 

0 Kudos
Duane_Toler
Advisor

That is quite interesting!  You might have found a bug!  I'd suggest you contact TAC at this point, unless you find something useful in the log file.

--
Ansible for Check Point APIs series: https://www.youtube.com/@EdgeCaseScenario and Substack
0 Kudos
the_rock
Legend
Legend

Will check my R81.20 cluster soon...one I sent you is from R82 fw.

Andy

0 Kudos
the_rock
Legend
Legend

master member R81.20 jhf 99 cluster:

 

[Expert@CP-FW-01:0]#
[Expert@CP-FW-01:0]# netstat -na | grep 6379
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6379 127.0.0.1:53896 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53876 ESTABLISHED
tcp 0 0 127.0.0.1:53894 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53880 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53892 ESTABLISHED
tcp 0 0 127.0.0.1:63792 127.0.0.1:1024 ESTABLISHED
tcp 0 0 127.0.0.1:53886 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:63790 127.0.0.1:1024 ESTABLISHED
tcp 0 0 127.0.0.1:53880 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:53896 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53894 ESTABLISHED
tcp 0 0 127.0.0.1:53878 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53878 ESTABLISHED
tcp 0 0 127.0.0.1:53876 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53882 ESTABLISHED
tcp 0 0 127.0.0.1:1024 127.0.0.1:63790 ESTABLISHED
tcp 0 0 127.0.0.1:1024 127.0.0.1:63792 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53884 ESTABLISHED
tcp 0 0 127.0.0.1:53898 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:53882 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:53892 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:53884 127.0.0.1:6379 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53898 ESTABLISHED
tcp 0 0 127.0.0.1:6379 127.0.0.1:53886 ESTABLISHED
[Expert@CP-FW-01:0]#

Dan_Riddleberge
Contributor
Contributor

Thanks Andy,

Can you elaborate a bit more on your comment yesterday about the online forum and port 6379?

Clearly, this is definitive finding in the problematic systems whereas port 6379 is not listening for those systems.

NEW UPDATE - found 'reaped' error in /var/log/messages file (below)

Andy wrote - 'Did more checks on this and found some online forums where people were saying this could be related to cpu/memory issue, but also to make sure port 6379 is allowed as well.'

0 Kudos
Dan_Riddleberge
Contributor
Contributor

netstat-messages-error-051325.png

0 Kudos
Alex-
Leader Leader
Leader

Thanks for the finding. We make minor use of the GAIA API, and started to get Error 500 on upgraded gateways when doing calls locally when the remote calls stopped. Let's hope an SK with possibly a workaround will be published soon.

Daniel_Kuhl1
Employee
Employee

That's an interesting finding. I need to look after it, because I planned to update my R81.20 lab devices to HF-99 later this week. 🤔

the_rock
Legend
Legend

Worked fine for me, never had that problem.

Andy

Henrik_Noerr1
Advisor

We see all t99 nodes affected by this. Until now only gateways where api is not used.

But I think we need to hold back upgrading our MDS if this affects the api.

Any workarounds?

0 Kudos
Hugo_vd_Kooij
Advisor

I see the same thing on our MDS farm.

At the moment we don't use the GAIA API there.

We see no impact on the normal Management APII which would get us in a heap of trouble.

(I can't help but notice that QA on Jumbo Hotfix Take 99 seems to have missed a few things.)

<< We make miracles happen while you wait. The impossible jobs take just a wee bit longer. >>
0 Kudos
Dan_Riddleberge
Contributor
Contributor
the_rock
Legend
Legend

Awesome, tx for the update!

Andy

0 Kudos
Hugo_vd_Kooij
Advisor

I assume you mean that Build 300 fixes the issue?

<< We make miracles happen while you wait. The impossible jobs take just a wee bit longer. >>
0 Kudos
Daniel_Kuhl1
Employee
Employee

So the bug was specifically in Build 299 and fixed within Build 300, right?

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events