nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.36k stars 4.06k forks source link

Notify is not supported with the used smb version #19443

Closed stefanoklett closed 4 years ago

stefanoklett commented 4 years ago

Steps to reproduce

  1. sudo -u http php73 /volume1/web/nextcloud/occ files_external:notify -u mydomain/ro_user -p papasworod 6

Expected behaviour

That the script runs and I can synchronize files!!

Actual behaviour

admin@nas01:~$ sudo -u http php73 /volume1/web/nextcloud/occ files_external:notify -u stekhome/ro_user -p 1.2Asgd-AskdhaA,-44 6

In Exception.php line 32:

Notify is not supported with the used smb version

files_external:notify [-u|--user USER] [-p|--password PASSWORD] [--path PATH] [--output [OUTPUT]] [--]

Server configuration

Operating system: DMS 6.2.2-24922 Update 5

Web server: Apache HTTP Server 2.4

Database: MariaDB 10

PHP version: PHP 7.3

Nextcloud version: (see Nextcloud admin page) 18.0.0

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

Where did you install Nextcloud from: https://nextcloud.com/install/#instructions-server

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.

List of activated apps:

Accessibility 1.4.0 In evidenza Activity 2.11.0 In evidenza Brute-force settings 1.5.0 In evidenza Collaborative tags 1.8.0 In evidenza Comments 1.8.0 In evidenza Deleted files 1.8.0 In evidenza External sites 3.5.0 In evidenza External storage support 1.9.0 In evidenza Federation 1.8.0 In evidenza File sharing 1.10.1 In evidenza First run wizard 2.7.0 In evidenza LDAP user and group backend 1.8.0 In evidenza Log Reader 2.3.0 In evidenza Monitoring 1.8.0 In evidenza Nextcloud announcements 1.7.0 In evidenza Notifications 2.6.0 In evidenza Password policy 1.8.0 In evidenza PDF viewer 1.7.0 In evidenza Photos 1.0.0 In evidenza Privacy 1.2.0 In evidenza Recommendations 0.6.0 In evidenza Right click 0.15.2 In evidenza Share by mail 1.8.0 In evidenza Support 1.1.0 In evidenza Text 2.0.0 In evidenza Theming 1.9.0 In evidenza Two-Factor TOTP Provider 4.1.2 In evidenza Update notification 1.8.0 In evidenza Usage survey 1.6.0 In evidenza Versions 1.11.0 In evidenza Video player 1.7.0 In evidenza ``` 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: - accessibility: 1.4.0 - activity: 2.11.0 - bruteforcesettings: 1.5.0 - cloud_federation_api: 1.1.0 - comments: 1.8.0 - dav: 1.14.0 - external: 3.5.0 - federatedfilesharing: 1.8.0 - federation: 1.8.0 - files: 1.13.1 - files_external: 1.9.0 - files_pdfviewer: 1.7.0 - files_rightclick: 0.15.2 - files_sharing: 1.10.1 - files_trashbin: 1.8.0 - files_versions: 1.11.0 - files_videoplayer: 1.7.0 - firstrunwizard: 2.7.0 - logreader: 2.3.0 - lookup_server_connector: 1.6.0 - nextcloud_announcements: 1.7.0 - notifications: 2.6.0 - oauth2: 1.6.0 - password_policy: 1.8.0 - photos: 1.0.0 - privacy: 1.2.0 - provisioning_api: 1.8.0 - recommendations: 0.6.0 - serverinfo: 1.8.0 - settings: 1.0.0 - sharebymail: 1.8.0 - support: 1.1.0 - survey_client: 1.6.0 - systemtags: 1.8.0 - text: 2.0.0 - theming: 1.9.0 - twofactor_backupcodes: 1.7.0 - twofactor_totp: 4.1.2 - updatenotification: 1.8.0 - user_ldap: 1.8.0 - viewer: 1.2.0 - workflowengine: 2.0.0 Disabled: - admin_audit - encryption``

Nextcloud configuration:

Config report `Avvisi di sicurezza e di configurazione È importante per la sicurezza e le prestazioni della tua istanza che tutto sia configurato correttamente. Per aiutarti in questo senso, stiamo eseguendo alcuni controlli automatici. Vedi la documentazione collegata per ulteriori informazioni. Sono presenti degli avvisi relativi alla tua configurazione. Non è stata configurata alcuna cache di memoria. Per migliorare le prestazioni configura una memcache, se disponibile. Ulteriori informazioni sono disponibili nella documentazione. Su questa istanza mancano alcuni moduli PHP consigliati. Per prestazioni migliorate e migliore compatibilità, è vivamente consigliato di installarli. imagick Leggi attentamente le guide d'installazione ↗, e controlla gli errori o gli avvisi nel log. Controlla la sicurezza del tuo Nextcloud con la nostra scansione di sicurezza ↗ Versione Nextcloud 18.0.0 La tua versione è aggiornata.Canale di aggiornamento: Stabile Puoi aggiornare sempre a una nuova versione. Ma non puoi mai tornare a una versione precedente. Nota che, dopo una nuova versione, potrebbe essere necessario del tempo prima che sia mostrato qui. Rilasciamo nel tempo nuove versioni ai nostri utenti e, a volte, saltiamo una versione, se troviamo dei problemi. Notifica i membri dei seguenti gruppi sugli aggiornamenti disponibili: admin Select option `` 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 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, …) `{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "connect.stek.ch" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "18.0.0.10", "overwrite.cli.url": "https\/\/connect.stek.ch", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_sendmailmode": "smtp", "twofactor_enforced": "true", "twofactor_enforced_groups": [], "twofactor_enforced_excluded_groups": [] ``

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

