Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefixes.yml #27

Closed
mahtin opened this issue Oct 17, 2019 · 2 comments
Closed

prefixes.yml #27

mahtin opened this issue Oct 17, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@mahtin
Copy link
Contributor

mahtin commented Oct 17, 2019

If prefixes is read only or created and owned by a different owner; then this error is thrown:

Error: EACCES: permission denied, open 'prefixes.yml'

This is because the file can be written back under some conditions. See https://github.com/nttgin/BGPalerter/blob/master/inputs/inputYml.js#L58

$ ls -l prefixes.yml 
-r--r--r--  1 martin  staff  289 Oct 17 02:58 prefixes.yml
$
$ ./bgpalerter-macos-x64 
pkg/prelude/bootstrap.js:1185
      throw error;
      ^

Error: EACCES: permission denied, open 'prefixes.yml'
    at Object.openSync (fs.js:438:3)
    at Object.fs.openSync (pkg/prelude/bootstrap.js:490:32)
    at Object.writeFileSync (fs.js:1189:35)
    at _loop (/snapshot/build/inputs/inputYml.js:161:26)
    at new InputYml (/snapshot/build/inputs/inputYml.js:193:9)
    at Object.<anonymous> (/snapshot/build/env.js:200:13)
    at Module._compile (pkg/prelude/bootstrap.js:1261:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:710:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
$ 
@massimocandela
Copy link
Member

Thanks for reporting this. It is indeed an error, especially because that condition can be reached also if the file is malformed (and not only when missing).

@massimocandela massimocandela added the bug Something isn't working label Oct 21, 2019
@massimocandela
Copy link
Member

This has been fixed in release: https://github.com/nttgin/BGPalerter/releases/tag/v1.20.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants