Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Editor doesn't open --> Spinner spins for ages (for some documents only) #638

Open
melroy89 opened this issue Apr 23, 2016 · 4 comments
Open

Comments

@melroy89
Copy link

melroy89 commented Apr 23, 2016

Hi,

Steps to reproduce

  1. Open ownCloud
  2. Start the Documents App
  3. Open an advanced odt document in the build-in editor --> A odt document with some pictures, multiple heading levels, indexes (table of contents), hyper-links, footer & header sections.

Expected behaviour

I should see the editor.

Actual behaviour

The spinner keeps spinning, when I pressed the document....

loading_icon

Server configuration

Operating system:
Debian Jessie (8.4) 64-bit

Web server:
Nginx (1.6.2). I have gzip already disabled (gzip off;) on Nginx server config. As well as: gzip_vary off;. And the .htaccess file doesn't work under Nginx server.

Database:
MySQL (5.5.47)

PHP version:
php5-fpm (5.6.19)

ownCloud version:
ownCloud 9.0.2 (stable)

Documents App version:
v0.10 Although I would like to have the latest version (0.13.0, right?). But I don't know how this ownCloud app plugin systems works with regard to the versions....

Updated from an older ownCloud or fresh install:
Updated

Where did you install ownCloud from:
Using apt-get & sources.list:

/etc/apt/sources.list.d$ cat owncloud.list 
deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
--> this URL doesn't execute.

List of activated apps:

  • activity (Official)
  • deleted files (Official)
  • file locking (Official)
  • first run wizard (Official)
  • mail template editor (Official)
  • pdf viewer (Official)
  • Pictures (Official)
  • Provisioning API (Official)
  • Share files (Official)
  • Text Editor (Official)
  • Versions (Official)
  • Video Viewer (Official)
  • Documents (Approved)

Nginx server configuration for ownCloud:

server {
    listen 80;
    server_name cloud.melroy.org;
    server_tokens off;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl;
    server_name cloud.melroy.org;
    server_tokens off;

    ssl_certificate /etc/nginx/ssl/server.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;

    ssl_session_cache shared:SSL:10m;

    # Add headers to serve security related headers
    add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
    add_header X-Content-Type-Options nosniff;
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;

    # Path to the root of your installation
    root /var/www/owncloud/;
    # set max upload size
    client_max_body_size 10G;
    # was 64 4K
    fastcgi_buffers 256 4K;
    fastcgi_buffer_size 8k;
    # --> Decrease cookie size instead?

    # Disable gzip to avoid the removal of the ETag header
    gzip off;
    gzip_vary off;

    # Uncomment if your server is build with the ngx_pagespeed module
    # This module is currently not supported.
    #pagespeed off;

    rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
    rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
    rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;

    index index.php;
    error_page 403 /core/templates/403.php;
    error_page 404 /core/templates/404.php;

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README){
        deny all;
    }

    # Let's Encrypt Webroot plugin
        location ~/.well-known {
                allow all;
        }

    location / {
        # The following 2 rules are only needed with webfinger
        rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
        rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;

        rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
        rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;

        rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;

        try_files $uri $uri/ /index.php;
    }

    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
        fastcgi_pass php-handler;
        fastcgi_intercept_errors on;
    }

    # Adding the cache control header for js and css files
    # Make sure it is BELOW the location ~ \.php(?:$|/) { block
    location ~* \.(?:css|js)$ {
        add_header Cache-Control "public, max-age=7200";
        # Add headers to serve security related headers
        add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
        add_header X-Content-Type-Options nosniff;
        add_header X-Frame-Options "SAMEORIGIN";
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Robots-Tag none;
        # Optional: Don't log access to assets
        access_log off;
    }

    # Optional: Don't log access to other assets
    location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|swf)$ {
       access_log off;
    }

    location = /data/htaccesstest.txt {
        allow all;
        log_not_found off;
        access_log off;
    }
}

The content of config/config.php:

$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'cloud.melroy.org',
  ),
  'datadirectory' => '/media/data/owncloud',
  '3rdpartyroot' => '/var/www/owncloud/',
  'overwrite.cli.url' => 'https://cloud.melroy.org/',
  'dbtype' => 'mysql',
  'filelocking.enabled' => 'true',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0,
  ),
  'memcached_servers' => 
  array (
    0 => 
    array (
      0 => 'localhost',
      1 => 11211,
    ),
  ),
  'version' => '8.1.6.2',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloud',
  'dbpassword' => 'xxxxxxxx',
  'installed' => true,
  'mail_from_address' => 'server',
  'mail_smtpmode' => 'php',
  'mail_domain' => 'melroy.org',
  'theme' => '',
  'maintenance' => false,
  'loglevel' => 0,
);

Are you using external storage:
Not external, but an other internal storage location on the machine:
/media/data/owncloud

Are you using encryption:
no server-side encryption from ownCloud. Only TLS via Nginx.

Are you using an external user-backend:
No

Client configuration

Browser:
Firefox 45.0

Operating system:
Linux Mint 17.3 (64bit)

Logs

Web server error log

Nginx log (only output of access.log, error.log keeps empty):

95.96.217.27 - - [23/Apr/2016:18:01:55 +0200] "GET /index.php/apps/documents/ HTTP/1.1" 200 13159 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
95.96.217.27 - - [23/Apr/2016:18:01:56 +0200] "GET /index.php/core/js/oc.js?v=78ee7b5d0904d713ed9305cf20e826de HTTP/1.1" 200 1891 "https://cloud.melroy.org/index.php/apps/documents/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
95.96.217.27 - - [23/Apr/2016:18:01:56 +0200] "GET /cron.php HTTP/1.1" 200 20 "https://cloud.melroy.org/index.php/apps/documents/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
95.96.217.27 - - [23/Apr/2016:18:01:56 +0200] "GET /index.php/avatar/melroy/128?requesttoken=btEbM10RJ4sIbpLT3Mae6VcfIAOzwM HTTP/1.1" 200 46 "https://cloud.melroy.org/index.php/apps/documents/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
95.96.217.27 - - [23/Apr/2016:18:01:57 +0200] "GET /index.php/apps/documents/ajax/documents/list HTTP/1.1" 200 2565 "https://cloud.melroy.org/index.php/apps/documents/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
95.96.217.27 - - [23/Apr/2016:18:01:58 +0200] "POST /index.php/apps/documents/ajax/session/joinasuser/20721 HTTP/1.1" 200 293 "https://cloud.melroy.org/index.php/apps/documents/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
95.96.217.27 - - [23/Apr/2016:18:01:59 +0200] "GET /index.php/apps/documents/ajax/genesis/qotiuxy7jx5a1cia17jhzflolpp7hn?requesttoken=btEbM10RJ4sIbpLT3Mae6VcfIAOzwM HTTP/1.1" 200 568261 "https://cloud.melroy.org/index.php/apps/documents/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
127.0.0.1 - - [23/Apr/2016:18:02:01 +0200] "GET /server-status?auto HTTP/1.1" 301 178 "-" "libwww-perl/6.08"

ownCloud log (data/owncloud.log)

