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

webodf is not loaded #54

Closed
karlitschek opened this issue Oct 2, 2013 · 26 comments
Closed

webodf is not loaded #54

karlitschek opened this issue Oct 2, 2013 · 26 comments

Comments

@karlitschek
Copy link

The editor is not loaded anymore if used with current core master. Probably the most recent restructurings broke something?

@karlitschek
Copy link
Author

@VicDeo Can you test with current core master and have a look?

@VicDeo
Copy link
Contributor

VicDeo commented Oct 2, 2013

@karlitschek just pulled the master and can't reproduce. Anything related in logs/browser console?

@karlitschek
Copy link
Author

[Wed Oct 02 16:09:44 2013] [error] [client 192.168.58.1] PHP Fatal error: Class 'OCA\Documents\OCP\Template' not found in /var/www/owncloud/documents/lib/download.php on line 103, referer: http://oc:90/core/index.php/apps/documents
[Wed Oct 02 16:09:44 2013] [error] [client 192.168.58.1] PHP Fatal error: Class 'OCA\Documents\OCP\Template' not found in /var/www/owncloud/documents/lib/download.php on line 103, referer: http://oc:90/core/index.php/apps/documents

But even after fixing this (adding a "") doesn't fix this problem.
Tested with latest core master and Chrome, Safari, Firefox. Just a grey spinner.

@karlitschek
Copy link
Author

In the JS console I get:

HEAD http://oc:90/core/index.php/apps/documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a 404 (Not Found) documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a:1
GET http://oc:90/core/index.php/apps/documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a 404 (Not Found) documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a:1
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

@kossebau
Copy link
Contributor

kossebau commented Oct 2, 2013

Could be that you have non-compatible stuff in the db from an old session which no longer matches current state.
Can you send me the odt file where this happens per pm, so I can test tonight if there are issues with webodf itself?

@kossebau
Copy link
Contributor

kossebau commented Oct 2, 2013

Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

Ah, that seems less a webodf problem then. Well. Kind of is still, an error escalition problem. That part is still a TODO with webodf :(

@karlitschek
Copy link
Author

I tested this with a clean owncloud and with an empty new document

@thz
Copy link
Contributor

thz commented Oct 2, 2013

if the genesis handler returns a 404 then there is not much WebODF can do except to do a more gracefull handling of this exceptional state. the problem is either:

  • the document was not copied in the right place on session-creation
  • the database has incorrect information where to look for the document
  • the genesis url delivered to WebODF is corrupt

@karlitschek
Copy link
Author

@VicDeo Does this really work for you with a fresh core master installation? Very strange.

@VicDeo
Copy link
Contributor

VicDeo commented Oct 2, 2013

@karlitschek I did a clean install cloning current master.
Reproduced, fixed and pushed. The very first document was always failing as fs was not ready yet.

@karlitschek
Copy link
Author

Thx

@karlitschek
Copy link
Author

Hmm. Perhaps I'm totaly crazy but the error still exists for me with a fresh checkout and a new owncloud setup. @VicDeo Does it work for you?

@VicDeo
Copy link
Contributor

VicDeo commented Oct 4, 2013

@karlitschek ok, doing another fresh install to test

@VicDeo VicDeo reopened this Oct 4, 2013
@VicDeo
Copy link
Contributor

VicDeo commented Oct 4, 2013

@karlitschek can't reproduce on completely fresh install. Do you use the instance for which this bug was initially reported by any chance?

@karlitschek
Copy link
Author

it indeed works with a clean seperate checkout. very strange. Sorry for the noise :-)

@VicDeo
Copy link
Contributor

VicDeo commented Oct 4, 2013

@karlitschek Besides with the fix I submitted a patch that doesn't allow to create session entry if related file was not stored successfully.
So just clean oc_documents_session on that instance and everything will work there too.

@karlitschek
Copy link
Author

Unfortunately I still have the same issue after a clean install.
In the php log:
{"app":"PHP","message":"RecursiveDirectoryIterator::__construct(/var/www/html/owncloud/data/admin/thumbnails/13/): failed to open dir: No such file or directory at /var/www/html/owncloud/lib/private/files/storage/local.php#44","level":3,"time":"2013-10-20T14:57:21+00:00"}

In JS console:
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Uncaught ReferenceError: runtime is not defined Server.js:4

@karlitschek karlitschek reopened this Oct 20, 2013
@VicDeo
Copy link
Contributor

VicDeo commented Oct 20, 2013

@karlitschek is this the only error in JS console?
Can you check if all js files are loaded (there are no 404 status for some of them)

@karlitschek
Copy link
Author

I can see only that. The interesting thing is that is also works every 2nd or third time. @PVince81 You had a similar error before, right?

@VicDeo
Copy link
Contributor

VicDeo commented Oct 21, 2013

The interesting thing is that is also works every 2nd or third time

@karlitschek it works/doesn't work/ for the same file or it's file persistent?
Which DB engine/browser do you use?

@PVince81
Copy link
Contributor

Now I get this error in the console (with OC6 master + documents master):
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

It stays stuck on the loading spinner of the document.

@VicDeo
Copy link
Contributor

VicDeo commented Oct 22, 2013

@PVince81 Did you pull recently?
Which browser?

@PVince81
Copy link
Contributor

Yes, pulled both master branches and cleant my cache. (Chrome 30)
I did the same on another test machine and it works there with the same browser (connecting remotely).

I suspect there is still a race condition somewhere. Since I'm using the same client computer+browser, could there be a race condition on the server side ?

@PVince81
Copy link
Contributor

Wait, it looks like the server difference is that I have encryption enabled. Will test this with and without encryption.

@PVince81
Copy link
Contributor

Ok, I get this in the log:
{"app":"Encryption library","message":"failed to open file "/root/documents/91fd6163c58570ee3fb2e3360ff0294f9e72f06f.odt" expecting a path to user/files or to user/files_versions","level":3,"time":"2013-10-22T14:03:09+00:00"}

CC @schiesbn

@karlitschek
Copy link
Author

probably fixed

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

5 participants