Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.29k stars 3.39k forks source link

Tabby gets stuck on Loading when trying to open a directory #5663

Open null-routed opened 2 years ago

null-routed commented 2 years ago

Describe the problem:

If I open the stfp window of my server, tabby gets stuck on Loading. It only happens when navigating to /root. I'm sure it's a tabby issue because with any other sftp client my server works just fine. I'm running the latest version of Tabby on Mac Intel (OSX 12.0.1).

image

Looks like it's the same issue this guy had, however there's no clear explenation on how to fix the issue.

To Reproduce: I have no idea on how to reproduce the issue as it was completely random, however I checked the debug log when the issue occurs and this is what the console prompts out

core.js:6456 ERROR Error: Uncaught (in promise): Error: Permission denied
Error: Permission denied
    at 101 (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:10534)
    at SFTP.push (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:8194)
    at CHANNEL_DATA (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:4179)
    at 94 (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:14607)
    at Protocol.onPayload (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:7853)
    at GenericDecipherNative.decrypt (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:13327)
    at Protocol.parsePacket [as _parse] (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:7822)
    at Protocol.parse (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:6121)
    at Socket.<anonymous> (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:4367)
    at Socket.emit (node:events:394)
    at addChunk (node:internal/streams/readable:315)
    at readableAddChunk (node:internal/streams/readable:289)
    at Socket.Readable.push (node:internal/streams/readable:228)
    at TCP.onStreamRead (node:internal/stream_base_commons:199)
    at resolvePromise (zone.js:1213)
    at zone.js:1120
    at rejected (/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34833)
    at ZoneDelegate.invoke (zone.js:372)
    at Object.onInvoke (core.js:28666)
    at ZoneDelegate.invoke (zone.js:371)
    at Zone.run (zone.js:134)
    at zone.js:1276
    at ZoneDelegate.invokeTask (zone.js:406)
    at Object.onInvokeTask (core.js:28653)
    at ZoneDelegate.invokeTask (zone.js:405)
    at Zone.runTask (zone.js:178)
    at drainMicroTaskQueue (zone.js:582)
    at processTicksAndRejections (node:internal/process/task_queues:96)
defaultErrorLogger @ core.js:6456
handleError @ core.js:6504
next @ core.js:29269
(anonymous) @ Subscriber.js:161
__webpack_modules__.85125.Subscriber._next @ Subscriber.js:101
__webpack_modules__.85125.Subscriber.next @ Subscriber.js:72
(anonymous) @ Subject.js:66
errorContext @ errorContext.js:22
__webpack_modules__.63032.Subject.next @ Subject.js:58
emit @ core.js:25946
(anonymous) @ core.js:28692
invoke @ zone.js:372
run @ zone.js:134
runOutsideAngular @ core.js:28565
onHandleError @ core.js:28692
handleError @ zone.js:376
runGuarded @ zone.js:147
api.microtaskDrainDone @ zone.js:1074
drainMicroTaskQueue @ zone.js:589
processTicksAndRejections @ node:internal/process/task_queues:96
Promise.then (async)
scheduleMicroTask @ zone.js:565
scheduleTask @ zone.js:396
onScheduleTask @ zone.js:283
scheduleTask @ zone.js:386
scheduleTask @ zone.js:221
scheduleMicroTask @ zone.js:241
scheduleResolveOrReject @ zone.js:1266
resolvePromise @ zone.js:1204
(anonymous) @ zone.js:1120
processTicksAndRejections @ node:internal/process/task_queues:96
Promise.then (async)
(anonymous) @ zone.js:1456
ZoneAwarePromise @ zone.js:1387
Ctor.then @ zone.js:1455
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-core/dist/index.js:22559
ZoneAwarePromise @ zone.js:1387
wrapPromise @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-core/dist/index.js:22558
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:35728
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34835
ZoneAwarePromise @ zone.js:1387
__awaiter @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34831
readdir @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:35726
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:37047
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34835
ZoneAwarePromise @ zone.js:1387
__awaiter @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34831
navigate @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:37034
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:37068
(anonymous) @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34835
ZoneAwarePromise @ zone.js:1387
__awaiter @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:34831
open @ /Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-ssh/dist/index.js:37066
eval @ SFTPPanelComponent.ngfactory.js:82
handleEvent @ core.js:31702
handleEvent @ core.js:32254
dispatchEvent @ core.js:23569
(anonymous) @ core.js:30907
(anonymous) @ platform-browser.js:545
invokeTask @ zone.js:406
onInvokeTask @ core.js:28653
invokeTask @ zone.js:405
runTask @ zone.js:178
invokeTask @ zone.js:487
invokeTask @ zone.js:1600
globalZoneAwareCallback @ zone.js:1626
sentryWrapped @ helpers.js:72
Eugeny commented 2 years ago

Thanks for posting the console output. Are you logging in as root? Is the other SFTP client able to browse into /root?

null-routed commented 2 years ago

I'm not looging as root, however the user I'm logging with has the privilege to browse the root directory. Yes the other SFTP clients manage to browse into /root, using the same user I'm trying to log in with on Tabby. To be more precise, I was able to browse into /root with tabby too until a few hours ago. I tried to deep-uninstall Tabby but that didn't work either.

CristianoCorsi commented 2 years ago

I have the same issue on 2 servers, and one of this is a virtual machine on my localhost. I can't undestrand why in origin it worked and suddenly it doesn't anymore.