EricTheMagician / node-gdrive-fuse

This is a simple filesystem written in NodeJS to mount Google Drive as a local drive.
73 stars 21 forks source link

fuse: unknown option `default_permissi-o' #27

Closed ecchi closed 9 years ago

ecchi commented 9 years ago

Pulled to newest version, npm install, re-made config.json. Did coffee client.coffee successfully.

coffee fs.coffee:

Access Token Set
info: Loading folder structure
info: attempting to start f4js
info: unmounting output: Unmount successful for /Users/ecchi/mnt

info: mount point: /Users/ecchi/mnt
fuse: unknown option `default_permissi-o'

Hangs there forever. I killed the process, and re-started:

Access Token Set
info: Loading folder structure
info: attempting to start f4js
error: unmount error: killed=false, code=1, signal=null

info: mount point: /Users/ecchi/mnt
fuse: unknown option `default_permissi-o'

Tried on Mac OS 10.10.1 and 10.7.5. osxfuse 2.7.3 and 2.7.2, node 0.10.33

ecchi commented 9 years ago

Updated 10.10.1 machine's node to 10.35.

Saw these errors:

TypeError: Cannot read property 'id' of undefined
  at parseChanges (/Users/ecchi/Code/node-gdrive-fuse/src/client.coffee:319:36)
  at callback (/Users/ecchi/Code/node-gdrive-fuse/src/client.coffee:268:7)
  at /Users/ecchi/Code/node-gdrive-fuse/src/client.coffee:249:7
  at Request._callback (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/lib/transporters.js:90:7)
  at Request.self.callback (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/node_modules/request/request.js:372:22)
  at Request.emit (events.js:98:17)
  at Request.<anonymous> (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/node_modules/request/request.js:1317:14)
  at Request.emit (events.js:117:20)
  at IncomingMessage.<anonymous> (/Users/ecchi/Code/node-gdrive-fuse/node_modules/googleapis/node_modules/request/request.js:1265:12)
  at IncomingMessage.emit (events.js:117:20)
  at _stream_readable.js:944:16
  at process._tickCallback (node.js:442:13)

Deleted the cache folder, deleted node_modules, re-did npm install

and saw this once... weird

error: unmount error: killed=false, code=1, signal=null
fuse: unknown option `default_permissi/Users/ecchi/Code/node-gdrive-fuse/node_modules/mmmagic/magic/magic'

killing and restarting the process a couple times, the default_permiss line gets weirder and weirder:

fuse: unknown option `default_permissi ?o'

another attempt:

fuse: unknown option `default_permissil??'
EricTheMagician commented 9 years ago

Ya, there are a few known problems with setting default permissions. For now, remove the default permission option.

In fs.coffee, near the end, there should be a line like this when 'Darwin' then  ["-o", "allow_other","-o",'daemon_timeout=0', "-o", "noappledouble", "-o", "noubc", "-o", "default_permissions"] To remove the default_permissions, it should look like this `when 'Darwin' then  ["-o", "allow_other","-o",'daemon_timeout=0', "-o", "noappledouble", "-o", "noubc"]

In the next few days, I will be pushing a large amount of changes that should take care of that problem. I'm currently writing up a changelog and editing the wiki.