- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.6k
Closed
Labels
Description
Server issue
Detailed description in #28463 (comment)
Initial report
Describe the bug
I cannot edit markdown files. I open them, type a few characters but then the connection is lost and I have to reload, leaving the file with just a couple of characters.
To Reproduce
Steps to reproduce the behavior:
- open Markdown file
- start typing
- connection gets lost
Expected behavior
I can edit as much as I like and then close the file
Client details:
- OS: macOS Big Sur
- Browser: Firefox
- Version: latest
- Device: desktop
Server details
Text app version: (see Nextcloud apps page)
for about three months now
Operating system:
Ubuntu
Web server:
Apache
Database:
Mysql
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
latest 21
Logs
Nextcloud log (data/nextcloud.log)
1.2.3.4 - - [20/Apr/2021:06:28:54 +0000] "POST /apps/text/session/push HTTP/1.1" 200 961 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:54 +0000] "POST /apps/text/session/sync HTTP/1.1" 200 1208 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:55 +0000] "POST /apps/text/session/sync HTTP/1.1" 200 1141 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:55 +0000] "POST /apps/text/session/push HTTP/1.1" 200 960 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:55 +0000] "POST /apps/text/session/sync HTTP/1.1" 200 1207 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:56 +0000] "POST /apps/text/session/sync HTTP/1.1" 200 1141 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:56 +0000] "POST /apps/text/session/push HTTP/1.1" 200 1002 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:56 +0000] "POST /apps/text/session/sync HTTP/1.1" 200 1247 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:56 +0000] "POST /apps/text/session/sync HTTP/1.1" 405 979 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:56 +0000] "POST /apps/text/session/push HTTP/1.1" 200 993 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:57 +0000] "POST /apps/text/session/push HTTP/1.1" 412 882 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:57 +0000] "GET /apps/text/js/vendors~editor-collab~editor-guest.js.map?v=1234 HTTP/1.1" 200 91946 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
1.2.3.4 - - [20/Apr/2021:06:28:58 +0000] "POST /apps/text/session/push HTTP/1.1" 412 882 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0"
and the error logs
[Tue Apr 20 06:11:46.114999 2021] [evasive20:error] [pid 586651] [client 1.2.3.4:51263] client denied by server configuration: /var/www/nextcloud/apps/dashboard/
[Tue Apr 20 06:11:46.193161 2021] [evasive20:error] [pid 586651] [client 1.2.3.4:51263] client denied by server configuration: /var/www/nextcloud/apps/dashboard/
[Tue Apr 20 06:11:46.276584 2021] [evasive20:error] [pid 586651] [client 1.2.3.4:51263] client denied by server configuration: /var/www/nextcloud/apps/dashboard/
[Tue Apr 20 06:13:28.769265 2021] [evasive20:error] [pid 586645] [client 1.2.3.4:51287] client denied by server configuration: /var/www/nextcloud/apps/text/session
[Tue Apr 20 06:13:37.637799 2021] [evasive20:error] [pid 586645] [client 1.2.3.4:51287] client denied by server configuration: /var/www/nextcloud/apps/text/session
[Tue Apr 20 06:28:56.804371 2021] [evasive20:error] [pid 587456] [client 1.2.3.4:51537] client denied by server configuration: /var/www/nextcloud/apps/text/session
Browser log
POSThttps://nextcloud.xxxl.de/apps/text/session/push [HTTP/1.1 412 Precondition failed 149ms]
failed to apply steps due to collission, retrying PollingBackend.js:223:11
    value PollingBackend.js:223
    (Async: promise callback)
    value PollingBackend.js:222
    value SyncService.js:186
    onSendable EditorWrapper.vue:322
    getSendableSteps extensions.esm.js:1490
    n extensions.esm.js:1547
    (Async: setTimeout handler)
    value extensions.esm.js:1546
    value extensions.esm.js:1503
    value tiptap.esm.js:226
    value tiptap.esm.js:226
    value tiptap.esm.js:854
    dispatch index.js:370
    focus tiptap.esm.js:752
    tt input.js:79
    someProp index.js:231
    tt input.js:77
    t input.js:43
    (Async: EventListener.handleEvent)
    t input.js:42
    Ft input.js:40
    Ft index.js:66
    value tiptap.esm.js:797
    value tiptap.esm.js:629
    n tiptap.esm.js:608
    y EditorFactory.js:99
    syncService EditorWrapper.vue:303
    (Async: promise callback)
    syncService EditorWrapper.vue:302
    value SyncService.js:297
    value SyncService.js:296
    t SyncService.js:125
    (Async: promise callback)
    t SyncService.js:124
I do have to admit it looks like an issue with Apache but I can't pinpoint it. This is my apache conf:
<IfModule mod_ssl.c>
        <VirtualHost *:80>
                ServerAdmin admin@example.com
                ServerName nextcloud.xyz.de
                RewriteEngine on
                RewriteCond %{SERVER_NAME} =nextcloud.xyz.de
                RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
        </VirtualHost>
        <VirtualHost *:443>
                ServerAdmin admin@example.com
                DocumentRoot /var/www/nextcloud/
                ServerName nextcloud.xyz.de
                <IfModule mod_headers.c>
                        Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
                </IfModule>
                <Directory /var/www/nextcloud/>
                        Options +FollowSymlinks
                        AllowOverride All
                        Require all granted
                        <IfModule mod_dav.c>
                                Dav off
                        </IfModule>
                        SetEnv HOME /var/www/nextcloud
                        SetEnv HTTP_HOME /var/www/nextcloud
                </Directory>
                ErrorLog ${APACHE_LOG_DIR}/nc.error.log
                CustomLog ${APACHE_LOG_DIR}/nc.access.log combined
                Include /etc/letsencrypt/options-ssl-apache.conf
                Define VPATH /onlyoffice
                Define DS_ADDRESS 10.1.0.236
                <Location ${VPATH}>
                        Require all granted
                        SetEnvIf Host "^(.*)$" THE_HOST=$1
                        RequestHeader setifempty X-Forwarded-Proto https
                        RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
                        RequestHeader edit X-Forwarded-Host (.*) $1${VPATH}
                        ProxyAddHeaders Off
                </Location>
                ProxyPassMatch ^\${VPATH}(.*)(\/websocket)$ "ws://${DS_ADDRESS}/$1$2"
                ProxyPass ${VPATH} "http://${DS_ADDRESS}"
                ProxyPassReverse ${VPATH} "http://${DS_ADDRESS}"
                SSLCertificateFile /etc/letsencrypt/live/nextcloud.xyz.de/fullchain.pem
                SSLCertificateKeyFile /etc/letsencrypt/live/nextcloud.xyz.de/privkey.pem
        </VirtualHost>
</IfModule>
