Giter Site home page Giter Site logo

astrada / google-drive-ocamlfuse Goto Github PK

View Code? Open in Web Editor NEW
5.4K 5.4K 344.0 1.68 MB

FUSE filesystem over Google Drive

Home Page: https://astrada.github.io/google-drive-ocamlfuse/

License: MIT License

OCaml 98.06% Makefile 0.04% Shell 1.05% JavaScript 0.86%
filesystem fuse google-drive ocaml

google-drive-ocamlfuse's People

Contributors

aethalides avatar alessandro-barbieri avatar astrada avatar boonedoggle avatar cinemacloud avatar constfun avatar dogeared avatar dos1 avatar gitter-badger avatar iblech avatar idvoretskyi avatar justintime50 avatar matt24smith avatar nilbot avatar petelawler avatar rgrinberg avatar umer936 avatar vava avatar vi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-drive-ocamlfuse's Issues

Hanging during initial setup

installed on Ubuntu 12.04 from PPA. trying to do initial setup after installation. running on a headless server. tried both default and alternate authorization methods in the guide (create a new OAuth2 client and entire in id/secret).

output of google-drive-ocamlfuse -verbose:

~$ google-drive-ocamlfuse -verbose
Starting application setup (label=default).
Opening log file: /home/myuser/.gdfuse/default/gdfuse.log

gdfuse.log:
~/.gdfuse/default$ tail -f gdfuse.log
[0.000492] TID=0: Setting up default filesystem...
[0.000569] TID=0: Loading configuration from /home/myuser/.gdfuse/default/config...done
Saving configuration in /home/myuser/.gdfuse/default/config...done
[0.000855] TID=0: Loading application state from /home/myuser/.gdfuse/default/state...done
Current version: 0.5.2
Setting up cache db...done
Setting up CURL...done

and it just hangs at this point.

there is no curl.log generated.

Ubuntu 12.04 Segmentation fault

First run after installation:

$ google-drive-ocamlfuse
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory

(gvfs-open:27870): GLib-GObject-WARNING **: Two different plugins tried to register 'GDaemonVfs'.

(gvfs-open:27870): GLib-GObject-WARNING **: Two different plugins tried to register 'GDaemonVolumeMonitor'.

(gvfs-open:27870): GLib-GIO-WARNING **: Tried to register an extension of the type (null) to extension point gio-volume-monitor. Expected type is GVolumeMonitor.

(gvfs-open:27870): GLib-GObject-WARNING **: cannot add interface type GLoadableIcon' to typeGVfsIcon', since type `GVfsIcon' already conforms to interface

(gvfs-open:27870): GLib-GIO-WARNING **: Tried to register an extension of the type (null) to extension point gio-vfs. Expected type is GVfs.

(gvfs-open:27870): GLib-GObject-WARNING **: Two different plugins tried to register 'GVfsUriMapper'.

(gvfs-open:27870): GLib-GObject-WARNING **: Two different plugins tried to register 'GVfsUriMapperSmb'.

(gvfs-open:27870): GLib-GObject-WARNING **: Two different plugins tried to register 'GVfsUriMapperHttp'.

(gvfs-open:27870): GLib-GObject-WARNING **: Two different plugins tried to register 'GVfsUriMapperAfp'.
Segmentation fault (core dumped)

Problem with shared documents

If a folder contains at least a shared document created by another user, readdir and getattr will fail. This is a bug in the gapi-ocaml library that doesn't expect a specific element in the XML entry (sharedWithMeDate) of shared documents, thus failling to fetch the document metadata.

Google Doc files showing as zip archives

Google Docs files are displayed in the mounted filesystem, however, they are displayed as zip archives (mimetype application/zip). The archive files can be opened with LibreOffice Calc and they work as expected (and are read only, as expected). I've tried editing the config file to alter 'docs_file_extension=false' to 'docs_file_extension=true' on a whim, but other than that I haven't manually modified my configuration file which is as follows:

docs_file_extension=false
verification_code=
umask=0o002
document_format=odt
debug=false
presentation_format=pdf
spreadsheet_format=ods
download_docs=true
client_id=
drawing_format=png
conflict_resolution=server
keep_duplicates=false
metadata_cache_time=60
client_secret=
read_only=false
form_format=ods
sqlite3_busy_timeout=500

Please do let me know if there is anything else I can do to help diagnose this bug. I suspect debug=true might be a start, but I'd rather follow specific instructions lest I flood this bug with irrelevant details/data.

Note: I have only spreadsheets under Google Docs at the moment.

Error during mounting

After receiving the token from google, i write the command "google-drive-ocamlfuse mountpoint" but I get the error "Error: Unix.Unix_error(ENOENT, "stat", "mountpoint")
"
I use Ubuntu 13.04 x64

very slow speeds

I got the google drive mounted and tried to cp my wordpress/wp-content/uploads and the performance was extremely slow. The files are mostly jpgs less than 1 meg loaded from a Wordpress multisite install with only a few blogs. My server is hosted on Ramnode with SSD drives and pretty fast network.

I've tried -o with big_writes and direct_io options on to see if it would make any improvements.

Can you give any advice on optimizing performance or how feasible it really is to use google-drive-ocamlfuse for this?

Convert Gdoc native formats to weblinks as an option

It would be good to have this app convert the native Google Docs apps into URL weblinks.

This is how the Native Google drive app on Windows and Mac, and the Insync client (as of latest version) work. This allows you to leave these as read-only as all editing is done via the web client.

Usage with rsync

Hi,

I started using your program and it really seems great. I was wondering though whether using rsync is of any advantage for this in terms of bandwidth as I have noticed it to be quite slow.

Also, in my attempt with rsync and a few PDF files, I have found that I am unable to open them in Google Drive as it says that

No preview available
This item was created with google-drive-ocamlfuse, a Google Drive app.
Download this file or use one of the apps you have installed to open it.

also, the mime type of the PDF according to Google is application/octet-stream.

Too many dependences

I am trying to install about 2 hours and I had to install more than 20 dependences in cascade so far without success.

Can't sync noempty folder

I linked existing GoogleDrive folder from other partition to ~/Documents.
When trying to mount it throws error that folder is not empty and to try to use "noempty" mount option.

google-drive-ocamlfuse --help

doesn't show that option and it doesn't work if provided, but I think fuse use it.
Can you make it operational?

Files Not Appearing in Directory

Just set up google-drive-ocamlfuse (version 0.5) and mostly loving it so far. However, I have noticed that in a few of my folders I cannot see all of the files. Files are normal and were previously uploaded to the Google Drive with Insync. I can see the files fine in the web interface, but when I do a "ls" or browse there in Nautilus I can only see a fraction of the files in the folder. I generated a log using the -verbose flag and it appears the files are being seen, but the line in the log for each file says "Filename (unused): [filename]". The filenames that aren't appearing don't have special characters or anything else that I could think of that might cause odd behavior. Any idea what is causing this or how to force it to appear? Clearing the cache doesn't fix anything.

Max cache size

How large can the cache grow over time? Is there a way to set a maximum size or some type of expiry policy?

Unable to open Google docs after mounting gogole-drive on linux

The drive is fuse mounted and I can see files.

However when I try opening either a spreadsheet or a text document, using xdg-open
it opens up a browser (chromium) and prompts to save that file.

file returns (for both spreadsheet as well as doc):

filename: Zip archive data, at least v2.0 to extract

In the config, I have foll. relevant settings :
docs_file_extension=true (changed from false to true)
spreadsheet_format=ods
download_docs=true
document_format=odt

Can't copy file from drive after mount

I install google-drive-ocamlfuse via opam.
Mount my drive google-drive-ocamlfuse -debug google.drive
And try copy any file from Drive:
$ cp google.drive/Social/new_multipath_method.aac .
cp: error reading 'google.drive/Social/new_multipath_method.aac': Device or resource busy
cp: failed to extend './new_multipath_method.aac': Device or resource busy

But file exist:
$ ll google.drive/Social/new_multipath_method.aac
-rw-rw-r--. 1 vascom vascom 33M окт 2 2012 google.drive/Social/new_multipath_method.aac

Please help solve problem.

Debug log:
$ cat /home/vascom/.gdfuse/default/gdfuse.log
[0.113469] TID=0: Setting up default filesystem...
[0.113558] TID=0: Loading configuration from /home/vascom/.gdfuse/default/config...done
Saving configuration in /home/vascom/.gdfuse/default/config...done
[0.381024] TID=0: Loading application state from /home/vascom/.gdfuse/default/state...done
Current version: 0.4.4
Setting up cache db...done
Setting up CURL...done
Refresh token already present.
[0.913845] TID=0: Starting filesystem google.drive
[0.923281] TID=0: init_filesystem
[5.062186] TID=0: getattr /dragunkin_hrestomatia
Loading metadata from db...not valid
Refreshing metadata...done
Updating metadata in db...done
Updating context...done
Getting changes from server...done
Updating resource cache...done
Updating trashed resources...done
Removing deleted resources...done
Invalidating trash bin resource...done
Loading resource /dragunkin_hrestomatia (trashed=false) from db...found
[14.934202] TID=0: getattr /Social
Getting metadata from context...valid
Loading resource /Social (trashed=false) from db...found
[14.935310] TID=0: getattr /dragunkin_hrestomatia/About.txt
Getting metadata from context...valid
Loading resource /dragunkin_hrestomatia/About.txt (trashed=false) from db...found
[14.936389] TID=0: getattr /Social/new_multipath_method.aac
Getting metadata from context...valid
Loading resource /Social/new_multipath_method.aac (trashed=false) from db...found
[14.944169] TID=0: fopen /Social/new_multipath_method.aac O_RDONLY
Getting metadata from context...valid
Loading resource /Social/new_multipath_method.aac (trashed=false) from db...found
[14.945594] TID=0: read /Social/new_multipath_method.aac buf 0 0
Getting metadata from context...valid
Loading resource /Social/new_multipath_method.aac (trashed=false) from db...found
Checking MD5 checksum (path=/Social/new_multipath_method.aac, hash=26df982a9a8d8c163ed9237b10e3f505)...
File does not exists.
Downloading resource (id=3454)...Exception:GapiRequest.Forbidden()
Backtrace:
[15.449045] TID=0: read /Social/new_multipath_method.aac buf 0 0
Getting metadata from context...valid
Loading resource /Social/new_multipath_method.aac (trashed=false) from db...found
Checking MD5 checksum (path=/Social/new_multipath_method.aac, hash=26df982a9a8d8c163ed9237b10e3f505)...
File does not exists.
Downloading resource (id=3454)...Exception:GapiRequest.Forbidden(
)
Backtrace:
[15.907047] TID=0: flush /Social/new_multipath_method.aac 0
Getting metadata from context...valid
Loading resource /Social/new_multipath_method.aac (trashed=false) from db...found
[15.908236] TID=0: release /Social/new_multipath_method.aac O_RDONLY
Getting metadata from context...valid
Loading resource /Social/new_multipath_method.aac (trashed=false) from db...found

max_cache_size_mb doesn't seem to be working

Hi,

I'm finding that the cache size is exceeding the max_cache_size_mb setting. I've tried 10MB, 512MB, etc., but the cache is growing as high as 6 gigs in some cases.

Note that in my case, I'm dealing with multi-gig files in the google drive. Not sure if that could be related. There are also some instances where the drive seems to get disconnected every now and then, not sure if that could be related either.

Thanks,

Chris

Trouble building

While building bumped in error, and can't get past by him:

ocaml setup.ml -build
Finished, 0 targets (0 cached) in 00:00:00.

  • ocamlfind ocamlc -c -g -package threads -package sqlite3 -package gapi-ocaml -package camlidl -package Fuse -thread -I src -o src/drive.cmo src/drive.ml
    File "src/drive.ml", line 866, characters 13-42:
    Error: Unbound constructor GapiCore.Header.ContentLength
    Command exited with code 2.
    Compilation unsuccessful after building 25 targets (24 cached) in 00:00:00.
    E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

Slow upload rates, flooded connection

I am experiencing incredibly slow transfer rates when uploading large documents, such as a 16 MB PDF, to my Google Drive.

When I tried to copy several PDF files from local to Google Drive, the small PDF files transferred without issue, but I noticed the larger files, especially the 16 MB one, would take around 10-15 minutes to transfer. They were transferring at maximum 10 kB/s! I tried unmounting and remounting the drive after the first couple times, but this didn't help.

I have since updated google-drive-ocamlfuse via the Update Manager on my Linux distro, and am still experiencing painfully slow upload rates for large documents, although they seem to have sped up a little, to about 15 kB/s.

Finally, it also seems that attempting to upload these large documents also causes google-drive-ocamlfuse to flood my Internet connection. Perhaps this is related to the slow transfers? During my most recent attempt today, I figured I'd do some online gaming while waiting. My ping in the game was approaching 1000 ms! I tried to click the cancel button on the copy dialogue, to stop the upload, but it wouldn't respond. I ended up just disconnecting the computer from the network. The instant I disconnected that computer, my ping in the game dropped to a normal less-than-100 ms.


cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=15
DISTRIB_CODENAME=olivia
DISTRIB_DESCRIPTION="Linux Mint 15 Olivia"
NAME="Ubuntu"
VERSION="13.04, Raring Ringtail"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 13.04"
VERSION_ID="13.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

uname -a
Linux Aspire-3620 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux

Question: Sync subfolders

Is it possible to sync just part of Google Drive.
I would like to be able to sync GDrive subfolders to different local mount point.

Can it be made so ocamlfuse acts as folder filter, to skip sync folders that are not /gdrive/folder so syntax could be:

google-drive-ocamlfuse -folder /gdrive/folder/filter /local/mount/point

Is that doable?

Thnx, Miro

google-drive-ocamlfuse causes MS Word to create corrupt files

  1. Mount a Google Drive
  2. Create a Word document (Using MS Word 2007 under CrossOver Office)
  3. Save it on the mounted drive
  4. Exit Word
  5. Attempt to open the Word document
  6. See error message: "The file is corrupt and cannot be opened". screenshot on imgur

I don't see corrupt files when I use the Google Drive client on my Windows XP machine, share that, and then mount that share using CIFS. (But I'm trying to get rid of the Windows XP dependency)

google-drive-ocamlfuse in Kiwingu

Hi Allessandro,
I recently stumbled upon your Google Drive FUSE project and I think it is very interesting. I am the developer of a cloud drive application called Kiwingu ( http://www.chungwasoft.com/kiwingu/ ). I would like to integrate support for Google Drive into the app and I was wondering whether it would be possible to use your FUSE driver as the backend?

Best regards,
Fabian

fuse: mount failed: Invalid argument

I just updated google-drive-ocamlfuse to 0.4.6 via opam, and I can no longer mount the file system. It was working before on 0.4.4. I am trying even without any options:

google-drive-ocamlfuse /mnt/google-drive/

and getting the "fuse: mount failed: Invalid argument"

Can't install ocamlfuse

Hi,
i see in the dependencies that i have to install ocamlfuse, but i can't find it in the repos (im runnin ubuntu 13.04) and i can't even install it from the source.

Im in "ocamlfuse/lib" directory and i launch "make". Seems that it can't find the file "fuse.h". This is what i get:
Fuse_bindings.h:16:18: fatal error: fuse.h: File o directory non esistente
compilation terminated.

Any help?

error with opam install

When I try to install from opam, it tries to install these 3 packages:

ocamlnet.3.7.3
gapi-ocaml.0.2
google-drive-ocamlfuse.0.4.4

However, there is an error when trying to build ocamlnet 3.7.3. There's an error in the /.opam/system/build/ocamlnet.3.7.3/src/netstring/netencoding.mli file

File "netencoding.mli", line 117, characters 1-3
Error: This comment contains an unterminated string literal
make[1]: *** [depend] Error 1
make: *** [all] Error 2

I tried compiling ocamlnet version 3.7.3 manually and can confirm the bug. I removed line 117 from netencoding.mli above and then it is able to compile successfully.

After installing ocamlnet.3.7.3 manually as stated above, when I try to send: opam install google-drive-ocamlfuse, it will still try and reinstall ocamlnet.3.7.3 (with the bug in netencoding.mli file) and exit with the above errors. Is there a way to bypass installing ocamlnet.3.7.3 again so opam can finish the install?

Upload speed

Hi,

I made some upload speed test with the last release (#47), and my average speed is 160ko/s. My server has a 100MB symmetric connection and when I test the Google Drive Client (Or directcly from the web interface - chrome) from a Windows Virtual Machine hosted on this server, my download / upload speed are > 10Mo/s.
Have you an idea why there is a such difference ?

Thank you.

Old version in OPAM installer

In opam I can install only old version 0.4.4.
How quickly the new version gets to the repository?
How install latest version via opam?

Revision File

Hi,
When I move/copy (with "mv" or "cp -rf" command) a file from a local directory to my gdfuse mount, if this file (same file name) exists, it is deleted (moved to trash) and a new version is created. Is it possible that instead of creating a "new file", I get a "new revision file" for the original file ?

When I used the cp command I get this error :
"cp: impossible de créer le fichier standard «/mnt/gdrive/log.txt»: Périphérique ou ressource occupé" (cp: can not create regular file "/ mnt / GDrive / log.txt": Device or resource busy)

Thank you.

Autostart in Ubuntu

Very nice project indeed!
I'm wondering which is the right way to launch google-drive-ocamlfuse at startup in Ubuntu. Some blogs suggest to add it to ubuntu's startup applications, but I'm not convinced since fuse is not unmounted on logout, so if I login twice the program is started twice, trying to remount google drive on the same path and resulting in an error.
Any suggestions?

Error when file name contains an apostrophe

image

I got this error while copying two images to drive, 1.8MB JPEG copied just fine; however, the second image 3.7 MB (3,653,233 bytes) JPEG threw this error at me and failed to copy. I am guessing slow upload rate problem??

Additional Info:

  • On up-to-date Ubuntu 12.04
  • Internet connection is pretty fast so I am sure there is no bottle neck there.

Symbolic links?

Hi there -- Wondering if there any plans to implement support for symlinks? I get a message like this when trying to make one:

ln: failed to create symbolic link `filename': Function not implemented

