cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ccastbr
Level 11
Report Inappropriate Content
Message 1 of 14

Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution
I have McAfee Agent extension 5.7.1.102  is running in the ePO 5.10 Update 9.     The Windows client installs and is running fine, however, I cannot seem to install the Linux client.
 
MA571LNX.zip is checked into the repository.    Using the exported agentPackages.zip the  install.sh  is exported for RHEL 7.8 systems
 
As root, ./install.sh -i -r     seems to install the software, but the services will not start
 
The installation script fails on a RHEL 7.8 system when attempting to start the services.
 
Registering the start up script...
Writing proxy env detail in /etc/ma.d/ma_environment.conf
warning: %post (MFEcma-5.7.1-116.x86_64) scriptlet failed, exit status 1
installing client extensions from : /tmp/mfe1yt2gy  /tmpmfe/1yt2gy
Product count is : 1
Product is : DXL.zip
Calling mcupdater : localtion : /tmp/mfe1yt2gy
 
McAfee common services is not running
 
Any ideas?   
 
2 Solutions

Accepted Solutions
Former Member
Not applicable
Report Inappropriate Content
Message 11 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Hello @ccastbr 

Thanks for you response.

This is documented and in the below KB article:

https://kc.mcafee.com/corporate/index?page=content&id=KB94094&locale=en_US

We are working on this issue internally with dev team and as a workaround it suggested to go with the profile option.

I would request you to please subscribe the KB article and whenever any changes in KB you will get notified.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

Hawkmoon
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 13 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Hi ccastbr, all,
The issue the KB discusses is known and is to be included (merged) in to an updated MA.

Sorry to report at this time it is too early to say what release that might be, the 'issue' is a very new discovery (this January)!
That said I'd ask that you watch/keep an eye on that KB, as new information becomes available the KB should be updated to reflect the change in details and status!

Was my reply helpful?

If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

13 Replies
Former Member
Not applicable
Report Inappropriate Content
Message 2 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Hello @ccastbr 

Thanks for your response.

Could you please try the below steps and check whether the McAfee Agent is getting installed or not:

Remove the McAfee Agent on the Linux operating system and create a temporary profile:

  1. Open a command prompt as root user,
  2. At the command prompt, type:

    rpm -e MFEcma MFErt MFEdx
     
  3. Once removed, create a temporary profile using the command:

    touch /etc/.profile
     
  4. Install the McAfee agent again.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

ccastbr
Level 11
Report Inappropriate Content
Message 3 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Thank you for responding.   I had the same result.   Here is the edited console

As I look at this in more detail, the MA db files are missing.   Should that have been in the package?

 


Attempt to install 2/5/2021 12:55 EST

 

# rpm -qa | grep -i mfe
libxshmfence-1.2-1.el7.x86_64

# rpm -e MFEcma MFErt MFEdx
error: package MFEcma is not installed
error: package MFErt is not installed
error: package MFEdx is not installed
#


# ls /etc/.profile
ls: cannot access /etc/.profile: No such file or directory
# touch /etc/.profile
#


# cd /var/tmp

# unzip 571_20210203_agentPackages.zip


#
# chmod +x install.sh

# ./install.sh -i -r
space required to copy archive is 89314672 bytes
space available at /tmp/mfepRt4Gt is 10692677632 bytes
extracting archive to /tmp/mfepRt4Gt... please wait
86978+1 records in
86978+1 records out
44532790 bytes (45 MB) copied, 0.641173 s, 69.5 MB/s
Archive: /tmp/mfepRt4Gt/package.zip
inflating: /tmp/mfepRt4Gt/MFEma.x86_64.rpm
inflating: /tmp/mfepRt4Gt/MFErt.i686.rpm
inflating: /tmp/mfepRt4Gt/MFEma.i686.rpm
inflating: /tmp/mfepRt4Gt/DXL.zip
inflating: /tmp/mfepRt4Gt/mfema-5.7.1-116.x86_64.deb
inflating: /tmp/mfepRt4Gt/mfert-2.0-118.i686.deb
inflating: /tmp/mfepRt4Gt/mfema-5.7.1-116.i686.deb
inflating: /tmp/mfepRt4Gt/reqseckey.bin
inflating: /tmp/mfepRt4Gt/srpubkey.bin
inflating: /tmp/mfepRt4Gt/sitelist.xml
inflating: /tmp/mfepRt4Gt/req2048seckey.bin
inflating: /tmp/mfepRt4Gt/sr2048pubkey.bin
inflating: /tmp/mfepRt4Gt/agentfipsmode
inflating: /tmp/mfepRt4Gt/agent.ini
inflating: /tmp/mfepRt4Gt/RepoKeys.ini
inflating: /tmp/mfepRt4Gt/contrib.ini
Preparing... ################################# [100%]
Available space : 7047344 KB
Required size : 6144 KB
Updating / installing...
1:MFErt-2.0-131 ################################# [100%]
Writing conf file ...
Updating linker cache ...
Runtime installed successfully
Preparing... ################################# [100%]
Available space : 7043336 KB
Required size : 30720 KB
Creating user(mfe) and group (mfe)
Updating / installing...
1:MFEcma-5.7.1-116 ################################# [100%]
Registering the start up script...
Writing proxy env detail in /etc/ma.d/ma_environment.conf
warning: %post(MFEcma-5.7.1-116.x86_64) scriptlet failed, exit status 1
installing client extensions from : /tmp/mfepRt4Gt /tmp/mfepRt4Gt
Product count is : 1
Product is : DXL.zip
Calling mcupdater : location : /tmp/mfepRt4Gt
McAfee compat service is not running.

McAfee common services is not running.

McAfee agent service is not running.


Starting McAfee Agent services...
[ OK ]
Starting McAfee common services...
[ OK ]
Starting McAfee Agent compat service.
[ OK ]

 

# systemctl status ma
● ma.service - LSB: McAfee Agent
Loaded: loaded (/etc/rc.d/init.d/ma; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
#


# more /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.8 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.8"

 


# ps -elf | grep -i mcafee
0 R root 2479 2013 0 80 0 - 28203 - 17:50 pts/0 00:00:00 grep --color=auto -i mcafee

 

# ls /opt/McAfee/agent
bin lib license.txt resource scripts
#
#
# ls /opt/McAfee/agent/bin
cmdagent macmnsvc macompatsvc maconfig ma_msgbus_auth.sig masvc mcupdater msaconfig Mue policy_upgrade
#
# /opt/McAfee/agent/bin/cmdagent -i
Failed to get ma info, error code <507>
#
# systemctl start ma
# systemctl status ma
● ma.service - LSB: McAfee Agent
Loaded: loaded (/etc/rc.d/init.d/ma; bad; vendor preset: disabled)
Active: active (exited) since Fri 2021-02-05 17:51:10 UTC; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 2537 ExecStart=/etc/rc.d/init.d/ma start (code=exited, status=0/SUCCESS)

Feb 05 17:51:00 u00su02mc02 su[2567]: (to mfe) root on none
Feb 05 17:51:00 u00su02mc02 ma[2537]: [14B blob data]
Feb 05 17:51:00 u00su02mc02 ma[2537]: Starting McAfee Agent services...
Feb 05 17:51:00 u00su02mc02 ma[2537]: [14B blob data]
Feb 05 17:51:04 u00su02mc02 ma[2537]: Starting McAfee common services...
Feb 05 17:51:04 u00su02mc02 su[2578]: (to mfe) root on none
Feb 05 17:51:04 u00su02mc02 ma[2537]: [14B blob data]
Feb 05 17:51:10 u00su02mc02 ma[2537]: Starting McAfee Agent compat service.
Feb 05 17:51:10 u00su02mc02 ma[2537]: [14B blob data]
Feb 05 17:51:10 u00su02mc02 systemd[1]: Started LSB: McAfee Agent.
#
#

 

# cd /var/McAfee/agent/logs
#
#
#
# ls
macmnsvc_u00su02mc02.log macompatsvc_u00su02mc02.log maconfig.log masvc_u00su02mc02.log
# more maconfig.log
Starting McAfee Agent healthcheck... 2021-02-05 17:50:59.650 (2551.2551) maconfig.Info: Healthcheck and restore initiated.
McAfee compat service is not running.

McAfee common services is not running.

McAfee agent service is not running.

2021-02-05 17:51:00.196 (2551.2551) maconfig.Info: agent db check started
2021-02-05 17:51:00.197 (2551.2551) maconfig.Info: check all db files.
2021-02-05 17:51:00.197 (2551.2551) maconfig.Info: MA db files are not present, so skipping database schema check (fresh installation).
2021-02-05 17:51:00.197 (2551.2551) maconfig.Info: healthcheck and restore is successful.
2021-02-05 17:51:00.197 (2551.2551) maconfig.Info: configuration finished
#
#
#

 

ccastbr
Level 11
Report Inappropriate Content
Message 4 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

I exported the previous package MA 5.6.6 for Linux.  Exported install.sh and it installed and started perfectly.

I have already attempted to check in the MA 5.7.1 package again.   I have checked the hash values for this package to make sure there isn't a corrupted package and the hash compares.

Former Member
Not applicable
Report Inappropriate Content
Message 5 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Hello @ccastbr 

Thanks for your response.

I would like to request you to please open a New Service Request with Support Team.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

ccastbr
Level 11
Report Inappropriate Content
Message 6 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Thank you.   I am convinced there is something wrong with the package. It will update an existing agent, but it will not install clean.   I appreciate your help.

 

Former Member
Not applicable
Report Inappropriate Content
Message 7 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Hello @ccastbr 

Thanks for your response.

It seems like a bug but to dig more we need a Service Request so we can work and provide the feedback.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Hawkmoon
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 8 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

Hi ccastbr,

Can you test a senario please?

Would you get one device remove MA completely (you may hve to remove other PPs if installed to ensure a clean state for teh next step) now install MA 5.7 as if new please?

Does it compelte now?

Was my reply helpful?

If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

ccastbr
Level 11
Report Inappropriate Content
Message 9 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

To clean, I have removed ENSL and the McAfee SELinux

Then I have removed all McAfee Agent rpms -  MFEcma and MFErt  but if this was a good install, I have used the uninstall script or added the DXL to the list also.

 

With no McAfee present as described  - I have run three cases:

a) Installing McAfee Agent 5.6.6 works perfectly  (ASCI comm works and wake up responds)

b) Upgrading 5.6.6 to 5.7.1  ( ./install -u -r ) works perfectly  (of course MA db is already present)

c) Installing McAfee Agent 5.7.1 (or 5.7.0) fails - and always the same way

I have followed the KB94094 to make a temporary profile, however, I am not seeing how the empty /etc/.profile helps.

The KB was followed to "touch /etc/.profile"

# ls -l /etc/.profile
-rw-r--r--. 1 root root 0 Feb 10 00:02 /etc/.profile

There was already a /etc/profile but not a .profile

# ls -l /etc/profile
-rw-r--r--. 1 root root 1819 Aug 23 2019 /etc/profile

This appears to be where the error is happening but I cannot pinpoint specifically what the script is unhappy with.


Updating / installing...
1:MFEcma-5.7.1-116 ################################# [100%]
Registering the start up script...
Writing proxy env detail in /etc/ma.d/ma_environment.conf
warning: %post(MFEcma-5.7.1-116.x86_64) scriptlet failed, exit status 1
+ returncode=0

 

After that the services do not start.   Several items are empty -    ma_environment.conf  is written but is an empty file.     MA db missing, etc. 

 

 

 

ccastbr
Level 11
Report Inappropriate Content
Message 10 of 14

Re: Is anyone having difficulty installing McAfee Agent 5.7.1 - error on installing

Jump to solution

After writing my last post, I though, "why would there be a .profile in /etc"?

So after cleaning out the system, and after sudo su -, I went to the root home and did touch .profile to create an empty .profile there.

Bingo - now installing the MA 5.7.1    ./install.sh -i- r   is successful

So what is up with this?  Why is an empty .profile the key to success?     I am going to have a hard time convincing the team to put a 0-byte .profile in the root home dir.     We have Puppet place the Linux agent on systems, but to modify our puppet module to create the .profile is probably not a good solution.  

Is anything being done to correct the installer, which worked fine for 5.6.6 but not for 5.7.1?

Thanks!

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community