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.
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.
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.
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’.
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.
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).
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.