shiftkey / desktop

Fork of GitHub Desktop to support various Linux distributions
MIT License
6.86k stars 521 forks source link

Random write error exception #1097

Closed aminya closed 3 months ago

aminya commented 4 months ago

The problem

I've been getting this random write-error exception.

Error: EIO: i/o error, write
    at writeSync (node:fs:931:3)
    at SyncWriteStream._write (node:internal/fs/sync_write_stream:27:5)
    at writeOrBuffer (node:internal/streams/writable:564:12)
    at _write (node:internal/streams/writable:493:10)
    at SyncWriteStream.Writable.write (node:internal/streams/writable:502:10)
    at console.value (node:internal/console/constructor:304:16)
    at console.warn (node:internal/console/constructor:384:26)
    at f.log (app/src/main-process/desktop-console-transport.ts:41:7)
    at f.s._write (app/node_modules/winston-transport/index.js:82:19)
    at O (app/node_modules/readable-stream/lib/_stream_writable.js:409:139)

Version: 3.4.2-linux1
OS: Linux 6.5.0-41-generic

Release version

3.4.2-linux1

Operating system

Linux 6.5.0-41-generic

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

image

Additional context

I maintain some of my repositories on an external drive that is not always mounted.

shiftkey commented 4 months ago

The mention of winston-transport is related to logs, and I wonder if there's something related to where logs are being written to that would explain this error. ~/.config/GitHub Desktop/logs/ is where logs are written to - is there something unexpected about your setup that might suggest that this directory is not present?

github-actions[bot] commented 3 months ago

Thank you for your issue! We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, this issue will automatically reopen.