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

"Transport endpoint is not connected" when not using "-debug" mode !? #840

Open
ravenlost opened this issue Nov 29, 2023 · 14 comments
Open

Comments

@ravenlost
Copy link

Hello.

Im running google-drive-ocamlfuse-opam 0.7.31-1 from within Manjaro Linux (installed via AUR package).

For some odd reason, when I try to mount, and then access my Google Drive using:

google-drive-ocamlfuse -label default /mnt/GoogleDrive && ls /mnt/GoogleDrive

I'll get a :

ls: cannot access '/mnt/GoogleDrive': Transport endpoint is not connected

HOWEVER, if I run the same command but add a -debug option to google-drive-ocamlfuse, then I'm able to access my Google Drive's content no problem... But that obviously is a no go for me.. aint gonna always run this in debug mode lol.

Any clues as to what is going in here ?

Much thanks!

Regards,
Patrick

@dangpzanco
Copy link

dangpzanco commented Nov 30, 2023

I have the same problem with the latest version installed via Opam on Manjaro Linux. I updated hoping I could finally use OCaml5, but looks like I'll have to downgrade...

@ravenlost
Copy link
Author

I have the same problem with the latest version installed via Opam on Manjaro Linux. I updated hoping I could finally use OCaml5, but looks like I'll have to downgrade...

Indeed, I just downgraded to google-drive-ocamlfuse, version 0.7.30, and now it seems to work.

@meswright
Copy link

Good to know others also have the same issue :-). I also installed via Opam but on Fedora. The debug gives me a workaround, so thanks for sharing that 👍 . When you ^C out of the running command, it also appears to unmount the drive too.

@dangpzanco
Copy link

@meswright my workaround has been to run it in the background like this:

google-drive-ocamlfuse -debug ~/drive & 

add the & at the end so you can close the terminal window :)

@arunkhattri6
Copy link

arunkhattri6 commented Jan 22, 2024

I am also on manjaro, same issue here, it mount drive with -debug option only, othewise throws "Transport endpoint not connected" error.
google-drive-ocamlfuse version 0.7.31
ocaml 5.1.0

@cbmiller2610
Copy link

Same issue on Fedora Workstation 38, "Transport endpoint is not connected" error when using "ls" or attempting to otherwise access the directory after running google-drive-ocamlfuse [mountpoint]

google-drive-ocamlfuse, version 0.7.31
The OCaml toplevel, version 5.1.1

I am able to use the -debug with backgrounding as workaround. @astrada do you recommend downgrading OCaml? Or maybe it's a simple fix if it's working under debug :)

@timjim333
Copy link

If we downgrade to 0.7.30, which version of OCaml is required? Or, where do we look to indentify the required version? (Apologies if this is a simple question - I'm new to the OCaml ecosystem.)

@Jackaed
Copy link

Jackaed commented Jan 29, 2024

I'm experiencing this version on 0.7.30 when installing from nixpkgs, which I believe uses Ocaml 4.14.1.

@astrada
Copy link
Owner

astrada commented Jan 30, 2024

I can confirm that google-drive-ocamlfuse quits (without mounting the Drive) if started in background, if compiled with OCaml 5+. I'm trying to understand why. As a workaround, you can run it in foreground, and send the process in background via shell:

google-drive-ocamlfuse -f [mountpoint] &

This way you avoid filling your disk with useless logs. (Unfortunately, the problem seems to be related to the OCaml bindings of libfuse, so it may take a while to fix.)

@cbmiller2610
Copy link

cbmiller2610 commented Jan 30, 2024

Another workaround (working on Fedora 38 Workstation) is to downgrade to OCaml 4.14.1 and use the release (not pre-release) version of google-drive-ocamlfuse.

STABLE VERSION INSTALL
To downgrade to the stable version of google-drive-ocamlfuse:

  1. opam uninstall google-drive-ocamlfuse
  2. Downgrading OCaml is required (at least I assume so, since the latest pre-releases mention the purpose being to add OCaml 5 support):
    opam switch create OCaml4 4.14.1
  3. Just to be sure we are getting the right version of google-drive-ocamlfuse, pin the last stable release in OPAM. Installing via the default OPAM config (OCaml5) seems to pull down 0.7.31, which is a pre-release (https://github.com/astrada/google-drive-ocamlfuse/releases).
    opam pin google-drive-ocamlfuse 0.7.30
  4. eval $(opam env)
  5. Now it should work as expected.

@ilteris
Copy link

ilteris commented Feb 3, 2024

Another workaround (working on Fedora 38 Workstation) is to downgrade to OCaml 4.14.1 and use the release (not pre-release) version of google-drive-ocamlfuse.

STABLE VERSION INSTALL To downgrade to the stable version of google-drive-ocamlfuse:

  1. opam uninstall google-drive-ocamlfuse
  2. Downgrading OCaml is required (at least I assume so, since the latest pre-releases mention the purpose being to add OCaml 5 support):
    opam switch create OCaml4 4.14.1
  3. Just to be sure we are getting the right version of google-drive-ocamlfuse, pin the last stable release in OPAM. Installing via the default OPAM config (OCaml5) seems to pull down 0.7.31, which is a pre-release (https://github.com/astrada/google-drive-ocamlfuse/releases).
    opam pin google-drive-ocamlfuse 0.7.30
  4. eval $(opam env)
  5. Now it should work as expected.

this works like a charm thank you

@ilteris
Copy link

ilteris commented Feb 4, 2024

Is there a way to get this working at login automatically? Currently I have to do eval $(opam env)
and then google-drive-ocamlfuse ~/GoogleDrive in order to get things running. Am I missing something? TIA.

@cbmiller2610
Copy link

Is there a way to get this working at login automatically? Currently I have to do eval $(opam env) and then google-drive-ocamlfuse ~/GoogleDrive in order to get things running. Am I missing something? TIA.

The documentation on how to set up auto-mounting is here: https://github.com/astrada/google-drive-ocamlfuse/wiki/Automounting

@astrada
Copy link
Owner

astrada commented Feb 12, 2024

This issue should be fixed upgrading to ocamlfuse 2.7.1-cvs9 in opam (astrada/ocamlfuse@c0deb4c).

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

9 participants