{"reqId":"j1+Hqp862PxosTmNV6fs","remoteAddr":"95.96.217.27","app":"files_locking","message":"INFO: Read lock requested for \/media\/data\/owncloud\/melroy\/files\/Documents\/Onderneming\/xxxxxxx.odt","level":0,"time":"2016-04-23T15:43:11+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/session\/joinasuser\/20721"}
{"reqId":"j1+Hqp862PxosTmNV6fs","remoteAddr":"95.96.217.27","app":"files_locking","message":"PASS: Acquired read lock for \/media\/data\/owncloud\/melroy\/files\/Documents\/Onderneming\/xxxxxxx.odt","level":0,"time":"2016-04-23T15:43:11+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/session\/joinasuser\/20721"}
{"reqId":"j1+Hqp862PxosTmNV6fs","remoteAddr":"95.96.217.27","app":"files_locking","message":"INFO: Incrementing lock type 1 count for \/media\/data\/owncloud\/melroy\/files\/Documents\/Onderneming\/xxxxxxx.odt","level":0,"time":"2016-04-23T15:43:11+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/session\/joinasuser\/20721"}
{"reqId":"j1+Hqp862PxosTmNV6fs","remoteAddr":"95.96.217.27","app":"files_locking","message":"INFO: Incrementing lock type 1 count for \/media\/data\/owncloud\/melroy\/files\/Documents\/Onderneming\/xxxxxxx.odt","level":0,"time":"2016-04-23T15:43:11+00:00","method":"POST","url":"\/index.php\/apps\/documents\/ajax\/session\/joinasuser\/20721"}
{"reqId":"qt2kbikKaLMZhipaaghW","remoteAddr":"95.96.217.27","app":"files_locking","message":"INFO: Read lock requested for \/media\/data\/owncloud\/melroy\/documents\/6167997c81d0fa4a5d37f639861314d5ca314f02.odt","level":0,"time":"2016-04-23T15:43:12+00:00","method":"GET","url":"\/index.php\/apps\/documents\/ajax\/genesis\/qotiuxy7jx5a1cia17jhzflolpp7hn?requesttoken=btEbM10RJ4sIbpLT3Mae6VcfIAOzwM"}
{"reqId":"qt2kbikKaLMZhipaaghW","remoteAddr":"95.96.217.27","app":"files_locking","message":"PASS: Acquired read lock for \/media\/data\/owncloud\/melroy\/documents\/6167997c81d0fa4a5d37f639861314d5ca314f02.odt","level":0,"time":"2016-04-23T15:43:12+00:00","method":"GET","url":"\/index.php\/apps\/documents\/ajax\/genesis\/qotiuxy7jx5a1cia17jhzflolpp7hn?requesttoken=btEbM10RJ4sIbpLT3Mae6VcfIAOzwM"}
{"reqId":"qt2kbikKaLMZhipaaghW","remoteAddr":"95.96.217.27","app":"files_locking","message":"INFO: Incrementing lock type 1 count for \/media\/data\/owncloud\/melroy\/documents\/6167997c81d0fa4a5d37f639861314d5ca314f02.odt","level":0,"time":"2016-04-23T15:43:12+00:00","method":"GET","url":"\/index.php\/apps\/documents\/ajax\/genesis\/qotiuxy7jx5a1cia17jhzflolpp7hn?requesttoken=btEbM10RJ4sIbpLT3Mae6VcfIAOzwM"}
{"reqId":"qt2kbikKaLMZhipaaghW","remoteAddr":"95.96.217.27","app":"files_locking","message":"INFO: Incrementing lock type 1 count for \/media\/data\/owncloud\/melroy\/documents\/6167997c81d0fa4a5d37f639861314d5ca314f02.odt","level":0,"time":"2016-04-23T15:43:12+00:00","method":"GET","url":"\/index.php\/apps\/documents\/ajax\/genesis\/qotiuxy7jx5a1cia17jhzflolpp7hn?requesttoken=btEbM10RJ4sIbpLT3Mae6VcfIAOzwM"}

Browser log

Javascript log from Firefox:

Content Security Policy: Directive 'frame-src' has been deprecated. Please use directive 'child-src' instead. <unknown>
Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1:0
Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src https://cloud.melroy.org 'unsafe-eval'"). documents
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery.min.js:5:17117
Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src https://cloud.melroy.org 'unsafe-eval'"). documents:1:0
Use of getAttributeNode() is deprecated. Use getAttribute() instead. jquery.min.js:156:64
TypeError: listStyles[styleName] is undefined
applyContentBasedStyles()
 jquery.min.js:8259
ListStyleToCss/this.applyListStyles()
 jquery.min.js:8283
handleStyles()
 jquery.min.js:9140
