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

Cant start API or log into web UI after importing Azure cp mgmt server config

Hey guys,

Hope someone might be able to guide me in right direction here. So, here is the scenario.

Customer has had Azure CP mgmt server for few years, which has only about 20 rules or so and they now want to move all that over (integrate if you will), with S1C instance.

I build R81.20 jumbo 96 mgmt lab, imported their config after running migrate server, all went well, rebooted, but realized that as soon as that was done, Apache would not start, hence api is is failing and even web UI does not load.

I tried changing the port, rebooting, changing NIC type, no joy. Also tried below sk, but all I get is this:

https://support.checkpoint.com/results/sk/sk169656

UEPM: Starting Apache...
/opt/CPuepm-R81.20/engine/scripts/uepm_functions: line 70: /opt/CPuepm-R81.20/logs/uepm/uepm_stop_start.log: No such file or directory
grep: to: No such file or directory
grep: find: No such file or directory
grep: the: No such file or directory
grep: value: No such file or directory
UEPM: Apache Web Server is starting...
/opt/CPuepm-R81.20/engine/scripts/uepm_functions: line 70: /opt/CPuepm-R81.20/logs/uepm/uepm_stop_start.log: No such file or directory
UEPM: WARNING - Failed to start Apache Web Server
/opt/CPuepm-R81.20/engine/scripts/uepm_functions: line 70: /opt/CPuepm-R81.20/logs/uepm/uepm_stop_start.log: No such file or directory

If anyone has an idea, happy to try.

Thanks so much as always!

Andy

0 Kudos
1 Solution

Accepted Solutions
the_rock
Legend
Legend

I fixed the issue by copying httpd2.conf file from /web/conf dir in customer's mgmt to my lab and once api restart command was done, all worked fine.

Cheers,

Andy

View solution in original post

10 Replies
PhoneBoy
Admin
Admin

Curious why uepm is involved here (Endpoint Management).

0 Kudos
the_rock
Legend
Legend

Weird, dont see it in their environment either...

Andy

0 Kudos
the_rock
Legend
Legend

FWIW, when I ran cpwd_admin list in my lab, I noticed 3 processes for log exporter as down, so removed them all, rebooted, now all shows E and 1, but apache still down...

Andy

0 Kudos
Duane_Toler
Advisor

Did the original server have Endpoint policy management enabled? Looks like this new VM is looking for the Endpoint management pieces from the migrate import, but they're not installed.  Did you do the Gaia First Time Wizard via the initial install WebUI, via config_system, or through the Azure Marketplace setup?  Again, looks like one of those didn't get the correct product selection for installation.

This is bit of a stupid question, but:  Did you run the Gaia First Time Wizard yet, before running migrate_server import? 🙂

 

The multiple "grep" command errors are also interesting.  That's a series of sequential words that is likely from an improperly defined (or missing) Bash variable resulting in that kind of erroneous output.  The error sequence in question is in the "start_apache()" function of the "uepm_functions" shell library.   However, the expected UEPM log file doesn't exist, likely because the paths don't exist, again, because the UEPM product isn't installed/configured.

You're also using HFA 96 which is rather bleeding edge.  I'd suggest re-doing this VM with HFA 92 instead, "just because".

Hope some of this helps.

0 Kudos
Duane_Toler
Advisor

Oh, and another possibly stupid question:  Is the IP of this new VM the same as the IP of the original, for the license to be activated?

 

0 Kudos
the_rock
Legend
Legend

Hey Duane,

Totally different IP and yes, I 100% made sure license was indeed correct.

Andy

0 Kudos
the_rock
Legend
Legend

I fixed the issue by copying httpd2.conf file from /web/conf dir in customer's mgmt to my lab and once api restart command was done, all worked fine.

Cheers,

Andy

Duane_Toler
Advisor

If that's the case, then sounds like the default web port was changed on the original server.  That's in CLISH ("show web ssl-port").  I'd be concerned if this happens again on the next reboot, tho.  That httpd.conf file is generated dynamically by /bin/httpd_xlate and based on the contents of the CONFD configuration.  I say reboot that server and make sure it comes back up correctly! 🤞

 

0 Kudos
the_rock
Legend
Legend

Im glad I was able to fix it by copying the file I mentioned, but nothing was changed on original server Duane. That environment has been around for 4 years now and I could literally count number of changes done to it on both hands. 

Cheers,

Andy

0 Kudos
the_rock
Legend
Legend

Also something else I wanted to mention, in case anyone else has this issue 🙂

So, when I copied httpd2.conf from working mgmt to lab, it all worked after doing api restart, but after reboot, it did NOT work, so had to run chattr +i httpd2.conf command, then rebooted again, now apache shows started as below and all still works fine.

Thanks guys!

Andy

 


API Settings:
---------------------
Accessibility: Require all granted
Automatic Start: Enabled

Processes:

Name State PID More Information
-------------------------------------------------
API Started 5952
CPM Started 5952 Check Point Security Management Server is running and ready
FWM Started 5509
APACHE Started 4354

Port Details:
-------------------
JETTY Internal Port: 53910
JETTY Documentation Internal Port: 53314
APACHE Gaia Port: 443

Profile:
-------------------
Machine profile: Large SMC env resources profile without SME
CPM heap size: 1280m

Apache port retrieved from: dbget http:ssl_port


--------------------------------------------
Overall API Status: Started
--------------------------------------------

API readiness test SUCCESSFUL. The server is up and ready to receive connections

Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events