laurent22 / joplin-nextcloud

Joplin Web API for Nextcloud
https://apps.nextcloud.com/apps/joplin
47 stars 8 forks source link

Joplin Web API Status - Sync Status is empty;[ransomware_protection] Warning: Prevented upload of Joplin/.lock #2

Closed Githopp192 closed 4 years ago

Githopp192 commented 4 years ago

Steps to reproduce

Configure Clients (Windows 10, Android, iPhone), Synchronization will run properly

Expected behaviour

There should be an entry onto the Joplin Web API Status Nextcloud Weg Page

Actual behaviour

Joplin Web API Status - Sync Status is empty

Server configuration detail

Operating system: Linux 3.10.0-1062.4.3.el7.x86_64 #1 SMP Wed Nov 13 23:58:53 UTC 2019 x86_64

Webserver: Apache (apache2handler)

Database: mysql 5.5.64

PHP version:

7.2.24 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, json, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, apcu, igbinary, imagick, redis, Zend OPcache

Nextcloud version: 16.0.6 - 16.0.6.1

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

Where did you install Nextcloud from: from orginal Source (Nextcloud)

Signing status Array ( )
List of activated apps ``` Enabled: - accessibility: 1.2.0 - activity: 2.9.1 - analytics: 1.2.2 - announcementcenter: 3.5.1 - apporder: 0.9.0 - audioplayer: 2.8.4 - bookmarks: 2.3.4 - bruteforcesettings: 1.4.0 - calendar: 1.7.1 - circles: 0.17.10 - cloud_federation_api: 0.2.0 - comments: 1.6.0 - contacts: 3.1.6 - cookbook: 0.5.7 - cospend: 0.1.0 - dashboardcharts: 0.1.3 - data_request: 1.3.0 - dav: 1.9.2 - deck: 0.6.6 - dicomviewer: 1.2.1 - drawio: 0.9.4 - drop_account: 0.1.0 - event_update_notification: 0.3.4 - extract: 1.2.2 - federatedfilesharing: 1.6.0 - federation: 1.6.0 - files: 1.11.0 - files_antivirus: 2.2.1 - files_downloadactivity: 1.5.0 - files_mindmap: 0.0.15 - files_pdfviewer: 1.5.0 - files_rightclick: 0.15.1 - files_sharing: 1.8.0 - files_texteditor: 2.8.0 - files_trashbin: 1.6.0 - files_versions: 1.9.0 - files_videoplayer: 1.5.0 - firstrunwizard: 2.5.0 - flowupload: 0.1.7 - gallery: 18.3.0 - issuetemplate: 0.6.0 - joplin: 0.0.25 - jsloader: 1.0.2 - logreader: 2.1.0 - lookup_server_connector: 1.4.0 - maps: 0.1.2 - nextcloud_announcements: 1.5.0 - notes: 3.1.0 - notifications: 2.4.1 - oauth2: 1.4.2 - onlyoffice: 4.0.0 - ownbackup: 19.9.0 - passman: 2.3.4 - password_policy: 1.6.0 - polls: 0.10.4 - privacy: 1.0.0 - provisioning_api: 1.6.0 - quicknotes: 0.2.1 - quota_warning: 1.5.0 - radio: 0.6.5 - rainloop: 6.0.4 - ransomware_protection: 1.4.1 - recommendations: 0.4.0 - serverinfo: 1.6.0 - sharebymail: 1.6.0 - sharerenamer: 2.7.3 - socialsharing_diaspora: 1.0.5 - socialsharing_email: 1.0.6 - socialsharing_facebook: 1.0.5 - socialsharing_googleplus: 1.0.4 - socialsharing_twitter: 1.0.5 - spreed: 6.0.4 - support: 1.0.0 - suspicious_login: 1.0.0 - systemtags: 1.6.0 - tasks: 0.11.3 - terms_of_service: 1.2.3 - theming: 1.7.0 - twofactor_backupcodes: 1.5.0 - twofactor_totp: 3.0.1 - updatenotification: 1.6.0 - viewer: 1.2.0 - workflowengine: 1.6.0 Disabled: - admin_audit - carnet - dashboard - encryption - external - files_accesscontrol - files_external - files_fulltextsearch - files_markdown - fulltextsearch - fulltextsearch_elasticsearch - impersonate - passwords - richdocuments - survey_client - user_ldap - weather ```
Configuration (config/config.php) ``` { "memcache.local": "\\OC\\Memcache\\APCu", "filelocking.enabled": true, "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "dbindex": 0, "timeout": 1.5 }, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "xxxxx", "xxxxx" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/xxxx", "htaccess.RewriteBase": "\/", "overwriteprotocol": "https", "dbtype": "mysql", "version": "16.0.6.1", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "maintenance": false, "theme": "", "loglevel": 1, "updater.release.channel": "production", "auth.bruteforce.protection.enabled": true, "check_for_working_htaccess": true, "data-fingerprint": "xxxxxxx", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "xxx", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "xxxx", "session_lifetime": xxx, "session_keepalive": false, "logtimezone": "xxxx", "logfile": "\/media\/log\/nextcloud.log", "knowledgebaseenabled": false, "log_rotate_size": xxxx, "onlyoffice": { "verify_peer_off": true }, "mail_sendmailmode": "smtp" } ```

Are you using external storage, if yes which one: none

Are you using encryption:

Are you using an external user-backend, if yes which one: none

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36

Operating system: Windows 10

Logs

Web server error log ``` [PHP] Error: Invalid argument supplied for foreach() at /var/www/html/nextcloud/apps/joplin/lib/Service/JoplinService.php#128 [PHP] Error: Undefined index: jsFiles at /var/www/html/nextcloud/apps/joplin/lib/Service/JoplinService.php#128 [PHP] Error: Undefined index: log-detail at /var/www/html/nextcloud/apps/issuetemplate/lib/Detail.php#59 [ransomware_protection] Warning: Prevented upload of Joplin/.lock because it matches extension pattern ".lock" --> btw : what are are exclude patterns to define for ransomware_protection for proper working into Nextcloud ? ```
Nextcloud log ``` Insert your Nextcloud log here ```
Browser log
laurent22 commented 4 years ago

You'll need to disable the ransomware_protection for it to work I guess.

Githopp192 commented 4 years ago

yes… but better would be defining an exception for the ransomware_protection. I'd appreciate if we could exclude this specific .lock file (see https://apps.nextcloud.com/apps/ransomware_protection --> exclude extension patterns). Maybe you have a chance to test it once .. (because today .. ransomware protection could be very important)