Closed hofikhof closed 6 years ago
Not nearly enough information. Please share what you've actually seen. If you haven't mounted directly and with the -d option, please do and share the logs.
On Oct 9, 2017 07:41, "hofikhof" notifications@github.com wrote:
gdfs mount correct, but listing mounted directory fail - error in/out debug output => error on root directory google drive
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dsoprea/GDriveFS/issues/181, or mute the thread https://github.com/notifications/unsubscribe-auth/AArralEzFqpGFV4psZrYAKjdppjgzJKqks5sqgZrgaJpZM4PyW1q .
root@rpi-hofik:/home/pi# sudo gdfs -o allow_other /home/pi/gdfs.creds /mnt/gdrivefs
Traceback (most recent call last):
File "/usr/local/bin/gdfs", line 4, in
Mount is without problems but when i use command ls /mnt/gdrivefs
Here is my debug log:
root@rpi-hofik:/home/pi# sudo GD_DEBUG=1 gdfs -o allow_other /home/pi/gdfs.creds /mnt/gdrivefs
2017-10-10 14:38:43,637 [gdrivefs.utility INFO] No extension-mapping was found.
2017-10-10 14:38:43,670 [main DEBUG] Mounting GD with creds at [/home/pi/gdfs.creds]: /mnt/gdrivefs
2017-10-10 14:38:43,672 [gdrivefs.gdfs.gdfuse DEBUG] Setting option [allow_other] to [True].
2017-10-10 14:38:43,672 [gdrivefs.gdfs.gdfuse DEBUG] Forwarding option [allow_other] with value [True] to FUSE.
2017-10-10 14:38:43,674 [gdrivefs.gdfs.gdfuse DEBUG] FUSE options:
{'allow_other': True}
2017-10-10 14:38:43,674 [gdrivefs.gdfs.gdfuse DEBUG] PERMS: F=777 E=666 NE=444
2017-10-10 14:38:43,692 [gdrivefs.gdtool.oauth_authorize INFO] Credentials have expired. Attempting to refresh them.
2017-10-10 14:38:43,692 [gdrivefs.gdtool.oauth_authorize INFO] Doing credentials refresh.
2017-10-10 14:38:43,693 [oauth2client.client INFO] Refreshing access_token
2017-10-10 14:38:43,944 [gdrivefs.gdtool.drive DEBUG] Getting authorized HTTP tunnel.
2017-10-10 14:38:43,945 [gdrivefs.gdtool.drive DEBUG] Got authorized tunnel.
FUSE library version: 2.9.7
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.26
flags=0x001ffffb
max_readahead=0x00020000
2017-10-10 14:38:44,582 [gdrivefs.gdfs.fsutility DEBUG] --------------------------------------------------
2017-10-10 14:38:44,582 [gdrivefs.gdfs.fsutility DEBUG] >>>>>>>>>> init(23) >>>>>>>>>> (0)
2017-10-10 14:38:44,583 [gdrivefs.gdfs.fsutility DEBUG] DATA: path= [/]
2017-10-10 14:38:44,583 [gdrivefs.gdfs.gdfuse INFO] Activating change-monitor.
2017-10-10 14:38:44,950 [gdrivefs.gdtool.drive DEBUG] Getting authorized HTTP tunnel.
2017-10-10 14:38:44,951 [gdrivefs.gdfs.fsutility DEBUG] <<<<<<<<<< init(23) (0)
INIT: 7.19
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
max_background=0
congestion_threshold=0
2017-10-10 14:38:44,952 [gdrivefs.gdtool.drive DEBUG] Got authorized tunnel.
unique: 1, success, outsize: 40
unique: 2, opcode: ACCESS (34), nodeid: 1, insize: 48, pid: 1164
access / 04
unique: 2, success, outsize: 16
unique: 3, opcode: LOOKUP (1), nodeid: 1, insize: 47, pid: 1164
LOOKUP /.Trash
getattr /.Trash
2017-10-10 14:38:44,955 [gdrivefs.gdfs.fsutility DEBUG] --------------------------------------------------
2017-10-10 14:38:44,956 [gdrivefs.gdfs.fsutility DEBUG] >>>>>>>>>> getattr(4) >>>>>>>>>> (1164)
2017-10-10 14:38:44,956 [gdrivefs.gdfs.fsutility DEBUG] DATA: fh= [None] raw_path= [/.Trash]
2017-10-10 14:38:44,960 [gdrivefs.cache.cacheclient_base DEBUG] CacheClientBase(CacheClientBase,28800)
2017-10-10 14:38:44,961 [gdrivefs.cache.cache_agent INFO] Starting cache-cleanup thread: <gdrivefs.cache.cache_agent.CacheAgent object at 0x75fa6b50>
2017-10-10 14:38:44,962 [gdrivefs.cache.cache_agent INFO] Cache-cleanup thread running: <gdrivefs.cache.cache_agent.CacheAgent object at 0x75fa6b50>
2017-10-10 14:38:44,963 [gdrivefs.gdtool.drive INFO] Getting client for parent-listing.
2017-10-10 14:38:44,963 [gdrivefs.gdtool.drive INFO] Listing entries over child with ID [0APTDjIR-VzQoUk9PVA].
2017-10-10 14:38:45,779 [gdrivefs.gdtool.drive DEBUG] (1) entries were retrieved.
2017-10-10 14:38:45,780 [gdrivefs.cache.volume DEBUG] Recursively pruning entry with ID [0APTDjIR-VzQoUk9PVA].
2017-10-10 14:38:45,782 [gdrivefs.gdtool.drive INFO] Listing all files. CONTAINS=[
Are you familiar with how to apply PRs or switch branches?
https://github.com/dsoprea/GDriveFS/pull/182
You can also make the change directly:
diff --git a/gdrivefs/gdtool/normal_entry.py b/gdrivefs/gdtool/normal_entry.py
index 77800f5..57bde61 100644
--- a/gdrivefs/gdtool/normal_entry.py
+++ b/gdrivefs/gdtool/normal_entry.py
@@ -66,7 +66,7 @@ class NormalEntry(object):
raw_data[u'id']
self.__info['last_modifying_user_name'] = \
- raw_data[u'lastModifyingUserName']
+ raw_data.get(u'lastModifyingUserName')
If you can test if that works, I can push the change.
I was having the same issue on Arch Linux, and #182 fixed it for me.
Merged. Thanks, guys.
I don't think the platform is relevant. I think it's an obscure occurrence for new files that were created a certain way.
gdfs mount correct, but listing mounted directory fail - error in/out debug output => error on root directory google drive