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.

Error: Failed to flush to storage on DB Startup

See original GitHub issue

I’m running a project inside a vagrant box and get this error on the app startup.

Linux vagrant-ubuntu-trusty-64 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

vagrant@vagrant-ubuntu-trusty-64:/vagrant/alurapic$ npm start

alurapic@1.0.0 start /vagrant/alurapic node server.js

Banco data.db pronto para uso Servidor escutando na porta: 3000 /vagrant/alurapic/node_modules/nedb/lib/datastore.js:77 if (err) { throw err; } ^

Error: Failed to flush to storage at /vagrant/alurapic/node_modules/nedb/lib/storage.js:63:19 at FSReqWrap.oncomplete (fs.js:82:15)

npm ERR! Linux 3.13.0-79-generic npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start” npm ERR! node v4.3.2 npm ERR! npm v2.14.12 npm ERR! code ELIFECYCLE npm ERR! alurapic@1.0.0 start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alurapic@1.0.0 start script ‘node server.js’. npm ERR! This is most likely a problem with the alurapic package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node server.js npm ERR! You can get their info via: npm ERR! npm owner ls alurapic npm ERR! There is likely additional logging output above. npm ERR! Linux 3.13.0-79-generic npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start” npm ERR! node v4.3.2 npm ERR! npm v2.14.12 npm ERR! path npm-debug.log.554385b17e09696d528b9176a40549ad npm ERR! code ETXTBSY npm ERR! errno -26 npm ERR! syscall rename

npm ERR! ETXTBSY: text file is busy, rename ‘npm-debug.log.554385b17e09696d528b9176a40549ad’ -> ‘npm-debug.log’ npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /vagrant/alurapic/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
cmgriffingcommented, Aug 28, 2016

I realize this is a closed issue, but it is the highest ranked search result for this problem.

For the sake of anyone finding this through Google, I was able to fix this issue in my own environment by making sure that vagrant synced the folder using NFS.

2reactions
ericbladecommented, Oct 2, 2019

I recognize that this is old, but … yeah. Not an internal node problem. You simply can’t fsync on some types of file systems.

It would be a correct solution, if this is triggered via calls to watch, to catch the EINVAL error, and either take the alternative route (watch via poll), or just not watch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FULL COPY ONLY BACKUP ON Secondary replica blocking ...
Dear Folks,. While Full copy only backup is running on secondary replica it is blocking background process DB STARTUP command for that ...
Read more >
Top 3 Ways to Fix “No Space Left on Device” Error in Linux
Fix 1: Restart Processes Using Deleted Files ... The most probable cause of the “No space left on device” error is a process...
Read more >
How to fix InnoDB corruption cases for the MySQL databases ...
Start the MySQL service. If the service fails to start, set the value of the parameter innodb_force_recovery to a greater value and try...
Read more >
Make running MySQL with InnoDB flush everything to file to ...
No, there is no way to ensure InnoDB flushes everything to disk, except by doing a clean shutdown of mysqld. InnoDB has a...
Read more >
How to Reseed a Failed Database Copy in Exchange Server ...
Recovery/restore will fail with error -566. If this condition persists then please restore the database from a previous backup. This problem is likely...
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