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 blank if edited offline #187

Open
jharej opened this issue Sep 10, 2019 · 20 comments
Open

Documents blank if edited offline #187

jharej opened this issue Sep 10, 2019 · 20 comments

Comments

@jharej
Copy link

jharej commented Sep 10, 2019

Hi,

I've searched if anybody has had a similar issue but had no "luck". I've successfully installed Nextcloud and OnlyOffice (with docker). My problem is - online editing works, but if I open the same file directly from disk or download it from Nextcloud and open it in desktop version of Onlyoffice or Libreoffice, it is blank. If I export it directly from online onlyoffice, I can see the whole document. I've also first created a file offline, uploaded it to Nextcloud and edited it with online OnlyOffice. If I open it again offline, I can not see the changes made online. I've attached a screenshoot to present the issue. Am I missing something?

Thanks and bye
Janko
Izbor_103

@alexanderonlyoffice
Copy link

Hello @jharej, please specify some additional information:

  1. OS of the server where ONLYOFFICE Document Server is deployed;
  2. Its installation type (docker or deb/rpm);
  3. Currently installed version of Document Server;
  4. Version of Nextcloud;

It seems that you are downloading the file right after the file is closed. Please wait for a while and check if the new version of the file is saved in Nextcloud (you will see that the size of the file and the time when it was edited will change).

Do you have any errors when clicking on the 'Save' button on integration app address settings page?

@jharej
Copy link
Author

jharej commented Sep 12, 2019 via email

@alexanderonlyoffice
Copy link

@jharej, please specify if you checked the scenario I indicated in the previous message:

It seems that you are downloading the file right after the file is closed. Please wait for a while and check if the new version of the file is saved in Nextcloud (you will see that the size of the file and the time when it was edited will change).

Do you get any errors?

Do you have any errors when clicking on the 'Save' button on integration app address settings page?

@jharej
Copy link
Author

jharej commented Nov 12, 2019

No. No errors. I haven't downloaded the files prior to closing them.

I've "solved" the problem by installing the newer version of app on nextcloud side and newest version of docker image. All the content that was edited in onlyoffice (just a few files thought) after installation vanished. So it is obvious that content edited in onlyoffice has not been send to nextcloud.

@alexanderonlyoffice
Copy link

@jharej,

No. No errors.

You mean on the new installation or you mean that there were no errors on the previous installation when clicking on the 'Save' button.

If you mounted all folders indicated in the installation guide during the previous installation, try to check the folder /app/onlyoffice/DocumentServer/lib/documentserver/App_Data/cache/ for the disappeared files.

@LinneyS LinneyS transferred this issue from ONLYOFFICE/onlyoffice-owncloud Dec 25, 2019
@tjareson
Copy link

tjareson commented Feb 17, 2020

Hello, I have exactly the same issue here, which is a bit fatal for the acceptance, as users start to feel insecure if working online is really safe or if there is always data loss. Also it is impossible to download anything more than an empty document, even if online one see most of the changes done to a document.
I'm using the next cloud docker image, version is 18.0.1 with onlyoffice 5.4.2 on ubuntu server 16.04.
I've disabled the version app as well, it didn't change anything so far.

The behaviour is kind of erratic: 99% of the times it is not working: newly created files in nextcloud gets shown with the creation date forever, even if updated online several times, even after logging off all users and having a look at it next day.
In rare cases it works sometimes, but I didn't find out yet how to reproduce a working update back to nextcloud.
And: if I open and close the file within the same user session it is shown as "Document is currently being edited by several users", which doesn't make a lot of sense, as it is the same user in the same session.
I've read about several similar cases, but nowhere there was a solution posted for it. I wonder if no one else is using the online editing? As I'm using a docker image, I also expect no bigger configuration issue, as the rest is working pretty well.
A solution would be highly appreciated.
Tjareson

@tjareson
Copy link

The (supposedly) temporary data in /appdata_.../documentserver_community/doc_...
are also not processed, so remain there and only change (Editor.bin) when the document is edited online in onlyoffice. (I had one case where it worked, so I know that the temp-directory should disappear after document is built and copied back)
The difference I could see between working and not working case was, that in case where it worked I could also see a copy of the original file in that temp directory for the time the file was edited. In all other cases there is only Editor.bin, filedid and owner.
Is there any way to force creating the document out of Editor.bin and write it back to nextcloud?

@LinneyS
Copy link
Member

LinneyS commented Feb 18, 2020

@jharej
I've "solved" the problem ...

Could you please specify if the problem recurs or we can close the topic?

@tjareson
Verify that all ONLYOFFICE services are running correctly.
Make sure the settings point to the docker version of ONLYOFFICE and not to the integrated Nextcloud Community Documentserver.
Is saving connection settings successful?
If the problem persists, please create a separate issue.

@tjareson
Copy link

