Skip to content

Error: EACCES: permission denied, open '/tmp/mkdp-nvim.log' #737

@rudenkornk

Description

@rudenkornk

name: Bug report on access error to log file on multi-user machines
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''


Describe the bug
Access error due to other user owning the same /tmp/mkdp-nvim.log file.
This happens whenever 2 users on the same machine want to use the plugin.

To Reproduce
Steps to reproduce the behavior:

  1. Run plugin with one user on the machine. Alternatively just such chown root /tmp/mkdp-nvim.log to emulate such behavior.
  2. Try running plugin as yourself.
  3. See error.

Expected behavior
Error-free behaviour even if other user on the same machine uses plugin

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Desktop (please complete the following information):

  • OS: NixOS

Log:

11:59:27 msg_show.echomsg log4js.fileAppender - Writing to file /tmp/mkdp-nvim.log, error happened  [Error: EACCES: permission denied, open '/tmp/mkdp-nvim.log'] {
11:59:27 msg_show.echomsg   errno: -13,
11:59:27 msg_show.echomsg   code: 'EACCES',
11:59:27 msg_show.echomsg   syscall: 'open',
11:59:27 msg_show.echomsg   path: '/tmp/mkdp-nvim.log'
11:59:27 msg_show.echomsg }
11:59:27 msg_show.echomsg log4js.fileAppender - Writing to file /tmp/mkdp-nvim.log, error happened  Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
11:59:27 msg_show.echomsg     at _write (node:internal/streams/writable:491:11)
11:59:27 msg_show.echomsg     at Writable.write (node:internal/streams/writable:510:10)
11:59:27 msg_show.echomsg     at /home/USER2222/.local/share/nvim/lazy/markdown-preview.nvim/node_modules/streamroller/lib/RollingFileWriteStream.js:148:30
11:59:27 msg_show.echomsg     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
11:59:27 msg_show.echomsg   code: 'ERR_STREAM_DESTROYED'
11:59:27 msg_show.echomsg }
11:59:29 msg_showcmd :
❯ ls -la /tmp/mkdp-nvim.log
.rw-r--r-- 99k USER1111 10 Jan 00:19  /tmp/mkdp-nvim.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions