Open gazdawg opened 7 years ago
The rebuild method fails via the documented example with the following error:
EBUSY: resource busy or locked, unlink 'C:\Work\Mac\node_modules\mac-lookup\oui.db'
The solution I found was to simply close the sqlite3 database before attempting to unlink / delete it.
That is, before the unlink call at line 88 (in the index.js source file)
fs.unlink(ml.options.sql, function(err) {
Insert this call to solve the locked resource problem
ml.options.db.close();
Hope this helps somebody out there...
N.B I am using Windows 10 and Node v4.5.0
i suppose this happens when the module uses the sqlite file ( eg: accessing first ) before a rebuild is called, thanks for spotting it
The rebuild method fails via the documented example with the following error:
The solution I found was to simply close the sqlite3 database before attempting to unlink / delete it.
That is, before the unlink call at line 88 (in the index.js source file)
Insert this call to solve the locked resource problem
Hope this helps somebody out there...
N.B I am using Windows 10 and Node v4.5.0