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

External SMB/CIFS Broken on 17.0.1 #17846

Closed
cyberfarer opened this issue Nov 7, 2019 · 15 comments · Fixed by #17873
Closed

External SMB/CIFS Broken on 17.0.1 #17846

cyberfarer opened this issue Nov 7, 2019 · 15 comments · Fixed by #17873
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info

Comments

@cyberfarer
Copy link

cyberfarer commented Nov 7, 2019

After upgrading to 17.0.1 Beta, I am no longer able to add External SMB/CIFS storage. Existing storage remains available to users.

Steps to reproduce

  1. Update to 17.0.1 Beta
  2. Add SMB/CIFS external storage

Expected behaviour

When correct information is added, a green check mark should appear to the left of the entry. The storage should be available via frontend.

Actual behaviour

Red exclamation mark appears and storage is not saved nor available.

Server configuration

Operating system:
Ubuntu 18.04 LTS

Web server:
Apache 2.4.29

Database:
MySQL 5.7

PHP version:
7.2.24

Nextcloud version: (see Nextcloud admin page)
17.0.1 Beta

Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 17

I have reverted back to 17 from a snapshot.

@cyberfarer cyberfarer added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Nov 7, 2019
@kesselb
Copy link
Contributor

kesselb commented Nov 7, 2019

Something in the logs?

@cyberfarer
Copy link
Author

Unfortunately, no and I did enable debugging. I also removed php-smbclient but no change.

@rawrspace
Copy link

I am also getting this error in 17.0.1 Beta

The network call to save the external storage returns a 422 with the response of
{"message":"Unsatisfied backend parameters"}

Request was

{
    "mountPoint": "FolderInNC",
    "backend": "smb",
    "authMechanism": "password::password",
    "backendOptions": {
        "host": "192.168.0.25",
        "share": "ShareName",
        "root": "FolderInShare",
        "domain": "",
        "show_hidden": false,
        "timeout": "",
        "user": "user",
        "password": "password"
    },
    "testOnly": true,
    "mountOptions": {
        "encrypt": true,
        "previews": true,
        "enable_sharing": false,
        "filesystem_check_changes": 1,
        "encoding_compatibility": false,
        "readonly": false
    }
}

@kesselb
Copy link
Contributor

kesselb commented Nov 8, 2019

(new DefinitionParameter('timeout', $l->t('Timeout')))
->setType(DefinitionParameter::VALUE_HIDDEN)

Does it work again if you change the above code to?

    (new DefinitionParameter('timeout', $l->t('Timeout')))
        ->setType(DefinitionParameter::VALUE_HIDDEN)
        ->setFlag(DefinitionParameter::FLAG_OPTIONAL) 

Edit: Fixed the wrong comma.

@rawrspace
Copy link

@kesselb There is a slight typo in what you provided with the comma position but I can confirm that it resolved the issue to use the following;

(new DefinitionParameter('timeout', $l->t('Timeout')))      
                ->setType(DefinitionParameter::VALUE_HIDDEN)                
                ->setFlag(DefinitionParameter::FLAG_OPTIONAL),

@spiezmaestro
Copy link

Had the same issue (17.0.1 RC) and can confirm, that changing the code as suggested (with the correct comma position as noted by rawrspace) fixed it. Can change/add SMB shares again.

@scanom
Copy link

scanom commented Nov 11, 2019

Same issue happening with 16.0.6, patch solves it.

@e-alfred
Copy link

Anyone pushing a PR to get this fix into the codebase?

@southeasterntech
Copy link

I can confirm that this solution does work and the issue is still present in 17.01 stable.

@kesselb kesselb changed the title External SMB/CIFS Broken on 17.0.1 Beta External SMB/CIFS Broken on 17.0.1 Nov 13, 2019
@scanom
Copy link

scanom commented Nov 13, 2019

Only saw the backport to stable17, but patch is needed also for 16 at least, isn’t it?

@mamatt mamatt unpinned this issue Nov 18, 2019
@ikerib
Copy link

ikerib commented Nov 19, 2019

We are having this issue after upgrading to version 17.0.1. The external storage that was present on version 16 works but we can't create new ones

@kesselb
Copy link
Contributor

kesselb commented Nov 26, 2019

Please keep this pinned until 17.0.2 and 16.0.7 are released.

@florian-obradovic
Copy link

Same here:
"We are having this issue after upgrading to version 17.0.1. The external storage that was present on version 16 works but we can't create new ones"

@tavinus
Copy link

tavinus commented Dec 12, 2019

Patch also fixed my NC 16.0.6 install.
I was able to add a new SMB share, but the SMB Tester still didn't work though.

@ShamimIslam
Copy link

Same here @kesselb - I was able to add external CIFS storages in 16.06. Without this update, 16.06 SMB external storages is broken.

Is there something similar in your SMB Tester @tavinus ? (P.S. Where is the SMB Tester?)

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 needs info
Projects
None yet
Development

Successfully merging a pull request may close this issue.