-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hash_hmac(): Unknown hashing algorithm #26802
Comments
hmmm ... no sha1 algo available - no idea if we can run without it. AFAIK we use sha1 everywhere .. please run following command to see which algos are availble: $ php -r "print_r(hash_algos());" |
Yeah something is going wrong. Some pictures works and some pictures don't. When I restart the apache all alogs works (sha1 sha512 and sha256) but when I start to see this error in the log file some algorithm stop to work. Not sure why. Please find bellow the result: /usr/local/bin/php -r "print_r(hash_algos());"Array |
Well, if the PHP function work for a while and suddenly stops working, then there is something wrong with the PHP or Apache env. I don't think it's related directly to ownCloud. I guess that such weird side effects might appear if the server is somehow running out of memory and functions or libraries cannot properly initialize themselves. That could maybe fit with the preview creation code paths. Are these previews for huge files that are triggering the issue ? |
No. Not big files. Sometimes one directory with only two pictures raise the error. And this only happen with pictures. This is the output of var_dump(hash_algos())) when everything is working: This is the output when start to print the errors ######: |
According to the log this is not related to image processing. This happens while processing notifications |
As you can see the pic.jpeg with 30k does not shows the thumbnail but the png file with 144KB shows. |
Seems to be something related to jpg and jpeg pictures. I uploaded a lot of png files and they're all working correct. I'll attach the picture. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Tell us what should happen
Randomly navigating doing all kind of operations (upload / download files)
Actual behaviour
Tell us what happens instead
It's making apache server to hang.
Server configuration
Operating system:
Publisher: solaris
Version: 0.5.11 (Oracle Solaris 11.3.1.5.0)
Build Release: 5.11
Branch: 0.175.3.1.0.5.0
SunOS solapp01 5.11 11.3 i86pc i386 i86pc
Web server:
Server version: Apache/2.4.23 (Unix)
Server built: Nov 30 2016 21:53:12
Database:
Server version: 5.5.43 MySQL Community Server (GPL)
PHP version:
PHP 7.0.13 (cli) (built: Dec 8 2016 19:23:23) ( ZTS )
ownCloud version: (see ownCloud admin page)
ownCloud 9.1.2 (stable)
Updated from an older ownCloud or fresh install:
Fresh install
Where did you install ownCloud from:
https://owncloud.org/
Signing status (ownCloud 9.0 and above):
No errors have been found.
List of activated apps:
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Enabled:
Disabled:
The content of config/config.php:
$CONFIG = array (
'instanceid' => 'ocqh78myoxjv',
'passwordsalt' => 'xyz',
'secret' => 'xyz',
'trusted_domains' =>
array (
0 => 'xyz',
),
'datadirectory' => '/usr/local/apache2/htdocs/owncloud/data',
'overwrite.cli.url' => 'http://www.xyz.tk/',
'dbtype' => 'mysql',
'version' => '9.1.2.5',
'dbname' => 'owncloudb',
'dbhost' => '192.168.1.105',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_xyz5',
'dbpassword' => 'xyz',
'logtimezone' => 'UTC',
'installed' => true,
);
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
LDAP configuration (delete this part if not used)
Client configuration
Browser:
Safari
Operating system:
Mac OS
Logs
Web server error log
ownCloud log (data/owncloud.log)
359M Dec 8 22:18 owncloud.log
Same message:
{"reqId":"ieX+qPmDXzvDk+hFbVoc","remoteAddr":"xxxxxxxx","app":"PHP","message":"hash_hmac(): Unknown hashing algorithm: sha1 at /usr/local/apache2/htdocs/owncloud/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/Hash.php#308","level":3,"time":"2016-12-09T06:18:00+00:00","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v1/notifications?format=json","user":"--"}
{"reqId":"VDA4S8PVdbbHROYiVL2Y","remoteAddr":"xxxxxxxxx","app":"PHP","message":"hash_hmac(): Unknown hashing algorithm: sha1 at /usr/local/apache2/htdocs/owncloud/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/Hash.php#308","level":3,"time":"2016-12-09T06:18:00+00:00","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v1/notifications?format=json","user":"--"}
Browser log
The text was updated successfully, but these errors were encountered: