Error: pack(): Type H: illegal hex digit i at /var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/RSA.php#1147

Nextcloud version: 21.0.3
Operating system and version: Ubuntu 20.04
Nginx version: 1.21.1
PHP version: 8.0.8

The issue you are facing:

I’m seeing in the logs:

Error: pack(): Type H: illegal hex digit - at /var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/RSA.php#1147

Which expands to show:

Error PHP Error: pack(): Type H: illegal hex digit - at /var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/RSA.php#1147
2021-07-27T10:27:25+0800

Is this the first time you’ve seen this error? (Y/N): Unkown .

I’m checking here becuase my calendar is only partly accessible. I’m missing one calendar and trying to figure out why!

The output of your Nextcloud log in Admin > Logging: As above ?

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'XXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX':
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'XXXXXXXXXXX',
  ),
  'datadirectory' => '/var/nc_data',
  'dbtype' => 'mysql',
  'version' => '21.0.3.1',
  'overwrite.cli.url' => 'https://stanworth.cloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXXXXXXXXXXXX',
  'dbpassword' => 'XXXXXXXX',
  'installed' => true,
  'activity_expire_days' => 14,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' =>
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'default_phone_region' => 'TW',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 0,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
  'logfile' => '/var/nc_data/nextcloud.log',
  'loglevel' => 2,
  'logtimezone' => 'Asia/Taipei',
  'log_rotate_size' => 104857600,
'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'quota_include_external_storage' => false,
  'share_folder' => '/Shares',
  'skeletondirectory' => '',
  'theme' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'updater.release.channel' => 'stable',
  'data-fingerprint' => 'xxxxxxxxxxxxxxx',
);

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

2021/07/27 02:58:55 [error] 207629#207629: connect() to [2001:288:e202::a31c:519]:80 failed (101: Network is unreachable) while requesting certificate status, responder: r3.o.lencr.org, peer: [2001:288:e202::a31c:519]:80, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/07/27 02:58:55 [error] 207629#207629: connect() to [2001:288:e202::a31c:508]:80 failed (101: Network is unreachable) while requesting certificate status, responder: r3.o.lencr.org, peer: [2001:288:e202::a31c:508]:80, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/07/27 04:03:47 [error] 207629#207629: connect() to [2001:288:e202::a31c:519]:80 failed (101: Network is unreachable) while requesting certificate status, responder: r3.o.lencr.org, peer: [2001:288:e202::a31c:519]:80, certificate: "/etc/letsencrypt/ecc-certs/fullchain.pem"
2021/07/27 04:43:01 [crit] 207629#207629: *3136 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.212.136, server: 0.0.0.0:443
2021/07/27 10:37:32 [warn] 207629#207629: *5333 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/00/0000000001 while reading upstream, client: 122.117.185.116, server: stanworth.cloud, request: "GET /apps/logreader/poll?lastReqId=tLEIOQvAHnzz72y6dI5w HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "stanworth.cloud"

continues here: Broken external storage