Are you using encryption: yes/no NO

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

LDAP configuration (delete this part if not used)

LDAP config `+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Configuration | s01 | +-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 1 | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | CN=Administrator,CN=Users,DC=stek,DC=home | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | DC=stek,DC=home | | ldapBaseGroups | DC=stek,DC=home | | ldapBaseUsers | DC=stek,DC=home | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapDefaultPPolicyDN | | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | mail | | ldapExperiencedAdmin | 0 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | | | ldapExpertUsernameAttr | | | ldapExtStorageHomeAttribute | | | ldapGidNumber | gidNumber | | ldapGroupDisplayName | cn | | ldapGroupFilter | (&(|(objectclass=group))(|(cn=Cloud)(cn=Users))) | | ldapGroupFilterGroups | Cloud;Users | | ldapGroupFilterMode | 0 | | ldapGroupFilterObjectclass | group | | ldapGroupMemberAssocAttr | member | | ldapHost | ldaps://nas01.stek.home | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(&(|(objectclass=person))(|(|(memberof=CN=Users,CN=Builtin,DC=stek,DC=home)(primaryGroupID=545))(|(memberof=CN=Cloud,CN=Users,DC=stek,DC=home)(primaryGroupID=1111))))(samaccountname=%uid)) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 0 | | ldapLoginFilterMode | 1 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 0 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 636 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserAvatarRule | default | | ldapUserDisplayName | cn | | ldapUserDisplayName2 | | | ldapUserFilter | (&(|(objectclass=person))(|(|(memberof=CN=Users,CN=Builtin,DC=stek,DC=home)(primaryGroupID=545))(|(memberof=CN=Cloud,CN=Users,DC=stek,DC=home)(primaryGroupID=1111)))) | | ldapUserFilterGroups | Users;Cloud | | ldapUserFilterMode | 0 | | ldapUserFilterObjectclass | person | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | turnOnPasswordChange | 1 | | useMemberOfToDetectMembership | 1 |`` 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:

Google Chrome 79.0.3945.130 (Build ufficiale) (a 64 bit) (cohort: Stable)

Operating system: windows 10

Logs

Web server error log

Web server error log `no logs entry during this command`` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``no logs entry during this command```` Insert your Nextcloud log here ```

Browser log

Browser log ``no logs entry during this command````
kesselb commented 4 years ago

Looks like ~https://github.com/nextcloud/server/issues/19443~ https://github.com/nextcloud/server/issues/19429. Okay with you to close this report as duplicate?

stefanoklett commented 4 years ago

Duplicated of what? Of it self? I opened in the same time two different cases

  1. about SMB
  2. about LDAP password.

This are two different issues, no? regards

kesselb commented 4 years ago

Wrong issue number ;) I updated the previous post.

stefanoklett commented 4 years ago

Yes, #19429. seams to be similar, but the OS of the server is not the same. I'm trying to use SMB3 too, regards

ghost commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.