Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrade fail
#1
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 http://your_IP_address/pandora_console/install.php 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.
 Reply
#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):


Code:
#!/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:

Code:
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:

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

with:

Code:
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.
Code:
%{prefix}


Have a nice day! 8-)
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes