External_files SFTP don't work after upgrade to v24

Hi there, i’m having a problem to mount a sftp external drive.

Nextcloud version: 24.0.1
Operating system and version: Debian10
Apache or nginx version: 2.4.38
PHP version: 8.0.19
DB: mysql 10.3.34

The issue you are facing:

Is this the first time you’ve seen this error? Yes

Steps to replicate it:

  1. Upgrade from php7.3 and nc23.0.4 to php8.0 and nc24
  2. external sftp drive was mounted, but not possible to read or write anything
  3. deleted mounting drive in admin external files overview
  4. tried to configure it again - not working

SFTP via public-key

I think i remember that NC created it’s own public key when i mounted the drive - in nc24 it’s not doing it.
So I tried to create a importable json data to import the configuration but it don’t work either.
The button to check keeps red and it says “RuntimeException: unable to load private key”.

It’s also not possible to add a new mount through the GUI. I think it’s because it doesn’t create the public_key.

The output of your Nextcloud log in Admin > Logging:
nothing relevant

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

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'xxx',
    1 => 'xxx',
  ),
  'datadirectory' => '/media/nextcloud/data#',
  'dbtype' => 'mysql',
  'version' => '24.0.1.1',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxx',
  'installed' => true,
  'default_language' => 'DE',
  'default_phone_region' => 'DE',
  'share_folder' => '/Mit mir geteilt',
  'maintenance' => false,
  'theme' => '',
  'debug' => 'false',
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
  ),
  'mail_smtpmode' => 'xxx',
  'mail_smtpsecure' => 'xxx',
  'mail_sendmailmode' => 'xxx',
  'mail_smtpauthtype' => 'xxx',
  'mail_smtphost' => 'xxxxxx',
  'mail_smtpport' => 'xxx',
  'mail_domain' => 'xxxxxx',
  'mail_from_address' => 'xxx',
  'mail_smtpauth' => xxx,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'simpleSignUpLink.shown' => false,
  'updater.secret' => 'xxx',
  'app_install_overwrite' =>
  array (
    0 => 'backup',
  ),
  'updater.release.channel' => 'stable',
);

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

nothing relevant

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

nothing relevant

installed php modules: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, mcrypt, msgpack, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, ssh2, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, memcached, libsmbclient, Zend OPcache

installed apps:
Enabled:

 - accessibility: 1.10.0
 - activity: 2.16.0
 - analytics: 4.2.1
 - apporder: 0.15.0
 - bruteforcesettings: 2.4.0
 - calendar: 3.3.1
 - circles: 24.0.0
 - cloud_federation_api: 1.7.0
 - comments: 1.14.0
 - contacts: 4.1.1
 - contactsinteraction: 1.5.0
 - dav: 1.22.0
 - deck: 1.7.0
 - federatedfilesharing: 1.14.0
 - federation: 1.14.0
 - files: 1.19.0
 - files_external: 1.16.1
 - files_pdfviewer: 2.5.0
 - files_rightclick: 1.3.0
 - files_sharing: 1.16.2
 - files_trashbin: 1.14.0
 - files_versions: 1.17.0
 - files_videoplayer: 1.13.0
 - firstrunwizard: 2.13.0
 - forms: 2.5.1
 - groupfolders: 12.0.0
 - logreader: 2.9.0
 - lookup_server_connector: 1.12.0
 - nextcloud_announcements: 1.13.0
 - notes: 4.3.1
 - notifications: 2.12.0
 - notify_push: 0.4.0
 - oauth2: 1.12.0
 - password_policy: 1.14.0
 - photos: 1.6.0
 - polls: 3.6.1
 - previewgenerator: 5.0.0
 - privacy: 1.8.0
 - provisioning_api: 1.14.0
 - quota_warning: 1.14.0
 - recommendations: 1.3.0
 - richdocuments: 6.1.0
 - richdocumentscode: 21.11.402
 - serverinfo: 1.14.0
 - settings: 1.6.0
 - sharebymail: 1.14.0
 - spreed: 14.0.2
 - support: 1.7.0
 - survey_client: 1.12.0
 - systemtags: 1.14.0
 - tasks: 0.14.4
 - text: 3.5.1
 - theming: 1.15.0
 - twofactor_backupcodes: 1.13.0
 - twofactor_totp: 6.3.0
 - updatenotification: 1.14.0
 - user_status: 1.4.0
 - viewer: 1.8.0
 - workflowengine: 2.6.0

If you need any more information i’ll look up to provide them asap.
Thanks in advance!
Fisher

No one any idea?

Same here!

Have you got a solution?

Thanks!
Attila