azai91 / alfred-drive-workflow

Alfred workflow to search google drive
MIT License
224 stars 23 forks source link

Do not work anymore after installing Backup and Sync from Google.app #40

Closed politicus closed 7 years ago

politicus commented 7 years ago

As Google Drive will soon be replaced by "Backup and Sync from Google.app" I installed it. The problem is I can't search through my files/folders anymore...

Here is the error I get in Alfred console:

`Starting debug for 'Apps Google Drive'

[2017-09-10 15:36:07][STDERR: input.scriptfilter] [2017-09-10 15:36:07.132] [5884] [DEBUG] ./google-drive.rb ["--filter", "D"] [2017-09-10 15:36:07.212] [5884] [FATAL] Uncaught exception: Address already in use - bind(2) [2017-09-10 15:36:07.212] [5884] [DEBUG] Execution took 0.08 seconds [2017-09-10 15:36:16][STDERR: input.scriptfilter] [2017-09-10 15:36:16.092] [5890] [DEBUG] ./google-drive.rb ["--filter", "D"] [2017-09-10 15:36:16.143] [5890] [FATAL] Uncaught exception: Address already in use - bind(2) [2017-09-10 15:36:16.143] [5890] [DEBUG] Execution took 0.052 seconds [2017-09-10 15:36:16][STDERR: input.scriptfilter] [2017-09-10 15:36:16.370] [5896] [DEBUG] ./google-drive.rb ["--filter", "Do "] [2017-09-10 15:36:16.424] [5896] [FATAL] Uncaught exception: Address already in use - bind(2) [2017-09-10 15:36:16.424] [5896] [DEBUG] Execution took 0.054 seconds [2017-09-10 15:36:16][STDERR: input.scriptfilter] [2017-09-10 15:36:16.831] [5902] [DEBUG] ./google-drive.rb ["--filter", "Do n"] [2017-09-10 15:36:16.887] [5902] [FATAL] Uncaught exception: Address already in use - bind(2) [2017-09-10 15:36:16.887] [5902] [DEBUG] Execution took 0.056 seconds [2017-09-10 15:36:17][STDERR: input.scriptfilter] [2017-09-10 15:36:17.348] [5908] [DEBUG] ./google-drive.rb ["--filter", "Do "] [2017-09-10 15:36:17.399] [5908] [FATAL] Uncaught exception: Address already in use - bind(2) [2017-09-10 15:36:17.399] [5908] [DEBUG] Execution took 0.051 seconds [2017-09-10 15:36:18][STDERR: input.scriptfilter] [2017-09-10 15:36:18.472] [5914] [DEBUG] ./google-drive.rb ["--filter", "Do"] [2017-09-10 15:36:18.550] [5914] [FATAL] Uncaught exception: Address already in use - bind(2) [2017-09-10 15:36:18.550] [5914] [DEBUG] Execution took 0.078 seconds`

sorbits commented 7 years ago

The “Address already in use” indicate that the workflow tries to launch the OAuth2 callback server, but there is already a callback server running, which indicates that it should have prompted you for authentication, but you did not complete that step.

You can go to http://localhost:1337 then you should see something like “error while connecting to Google Drive”, but it will make the current instance running on localhost shut down.

After that, try use the workflow again, and it should open your browser (again) asking you to authenticate.

Be sure to actually follow this to the end, where you should see a “successfully connected to Google Drive” in your browser.

politicus commented 7 years ago

Thank you. Problem solved.