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

lost notes !!! #69

Closed
samuelgautier opened this issue Mar 10, 2017 · 9 comments
Closed

lost notes !!! #69

samuelgautier opened this issue Mar 10, 2017 · 9 comments
Labels
needs info More details are needed in order to validate issue

Comments

@samuelgautier
Copy link

samuelgautier commented Mar 10, 2017

That's the second time that i lost my notes while writting, and just retrieving a old and partial version .

@Henni
Copy link
Member

Henni commented Mar 10, 2017

Can you give as a bit more information, when and how this happened? Please take a look at the issue template.

@d-jsb
Copy link

d-jsb commented Mar 13, 2017

Maybe it is connected to this nextcloud/server#3818
I just started using nextcloud. notes app seems very useful but does not work always :s
Deleting the whole notes folder and retry did not fix the problem, however I can take notes as expected with another user id. No idea if it is important but the user id having problems is in the admin group while the user id that can use notes is not an admin.

@korelstar
Copy link
Member

@d-jsb Do you have the problem only if you create a new note or also if you update it? Maybe it's realated to #58.

@scottalanmiller
Copy link

I made a note and when I came back to it, all of my edits were gone. Looks like the online editor might blow away changes made by another tool.

@scottalanmiller
Copy link

@korelstar
Copy link
Member

@scottalanmiller Please provide more info (see issue template), e.g. what do you mean by "another tool"?

@AmauryCarrade
Copy link

Hi,
I'm experiencing the same issue here. This problem does not always occurs, but when it does, I can see in my server log than the first PUT update request is being sent but no other one (see logs section in the template below). Also, the loading spinner at the top of the note is not interrupted. Displayed without discontinuation.

Using the Android app, this is somewhat reflected by never-ending notes synchronisation, but I can't be sure it's related. The Android app seems to be less (or not, if I misinterpret the origin of the problem just mentioned) affected by this issue.

I don't know what is the origin of this problem, as it's not systematic. But it's frequent and pretty annoying.

Feel free to ask if there is anything more you want to know.


Steps to reproduce

  1. Open the Nextcloud Notes app on the web.
  2. Start writing into an existing note or a new one.
  3. Reload the page.

Expected behaviour

The whole note is saved at any moment.

Actual behaviour

Only the beginning of the note is saved.
...Sometimes.

Server configuration

Operating system: CentOS 7

Web server: Nginx 1.10.2 (and PHP-FPM)

Database: MariaDB

mysql  Ver 15.1 Distrib 10.1.22-MariaDB, for Linux (x86_64) using readline 5.1

PHP version: 7.1

PHP 7.1.4 (cli) (built: Apr 13 2017 13:22:31) ( NTS )

Nextcloud version: 11.0.3

Notes app version: 2.2.0

Updated from an older Nextcloud/ownCloud or fresh install: Update from ownCloud, but the Notes app was installed for the first time on this version of NextCloud.

Where did you install Nextcloud from: targz package downloaded from the official website.

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.4.1
  - calendar: 1.5.2
  - comments: 1.1.0
  - contacts: 1.5.3
  - dav: 1.1.1
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_automatedtagging: 1.1.1
  - files_downloadactivity: 1.0.1
  - files_external: 1.1.2
  - files_pdfviewer: 1.0.1
  - files_reader: 1.0.4
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - gallery: 16.0.0
  - gpxpod: 2.1.1
  - keeweb: 0.3.1
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.0
  - notes: 2.2.0
  - notifications: 1.0.1
  - ocsms: 1.12.0
  - password_policy: 1.1.0
  - previewgenerator: 1.0.6
  - provisioning_api: 1.1.0
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - spreed: 1.2.0
  - survey_client: 0.1.5
  - systemtags: 1.1.3
  - tasks: 0.9.5
  - templateeditor: 0.2
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - twofactor_totp: 1.1.0
  - updatenotification: 1.1.1
  - workflowengine: 1.1.1
Disabled:
  - admin_audit
  - encryption
  - external
  - files_accesscontrol
  - files_retention
  - rainloop
  - user_external
  - user_ldap
  - user_saml

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "ocd417fe59ee",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "<my domain here>"
        ],
        "datadirectory": "\/home\/www\/<my domain here>\/nuage\/data",
        "dbtype": "mysql",
        "version": "11.0.3.2",
        "installed": true,
        "loglevel": 4,
        "maintenance": false,
        "forcessl": true,
        "theme": "",
        "mail_from_address": "<my domain here>",
        "mail_smtpmode": "php",
        "mail_domain": "<my domain here>",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "dbname": "owncloud",
        "dbhost": "127.0.0.1",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "trashbin_retention_obligation": "auto",
        "debug": false,
        "log_rotate_size": 104857600
    }
}

 

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

Are you using encryption: no

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

Client configuration

Browser: Firefox 53.0.2 (64 bits)

Operating system: ArchLinux up-to-date (x86_64 Linux 4.10.13-1-ARCH)

Logs

Web server error log

Web server error log When the Notes app works normally, the log looks like this:
[15/May/2017:13:12:49 +0200] "GET /apps/notes/ HTTP/1.1" 200 35497 "-"
[15/May/2017:13:12:50 +0200] "GET /apps/theming/styles?v=1 HTTP/1.1" 200 38 "-"
[15/May/2017:13:13:00 +0200] "GET /apps/theming/js/theming?v=1 HTTP/1.1" 200 215 "-"
[15/May/2017:13:13:01 +0200] "GET /avatar/Amaury/32?v=2 HTTP/1.1" 304 0 "-"
[15/May/2017:13:13:02 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-"
[15/May/2017:13:13:02 +0200] "GET /apps/notes/notes/146578 HTTP/1.1" 200 2616 "-"
[15/May/2017:13:13:05 +0200] "GET /apps/notes/notes HTTP/1.1" 200 23460 "-"
[15/May/2017:13:13:16 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2625 "-"
[15/May/2017:13:13:20 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2638 "-"
[15/May/2017:13:13:22 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2648 "-"
[15/May/2017:13:13:24 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2653 "-"
[15/May/2017:13:13:26 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2658 "-"
[15/May/2017:13:13:28 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2672 "-"
[15/May/2017:13:13:30 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2677 "-"
[15/May/2017:13:13:30 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-"
[15/May/2017:13:13:32 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2690 "-"
[15/May/2017:13:13:35 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2698 "-"
[15/May/2017:13:13:38 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2707 "-"
[15/May/2017:13:13:40 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2712 "-"
[15/May/2017:13:13:44 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 200 2729 "-"

But when the problem occurs:

[10/May/2017:18:28:42 +0200] "GET /apps/notes/ HTTP/1.1" 200 33965 "-"
[10/May/2017:18:28:43 +0200] "GET /avatar/Amaury/32?v=1 HTTP/1.1" 200 0 "-"
[10/May/2017:18:28:43 +0200] "GET /apps/theming/styles?v=0 HTTP/1.1" 200 38 "-"
[10/May/2017:18:28:48 +0200] "GET /apps/theming/js/theming?v=0 HTTP/1.1" 200 215 "-"
[10/May/2017:18:28:50 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-"
[10/May/2017:18:28:54 +0200] "GET /apps/notes/notes/144671 HTTP/1.1" 200 2622 "-"
[10/May/2017:18:29:19 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-"
[10/May/2017:18:29:35 +0200] "GET /apps/notes/notes HTTP/1.1" 200 20598 "-"
[10/May/2017:18:29:44 +0200] "PUT /apps/notes/notes/144671 HTTP/1.1" 200 2688 "-"

# And then, no more PUT request is being made. Even if I write into the file. Also, the PUT request is received pretty late compared to the normal case.

I also, sometimes, get a 500 internal Error from the PUT /apps/notes/notes/id endpoint:

[14/May/2017:22:18:43 +0200] "GET /apps/notes/ HTTP/1.1" 200 35499 "-"
[14/May/2017:22:18:45 +0200] "GET /apps/theming/styles?v=1 HTTP/1.1" 200 38 "-"
[14/May/2017:22:18:50 +0200] "GET /apps/theming/js/theming?v=1 HTTP/1.1" 200 215 "-"
[14/May/2017:22:18:51 +0200] "GET /avatar/Amaury/32?v=2 HTTP/1.1" 304 0 "-"
[14/May/2017:22:18:51 +0200] "GET /apps/notes/notes/146578 HTTP/1.1" 200 106 "-"
[14/May/2017:22:18:51 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-"
[14/May/2017:22:18:56 +0200] "PUT /apps/notes/notes/146578 HTTP/1.1" 500 16945 "-"

But strangely, there is no related error in either the Nginx error log or the Nextcloud log.

Nextcloud log (data/nextcloud.log)

Nextcloud log

Nothing relevant inside (according to the date), but I share the last lines anyway.

{"reqId":"Hcqe96hm0InRNVZF61j6","remoteAddr":"<snip>","app":"core","message":"Trusted domain error. \"<snip>\" tried to access using \"<snip>\" as host.","level":2,"time":"2017-05-02T16:29:18+00:00","method":"GET","url":"\/","user":"--","version":"11.0.3.2"}
{"reqId":"QlR9JNooLLhUMa6CtoeT","remoteAddr":"<snip>","app":"core","message":"Login failed: 'Amaury' (Remote IP: '<snip>')","level":2,"time":"2017-05-02T16:56:26+00:00","method":"POST","url":"\/login","user":"--","version":"11.0.3.2"}
{"reqId":"QlR9JNooLLhUMa6CtoeT","remoteAddr":"<snip>","app":"core","message":"Bruteforce attempt from \"<snip>\" detected for action \"login\".","level":1,"time":"2017-05-02T16:56:26+00:00","method":"POST","url":"\/login","user":"--","version":"11.0.3.2"}
{"reqId":"yUWHBlHZT6fDbXYIIG8W","remoteAddr":"<snip>","app":"core","message":"Login failed: 'Amaury' (Remote IP: '<snip>')","level":2,"time":"2017-05-02T16:56:34+00:00","method":"POST","url":"\/login?user=Amaury","user":"--","version":"11.0.3.2"}
{"reqId":"yUWHBlHZT6fDbXYIIG8W","remoteAddr":"<snip>","app":"core","message":"Bruteforce attempt from \"<snip>\" detected for action \"login\".","level":1,"time":"2017-05-02T16:56:34+00:00","method":"POST","url":"\/login?user=Amaury","user":"--","version":"11.0.3.2"}
{"reqId":"GfNlbAT9vU8jIv7jylc5","remoteAddr":"<snip>","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 409 Parent node does not exist\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\Conflict\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/www\\\/<path>\\\/<path>\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(590): Sabre\\\\DAV\\\\Server->createCollection('T\\\\xC3\\\\xA9l\\\\xC3\\\\xA9versement...', Object(Sabre\\\\DAV\\\\MkCol))\\n#1 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpMkcol(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#2 \\\/home\\\/www\\\/<path>\\\/<path>\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#3 \\\/home\\\/www\\\/<path>\\\/<path>\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:MKCOL', Array)\\n#4 \\\/home\\\/www\\\/<path>\\\/<path>\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/home\\\/www\\\/<path>\\\/<path>\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#6 \\\/home\\\/www\\\/<path>\\\/<path>\\\/remote.php(165): require_once('\\\/home\\\/www\\\/<path>...')\\n#7 {main}\",\"File\":\"\\\/home\\\/www\\\/<path>\\\/<path>\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php\",\"Line\":1143,\"User\":\"Amaury\"}","level":4,"time":"2017-05-11T11:43:44+00:00","method":"MKCOL","url":"\/remote.php\/webdav\/<path>\/2017\/05\/","user":"Amaury","version":"11.0.3.2"}

Browser log

Browser log

Nothing really useful in my browser log currently. But I'm not right now able to reproduce this issue (it's pretty random, remember?). I'll add anything I found the next time this bug is around.

As for the network logs, see the server logs section above.

Content Security Policy: « frame-src » directive is obsolete. Please use the « child-src » directive instead.  (unknown source)
JQMIGRATE: Migrate is installed, version 1.4.0  (jquery-migrate.min.js:2:542)

@camilasan
Copy link
Member

Are you still experiencing this problem with the latest version of notes and nc server @AmauryCarrade @samterabyte ?

@camilasan camilasan added the needs info More details are needed in order to validate issue label May 4, 2018
@jancborchardt
Copy link
Member

Closing because of missing info. If you encounter this again, please open a new issue and make sure you fill out the issue template. Then we can help debug the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info More details are needed in order to validate issue
Projects
None yet
Development

No branches or pull requests

8 participants