Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Bienvenido a la comunidad de Pandora FMS Forums Community support upgrading the agent to 7.45 – sed error

  • upgrading the agent to 7.45 – sed error

    Posted by rich-haddenwright-edu on mayo 19, 2020 at 21:30

    I’m trying to upgrade to pandorafms_agent_unix-7.0NG.745-200504.x86_64 on oracle linux 6.x and centos 7.x (latest builds).  When I run the update or try to do a fresh install I get an error:

    Resolving Dependencies
    –> Running transaction check
    —> Package pandorafms_agent_unix.x86_64 0:7.0NG.745-200504 will be installed
    –> Processing Dependency: /usr/bin/grep for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Processing Dependency: /usr/bin/grep for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Finished Dependency Resolution
    Error: Package: pandorafms_agent_unix-7.0NG.745-200504.x86_64 
               Requires: /usr/bin/sed
    Error: Package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
               Requires: /usr/bin/grep

    I checked the spec for the rpm and as indicated in the dependencies above, it’s looking for grep and sed in /usr/bin.  These files are installed in /bin.  I’ve tried copying those binaries into /usr/bin as well as soft linking but neither seems to satisfy the requirement.  Is there a reason the build references /usr/bin instead of /bin?  

    Thanks,
    -Rich

    alisamifarooq replied 3 years, 10 months ago 7 Members · 19 Replies
  • 19 Replies
  • aeleus

    Member
    mayo 30, 2020 at 23:33
    529 Karma points
    Community rank: tentacle-rookie Tentacle rookie
    Like it
    Up
    0
    Down
    Drop it
    ::

    I get a similar error:
    …..

    —> Package pandorafms_agent_unix.x86_64 0:7.0NG.745-200504 will be an update
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    —> Package python-tdb.x86_64 0:1.3.18-1.el7 will be installed
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Finished Dependency Resolution
    –> Running transaction check
    —> Package kernel.x86_64 0:3.10.0-957.5.1.el7 will be erased
    —> Package pandorafms_agent_unix.x86_64 0:7.0NG.745-200504 will be an update
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.745-200504.x86_64
    –> Finished Dependency Resolution
    Error: Package: pandorafms_agent_unix-7.0NG.745-200504.x86_64 (Artica)
               Requires: /usr/bin/sed
               Removing: sed-4.2.2-5.el7.x86_64 (@anaconda)
                   Not found
               Updated By: sed-4.2.2-6.el7.x86_64 (base)
                   Not found
     You could try using –skip-broken to work around the problem
     You could try running: rpm -Va –nofiles –nodigest

  • diego-m

    Moderator
    junio 1, 2020 at 18:39
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Sorry for the delay, try to install the agent through the .tar.gz file, it should work fine.

    https://sourceforge.net/projects/pandora/files/Pandora%20FMS%207.0NG/745/Tarball/

    Greetings
    Diego

  • aeleus

    Member
    junio 1, 2020 at 22:40
    529 Karma points
    Community rank: tentacle-rookie Tentacle rookie
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello

    Sorry for the delay, try to install the agent through the .tar.gz file, it should work fine.

    https://sourceforge.net/projects/pandora/files/Pandora%20FMS%207.0NG/745/Tarball/

    Greetings
    Diego

    Thanks for the reply, Diego.

    What worked for me was to update sed first (“yum update sed”). I then ran “yum update” and there were no more sed errors.

  • rich-haddenwright-edu

    Member
    junio 6, 2020 at 00:19
    23 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    thanks Diego, I’ll give that a shot. Will this be fixed in the repositories for .46?

  • diego-m

    Moderator
    junio 9, 2020 at 15:34
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    Investigating the problem we have detected that we had some agents in the repository that were not in the correct format, we have it noted in our list of priorities and I hope that for the 747 version it is solved, since the 746 has already been released.

    Greetings
    Diego

  • rich-haddenwright-edu

    Member
    septiembre 15, 2020 at 14:49
    23 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    Investigating the problem we have detected that we had some agents in the repository that were not in the correct format, we have it noted in our list of priorities and I hope that for the 747 version it is solved, since the 746 has already been released.

    Greetings
    Diego

  • ismael-moreno

    Member
    septiembre 16, 2020 at 17:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    Please install the agents using tarball packages in version 749 to check if this issue is still happening and update us on news.
    Kind regards.

  • rich-haddenwright-edu

    Member
    octubre 19, 2020 at 21:05
    23 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    Please install the agents using tarball packages in version 749 to check if this issue is still happening and update us on news.
    Kind regards.

  • diego-m

    Moderator
    octubre 21, 2020 at 17:44
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Greetings,

    We are dedicating great efforts to avoid this type of error that “reappears”. Currently, the QA team and members of other departments are reviewing all the functionalities and their possible cases (which includes the installation and update of agents in different operating systems), so that they do not happen in the new version 750 and later versions. We hope that the problem they are suffering from will not happen again. Sorry for the inconvenience.

    Greetings
    Diego

  • rich-haddenwright-edu

    Member
    octubre 22, 2020 at 21:09
    23 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks so much Diego, it’s very much appreciated!!! -Rich

  • rich-haddenwright-edu

    Member
    noviembre 17, 2020 at 15:44
    23 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Just a quick heads up, this is occurring again on 7.50.  It’s the same thing, the rpm requires /usr/bin/sed and there is no /usr/bin/sed, it’s installed in /bin/sed on CentOS 7.x.  The pandorafms rpm is not being built with the correct system requirements.  This is really becoming an issue for our upgrade process.  I cannot use the tarball for the automatic upgrades.
    -Rich


    At this point, the only solution I’ve found is to backup the config file, completely remove the pandora agent, do the typical upgrade and then reinstall pandora and restore the config file.  Here’s an example of what I’m seeing today:

    # yum upgrade pandorafms_agent_unix sed
    Loaded plugins: aliases, changelog, fastestmirror, langpacks, rhnplugin,
                  : tmprepo, verify, versionlock
    This system is receiving updates from RHN Classic or Red Hat Satellite.
    Loading mirror speeds from cached hostfile
    Package: pandorafms_agent_unix-7.0NG.750-201111.noarch – can’t co-install with pandorafms_agent_unix-7.0NG.750-201111.x86_64
    Resolving Dependencies
    –> Running transaction check
    —> Package sed.x86_64 0:4.2.2-6.el7 will be updated
    —> Package sed.x86_64 0:4.2.2-7.el7 will be an update
    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.750-201111.x86_64
    –> Finished Dependency Resolution
    Error: Package: pandorafms_agent_unix-7.0NG.750-201111.x86_64 (@pandorafms-centos7)
              Requires: /usr/bin/sed
              Removing: sed-4.2.2-6.el7.x86_64 (@centos7-x86_64)
                  Not found
              Updated By: sed-4.2.2-7.el7.x86_64 (centos7-x86_64)
                  Not found
    You could try using –skip-broken to work around the problem
    ^C

    -Rich

  • JackRM

    Member
    noviembre 20, 2020 at 13:50
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    same here

    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.750-201111.x86_64
    –> Finished Dependency Resolution
    Error: Package: pandorafms_agent_unix-7.0NG.750-201111.x86_64 (artica_pandorafms)
              Requires: /usr/bin/sed
              Removing: sed-4.2.2-6.el7.x86_64 (@anaconda)
                  Not found
              Updated By: sed-4.2.2-7.el7.x86_64 (base)
                  Not found
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    and it persists already since 3 o 4 minor versions..

    The problem arises only on the upgrade of already installed rpm.

  • diego-m

    Moderator
    noviembre 23, 2020 at 13:23
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    I regret that the problem persists, I think it is possible to solve it by creating a symbolic link since it seems that the sed path does not correspond to the one the agent installer is looking for.

    Basically try to create the symbolic link “/usr/bin/sed” that redirects you to “/usr/sed” which is where I suspect you have this dependency.

    Greetings
    Diego

  • rich-haddenwright-edu

    Member
    noviembre 24, 2020 at 15:03
    23 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    I regret that the problem persists, I think it is possible to solve it by creating a symbolic link since it seems that the sed path does not correspond to the one the agent installer is looking for.

    Basically try to create the symbolic link “/usr/bin/sed” that redirects you to “/usr/sed” which is where I suspect you have this dependency.

    Greetings
    Diego

    I just did this on one of our Centos 7.x boxes.  Here’s what I saw:

    –> Processing Dependency: /usr/bin/sed for package: pandorafms_agent_unix-7.0NG.750-201111.x86_64
    –> Finished Dependency Resolution
    Error: Package: pandorafms_agent_unix-7.0NG.750-201111.x86_64 (@pandorafms-centos7)
              Requires: /usr/bin/sed
              Removing: sed-4.2.2-6.el7.x86_64 (@centos7-x86_64)
                  Not found
              Updated By: sed-4.2.2-7.el7.x86_64 (centos7-x86_64)
                  Not found
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest
    [root@mysqlc01 w002rth]# ls -l /usr/bin/sed
    -rwxr-xr-x. 1 root root 76072 Apr  1  2020 /usr/bin/sed
    [root@mysqlc01 w002rth]# /usr/bin/sed –version
    /usr/bin/sed (GNU sed) 4.2.2
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Written by Jay Fenlason, Tom Lord, Ken Pizzini,
    and Paolo Bonzini.
    GNU sed home page: <http://www.gnu.org/software/sed/>.
    General help using GNU software: <http://www.gnu.org/gethelp/>.
    E-mail bug reports to: .
    Be sure to include the word “sed” somewhere in the “Subject:” field.
    [root@mysqlc01 w002rth]#

    In the past I’ve tried creating a symbolic link, but unsuccessfully.  In this case on the centos 7.8.2003 box, the file exists.

    -Rich

  • JackRM

    Member
    diciembre 14, 2020 at 14:02
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Greetings,

    We are dedicating great efforts to avoid this type of error that “reappears”.  Currently, the QA team and members of other departments are reviewing all the functionalities and their possible cases (which includes the installation and update of agents in different operating systems), so that they do not happen in the new version 750 and later versions. We hope that the problem they are suffering from will not happen again. Sorry for the inconvenience.

    Greetings
    Diego

    Hello Diego,
    actually we are continue to note this problem even with 750:

    –> Finished Dependency Resolution
    Error: Package: pandorafms_agent_unix-7.0NG.750-201111.x86_64 (artica_pandorafms)
    Requires: /usr/bin/sed
    Removing: sed-4.2.2-6.el7.x86_64 (@cloudlinux-base)
    Not found
    Updated By: sed-4.2.2-7.el7.x86_64 (cloudlinux-base)
    Not found

    Please update us from which version of agent for CentOS the problem will be solved.
    Thanks in advance,

  • hbh154

    Member
    febrero 13, 2021 at 01:10
    74 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    FYI

    Same issue presenting itself for 7.51

  • diego-m

    Moderator
    febrero 18, 2021 at 16:48
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Greetings,

    With the 752 update the problem should not happen again as the requirement to have sed installed to run the agent has been removed. We expect the 752 release to be next Monday.

    Thanks and sorry for the inconvenience caused by this bug.
    Diego

  • JackRM

    Member
    marzo 2, 2021 at 17:05
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I confirm that the bug has been finaly resolved.
    Big thanks for the support and maintaning this great piece of software !!

  • alisamifarooq

    Member
    marzo 3, 2021 at 14:15
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Let me try this action given by the Diego , after the completion of the this i will share my view on this thread ~ Ali Sami Farooq

The discussion ‘upgrading the agent to 7.45 – sed error’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now