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

OnlyOffice offers a file to download instead of opening it #67

Open
Zalfsten opened this issue Oct 16, 2024 · 5 comments
Open

OnlyOffice offers a file to download instead of opening it #67

Zalfsten opened this issue Oct 16, 2024 · 5 comments
Assignees

Comments

@Zalfsten
Copy link
Contributor

Sometimes it happens that nextcloud offers files for downloading instead of opening it. On one hand this is the case for Office documents because of the 20 session limit of OnlyOffice.
On the other hand this also happens for other files (e.g. Markdown) that are not handled by OnlyOffice. This is not deterministic and independent of the number of open sessions. Also we have confirmed that it is user-dependent: While one user can open the file, others can not.
There is an open nextcloud issue for this: nextcloud/server#41551

@darnold-zalf darnold-zalf self-assigned this Oct 28, 2024
@darnold-zalf
Copy link
Contributor

darnold-zalf commented Nov 27, 2024

Daniel Arend reported on 27.11.2024 he couldn't open this file in OnlyOffice, he was only prompted to download it:

@darnold-zalf
Copy link
Contributor

darnold-zalf commented Nov 27, 2024

There should be a way to get to view the sessions at https://onlyoffice.fairagro.net/info/info.json, but it seems broken for me
( https://forum.onlyoffice.com/t/howto-count-monitor-sessions/4792 )

For now, to get the number of active OnlyOffice users:

kubectl exec -n fairagro-nextcloud -ti pod/nextcloud-fairagro-onlyoffice-66b5b747d5-vrfkz -- sh
bash
curl localhost/info/info.json
#(copy/paste `info.json` to `dis.txt` on your local, until we have jq installed on all containers)
$ jq '.quota.edit.connectionsCount,.licenseInfo.connections' dis.txt
7   # active users
20 # max number of users (Licensed)

@darnold-zalf
Copy link
Contributor

darnold-zalf commented Jan 9, 2025

Both Carmen S. and I are running into this issue now.

It's definitely a problem on the onlyoffice side.

ONLYOFFICE/onlyoffice-nextcloud#982 looks relevant.

In NC->OnlyOffice settings, I confirm that unticking the Allow the following groups to access the editors "fixes" it ...
It's fixed too for Carmen, but she had to logout/login. It also worked in a new private window for her.

onlyoffice-downloads-file-doesnt-open-it-common-settings

@darnold-zalf
Copy link
Contributor

darnold-zalf commented Jan 13, 2025

Daniel A. reports more problems - https://nextcloud.fairagro.net/apps/onlyoffice/29770 - he is prompted to download the file and it doesn't open in OnlyOffice. Eventually it worked after about 10 minutes.

Tested it with Chrome, Firefox and Safari just 2 minutes ago

Now its working after waiting for ~10 min

It opens fine for me.

@darnold-zalf darnold-zalf changed the title Nextcloud offers a file to download instead of opening it OnlyOffice offers a file to download instead of opening it Jan 27, 2025
@darnold-zalf
Copy link
Contributor

darnold-zalf commented Feb 3, 2025

At a very rough estimate, about 1 out of every 20 attempts to 'open' a file instead downloads it.
Usually, waiting 5-10 minutes fixes it.

As an initial step towards a permanent fix, we need to upgrade to OpenOffice EE, then apply the latest updates. That is currently blocked by storage-reorganisation stuff.

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

No branches or pull requests

2 participants