[Bug]: Can't get app storage, app files_external, user not logged in
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
Bug relates to #22546, managed from szaimen
After changing the SFTP user from "root" to "sascha" of the external storage due to safety reasons the Nextcloud Server cannot login into the storage. Due to this other apps are not working anymore, e.g.:
- recognize ("Could not fetch storage root")
- memories ("Failed to index folder /Sascha/files/...")
### The system seems not be able to login into the SFTP external Server ("Can't get app storage, app files_external, user not logged in")
Steps to reproduce
-
changing the SFTP user of the external storage from "root" to "sascha" due to safety reasons: external Network Storage (NAS, no changing of the storage name): Owner: root [0]; Group: NASUserGroup [1008]; rights: 0770
**Login Nextcloud (NAS User for Nextcloud)** SFTP-User: sascha (part of NASUserGroup) Nextcloud User: Sascha (admin) -
the Nextcloud Server cannot login into the storage (access to the external storage via dashboard is still possible)
-
check if apps are able to access the ext. Storage
-
checking ext. storage setup (SFTP),
-
checking Protocols
What forums say, but for reasons not done jet:
- rescan with "files:scan --all"
Tests:
The access to the files works well:
The administration area verifys the login too (NAS access still works):
The personal area does have verification problems after saving (NAS access still works)
After saving the setup in the personal area and reverification the access seems to work:
Expected behavior
Access to ext. storage without login errors
Installation method
Community Web installer on a VPS or web space
Nextcloud Server version
26
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [X] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": {
"1": "192.168.178.92",
"2": "nc.smuehl.de"
},
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"overwrite.cli.url": "https:\/\/nc.smuehl.de",
"version": "26.0.2.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"default_phone_region": "DE",
"overwriteprotocol": "https",
"logtimezone": "Europe\/Berlin",
"filelocking.enabled": false,
"filesystem_check_changes": 1,
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 0
},
"maintenance": false,
"app_install_overwrite": [
"occweb",
"files_clipboard",
"ocr",
"bookmarks_fulltextsearch",
"recognize",
"extract",
"duplicatefinder",
"apporder",
"facerecognition",
"files_fulltextsearch_tesseract"
],
"allow_local_remote_servers": true,
"theme": "",
"loglevel": 0,
"maintenance_window_start": 1,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"onlyoffice": {
"verify_peer_off": true,
"jwt_header": "AuthorizationJwt"
},
"has_rebuilt_cache": true,
"memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/exiftool-bi n\/exiftool-amd64-glibc",
"enabledPreviewProviders": [
"OC\\Preview\\Image",
"OC\\Preview\\Movie",
"OC\\Preview\\HEIC",
"OC\\Preview\\TIFF",
"OC\\Preview\\Movie",
"OC\\Preview\\MKV",
"OC\\Preview\\MP4",
"OC\\Preview\\AVI"
],
"preview_max_memory": 4096,
"preview_max_filesize_image": 256,
"updater.release.channel": "stable",
"memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/exiftool-bi n\/go-vod-amd64"
}
}
List of activated Apps
Enabled:
- activity: 2.18.0
- admin_audit: 1.16.0
- analytics: 4.9.3
- bruteforcesettings: 2.6.0
- calendar: 4.4.2
- camerarawpreviews: 0.8.1
- circles: 26.0.0
- cloud_federation_api: 1.9.0
- comments: 1.16.0
- contacts: 5.3.0
- contactsinteraction: 1.7.0
- dashboard: 7.6.0
- dav: 1.25.0
- electronicsignatures: 2.0.4
- external: 5.1.0
- facerecognition: 0.9.12
- federatedfilesharing: 1.16.0
- federation: 1.16.0
- files: 1.21.1
- files_downloadactivity: 1.16.0
- files_external: 1.18.0
- files_fulltextsearch: 26.0.0
- files_fulltextsearch_tesseract: 27.0.0
- files_pdfviewer: 2.7.0
- files_rightclick: 1.5.0
- files_sharing: 1.18.0
- files_trashbin: 1.16.0
- files_versions: 1.19.1
- firstrunwizard: 2.15.0
- fulltextsearch: 26.0.0
- fulltextsearch_elasticsearch: 26.0.0
- integration_github: 2.0.4
- logreader: 2.11.0
- lookup_server_connector: 1.14.0
- mail: 3.2.0
- maps: 1.0.2
- memories: 5.1.0
- nextcloud_announcements: 1.15.0
- notes: 4.8.0
- notifications: 2.14.0
- oauth2: 1.14.0
- onlyoffice: 7.8.0
- password_policy: 1.16.0
- passwords: 2023.5.30
- photos: 2.2.0
- previewgenerator: 5.3.0
- privacy: 1.10.0
- provisioning_api: 1.16.0
- recognize: 4.1.0
- recommendations: 1.5.0
- related_resources: 1.1.0-alpha1
- richdocumentscode: 23.5.5
- serverinfo: 1.16.0
- settings: 1.8.0
- sharebymail: 1.16.0
- support: 1.9.0
- survey_client: 1.14.0
- suspicious_login: 4.4.0
- systemtags: 1.16.0
- tasks: 0.15.0
- text: 3.7.2
- theming: 2.1.1
- twofactor_backupcodes: 1.15.0
- updatenotification: 1.16.0
- user_status: 1.6.0
- viewer: 1.10.0
- weather_status: 1.6.0
- workflowengine: 2.8.0
Disabled:
- apporder: 0.15.0 (installed 0.15.0)
- bookmarks_fulltextsearch: 1.2.0 (installed 1.2.0)
- carnet: 0.24.7 (installed 0.24.7)
- cfg_share_links: 4.0.0 (installed 4.0.0)
- discretepdfsigner: 0.0.4 (installed 0.0.4)
- duplicatefinder: 0.0.15 (installed 0.0.15)
- encryption: 2.14.0 (installed 2.12.0)
- extract: 1.3.5 (installed 1.3.5)
- files_clipboard: 0.7.1 (installed 0.7.1)
- integration_homeassistant: 0.0.2 (installed 0.0.2)
- ransomware_protection: 1.14.0 (installed 1.14.0)
- richdocuments: 8.0.2 (installed 8.0.2)
- spreed: 16.0.4 (installed 16.0.4)
- twofactor_totp: 8.0.0
- user_ldap: 1.16.0
Nextcloud Signing status
"No errors have been found."
Nextcloud Logs
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":0,"time":"2023-06-22T09:05:02+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Run OCA\\Memories\\Cron\\IndexJob job with ID 9170","userAgent":"--","version":"26.0.2.1","data":{"app":"cron"}}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":3,"time":"2023-06-22T09:05:03+02:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"26.0.2.1","data":{"app":"core"}}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":3,"time":"2023-06-22T09:05:03+02:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"26.0.2.1","data":{"app":"core"}}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":1,"time":"2023-06-22T09:05:43+02:00","remoteAddr":"","user":"--","app":"lib","method":"","url":"--","message":"Storage with shared::110db3aa1f87bf466bce20f00b1c2cf9 marked as unavailable","userAgent":"--","version":"26.0.2.1","data":{"app":"lib"}}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":1,"time":"2023-06-22T09:05:43+02:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"External storage not available: stat() failed","userAgent":"--","version":"26.0.2.1","data":[]}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":1,"time":"2023-06-22T09:05:43+02:00","remoteAddr":"","user":"--","app":"lib","method":"","url":"--","message":"Storage with shared::110db3aa1f87bf466bce20f00b1c2cf9 marked as unavailable","userAgent":"--","version":"26.0.2.1","data":{"app":"lib"}}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":3,"time":"2023-06-22T09:05:43+02:00","remoteAddr":"","user":"--","app":"memories","method":"","url":"--","message":"Failed to index folder /Sascha/files/Nextcloud Contabo: ","userAgent":"--","version":"26.0.2.1","data":{"app":"memories"}}
{"reqId":"gQ4VEx6gcJ7yRtLPt4zy","level":1,"time":"2023-06-22T09:05:45+02:00","remoteAddr":"","user":"--","app":"memories","method":"","url":"--","message":"Memories: Indexing completed successfully","userAgent":"--","version":"26.0.2.1","data":{"app":"memories"}}
{"reqId":
Additional info
No response