You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I just discovered, that an unresponsive external Storage provider (SFTP) can make nextcloud unusable and you wont get helpful error messages.
Relevant Versions running:
Nextcloud Hub 9 (30.0.2)
External storage support -Version 1.22.0
Steps to reproduce
1.I am using Nextcloud Docker installation from dockerhub -> tag latest -> https://hub.docker.com/layers/library/nextcloud/latest/images/sha256-63fb5f32eace75c4770a324c13f9c199f45d5d2cfe10871ba48c820c614c9713?context=explore
2.activate the External storage support (I followed the Bug link from the app and came here)
3. include an external storage (I discovered the problem with an SFTP Provider)
4. everything works fine
5. external storage provider become unresponsive
6. calling the URL apps/files/files -> you get an error like "directory unavailable" - I am not able to find the exact message
7. nextcloud.log is not very helpful to non developers: see attached log
Expected behavior
I would expect in nextcloud hosted files (apart from the external storage in question) still being available.
I would also expect other error handling -> grey out/make red etc. the directory of the external storage
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
{"reqId":"REDACTED","level":3,"time":"2024-11-24T13:24:47+00:00","remoteAddr":"REDACTED","user":"REDACTED","app":"index","method":"POST","url":"/apps/files_external/globalstorages","message":"base and exponent overflow in file '/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Math/BigInteger.php' line 3040","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0","version":"30.0.2.2","exception":{"Exception":"Exception","Message":"base and exponent overflow in file '/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Math/BigInteger.php' line 3040","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_External\\Controller\\GlobalStoragesController"},"create"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_External\\Controller\\GlobalStoragesController","create",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files_external.global_storages.create"}]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files_external/globalstorages"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":146,"Previous":{"Exception":"ValueError","Message":"base and exponent overflow","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Math/BigInteger.php","line":3040,"function":"gmp_pow","args":[{"__class__":"GMP"},256]},{"file":"/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":1846,"function":"bitwise_leftShift","class":"phpseclib\\Math\\BigInteger","type":"->","args":[256]},{"file":"/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":1435,"function":"_key_exchange","class":"phpseclib\\Net\\SSH2","type":"->","args":[]},{"file":"/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php","line":5217,"function":"_connect","class":"phpseclib\\Net\\SSH2","type":"->","args":[]},{"file":"/var/www/html/apps/files_external/lib/Lib/Storage/SFTP.php","line":110,"function":"getServerPublicHostKey","class":"phpseclib\\Net\\SSH2","type":"->","args":[]},{"file":"/var/www/html/apps/files_external/lib/Lib/Storage/SFTP.php","line":145,"function":"getConnection","class":"OCA\\Files_External\\Lib\\Storage\\SFTP","type":"->","args":[]},{"file":"/var/www/html/apps/files_external/lib/MountConfig.php","line":98,"function":"test","class":"OCA\\Files_External\\Lib\\Storage\\SFTP","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_external/lib/Controller/StoragesController.php","line":224,"function":"getBackendStatus","class":"OCA\\Files_External\\MountConfig","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_external/lib/Controller/GlobalStoragesController.php","line":115,"function":"updateStorageStatus","class":"OCA\\Files_External\\Controller\\StoragesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"create","class":"OCA\\Files_External\\Controller\\GlobalStoragesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_External\\Controller\\GlobalStoragesController"},"create"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_External\\Controller\\GlobalStoragesController"},"create"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_External\\Controller\\GlobalStoragesController","create",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files_external.global_storages.create"}]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files_external/globalstorages"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Math/BigInteger.php","Line":3040},"message":"base and exponent overflow in file '/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Math/BigInteger.php' line 3040","exception":{},"CustomMessage":"base and exponent overflow in file '/var/www/html/3rdparty/phpseclib/phpseclib/phpseclib/Math/BigInteger.php' line 3040"}}
Additional info
No response
The text was updated successfully, but these errors were encountered:
Bug description
Hi,
I just discovered, that an unresponsive external Storage provider (SFTP) can make nextcloud unusable and you wont get helpful error messages.
Relevant Versions running:
Steps to reproduce
1.I am using Nextcloud Docker installation from dockerhub -> tag latest -> https://hub.docker.com/layers/library/nextcloud/latest/images/sha256-63fb5f32eace75c4770a324c13f9c199f45d5d2cfe10871ba48c820c614c9713?context=explore
2.activate the External storage support (I followed the Bug link from the app and came here)
3. include an external storage (I discovered the problem with an SFTP Provider)
4. everything works fine
5. external storage provider become unresponsive
6. calling the URL apps/files/files -> you get an error like "directory unavailable" - I am not able to find the exact message
7. nextcloud.log is not very helpful to non developers: see attached log
Expected behavior
I would expect in nextcloud hosted files (apart from the external storage in question) still being available.
I would also expect other error handling -> grey out/make red etc. the directory of the external storage
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: