files_external_gdrive icon indicating copy to clipboard operation
files_external_gdrive copied to clipboard

Directories are shown as empty

Open nshaud opened this issue 5 years ago • 10 comments

Nextcloud version : 15.0.5 files_external_gdrive version : 0. 4.0

I have successfully added my Google Drive as an external storage. Files and directories under the root Drive appear in Nextcloud. However, all subdirectories are empty ("No file here"). I don't any errors in nextcloud.log.

Trying to copy a file from/to GDrive or create a new file generates tons of feof() expects parameter 1 to be resource, string given at \/NEXTCLOUDFOLDER\/lib\/private\/legacy\/helper.php#296" errors in the log, filling up disk space.

nshaud avatar Mar 16 '19 10:03 nshaud

Hey, thank you for your feedback

I am aware of this bug. I wrote it down in the changelog and with all tried, I did not manage handling it.

You got an error transfering a new file under a subfolder? Or in root?

Any help would be great 😊

NastuzziSamy avatar Mar 16 '19 13:03 NastuzziSamy

You got an error transfering a new file under a subfolder? Or in root?

In a subfolder. Weirdly enough, when creating the file, a part transfer file is created on Drive but the sync never completes.

I'd love to help although I have no idea whatsoever on where to start, seing as there aren't any logs or errors that I can see...

nshaud avatar Mar 18 '19 18:03 nshaud

I got the same problems with that log errors and never completly synced part files.

I've noticed, that the problem ...

Trying to copy a file from/to GDrive or create a new file generates tons of feof() expects parameter 1 to be resource, string given at /NEXTCLOUDFOLDER/lib/private/legacy/helper.php#296" errors in the log, filling up disk space.

... is apearing in php 7.3. Switching to PHP 7.1 and you get rid of these errors (I didn't try php 7.2). I hope this helps to narrow down the search for these errors.

Nextcloud version : 15.0.5 files_external_gdrive version : 0. 4.0

larslehners avatar Mar 26 '19 18:03 larslehners

Switching to PHP 7.1 and you get rid of these errors

By those errors, you mean only the logs, right? Not the empty subfolders?

nshaud avatar Mar 26 '19 18:03 nshaud

By those errors, you mean only the logs, right? Not the empty subfolders?

Unfortunately only the logs :(

larslehners avatar Mar 26 '19 18:03 larslehners

Can confirm that @Gerdal fix works.

r3pek avatar Jul 26 '19 19:07 r3pek

@Gerdal fix not working on my installation. Nextcloud 16.03, files_external_gdrive 0.40

After applying the patch, trying to list a subfolder will go away with a spinner for awhile then come back with:

  • breadcrumb trail at the top showing the correct sub folder (eg root / sub)
  • folder contents are the previous level's files (eg root files, not sub)
  • no errors in the log
  • no "No File Here" error message at least ;-)
  • clicking on the same sub folder now does nothing however other sub folders are clickable. Need to go back up a level in order for the same sub folder to be clickable, even though the file list is identical.

elescondite avatar Aug 13 '19 15:08 elescondite

Also having this error. A .part is created but never shows in the Nextcloud web interface, nor am I able to delete the folder after having made it at that point.

codywarmbo avatar Aug 28 '19 17:08 codywarmbo

still same issues here I can see the folders in google drive root but there is nothing inside them! I also created a folder but now I cannot delete it through nextcloud I tried uploading a picture, it says "an unknown error has occured" but when I check google drive webpage I see that it created "array1.PNG.ocTransferId1475114963.part", Please note my file name that I was trying to upload is array1.png

Any fix or update yet, please?

External storage support for Google Drive 0.4.0 Nextcloud 16.0.4

mukalaaa avatar Sep 23 '19 09:09 mukalaaa

Hello, I have the same issue. Only the root folder is visible and error when trying to browse subfolder. Nextcloud 15.0.11 External storage support for Google Drive 0.4.0

ultibo avatar Oct 17 '19 10:10 ultibo