callback()
 jquery.min.js:9613
refreshOdf()
 jquery.min.js:9623
load/odfcontainer<()
 jquery.min.js:9657
setState()
 jquery.min.js:6768
loadNextComponent()
 jquery.min.js:6941
loadNextComponent/<()
 jquery.min.js:6937
loadAsDOM/<()
 jquery.min.js:4878
loadAsString/<()
 jquery.min.js:4831
handleEntryData()
 jquery.min.js:4704
load/<()
 jquery.min.js:4719
read()
 jquery.min.js:4648
load()
 jquery.min.js:4715
load()
 jquery.min.js:4819
loadAsString()
 jquery.min.js:4826
loadAsDOM()
 jquery.min.js:4872
loadNextComponent()
 jquery.min.js:6920
loadNextComponent/<()
 jquery.min.js:6937
loadAsDOM/<()
 jquery.min.js:4878
loadAsString/<()
 jquery.min.js:4831
handleEntryData()
 jquery.min.js:4704
load/<()
 jquery.min.js:4719
read()
 jquery.min.js:4648
load()
 jquery.min.js:4715
load()
 jquery.min.js:4819
loadAsString()
 jquery.min.js:4826
loadAsDOM()
 jquery.min.js:4872
loadNextComponent()
 jquery.min.js:6920
loadNextComponent/<()
 jquery.min.js:6937
loadAsDOM/<()
 jquery.min.js:4878
loadAsString/<()
 jquery.min.js:4831
handleEntryData()
 jquery.min.js:4704
load/<()
 jquery.min.js:4719
read()
 jquery.min.js:4648
load()
 jquery.min.js:4715
load()
 jquery.min.js:4819
loadAsString()
 jquery.min.js:4826
loadAsDOM()
 jquery.min.js:4872
loadNextComponent()
 jquery.min.js:6920
loadNextComponent/<()
 jquery.min.js:6937
loadAsDOM/<()
 jquery.min.js:4878
loadAsString/<()
 jquery.min.js:4831
handleEntryData()
 jquery.min.js:4704
load/<()
 jquery.min.js:4719
read()
 jquery.min.js:4648
load()
 jquery.min.js:4715
load()
 jquery.min.js:4819
loadAsString()
 jquery.min.js:4826
loadAsDOM()
 jquery.min.js:4872
loadNextComponent()
 jquery.min.js:6920
loadNextComponent/<()
 jquery.min.js:6937
loadAsDOM/<()
 jquery.min.js:4878
loadAsString/<()
 jquery.min.js:4831
handleEntryData()
 jquery.min.js:4704
load/<()
 jquery.min.js:4719
read()
 jquery.min.js:4648
load()
 jquery.min.js:4715
load()
 jquery.min.js:4819
loadAsString()
 jquery.min.js:4826
loadAsDOM()
 jquery.min.js:4872
loadNextComponent()
 jquery.min.js:6920
loadComponents()
 jquery.min.js:6946
OdfContainer/zip<()
 jquery.min.js:7216
handleCentralDirectory()
 jquery.min.js:4766
handleCentralDirectoryEnd/<()
 jquery.min.js:4802
read()
 jquery.min.js:4648
handleCentralDirectoryEnd()
 jquery.min.js:4798
Zip/</<()
 jquery.min.js:5028
read()
 jquery.min.js:4648
Zip/<()
 jquery.min.js:5024
handleResult()
 jquery.min.js:338
 jquery.min.js:8259:11

Network graph from Firefox:
network_log

Thanks!

Kind regards,
Melroy van den Berg

@melroy89
Copy link
Author

melroy89 commented May 3, 2016

I also get:

ASSERTION FAILED:
editorSession should exist here.

When I close the app.

@HLFH
Copy link

HLFH commented May 5, 2016

Same issue...

@melroy89
Copy link
Author

melroy89 commented Jun 3, 2016

No labels and no milestone?

@kidandcat
Copy link

#622 Duplicate

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

No branches or pull requests

3 participants