Thanks!

Authorization to be renewed every 30 days?

When I authorised the application using the default option based on Google App Engine, the authorisation Web page offered a check-box to remember my decision for 30 days.

I suppose this is happening because I am using 2-step verification for my google account, which implies a system is authorized for 30 days and then you have to re-certify it.

Is OAuth the only way to work around this issue? Would it be possible for google-drive-ocamlfuse to make use of application passwords? http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833&topic=2784804&ctx=topic

Feature request: RPM package or portable tarball

The title says it all, pretty much. It would be wonderful to have an RPM package done or - alternatively - the tarball with the binaries for a distro-agnostic download...

Thank you in advance!

Ubuntu 13.10

Can you release the package for Ubuntu 13.10 in your PPA ?

Feature request: Remove files from trash on delete

I was a little surprised that the rm command left a copy of the file in the trash on Google Drive. It would at least be nice to have a setting to indicate that removing the file should also remove it from trash.

Device or resource busy

First, thanks for this great software! Very useful.

I have an issue when copying big amounts of files to the drive, (commands as "cp -R"). It copies some dozens of files and then starts sending messages "device or resource busy" ("Dispositivo o recurso ocupado" in my locale).
If I interrupt the command, every access to the drive gives the same error. I have to unmount the drive and mount it again to retake control.

