server
server copied to clipboard
[Bug]: `files_external:scan` not work if mountpoint have `$user` in the path
⚠️ 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
nextcloud-occ files_external:scan 1
nextcloud-occ files_external:scan 1 --user myuser
Error while trying to create storage
Steps to reproduce
- Create external mounpoint with
/homes/$user
Expected behavior
dynamically scans per user or all users if passed --user parameter
Installation method
Other Community project
Nextcloud Server version
29
Operating system
Other
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
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": {
"apps_paths": [
{
"path": "\/nix\/store\/49ajp34cwzb19479qbhwr3188ivwvnwh-nextcloud-29.0.3-with-apps\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/nix\/store\/49ajp34cwzb19479qbhwr3188ivwvnwh-nextcloud-29.0.3-with-apps\/store-apps",
"url": "\/store-apps",
"writable": true
}
],
"appstoreenabled": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"allow_user_to_change_display_name": false,
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"default_phone_region": "ES",
"enable_previews": true,
"enabledPreviewProviders": [
"OC\\Preview\\BMP",
"OC\\Preview\\GIF",
"OC\\Preview\\JPEG",
"OC\\Preview\\Krita",
"OC\\Preview\\MarkDown",
"OC\\Preview\\MP3",
"OC\\Preview\\OpenDocument",
"OC\\Preview\\PNG",
"OC\\Preview\\TXT",
"OC\\Preview\\XBitmap",
"OC\\Preview\\Image",
"OC\\Preview\\HEIC",
"OC\\Preview\\TIFF",
"OC\\Preview\\Movie"
],
"jpeg_quality": 60,
"localstorage.umask": "0007",
"log_type": "file",
"loglevel": 2,
"lost_password_link": "disabled",
"maintenance_window_start": 4,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memories.exiftool": "\/nix\/store\/4cl3bqpmasgvg8c3v30w0r2w70ssgydr-perl5.38.2-Image-ExifTool-12.84\/bin\/exiftool",
"memories.vod.ffmpeg": "\/nix\/store\/4n60lnj3zkjpasd4c56bzhpx2m8lc1sx-ffmpeg-headless-6.1.1-bin\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/nix\/store\/4n60lnj3zkjpasd4c56bzhpx2m8lc1sx-ffmpeg-headless-6.1.1-bin\/bin\/ffprobe",
"overwriteProtocol": "http",
"overwriteprotocol": "",
"preview_max_filesize_image": 150,
"preview_max_memory": 2048,
"preview_max_x": 2048,
"preview_max_y": 2048,
"profile.enabled": false,
"recognize": [],
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"skeletondirectory": "",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"version": "29.0.3.4",
"overwrite.cli.url": "http:\/\/localhost",
"dbport": "",
"dbtableprefix": "oc_",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"memories.db.triggers.fcu": true,
"memories.vod.path": "\/var\/lib\/nextcloud\/store-apps\/memories\/bin-ext\/go-vod-amd64",
"memories.gis_type": 2,
"trusted_domains": [
"xxxxxxxxxxxxx"
]
}
}
List of activated Apps
Enabled:
- bruteforcesettings: 2.9.0
- circles: 29.0.0-dev
- cloud_federation_api: 1.12.0
- contactsinteraction: 1.10.0
- dav: 1.30.1
- federatedfilesharing: 1.19.0
- federation: 1.19.0
- files: 2.1.0
- files_downloadlimit: 2.0.0
- files_external: 1.21.0
- files_pdfviewer: 2.10.0
- files_reminders: 1.2.0
- files_sharing: 1.21.0
- files_trashbin: 1.19.0
- files_versions: 1.22.0
- firstrunwizard: 2.18.0
- logreader: 2.14.0
- lookup_server_connector: 1.17.0
- memories: 7.3.1
- nextcloud_announcements: 1.18.0
- notifications: 2.17.0
- oauth2: 1.17.0
- password_policy: 1.19.0
- previewgenerator: 5.5.0
- privacy: 1.13.0
- provisioning_api: 1.19.0
- recognize: 7.0.3
- recommendations: 2.1.0
- related_resources: 1.4.0
- serverinfo: 1.19.0
- settings: 1.12.0
- sharebymail: 1.19.0
- support: 1.12.0
- survey_client: 1.17.0
- suspicious_login: 7.0.0
- systemtags: 1.19.0
- tasks: 0.16.0
- text: 3.10.1
- theming: 2.4.0
- twofactor_backupcodes: 1.18.0
- updatenotification: 1.19.1
- user_status: 1.9.0
- viewer: 2.3.0
- weather_status: 1.9.0
- workflowengine: 2.11.0
Disabled:
- activity: 2.21.1 (installed 2.21.1)
- admin_audit: 1.19.0
- comments: 1.19.0 (installed 1.19.0)
- dashboard: 7.9.0 (installed 7.9.0)
- encryption: 2.17.0
- photos: 2.5.0 (installed 2.5.0)
- twofactor_totp: 11.0.0-dev
- user_ldap: 1.20.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No response
Additional info
No response