That "./
xivar" instruction is actually a bit of internal logic that saves local variables to a configuration file for use during install/upgrade.
It looks to me like the schema file that the upgrade script is failing to update is called
. The error we're seeing here indicates that the sed command to update this file is malformed somehow, and the only variable input to it is the password you provided. Based on this it really does seem like it must be an invalid character issue. I'm curious what we see if you try running this command directly on the command line. I would recommend backing up your config files and/or snapshotting your VM before trying this:
Replace the "$dbmaintpass" in the below command with the password you tried for this upgrade, and run this on your command line on the server this upgrade is failing on. If we see the same error, we can assume the password string is the culprit.
Code: Select all
sed -i "s/DBMAINTDEFAULTPASSWORD/$dbmaintpass/" "nagiosxi/nagiosxi-db/mods/mysql/schema_60000_root.sql"
(This is the sed command that I believe is failing from the upgrade script, so we're running it by itself to confirm this hypothesis)