Getting hash errors while trying to hunt down connection issues

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

I have been having a bunch of issues since I had an issue where I accidentally tried to copy a huge folder into another folder, then canceled it. Not sure if this is related, as I have reset/reinstalled NC. I thought reinstalling would fix my issue since I couldn’t sync anyway. Below (in the log section) are the issues I am getting now

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.2 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.58
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.3.6

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:36:58 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:36:58 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:36:48 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:35:06 AM

Error
no app in context
BadRequest
Expected filesize of 9151852 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1245184 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

Sep 9, 2025, 11:31:31 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:30:44 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:27:42 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:16:16 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:13:10 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:10:04 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:09:34 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:09:14 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:09:14 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:09:14 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:05:11 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:04:50 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:04:50 AM

Error
index
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 11:04:50 AM

Error
no app in context
BadRequest
Expected filesize of 3925215 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1835008 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

Sep 9, 2025, 11:03:50 AM

Error
no app in context
BadRequest
Expected filesize of 8823068 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 6553600 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

Sep 9, 2025, 11:02:54 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 10:58:42 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 10:55:36 AM

Error
no app in context
BadRequest
Expected filesize of 93845 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 49152 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

Sep 9, 2025, 10:53:34 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 10:46:19 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 10:42:10 AM

Error
no app in context
Exception
hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/html/nextcloud/lib/private/Security/Crypto.php' line 147

Sep 9, 2025, 10:35:43 AM

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Not sure if this is related, as I have reset/reinstalled NC. I thought reinstalling would fix my issue since I couldn’t sync anyway. Below (in the log section) are the issues I am getting now

You’ll need to post the full stack trace from one of the log entries, as noted in the support template text.

The reset/reinstall could be related. For example, if you were using encryption if you didn’t migrate over the secret (such as if you dumped your config/config.php).

I have the nextcloud error logs from Aug. 1 to current here nextcloud error log 9/11 - Pastebin.com

Those appear to be your web server error logs, not contents of the Nextcloud log.

I put as much as i could here