Documentserver 8.2.1.1 upload folder from Linux Mint 21.1 Cinnamon via rclone fails

I uploaded a google docs folder from rclone 1.63.1 from documentserver 8.2.1.1, Linux Mint Cinnamon 21.1

Just about all docx documents that were from 1989 to 2010 uploaded and converted fine. All pdfs uploaded fine. Those docs from 2017 to 2024 failed with ‘You cannot upload a folder or empty file’.

If I upload individually the files that failed, they upload fine, even when showing a size of zero.

Being able to upload a google docs folder makes migrating to onlyoffice almost trivial, at least when it works. Since the uploads work fine when done individually, it seems an issue specifically with the folder upload compared to the individual upload.

Let me know if you need more information.

Hi @Ecurb :wave:

Could you please provide more details about the folder structure and the types of files you are trying to upload with rclone? Additionally, it would be helpful to know the exact command or script you are using for these uploads. This information will assist us in better replicating and diagnosing the issue on our end.

It is a top level folder under my google drive called ‘Planning’ and has one folder called ‘Archive’ which has both Google Docs files and Word .doc files. The top level has pdf and Google Docs files. The two digits seen in the file name are the last two digits of the year, so goals10.pdf was first created in 2010 and updated throughout most of 2010. So the digits give a hint of when the file was created.

For the uploads I’m using the gui Documents, up arrow icon, Upload folder.

The Word docs get uploaded fine but on onlyoffice first access they get the “Convert and open document” dialog box which is not an issue.

Except for setting up the rclone based service on my linux mint PC, it is just point and click using the onlyoffice gui at a google Docs folder with google docs, old microsoft word docs, and pdf files.

Hey @Ecurb

Thank you for providing the additional details. We are currently investigating the issue and will attempt to reproduce it on our end. However, since the problem seems to depend on specific documents within the folder upload scenario, it may take some time to identify the root cause.

To expedite the process, we would greatly appreciate it if you could provide us with a reproducible scenario using specific documents or a sample folder structure where the issue occurs. This would help us pinpoint the issue more efficiently and work on a solution.

If you could share a set of files (anonymized, if necessary) that consistently fail during the folder upload, we will use them to replicate the issue and address it as quickly as possible.

Thank you for your understanding. We’ll keep you updated on our progress.

Google drive: created a folder called testupload. Created ‘Test Document 1’ filling it with content using their AI. Still in Google drive, did ‘Make a copy’ four times to have a total of five documents. I now have a Google drive folder with five documents. Went to Onlyoffice Documents. Selected the up arrow icon after the large button ‘Create’ and then selected ‘Upload folder’. Navigated to my ‘gdrive’ which is created by rclone and selected ‘testupload’. Got five ‘You cannot upload a folder or an empty file’.

I tried to upload just one file from the test folder, and got the same message, it failed. If I go back to google drive and upload a single .docx file from the last century (created in the 1990s), onlyoffice uploads the single file just fine.

I’m using brave browser but chrome had the same issue when I tried with it. Contents are nothing special, just a new file created with the current browser based google docs.

If you can create a google folder with five google docs with random text and the folder upload works for you, then its something with my setup (rclone?). The fact that it sometimes works, mostly with older file creation dates of google docs, indicates to me that onlyoffice is capable but for some reason can’t do it with the current google docs.

  1. Create google doc, random words from the ai
  2. Create five copies of the google doc
  3. Upload from the testupload folder with the five google docs
  4. Results of the upload, errors and nothing uploaded

I did the same test on windows 10 and google drive. The folder upload seemed to work fine but the file extensions were .gdoc and not .docx and onlyoffice complained ‘The file content does not match the file extension’.

Hey @Ecurb :wave:

Thank you for the detailed description of the issue and the steps to reproduce it.

We have not specifically tested file uploads through rclone, so this behavior requires further investigation on our side. We’ll take a closer look at the scenario you described and analyze the problem. Once we have any updates or results, I’ll be sure to inform you here.

Hey @Ecurb :santa:

It seems the problem lies with rclone mount. Our team tested this scenario and found that new files from Google Drive can appear with a size of zero when mounted via rclone. This leads to errors when uploading to our platform.

As noted in the rclone documentation and in a related discussion on the rclone forum, using rclone sync resolves this issue by correctly downloading all files locally, which can then be uploaded successfully.

For now, we recommend using rclone sync more frequently as a workaround.

rclone sync works to overcome the size issue for google docs and I guess it is a reasonable way to do it if onlyoffice can’t do something to goose rclone goodgle drive into presenting the full file (in your referenced rclone forum, someone was doing a ‘cat’ on the the file contents before invoking an editor and that worked).

With that said, when I uploaded the google drive test folder from the rclone sync folder, the ‘Dark Document’ was again not working, but now just barely visible instead of invisible, and the styles were missing (for example: normal is missing, but right click Formatting as Style, Update Normal Style, shows it is using the normal style).

rclone sync command:

Dark Document, barely readable (previously reported with slight improvement)

Document types are still missing (previously reported)

My solution at this point in time is to cut and paste from the uploaded but damaged document into a new onlyoffice document and that seems the cleanest approach, has the fewest fix ups that need doing.

This above and also that folder uploads on windows 10 using Google Drive doesn’t work (they show as .gdoc instead of .docx) sure seems like a missed opportunity for making it quick and easy to migrate to onlyoffice from google drive.

I’ve stopped my migration, though I’m using those things I have migrated, because migration is too error prone and I’m looking for something other than onlyoffice to host a local cloud web based document server.

@Ecurb
Hmm :thinking: :santa:

  1. .gdoc vs .docx Format
    The .gdoc format is a Google-specific file format used by Google Docs to represent document shortcuts or links to documents stored in Google Drive as I know. This format is different from .docx, which is the standard format for Microsoft Word documents and is compatible with most document editors, including ONLYOFFICE.
  • When attempting to upload .gdoc files to ONLYOFFICE, the system will recognize them as invalid, as they do not contain the actual content, but rather a link to the Google Docs file. Hence, they cannot be processed as .docx files, which is why you are encountering the error message. To resolve this, please ensure that you are uploading the .docx format instead.
  1. Document Display in Dark Theme
    Regarding the issue with document display in dark mode. Could you please provide us with a specific scenario or steps to reproduce the issue? If possible, include a sample document or a detailed description of how you encounter the problem, so we can investigate it further.

  2. Migration Pause and Alternative Solutions
    We understand your frustration regarding the migration process. Unfortunately, as we only support OOXML formats (such as .docx, .xlsx, etc.), we cannot guarantee smooth migration for all file types, especially those not natively supported by ONLYOFFICE.

    Additionally, we have not conducted specific testing for file migration using rclone. Therefore, we cannot provide official support for this particular method. Please let us know if there’s anything else we can help with.

Hello @Ecurb
If you don’t mind I will step to this thread as well.
We have received your letter in the forum mailbox instead of this thread. Thank you for the kind words, however I would like to check mentioned scenario:

I really do dislike clicking on the onlyoffice icon up in the left hand corner of a document and getting an ad rather than back to my onlyoffice.

Could you please show us this scenario step-by-step? I tried to check it out on my Nextcloud integration, but didn’t find any ad.
As for other comments, as far as i understand they are related to comparison with the Collabora editor and no more issues have been detected. If I misunderstood your letter, please clarify it.

P.S. Please make further posts to the thread instead of internal forum mailbox.

This is in onlyoffice workspaces while editing a .docx, not in nextcloud where I am testing collabora.

Issues with onlyoffice workspaces:

  1. Cannot upload native google files from linux rclone unless using sync.
  2. Even using sync, dark document is still unreadable (now extremely dim)
  3. Imported google docs have styles missing such as the ‘Normal’ style
  4. Importing from Windows 10 google drive returns .gdocs and not .docx
  5. Clicking on onlyoffice icon in upper left corner while editing a .docx sends me to https://www.onlyoffice.com which is a waste of a good icon and should logically, to me, send me to a top level menu such as “Documents”

Thank you for fixing the ‘borders’ everywhere issue. I’ve never been able to integrate onlyoffice with nextcloud, which is part of the reason I’m using collabora, as it just worked.

I just respond to these posts, not sure why it went to a forum mailbox.

Hello @Ecurb

  1. Cannot upload native google files from linux rclone unless using sync.

As @Nikolas mentioned, this is related to rclone logic of work and you should use sync. Unfortunately, I’m not sure that we can change this behavior on our side.

Even using sync, dark document is still unreadable (now extremely dim)
Imported google docs have styles missing such as the ‘Normal’ style

Could you please provide us with samples of such files? We will take a closer look at them.

Importing from Windows 10 google drive returns .gdocs and not .docx

Please provide us with exact scenario, if it’s possible, record a video file of your actions.

Clicking on onlyoffice icon in upper left corner while editing a .docx sends me to https://www.onlyoffice.com which is a waste of a good icon and should logically, to me, send me to a top level menu such as “Documents”

This one is a little bit odd, I’ve checked this scenario on my test Workspace server, clicking that icon redirects to main portal page. What are component versions of your Workspace portal? I mean Community server, Document server, etc.

Update:
About icon redirects, this is expected behavior for the open-source version of the Document server which is included in the Workspace Community Edition.

I’ve previously uploaded my test files, but there are not special and the procedure is simple:

  1. Linux Mint opera browser: Create a test .docx in google drive with random words. Upload it to onlyoffice. Styles are missing. Dark document dim. See post 9/14 Dec 2024

  2. Windows 10 firefox browser: Take the same file(s) created above from google drive, upload to onlyoffice. Get .gdocs instead of .docx.

Note, I can read and write google drive documents accessed through rclone in Linux Mint. I’ve not tried using the onlyoffice linux app because I’m trying to replace google docs and have a browser as the universal client. Apps are useful for phones and tablets.

I’ve started using nextcloud+collabora and they too cannot upload from google docs linux rclone and they too get .gdocs when uploading from windows 10. Downloading a .docx directly from google docs to windows and then uploading it to nextcloud+collabora also has issues with dark theme, but the document is readable.

So these issues look to be possibly common to what you all are doing.

Good luck.

Hello,

How exactly do you upload docx file created in the Google Drive to Workspace portal? Do I understand it right that the upload is performed using the rclone tool? Please confirm that.
I’ve tried to reproduce the described scenarios, but without luck so far. If it’s possible, could you please record a video file or clarify step-by-step usage scenario?

  1. Start in a browser with docs.google.com, create new document (“+” in the lower right hand corner). Fill new document with lots of words.

  2. In the new document, select menu “File” “Download” "Microsoft Word (.docx) and remember where this document is saved on your PC.

  3. In onlyoffice, Documents, select the upload icon then “Upload files” and select the file you downloaded above. Fonts will be missing from the font bar, such as Normal, and the document will either be unreadable or extremely dim, barely readable, when Dark Document is toggled.

This happens on both Linux Mint and Windows 10 clients. onlyoffice is self hosted on a proxmox LXC docker container, documentserver 8.2.1.1, communityserver 12.7.0.1936.

Unfortunately, no luck. I’ve copied and pasted random title from Wiki and all things seem OK:


However, you mentioned Document Server v.8.2.1.1. Is it possible to update your installation to v.8.2.2 and double-check the situation? If the issue still persists, we need to take a look at the file that you created in Google Docs (please provide us with a sample).

Thanks for your effort. I’m going to focus on nextcloud+collabora for now. I’ll check back on how onlyoffice is doing later this year. It looks good, just too many issues for me to currently trust it with my daily work.

Regards,

Bruce

Ok, please feel free to contact us anytime.