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

ACC doesn't work with Google Drive File Stream #94

Open
revanmj opened this issue Nov 30, 2020 · 20 comments
Open

ACC doesn't work with Google Drive File Stream #94

revanmj opened this issue Nov 30, 2020 · 20 comments
Assignees
Labels
bug cant-replicate The developers can't replicate the issue - tough one to fix help wanted

Comments

@revanmj
Copy link

revanmj commented Nov 30, 2020

Describe the bug
Google recently started testing Google Drive File Stream with normal user accounts (was locked to GSuite accounts previously). I tried it and it unfortunately doesn't work with ACC.

To Reproduce

  1. Replace "Backup and Sync from Google" with "Google Drive File Stream"
  2. Change path to ACC folder in its settings, so it points to new Google Drive location (File Stream maps Google Drive to virtual G: drive instead of folder in user's home)
  3. Start simulator and try any action - txt file shows up, but simulator does not catch it

Hardware & software info (please complete the following information):

  • Windows 10 x64 19042.630
  • ACC 1.4.1
@AlbertMN
Copy link
Owner

Yeah, ACC only works with "Backup and sync". Are they gonna switch away from backup and sync?

@revanmj
Copy link
Author

revanmj commented Nov 30, 2020

I'd guess that's the final intent of allowing normal users into File Stream (it doesn't make sense to keep two separate apps that basically serve the same purpose).

Right now support for normal users is marked as a beta though, so it may be a while before Backup app would be replaced.

@AlbertMN
Copy link
Owner

I will look into it then. Can you confirm whether it's better than the trainwreck that is "Backup and sync"? That's some of the worst software I have ever experienced in my life.

@revanmj
Copy link
Author

revanmj commented Nov 30, 2020

Well, I've only been using it for a few days.

On the good side, it works just as OneDrive (shows all files, but those not marked as offline are only downloaded on demand).

Main bad thing for me is that G: drive is mounted only once File Stream app is started (OneDrive offers files on demand functionality with "normal" folder, so there is no issue of its drive being mounted late), so this potentially may cause some issues with apps using files there which started before File Stream.

Haven't encountered any issues yet (beside ACC not working), but I've only set folders on G: for screenshots and ACC so far.

@AlbertMN
Copy link
Owner

Well, are you able to make it work with the manual setup? Going to the advanced settings, manually picking which folder it should look in?

@revanmj
Copy link
Author

revanmj commented Nov 30, 2020

Maybe I did not describe it well initially, but that's what the issue is about :)

I set the path manually so it points at ACC folder at G: drive (which is set to be available offline), but ACC does not seem to notice txt file showing up here. I've waited with simulator window opened for about a minute since the file was downloaded, but ACC ignored it completely.

@AlbertMN
Copy link
Owner

Have you checked the log? Please send it here. My bad :)

@revanmj
Copy link
Author

revanmj commented Nov 30, 2020

2020-11-30 06:39:34.2871|DEBUG|AssistantComputerControl.MainProgram|Listener modified
2020-11-30 06:39:34.2871|DEBUG|AssistantComputerControl.MainProgram|Check folder updated (G:\Mój dysk\AssistantComputerControl)
2020-11-30 06:39:38.8960|DEBUG|AssistantComputerControl.MainProgram|Listener modified
2020-11-30 06:39:38.8960|DEBUG|AssistantComputerControl.MainProgram|Check folder updated (G:\Mój dysk\AssistantComputerControl)
2020-11-30 06:39:49.7106|DEBUG|AssistantComputerControl.MainProgram|Processing file...
2020-11-30 06:39:49.7106|DEBUG|AssistantComputerControl.MainProgram|Failed to read file - trying again in 200ms... (trying max 20 times)
2020-11-30 06:39:49.9178|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:49.9808|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.0417|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.1050|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.1690|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.2310|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.2944|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.3581|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.4215|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying
2020-11-30 06:39:50.4911|DEBUG|AssistantComputerControl.MainProgram|Processing file...
2020-11-30 06:39:50.4911|DEBUG|AssistantComputerControl.MainProgram|File no longer exists when trying to read file.
2020-11-30 06:39:50.4911|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore).
2020-11-30 06:39:50.4911|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore).
2020-11-30 06:39:50.4911|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore).

@revanmj
Copy link
Author

revanmj commented Nov 30, 2020

Txt file still sits in this folder

@AlbertMN
Copy link
Owner

Hmh, yeah. ACC definitely picks it up, but it can't read the file as the software has the file "in use". Not much I can do there coding-wise sadly :/ If I can't read the file, ACC can't get the action and therefore can't function. If there's a way to solve that, that'd be nice. Have you tried opening ACC as administrator?

@revanmj
Copy link
Author

revanmj commented Dec 1, 2020

Running as admin doesn't help, still the same log about file being in use shows up. But it's strange as I can open it in any text editor without any problems (even in UWP ones).

@AlbertMN
Copy link
Owner

AlbertMN commented Dec 1, 2020

ACC might also be able to open the file, but the check we perform before attempting to fails. I will look into it.

@AlbertMN AlbertMN added suggestion and removed bug labels Dec 12, 2020
@galamarco
Copy link

I join the discussion because I have the same problem. Using Google Drive File Stream the text file is not read by ACC.

I tried to show the file extension. No good results.
I tried to make the folder "available offline". No good results
I tried to set a 10 second delay for reading the file (from when a new file is recognized to when it is downloaded and made available, a few seconds pass during which the file is not healthy). No good results.
I tried to change the permissions of the folder from the windows properties (to make it readable by all). No good results.

What exactly is it that fails? Path-level file access or permissions to open?

Best regards

Marco

@galamarco
Copy link

I share with you Google's announcement to unify the two synchronization software in the course of 2021.
https://workspaceupdates.googleblog.com/2021/02/google-drive-for-desktop-sync-solutions-update.html

Being the administrator of several Google Workspace accounts, I was able to subscribe to the beta, if needed for some tests I remain available.

Greetings
Marco

@AlbertMN
Copy link
Owner

@revanmj @galamarco I just installed the new Google Drive, set it to the "Stream files" option, and it works just fine for me? Is there something I'm missing?

The setup auto detect of the Google Drive folder doesn't work, but when inserting it manually it picks up the files.

@AlbertMN
Copy link
Owner

Can the people experiencing this please specify their exact case; where it goes wrong (is it just when trying to detect the folder), what Google Drive settings you're using (stream or mirror), and whether the ACC folder is set to "Available offline" or "Online only".

@AlbertMN AlbertMN added bug help wanted cant-replicate The developers can't replicate the issue - tough one to fix and removed suggestion labels Oct 10, 2021
@AlbertMN
Copy link
Owner

Please check out this version, and check if that helps; #115

@revanmj
Copy link
Author

revanmj commented Oct 11, 2021

Well, I'm stuck with folder sync as streaming breaks symlinks for system folders (since G: becomes available only once the app starts, which is too late for symlinks) :/

@pausalpa
Copy link

I was able to make it work, Idk if this helps to someone haha
Instead of setting the option as Stream Files, I put it under "Mirror Files", after that, I tried again, used the advanced settings to put manually the address of the folder, and only gave it a bit of more time, because seems to be that the delay is a little bit bigger, but I was successful! hahaha
If it helps, let me share with you the log file
Anyway, I love completely your work Albert, it has helped me a lot and I really appreciate it! Danke Schön!
log.txt

@revanmj
Copy link
Author

revanmj commented Oct 31, 2021

Mirror Files simply runs new client in "legacy mode" where it works just like the old one. That's why it works. Problem is with the streaming mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cant-replicate The developers can't replicate the issue - tough one to fix help wanted
Projects
None yet
Development

No branches or pull requests

4 participants