astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.47k stars 347 forks source link

can't connect goodle drive as a user other than root #806

Open whitemankpi opened 1 year ago

whitemankpi commented 1 year ago

can't connect goodle drive as a user other than root.

I get these errors even if I try to run google-drive-ocamlfuse.service as a user who is in the sudo and root groups

ubuntu@mycloud:~$ systemctl status google-drive-ocamlfuse.service ● google-drive-ocamlfuse.service - FUSE filesystem over Google Drive Loaded: loaded (/etc/systemd/system/google-drive-ocamlfuse.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-03-02 20:39:24 EET; 19s ago Process: 6011 ExecStart=/usr/bin/google-drive-ocamlfuse /mnt/google-drive-ubuntu/ (code=exited, status=1/FAILURE)

Mar 02 20:39:24 mycloud systemd[1]: google-drive-ocamlfuse.service: Control process exited, code=exited, status=1/FAILURE Mar 02 20:39:24 mycloud systemd[1]: google-drive-ocamlfuse.service: Failed with result 'exit-code'. Mar 02 20:39:24 mycloud systemd[1]: Failed to start FUSE filesystem over Google Drive. Mar 02 20:39:24 mycloud systemd[1]: google-drive-ocamlfuse.service: Scheduled restart job, restart counter is at 5. Mar 02 20:39:24 mycloud systemd[1]: Stopped FUSE filesystem over Google Drive. Mar 02 20:39:24 mycloud systemd[1]: google-drive-ocamlfuse.service: Start request repeated too quickly. Mar 02 20:39:24 mycloud systemd[1]: google-drive-ocamlfuse.service: Failed with result 'exit-code'. Mar 02 20:39:24 mycloud systemd[1]: Failed to start FUSE filesystem over Google Drive.

whitemankpi commented 1 year ago

status google-drive-ocamlfuse.service config

[Unit] Description=FUSE filesystem over Google Drive After=network.target

[Service] User=root ExecStart=google-drive-ocamlfuse /mnt/google-drive-ubuntu/ ExecStop=fusermount -o allow_other -u /mnt/google-drive-ubuntu/ Restart=always Type=forking

[Install] WantedBy=default.target

kostadinnm commented 9 months ago

I have exactly the same issue. Executing the commands separately works flawlessly.