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

Editing notes created or modified by Desktop Sync Client elsewhere creates "File could not be synced" error #4196

Closed
MillironX opened this issue Jan 24, 2022 · 2 comments

Comments

@MillironX
Copy link

MillironX commented Jan 24, 2022

Previously reported as nextcloud/notes-android#1451
Previously reported as nextcloud/notes#806

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Setup the Desktop sync client on one or more computers

  2. Create a new note on the Desktop computer

     echo "# Note From Desktop\n\nThe quick brown fox..." >> ~/Nextcloud/Notes/"Note From Desktop.txt"
  3. In the Server Notes app, select "Note From Desktop" in the sidebar, and add the text "Does this work?" to the note body

    Editing on server

  4. Wait for the change to be propagated to the Desktop sync client

Expected behavior

The file ~/Nextcloud/Notes/Note From Desktop.txt on the desktop computer should say

# Note From Desktop

The quick brown fox...

Does this work?

Note that if the edit in step 4 is made from another synced Desktop computer, then the expected behavior is observed.

Actual behavior

The Desktop sync client reports

Note From Desktop.txt could not be synced due to an error

Nextcloud Notification

Examining the error report in the settings dialog reveals

Note/Note From Desktop.txt: The downloaded file does not match the checksum, it will be resumed <CHECKSUM> != <CHECKSUM>

Nextcloud Settings Dialog

The server app reflects the correct state of the files, however.

Client configuration

  • Client version: 3.3.6 (Fedora) (Latest distro package)
  • Operating system: Fedora 35
  • OS language: en-us
  • Qt version used by client package (Linux only, see also Settings dialog): 5.15.2
  • Client package (From Nextcloud or distro) (Linux only): distro
  • Installation path of client: /usr/bin/nextcloud

Server configuration

  • Nextcloud version: 21.0.1
  • Storage Backend: S3 (Linode)
  • OS: Debian 10
  • Web server: Apache2
  • PHP version: 7.3.31-1
  • Database: MySQL 10.3.31-MariaDB-0

Nextcloud configuration:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.millironx.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "21.0.1.1",
        "overwrite.cli.url": "https:\/\/nextcloud.millironx.com\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "US",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "htaccess.RewriteBase": "\/",
        "versions_retention_obligation": "auto",
        "app_install_overwrite": [
            "ocsms"
        ],
        "objectstore": {
            "class": "\\OC\\Files\\ObjectStore\\S3",
            "arguments": {
                "bucket": "nextcloud.millironx.com.storage",
                "autocreate": true,
                "key": "***REMOVED SENSITIVE VALUE***",
                "secret": "***REMOVED SENSITIVE VALUE***",
                "hostname": "us-east-1.linodeobjects.com",
                "port": 443,
                "use_ssl": true,
                "region": "us-east-1"
            }
        },
        "maintenance": false
    }
}

Logs

  1. Client logfile: client_logfile.zip
  2. Web server error log: error.log
  3. Server logfile: nextcloud log (data/nextcloud.log): nextcloud.log
@ghost
Copy link

ghost commented Jan 26, 2022

Maybe related to #4141

@MillironX
Copy link
Author

Cannot reproduce after upgrading server to Nextcloud v22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants