Nextcloud version: 13.0.1.1
OS: Slackware 14.2
php -v
PHP 7.2.4 (cli) (built: Apr 13 2018 10:52:37) ( ZTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.0, Copyright © 2002-2018, by ionCube Ltd.
with Zend OPcache v7.2.4, Copyright © 1999-2018, by Zend Technologies
apachectl -v
Server version: Apache/2.4.33 (Unix)
Server built: Apr 13 2018 10:36:48
mysql --version
mysql Ver 15.1 Distrib 10.2.14-MariaDB, for Linux (x86_64) using readline 5.1
uname -a
Linux hammer 4.4.0 #1 SMP Mon Jan 11 22:25:06 CST 2016 x86_64 Intel® Xeon® CPU E5-1620 v3 @ 3.50GHz GenuineIntel GNU/Linux
The issue you are facing:
I’ve got some kind of race condition whereby I even had to set up a cronjob to empty the ownlcoud.log file in order to keep the /var/partition from filling up. Here’s what every single entry looks like, from within Nextcloud:
hash_hmac(): Unknown hashing algorithm: sha1 at /var/www/htdocs/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/Hash.php#308
When tailing the logfile it just races by at lightning speed, non-stop, until the partition eventually fills up.
Is this the first time you’ve seen this error? (Y/N): Yes.
Steps to replicate it:
./etc/rc.d/rc.mysqld start
/etc/rc.d/rc.httpd start
And in a couple of seconds the logfile begins to fill.
The output of your Nextcloud log in Admin > Logging:
hash_hmac(): Unknown hashing algorithm: sha1 at /var/www/htdocs/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/Hash.php#308
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
# cat config.php
<?php
$CONFIG = array (
'instanceid' => 'santaclaus',
'passwordsalt' => 'pepper',
'secret' => 'secret',
'trusted_domains' =>
array (
0 => 'host.sld.tld',
),
'datadirectory' => '/var/www/htdocs/data',
'overwrite.cli.url' => 'https://host.sld.tld',
'dbtype' => 'mysql',
'version' => '13.0.1.1',
'dbname' => 'owncloud666',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'satan',
'dbpassword' => 'password',
'logtimezone' => 'UTC',
'installed' => true,
'mail_from_address' => 'satan',
'mail_smtpmode' => 'smtp',
'mail_domain' => 'sld.tld',
'maintenance' => false,
'loglevel' => 0,
'theme' => '',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.sparkpostmail.com',
'mail_smtpport' => '587',
'mail_smtpname' => 'SMTP_Injection',
'mail_smtppassword' => 'password',
'mail_smtpsecure' => 'tls',
);