Tag: mnesia

系统重新启动后,Mnesia无法识别数据(no_exists错误)

我正在Docker容器中构build一个erlang应用程序。 我的数据目录作为docker卷连接。 我正在使用: application:set_env(mnesia, schema_location, disc),和{disc_copies, Nodes} 。 当我重新启动应用程序: docker-composer stop myapp && docker-composer up myapp 所有工作正常,但是当我完全closures它: sudo systemctl restart docker docker-composer up -d Mnesia停止识别我的数据。 重新启动计算机时也是如此。 基本上(在这个“硬”重启之后)Mnesia正常启动,但是当我尝试从它读取任何东西时,我得到一个错误: {running_method,getTasksByProjectId} terminate reason: {aborted,{no_exists,mtm_tasks}} terminate reason: {{aborted,{no_exists,mtm_tasks}}, {gen_server,call, [{global,tasks_da_serv}, {get_tasks_by_project_id, "j1xvqric-2oj2q784xieccowg8880"}]}} =ERROR REPORT==== 8-Jun-2017::10:29:04 === ** Generic server tasks_da_serv terminating ** Last message in was {get_tasks_by_project_id, "j1xvqric-2oj2q784xieccowg8880"} ** […]