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 access broken on 21.01 and 21.0.2 #27046
Comments
Cool! Does it also works with Guest/Anonymouse access? |
Ok. I made a lot of testing with many NC version (20, 21) on RHEL8 and RockyLinux8, with PHP 7.4 and PHP8.0. |
I couldn't sleep thinking about this, and i finally found where the problem is. |
Got the same issue on a raspberry. |
Steps to reproduce
Expected behaviour
Should be possible to access the folder.
Actual behaviour
Can't acces to share, new windows appear with message:
Server configuration
Operating system:
Red Hat Enterprise Linux 8.4 (Ootpa) (Linux 4.18.0-305.el8.x86_64)
Web server:
nginx version: nginx/1.14.1
Database:
10.5.10-MariaDB-log MariaDB Server
PHP version:
PHP 7.4.19 (cli) (built: May 4 2021 11:06:37) ( NTS ) / Zend Engine v3.4.0 / with Zend OPcache v7.4.19
Nextcloud version: (see Nextcloud admin page)
21.0.2
Updated from an older Nextcloud/ownCloud or fresh install:
21.0.1
Where did you install Nextcloud from:
Nextcloud website.
Signing status:
Signing status
No errors have been found.List of activated apps:
App list
sudo -u nginx php74 occ app:listEnabled:
- accessibility: 1.7.0
- activity: 2.14.3
- bruteforcesettings: 2.1.0
- calendar: 2.2.1
- camerarawpreviews: 0.7.11
- cloud_federation_api: 1.4.0
- comments: 1.11.0
- contacts: 3.5.1
- contactsinteraction: 1.2.0
- dashboard: 7.1.0
- dav: 1.17.1
- deck: 1.4.2
- documentserver_community: 0.1.9
- extract: 1.3.1
- federatedfilesharing: 1.11.0
- federation: 1.11.0
- files: 1.16.0
- files_external: 1.12.0
- files_pdfviewer: 2.1.0
- files_rightclick: 1.0.0
- files_sharing: 1.13.1
- files_trashbin: 1.11.0
- files_versions: 1.14.0
- files_videoplayer: 1.10.0
- firstrunwizard: 2.10.0
- groupfolders: 9.0.1
- logreader: 2.6.0
- lookup_server_connector: 1.9.0
- mail: 1.9.5
- nextcloud_announcements: 1.10.0
- notes: 4.0.4
- notifications: 2.9.0
- oauth2: 1.9.0
- onlyoffice: 7.0.2
- password_policy: 1.11.0
- photos: 1.3.0
- privacy: 1.5.0
- provisioning_api: 1.11.0
- recommendations: 1.0.0
- serverinfo: 1.11.0
- settings: 1.3.0
- sharebymail: 1.11.0
- spreed: 11.2.1
- support: 1.4.0
- survey_client: 1.9.0
- systemtags: 1.11.0
- talk_matterbridge: 1.22.2
- tasks: 0.13.6
- text: 3.2.0
- theming: 1.12.0
- twofactor_backupcodes: 1.10.0
- updatenotification: 1.11.0
- user_status: 1.1.1
- viewer: 1.5.0
- weather_status: 1.1.0
- workflowengine: 2.3.0
Disabled:
- admin_audit
- encryption
- forms
- ransomware_protection
- user_ldap
Nextcloud configuration:
Config report
{"system": {
"blacklisted_files": [],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"127.0.0.1",
"NAS",
"mynasdomain.pl",
"192.168.0.localIP",
"xxx.xxx.xxx.externalIP"
],
"enable_previews": true,
"enabledPreviewProviders": [
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\PDF",
"OC\\Preview\\Image",
"OC\\Preview\\Photoshop",
"OC\\Preview\\TIFF",
"OC\\Preview\\SVG",
"OC\\Preview\\Font",
"OC\\Preview\\MP3",
"OC\\Preview\\Movie",
"OC\\Preview\\MKV",
"OC\\Preview\\MP4",
"OC\\Preview\\AVI"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "21.0.2.1",
"overwrite.cli.url": "http:\/\/mynasdomain.pl",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "1c_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"default_language": "pl",
"default_locale": "pl",
"simpleSignUpLink.shown": false,
"memcache.local": "\\OC\\Memcache\\APCu",
"skeletondirectory": "core\/myown-default",
"maintenance": false,
"app_install_overwrite": [
"bruteforcesettings"
],
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"default_phone_region": "PL",
"theme": "",
"loglevel": 2,
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
Are you using external storage, if yes which one: smb
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser:
Firefox 88.0.1
Operating system:
Windows 10 Pro (21H1)
Logs
Web server error log
Web server error log
There was no anything e=in error.log, so i put from access.log:
192.168.0.88 - Marcin [20/May/2021:19:24:05 +0200] "PROPFIND /remote.php/dav/files/Marcin/ HTTP/1.1" 207 258 "-" "Mozilla/5.0 (Windows) mirall/3.0.1stable-Win64 (build 20200828) (Nextcloud)" "-"
192.168.0.88 - Marcin [20/May/2021:19:24:05 +0200] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows) mirall/3.0.1stable-Win64 (build 20200828) (Nextcloud)" "-"
192.168.0.88 - Marcin [20/May/2021:19:24:10 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows) mirall/3.0.1stable-Win64 (build 20200828) (Nextcloud)" "-"
192.168.0.88 - Marcin [20/May/2021:19:24:11 +0200] "PROPFIND /remote.php/dav/files/Marcin/ HTTP/1.1" 207 247 "-" "Mozilla/5.0 (Windows) mirall/3.0.1stable-Win64 (build 20200828) (Nextcloud)" "-"
Nextcloud log (data/nextcloud.log)
Nextcloud log
When it is working!
There are 2 scenarios when i make it working:
1: I set Username and password from the Samba users database (with correct password). This is what i do not want to do. Guest/Anonymous access is possible and was working well with Nextcloud (i do not know when it brake!). Also Guest/Anonymouse access is possible from other computers/smartphones with Windows 10, Windows 7, Android 10.
2: I set Authentication method to Global credentials and then it works fine (with false/guest/anonymouse login/password! - My Nextcloud use username/pass that do not exist in Samba).
Other useful info is:
smbclient -U Noone //localhost/folder
is working fine with random or no password.
smbclient -V
Version 4.13.3
For sure version 19 and 21.0.0 was working fine with Guest/Guest (login/pass).
The text was updated successfully, but these errors were encountered: