NastuzziSamy / files_external_gdrive

[BETA - UNSTABLE] GDrive external storage for NextCloud
GNU Affero General Public License v3.0
79 stars 23 forks source link

Directories are shown as empty #41

Open nshaud opened 5 years ago

nshaud commented 5 years ago

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.

NastuzziSamy commented 5 years ago

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 😊

nshaud commented 5 years ago

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

larslehners commented 5 years ago

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

nshaud commented 5 years ago

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?

larslehners commented 5 years ago

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

Unfortunately only the logs :(

r3pek commented 5 years ago

Can confirm that @Gerdal fix works.

elescondite commented 5 years ago

@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:

codywarmbo commented 5 years ago

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.

mukalaaa commented 5 years ago

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

ultibo commented 5 years ago

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