Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMB/CIFS External Storage App - cannot mount directories with spaces #11265

Closed
jcbdg18 opened this issue Sep 18, 2018 · 4 comments
Closed

SMB/CIFS External Storage App - cannot mount directories with spaces #11265

jcbdg18 opened this issue Sep 18, 2018 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage

Comments

@jcbdg18
Copy link

jcbdg18 commented Sep 18, 2018

Steps to reproduce

  1. Create a link with External Storage APP connect with SMB/CIFS
  2. Mount a Windows network share
  3. with a subdirectory with spaces as 'installasjon/10 - Prosjekter'

Expected behaviour

If i mount a Windows share with a subdirectory that has spaces, i get an error:
Share name: lagring
Subdir name: 'installasjon/10 - Prosjekter'

I have tested it with several variations as '\040', or '%20'. Always i get an error. If i mount the share with sub-dir manual on my ubuntu client with smb://.../lagring/installasjon/10%20-%20Prosjekter, it works, but not in the External Storage App.

Actual behaviour

Tell us what happens instead
Cannot mount external directory, I get the error message: 'Some of the configured external mount points are not connected. Please click on the red row(s) for more information'
I get no error in the logs.

Server configuration

Operating system:
Ubuntu 18.04
Web server:
nginx/1.14.0
Database:
psql (PostgreSQL) 10.5
PHP version:
PHP 7.2
Nextcloud version: (see Nextcloud admin page)
13.06
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 13.05
Where did you install Nextcloud from:
Installed from nextcloud download
Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.
No errors have been found</details>

**List of activated apps:**
<details>
<summary>App list</summary>

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:

  • admin_notifications: 1.0.1
  • apporder: 0.5.0
  • bruteforcesettings: 1.1.0
  • comments: 1.3.0
  • dav: 1.4.7
  • defaultlinkopen: 1.1.0
  • federatedfilesharing: 1.3.1
  • federation: 1.3.0
  • files: 1.8.0
  • files_external: 1.4.1
  • files_pdfviewer: 1.2.1
  • files_rightclick: 0.8.4
  • files_sharing: 1.5.0
  • files_texteditor: 2.5.1
  • files_trashbin: 1.3.0
  • files_versions: 1.6.0
  • files_videoplayer: 1.2.0
  • gallery: 18.0.0
  • logreader: 2.0.0
  • lookup_server_connector: 1.1.0
  • nextcloud_announcements: 1.2.0
  • notifications: 2.1.2
  • oauth2: 1.1.1
  • onlyoffice: 2.0.2
  • password_policy: 1.3.0
  • previewgenerator: 1.1.0
  • provisioning_api: 1.3.0
  • serverinfo: 1.3.0
  • sharebymail: 1.3.0
  • systemtags: 1.3.0
  • theming: 1.4.5
  • theming_customcss: 1.1.0
  • twofactor_backupcodes: 1.2.3
  • twofactor_totp: 1.4.1
  • updatenotification: 1.3.0
  • user_ldap: 1.3.1
  • workflowengine: 1.3.0
    Disabled:
  • activity
  • admin_audit
  • circles
  • encryption
  • firstrunwizard
  • groupfolders
  • registration
  • survey_client
  • user_external

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.dogi.no"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.dogi.no",
        "dbtype": "pgsql",
        "version": "13.0.5.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_language": "no",
        "check_for_working_htaccess": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcached_servers": [
            "localhost",
            11211
        ],
        "0": {
            "verify_peer_off": true
        },
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "lost_password_link": "disabled",
        "skeletondirectory": "\/local\/app\/nextcloud\/mycloud.dogi.no\/skeleton"
    }
}

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #7649 (NC 13 - Browsing external storage SMB/CIFS from "Files" app does not occur with simple left click on said directory), #5604 (Can't mount SMB storage), #3789 (External storage), #6993 (Can't mount external storage), and #4730 (Storage).

@jcbdg18
Copy link
Author

jcbdg18 commented Sep 19, 2018

I can't find any help in one of the other threads. No one som had the same problem?

@the-essay
Copy link

the-essay commented Dec 4, 2018

Hi,

I'm facing the exact same behavior with a share called "Management - open Projects"
I would be very appreciated for any help.

EDIT: I'm on 14.0.4

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage
Projects
None yet
Development

No branches or pull requests

5 participants