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

Documents doesn't work after 8.1 upgrade #17602

Closed
giancarlobi opened this issue Jul 13, 2015 · 6 comments
Closed

Documents doesn't work after 8.1 upgrade #17602

giancarlobi opened this issue Jul 13, 2015 · 6 comments

Comments

@giancarlobi
Copy link

Steps to reproduce

  1. Successful upgrade fro 8.0.4 to 8.1
    (with Documents app working ok) by package
  2. Documents dir is NOT present under /var/www/owncloud/ and occ app:list doesn't list documents
    3.
    Apps productivity → Enable Documents
  3. … Please wait → Disable button appears
  4. occ app:list doesn't list Documents and Documents app doesn't appear under Apps Enabled and neither under Apps menù
  5. Apps productivity → Disable Documents then Enable button appears
  6. Documents dir is present under /var/www/owncloud/
  7. When I try again Enable I receive this pink error “App directory already exists”
  8. Manually remove apps/documents directory
  9. Download Documents from https://apps.owncloud.com/content/show.php/Documents?content=168711 (owcloud 8.1 version): wget https://codeload.github.com/owncloud/documents/zip/v8.1.0
  10. Unzip, move to apps/documents and change owner to www-data of documents directory
  11. Apps productivity → Enable Documents then start upgrade from command line sudo -u www-data php occ upgrade:
    Turned on maintenance mode
    Checked database schema update
    Checked database schema update for apps
    Updated database
    Updating ...
    Updated to 0.10.0
    Update successful
    Turned off maintenance mode
  12. occ app:list lists - documents: 0.10.0 and Documents app appears under Apps Enabled
  13. Files, documents, example.odt then click edit
  14. Only upper format bar appears and loading gear rotate indefinitely
  15. Click cross at right upper corner and a popup appears
    “ASSERTION FAILED:
    editorSession should exist here.”
  16. owncloud log show:
    {"reqId":"U21Vv3LmZhOM8NNluEHv","remoteAddr":"","app":"PHP","message":"Undefined index: REQUEST_URI at /var/www/owncloud/apps/documents/appinfo/app.php#49","level":3,"time":"2015-07-13T10:55:26+00:00"}
  17. Click OK then backward twice
  18. Apps Enabled → Disable Documents then Uninstall App under Not Enabled, folder documents is removed from apps directory

Expected behaviour

Documents app working

Actual behaviour

Documents app doesn't work

Server configuration

Operating system:

Ubuntu 14.04 64bit server
Web server:

Apache/2.4.7 (Ubuntu)
Database:

MySQL
PHP version:

PHP 5.5.9-1ubuntu4.11
ownCloud version: (see ownCloud admin page)

ownCloud 8.1.0 (stable)
Updated from an older ownCloud or fresh install:

Update from 8.0.4
List of activated apps:

Enabled:

  • activity: 2.0.1
  • files: 1.1.9
  • files_external: 0.2.3
  • files_pdfviewer: 0.7
  • files_sharing: 0.6.2
  • files_texteditor: 0.4
  • files_trashbin: 0.6.3
  • files_versions: 1.0.6
  • files_videoviewer: 0.1.3
  • firstrunwizard: 1.1
  • gallery: 0.6.0
  • templateeditor: 0.1
  • user_ldap: 0.6.1
    Disabled:
  • bookmarks
  • calendar
  • encryption
  • external
  • files_locking
  • provisioning_api
  • roundcube
  • user_external
  • user_webdavauth

ownCloud log (data/owncloud.log)

{"reqId":"U21Vv3LmZhOM8NNluEHv","remoteAddr":"","app":"PHP","message":"Undefined index: REQUEST_URI at /var/www/owncloud/apps/documents/appinfo/app.php#49","level":3,"time":"2015-07-13T10:55:26+00:00"}

@ghost
Copy link

ghost commented Jul 13, 2015

Hi,

the documents tracker is located here: https://github.com/owncloud/documents/issues where you can find similar existing issues.

@giancarlobi
Copy link
Author

Sorry, Do I have to re submit in the correct tracker?
Many thks

@ghost
Copy link

ghost commented Jul 13, 2015

I don't think. The not working download is tracked here owncloud-archive/documents#508 and the undefined index should be fixed with the next version: owncloud-archive/documents#509

@johanehnberg
Copy link

Same issue here, hopefully there will be a fix through the packages.

@doubtintom
Copy link

Same issue here. But there is a workaround (not final solution). As someone else commented in another thread, once you have the 0.10.0 installed, download a .odt or .doc file from OC, then delete it in OC. Then upload it again, and it works in Documents. I've tested this several times.

NEW INFO: What I think I'm seeing is that files accessed with an earlier version of Documents, possibly 0.9.0, are not editable even with 0.10.0, show the endless spinner, and then "ASSERTION FAILED: editorSession should exist here" when I back button out. But other docs, which I never edited with Documents that have been in my OC folders all through the transition from 7 to 8.0.4 and 8.2, work just great Docs 0.10.0. There is a clue in there. Possibly 0.9.0 infects whatever it edits.

@ignoreigor
Copy link

You got it @doubtintom! I twiddled with owncloud, libreoffice and the documents app, but I got no success. I followed every advice told here and on other posts before. Well, I had problems running libreoffice under the apache's user, but although I removed this problem, the documents app won't work, it even wouldn't try to start libreoffice.

Your hint lets me have a closer look on owncloud's database tables. When I truncated the table "oc_documents_session", owncloud opened the document editor, just like you described with never-opened-before documents.

I still have the issue, that viewing a document doesn't work. Clicking on a document, I got it's raw code, though editing this documents works now. I suppose the .htaccess-entry is ignored or doesn't matches for my installation.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
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