66

Meteor errors — unable to open database file – Renjith VR – Medium

 6 years ago
source link: https://medium.com/@Renjthvr/meteor-errors-unable-to-open-database-file-61d83a4259c4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Meteor errors — unable to open database file

1*NoL5KqhBHkxUyi_cWvvUlg.png

Meteor

Are you using Ubuntu? If you have any issues with meteor command on your project folder.

your-app/meteor

and you got some error messages like this.

Retrying after error { [Error: SQLITE_CANTOPEN: unable to open     database file]
errno: 14, code: 'SQLITE_CANTOPEN' }
Retrying after error { [Error: SQLITE_CANTOPEN: unable to open database file]
errno: 14, code: 'SQLITE_CANTOPEN' }
/home/sirbt/.meteor/packages/meteor-tool/.1.4.2_3.1qvo8je++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:190
throw error;
^

Error: SQLITE_CANTOPEN: unable to open database file
at Error (native)
=> awaited here:

It is just a folder permission issue.

you can find the .meteor folder under your home folder

/home/user/.meteor

And change the folder permission.

chown -R owner-user:owner-group /home/user/.meteor/

And run again.

If you got any issues with npm, do the same for the .npm folder. You can find the .npm folder under your home folder

/home/user/.npm

And change the folder permission.

chown -R owner-user:owner-group /home/user/.npm/

I hope you got the solution.

Happy coding! Enjoy with Meteor.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK