max-mapper / max-mapper/linux

Problem: `linux status` throws error if not booted once

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
451
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

npm install linux -g
linux init
linux status

Then I get this error:

/usr/local/lib/node_modules/linux/cli.js:232
      if (err) throw err
               ^

Error: ENOENT: no such file or directory, open '/Users/johndoe/some_project/linux/linux.pid'

Once I actually boot the VM for the first time it's fine:

$ sudo linux boot
Linux has booted { ip: '192.168.64.137',
  hostname: 'joe-pony-man-bearpig',
  pid: 1337 }
$ linux status
Linux is running { pid: 1337 }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at cli.js:232, where linux status encounters the missing linux.pid file after running linux init without booting. Reproduce with the commands in the issue and verify that linux status handles this unbooted state without throwing; confirm the existing running-status output still works after linux boot.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.