question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Frightening error messages about vmlinuz, initrd.img

See original GitHub issue

After just installing react-admin on a freshly created Razzle app, I get frightening messages:

(node:3346932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/vmlinuz'
(node:3346932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:3346932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/vmlinuz.old'
(node:3346932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:3346932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/initrd.img'
(node:3346932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
(node:3346932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/initrd.img.old'
(node:3346932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
(node:3346932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/vmlinuz'
(node:3346932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)
(node:3346932) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/vmlinuz.old'
(node:3346932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)

If a script is trying to reach my Linux bootloader, something seriously dangerous is occurring here…

In some cases, the error logs also showed this ENOENT error for $HOME/.steampath

The only other similar report I could find with Google is there: https://stackoverflow.com/questions/63165044/vue-cli-outputting-very-concerning-error-security-question

I did a full-text search (“vmlinuz”, “initrd”) with VScode, ripgrep and grep. Nothing found.

I deleted my $HOME/.nvm, $HOME/.npm $HOME/node_modules and $HOME/.yarn before redoing the steps below but the same happened.

Steps to reproduce:

npx create-razzle-app myapp
cd myapp
npm start

No error message here. Razzle is working fine.

# Ctrl+c (to kill the Razzle server)
npm i react-admin
npm start

Here, I get the normal Razzle stdout and then the error messages pasted above.

Environment react-admin 3.9.4 Ubuntu 20.04

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
viblcommented, Oct 25, 2020

There seems to be a simple answer: these messages could just come from Node searching for node_modules in the project parent directories all the way to the filesystem root. (See https://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders). It might also try to follow symlinks in case they point to a node_modules directory, and emit an error each time it encounters a broken symlink in the process.

That’s plausible and reassuring. No malicious script involved.

I removed initrd.img, /initrd.img.old, /vmlinuz and /vmlinuz.old, which were indeed broken symlinks. So I shouldn’t get these errors anymore.

2reactions
shubham-rajodiyacommented, Apr 20, 2021

Solved: I was also facing the same issue few days before. This is because if any of the code is importing any library ( package ) and if that library ( package ) is not installed it will throw this error. In my case, I have used exceljs in one of my component. And without installing exceljs I was trying to start the project. After intsalling the exceljs package its working fine.

Just try and find which package you have missed to install. ( may be you are trying npm install but the package you were using is not present in package.json (ie ) ).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Potential security threat detected in build errors in a fresh ...
Sometimes, a few other messages appear, with "/vmlinuz" "/initrd.img.old", "/vmlinuz.old" and ".steampath" instead. Theses messages appear any ...
Read more >
Ran out of space on /boot partition... - Linux Mint Forums
I ran update, went to kernels, and removed all but the active and newer one... it ran into errors due to the lack...
Read more >
UEFI & Ubuntu netinstall crashing - iPXE forum
Hi, I am trying boot RHEL 6 OS. My code is shown as below. It is giving exec format error with error 2e008081....
Read more >
refind find vmlinuz but not initramfs-linux.img - SourceForge
I'm using Archlinux and trying to boot the standard kernel by using the EFISTUB. if I choose "vmlinuz" refind says: Starting vmlinuz
Read more >
shim-helpers-arm64-signed: post-install script fails with 'error ...
update-initramfs: Generating /boot/initrd.img-5.10.47-rock64-00005-g0df86ccf5feb ... E: Sub-process /usr/bin/dpkg returned an error code (1)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found