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

Authorization fails if a process is already bound to 127.0.0.1:8080 #855

Open
henrywintif opened this issue Apr 14, 2024 · 1 comment
Open

Comments

@henrywintif
Copy link

I have a process running that occupied port 8080.

After running google-drive-ocamlfuse -id xxxxxxxxxx.apps.googleusercontent.com -secret XXX-YYY-ZZZ an error in the shell came up with the following text: Thread 1 killed on uncaught exception Unix.Unix_error(50, "bind", ""). The OAuth browser window did open, but auth failed because the process for retrieving the callback never started.

I see two ways of solving this:

  1. Warn the user that port 8080 must be available
  2. Use a distinct port for the OAuth callback

I actually think that using options 1 & 2, where a different, obscure port number is used, and also a warning is given to the user that the chosen new port number must be available.

@astrada
Copy link
Owner

astrada commented Apr 15, 2024

You can change the default port with the -port command line option (https://github.com/astrada/google-drive-ocamlfuse/wiki/Usage#since-0732) or modifying the configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants