Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 为什么meteor无法打开数据库文件?_Ubuntu_Meteor_Filesystems_Readonly_Busybox - Fatal编程技术网

Ubuntu 为什么meteor无法打开数据库文件?

Ubuntu 为什么meteor无法打开数据库文件?,ubuntu,meteor,filesystems,readonly,busybox,Ubuntu,Meteor,Filesystems,Readonly,Busybox,每次我尝试通过以下方式启动meteor应用程序时: sirbt@sirbt-K54C:~/Bgain$ meteor 我收到以下错误消息: Retrying after error { [Error: SQLITE_CANTOPEN: unable to open database file] errno: 14, code: 'SQLITE_CANTOPEN' } Retrying after error { [Error: SQLITE_CANTOPEN: unable to op

每次我尝试通过以下方式启动meteor应用程序时:

sirbt@sirbt-K54C:~/Bgain$ meteor
我收到以下错误消息:

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:
at Promise.await (/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:39:12)
at Db._execute (/tools/packaging/catalog/catalog-remote.js:355:8)
at /tools/packaging/catalog/catalog-remote.js:144:10
at Db._retry (/tools/packaging/catalog/catalog-remote.js:156:16)
at new Db (/tools/packaging/catalog/catalog-remote.js:143:8)
at RemoteCatalog.initialize (/tools/packaging/catalog/catalog-remote.js:694:15)
at /tools/cli/main.js:844:20
以下是我的系统的一些背景,可能有助于破译这个问题。我运行Ubuntu 15:10

最近我注意到,每次我启动电脑时,它都是在Ubuntu故障保护模式下启动的。无论我做什么,最终都会进入Busybox模式:

(initrafs)

要启动Ubuntu,我必须输入以下命令:

fsck -y /dev/sda1
fsck-y/dev/sda1

我的文件系统现在似乎也是一个只读文件系统。 一项小小的研究还表明,我在尝试运行meteor时出现的错误是由于缺乏许可


请帮助我恢复设置,以便我能够启动meteor应用程序。

尝试使用sudo创建meteor项目,请参阅我设法通过恢复系统来解决问题

我重新启动了我的电脑,它在Ubuntu故障保护模式下启动。故障保护模式运行Busybox模式,显示:

(initrafs)

然后输入以下命令:

fsck -y /dev/sda1
Ubuntu现在启动,我可以登录到桌面。 然后我重新安装了桌面

按Ctrl+Alt+F1

我用我的用户名和密码登录

然后我贴了这个:

sudo apt-get install --reinstall gnome-session
这恢复了我的系统。现在我可以启动我的meteor应用程序了,没有任何问题


多亏了我,这是因为权限问题

检查文件夹权限-
.meteor

sudo chown -R renjith:renjith /home/renjith/.meteor/

这解决了我的问题

我希望能够像往常一样启动meteor应用程序,而不必使用sudo。