I think I understand the error, onlyoffice is not installed on backup NS, and it is not an official package. Just want to know if there is a way to suppress the error, or better yet, is it safe to install onlyoffice on backup NS so it is better prepared for restore? I assume so, just want to be sure. Or is it better to wait until after the restore to install onlyoffice?
Ok, thanks. I will know tomorrow if I still get the error, but I assume all will be good.
I will test, but will the slave restore now install onlyoffice, or will it still need to be manually installed?
Examining /var/tmp/yum-root-fbuZ8b/onlyoffice-repo.noarch.rpm: onlyoffice-repo-1.0.0-9.noarch
/var/tmp/yum-root-fbuZ8b/onlyoffice-repo.noarch.rpm: does not update installed package.
Error: Nothing to do
I know it is suggested to not install anything on the slave NS box, but should I install onlyoffice-documentserver, or just make that part of the slave restore?
Funny thing is, when I check onlyoffice-repo it is not installed, it is like it was deleted. You can see below where I ran the command and it reported Nothing to do. Anyway, I have installed again, and it shows as enabled=1, and hope it was a fluke and all is good from here. I’ll report back tomorrow.
Was testing this a little more, and there are further problems.
After installing the nodesource repo, it seemed to be ok, but at 1am the next evening, which I assume is when the update check is run on the slave, I began getting this error on every hotsync run.
I rolled back to clean install, installed the 3 repos, and the same thing happened again the next night at 1am.
PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /usr/share/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /usr/share/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySq in /usr/share/nextcloud/lib/private/DB/Connection.php on line 64
PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /usr/share/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /usr/share/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /usr/share/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySq in /usr/share/nextcloud/lib/private/DB/Connection.php on line 64
php-mysql is not installed, but this is a hotsync clone, does that not happen automatically? The instructions say fresh install, and install hotsync and nothing else.
Now I’ve manually had to install 3 repos, but I assumed that was because of unsupported onlyoffice.