I'm running:
google-drive-ocamlfuse, version 0.5.2
Ubuntu Server 12.04.3 LTS with: Linux 3.8.0-29-generic #42~precise1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

Thanks!

Fails to build on Mac OS X

Attempting to install this on Mac OS X has been an adventure. I had multiple issues with dependencies. After wrestling with ocamlfuse and getting it to install, the last thing remaining is google-drive-ocamlfuse. Unfortunately, it fails to link src/gdfuse.ml.

Finished, 0 targets (0 cached) in 00:00:00.
+ ocamlfind ocamlopt -g -linkpkg -package threads -package sqlite3 -package gapi-ocaml -package camlidl -package Fuse -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
Undefined symbols for architecture x86_64:
  "___fuse_exited", referenced from:
      _camlidl_Fuse_bindings___fuse_exited in libFuse_stubs.a(Fuse_bindings_stubs.o)
     (maybe you meant: _camlidl_Fuse_bindings___fuse_exited)
  "___fuse_process_cmd", referenced from:
      _camlidl_Fuse_bindings___fuse_process_cmd in libFuse_stubs.a(Fuse_bindings_stubs.o)
     (maybe you meant: _camlidl_Fuse_bindings___fuse_process_cmd)
  "___fuse_read_cmd", referenced from:
      _camlidl_Fuse_bindings___fuse_read_cmd in libFuse_stubs.a(Fuse_bindings_stubs.o)
     (maybe you meant: _camlidl_Fuse_bindings___fuse_read_cmd)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (39 cached) in 00:00:01.
