Pandora FMS Community

Upgrade fail

joelions · 13 jul 2020, 8:52 · 2 mensajes · 67 visitas

  1. Inicio del debate

    When I go to upgrade the console .deb file I get the following issue cp: cannot stat '%{prefix}/pandora_console/pandora_websocket_engine': No such file or directory chmod: cannot access '/etc/init.d/pandora_websocket_engine': No such file or directory You can now start the Pandora FMS Websocket service by executing    /etc/init.d/pandora_websocket_engine start Please, now, point your browser to (Link not available anymore) and follow all the steps described on it. Any ideas why? When I go to the console it now wants to install from scratch. It warns "this installer will overwrite and destroy your existing Pandora FMS configuration and Database." Why does it want to install from scratch now?  We were coming from a version 7 and not 6.

  2. (edited msg)

    ¡Hello there! (FIRST check all your files for back up!) I checked this bash file, Pandora FMS's repo at GitHub (see also DEBIAN posinst 's history):

    #!/bin/bash
    
    echo Change the user and group to /var/www/pandora_console.
    chmod -R u+rwX,g+rX,g-w,o-rwx /var/www/pandora_console
    chgrp www-data /var/www/pandora_console -R
    chown www-data /var/www/pandora_console -R
    if [ -d /var/www/html ]; then mv /var/www/pandora_console /var/www/html/; fi
     
    if [ -f /etc/init.d/apache2 ]; then
    echo Restart the apache.
    /etc/init.d/apache2 restart
    fi
    
    # Install pandora_websocket_engine service.
    cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
    chmod +x /etc/init.d/pandora_websocket_engine
    
    echo "You can now start the Pandora FMS Websocket service by executing"
    echo "   /etc/init.d/pandora_websocket_engine start"
    
    echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
    

    I would try, in this order, at a new terminal with proper user's rights:

    chmod -R u+rwX,g+rX,g-w,o-rwx /var/www/pandora_console
    

    If last instruction return error, please (download, if) extract from .dep packet again. If not, I would change:

    cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
    

    with:

    cp /var/www/pandora_console/pandora_websocket_engine /etc/init.d/
    

    and execute. I am sincere: I do not know what it is for and where this variable comes from.

    %{prefix}
    

    Have a nice day! 8-)

Entra en tu cuenta para publicar.