I think my problem is related to the integrated Nextcloud Community Documentserver, as I installed the docker image 18.0.1 from nextcloud where this is preconfigured that way.
It's a bit confusing, as there are several ways and versions how one can put that together.
Still the issue as such remains. I'm not sure when and how they trigger the build of the document in this integrated community version, but exactly that doesn't seem to work. Not sure who would have the knowledge about it. Nextcloud-Community? Or Onlyoffice-Community?

@LinneyS
Copy link
Member

LinneyS commented Feb 19, 2020

@tjareson
Try disabling the Nextcloud Community Documentserver application in the Nextcloud application list.
Then go to the ONLYOFFICE settings and specify the correct addresses for your ONLYOFFICE 5.4.2 instance.
Any errors while saving settings? If so, then let's open a new issue on your problem.

@Jolopu
Copy link

Jolopu commented Mar 16, 2020

I have the same issue. I can create and edit documents online in OnlyOffice. Then they get saved locally by the Nextcloud Client. When I open the local version the document is blank.
I use:
Nextcloud 18.0.2 on a shared hosting
Community Document Server 0.1.5
ONLYOFFICE 4.1.4

@Moltey
Copy link

Moltey commented Apr 24, 2020

+1
Same here - the xlsx file is created and modified in onlyoffice. The file is synced with clients. However, the xlsx files are empty in the local client.

Nextcloud 18.0.4 (private server)
Community Document Server 0.1.5
ONLYOFFICE 4.1.4

Edit: If I save the file manually with "save as" the file is no longer empty on the clients.

@Xananax
Copy link

Xananax commented May 15, 2020

Saving as a new xlsx and opening the document localy in libreOffice Calc: The document isn't blank anymore when opened locally.

However, subsequent changes are not picked up by Calc. In other words, it seems the way OpenOffice saves data isn't compatible with Calc.

I've tried turning off autosave, and saving manually, but the document still doesn't sync. The only way to read data seems to be Save As, which is a bummer.

Edit: same behavior with an .ods file.

@ClundXIII
Copy link

We have the same issue. I have sent a mail to support since we recently bought the integrative edition. This is not acceptable. If the save fails, onlyoffice should stop working in general.

In general, why does onlyoffice even save any documents? It should be stateless to avoid exactly this kind of problem. If it would discard the document every time we would have recognized the problem way earlier before being at risk of loosing so much work.

@Xananax
Copy link

Xananax commented Jun 20, 2020

It doesn't fail to save, it doesn't discard the document. It does save. If you only use OnlyOffice in Nextcloud, you will not see any problem. The issue arises only when opening the same file in OpenOffice on your desktop.

@ClundXIII
Copy link

Nextcloud does not recognize any change (in my case). Does not matter if I download from nextcloud (not onlyoffice), synchronize and open or look at the "last changed" information.

@narFnarF
Copy link

narFnarF commented Feb 18, 2022

I have the same problem.

Steps to reproduce:

  1. On Nextcloud, install Community Document Server from the app store
  2. install the ONLYOFFICE app from the same app store
  3. In Nextcloud Files, create a new .xlsx document and open it.
  4. Write something in any cell. Save and close.
  5. Wait 1 minute.
  6. On your computer, install the Nextcloud Sync client
  7. Sync your Nextcloud files to your local computer
  8. In File Explorer (on Windows), navigate to the synced folder and to the file created earlier. Right-click and open this file with OnlyOffice (or LibreOffice)
  9. Observe that the file is blank.
    Expected result: The text written in the file at step # 4 should be visible.

My setup

OnlyOffice

Desktop version: 7.0.0.127
OnlyOffice app for Nextcloud: 7.3.0
Community Document Server: 0.1.12

Nextcloud Server

Version: 22.2.3

Database:

mysql
8.0.28
267.5 MB

PHP:

7.4.3
Memory Limit: 512 MB
Max Execution Time: 3600
Upload max size: 2 GB

Nextcloud Desktop Client

Version 3.4.2 (Windows)

@Jolopu
Copy link

Jolopu commented Feb 18, 2022

I gave up on this. Better switch to Collabora Online. This is supposed to be the future standard in Nextcloud.

@ShockwaveNN
Copy link

I saw a lot of questions in this thread are raised about Community Document Server

Please note that Community Document Server was developed by Nextcloud Team, if you have any issues with it, please contact them in the appropriate GitHub repository.

We (ONLYOFFICE team) cannot help with those issues at all, this product was not developed by us

@diwacreation3
Copy link

Hey i ran into this problem
How do i fix?
if i try to export onlyoffice doc file i ended up downloading blank
and sometimes it shows This
cURL error 60: SSL certificate problem: self signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://10.16.19.100/index.php/apps/documentserver_community/ConvertService.ashx
i have Self-signed certificate on my local server
any Solution?

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

No branches or pull requests