E: Failure("Command ''/Users/sorin/.homebrew/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

Headless Usage & Authorization

I am trying to do the headless authorization with my credentials:

google-drive-ocamlfuse -id ######.apps.googleusercontent.com -secret ***********

and I get the following errors looking for the web browser (as expected):

/usr/bin/xdg-open: line 402: htmlview: command not found
/usr/bin/xdg-open: line 402: firefox: command not found
/usr/bin/xdg-open: line 402: mozilla: command not found
/usr/bin/xdg-open: line 402: netscape: command not found
/usr/bin/xdg-open: line 402: links: command not found

but it will just get stuck here with no other results.

I never get the

"Failure("Error opening URL:"

Error with Active Form

I have a google drive account with an active form in the root of my Google Drive folder. When I try to sync it comes up with this error:

Sorry, could not display all the contents of “GDrive”: Error when
getting information for file '/home/[user]/GDrive/[form_name].ods':
Device or resource busy

I have removed the user sensitive information... any idea on how to fix this?

Issues on Mac OS X (OSXFUSE)

I have tried to mount Google Drive and received the following output.

/bin/sh: xdg-open: command not found
Access token retrieved correctly.
fuse: unknown option `big_writes'

There is no xdg-open on Mac OS X. The command is open. [[ "$OSTYPE" == darwin* ]] && open "$@".

Somehow, it still opened Firefox, which is not the default browser. It redirected me to Google where I approved access. Then it complained about big_writes. I am not sure if this is an google-drive-ocamlfuse error or an ocamlfuse error. I did not specify -obig_writes on the command line.

Install just doesn't work for me

Hi I just found out about your project and wanted to give it a try. I'm a complete ocaml noob, so it is totally possible that I did something wrong.

So I did the following:
$ wget http://www.ocamlpro.com/pub/opam_installer.sh
$ sh ./opam_installer.sh /usr/local/bin
$ opam init
$ eval 'opam config env'
$ opam install google-drive-ocamlfuse

then at "installing xmlm.1.1.1" I get:
W: Field 'ocamldoc' is not set
E: Cannot find external tool 'ocamldoc'

any help would be greatly appreciated.

Debug Mode bug

When running debug mode, the command line is not released. When I run google-drive-ocamlfuse -debug /home/user/GDrive I see some debug output right there in the terminal window and then it just sits there and waits.

user@Aspire-3620 ~ $ google-drive-ocamlfuse -debug /home/user/GDrive
Starting application setup (label=default).
Opening log file: /home/user/.gdfuse/default/gdfuse.log
█

It only stops waiting when I either press Ctrl+C or open a new terminal and unmount the drive via command.

EDIT:
I should note that the drive is correctly mounted, and the two log files are opened and written to. This issue is that google-drive-ocamlfuse doesn't seem to release the command line for further use.


cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=15
DISTRIB_CODENAME=olivia
DISTRIB_DESCRIPTION="Linux Mint 15 Olivia"
NAME="Ubuntu"
VERSION="13.04, Raring Ringtail"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 13.04"
VERSION_ID="13.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

uname -a
Linux Aspire-3620 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux

No way to setup OAuth authentication for command line environment with no browser

There is currently no way to setup the authorization on a machine with only a command line environment as it has no web browser.

I have setup my own Google API access with client_id and client_secret and have authenticated the API with my Google account and have the success code. There is no known way to provide the success code to google-drive-ocamlfuse as it also wants to open a browser when specifying the '-id' and '-secret' command line parameters.

Is there a configuration file where I can directly place the OAuth success code/token?

Feature Request: sync status indication or loading bar

I have a suggestion for a feature:
Some way of notifying the user of the current sync status (like % complete) so the user knows when all of the files are finished syncing.

I have > 20 GB on my google drive, and it includes data and figures that are large files. When I am working on my linux machine it would be nice to know when all my changes on my other machines are available

Thank you for your time! I really enjoy google-drive-ocamlfuse! It really helps me out :)

Uploaded *.pdf files won't open using google's web pdf reader.

I just copied a couple of pdf files into a folder (i.e inside fuse mount folder) and those files won't open in google's web pdf reader (screenshot below).

d

Please note some pdf files had file extension and others dint (as linux doesn't care).
However, on downloading those files through the option visible in screenshot, it opens up fine on linux. So, uploaded files is definitely not broken. if you see the screenshot google somehow (from auth) knows its uploaded using 3rd party app, is that the reason why its blocking it?

File corruption

Hey.. I'm trying to use this tool to upload some backups to my drive, but if they are large ~ 400MB they get corrupted. The files are sent in tar.gz file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.