如何修复AGE Viewer中的“元数据加载错误”?

huangapple go评论102阅读模式
英文:

How Do I Fix 'Metadata Load Error' in AGE Viewer?

问题

使用 npm start 启动 AGE Viewer 时,在我的终端中出现以下错误。

错误: 未连接
    位置:/home/hallixon/age-viewer/backend/src/controllers/databaseController.js:64:19
    ...
info: ::ffff:127.0.0.1 - - [05/Aug/2023:04:50:51 +0000] "POST /api/v1/db/meta HTTP/1.1" 500 51
 { "timestamp": "2023-08-05 05:50:51" }
错误: 未连接
    位置:/home/hallixon/age-viewer/backend/src/controllers/databaseController.js:54:19
    ...
info: ::ffff:127.0.0.1 - - [05/Aug/2023:04:50:51 +0000] "GET /api/v1/db HTTP/1.1" 500 51
 { "timestamp": "2023-08-05 05:50:51" }
info: ::ffff:127.0.0.1 - - [05/Aug/2023:04:50:51 +0000] "GET /api/v1/miscellaneous HTTP/1.1" 304 -
 { "timestamp": "2023-08-05 05:50:51" }

然而,AGE Viewer 仍然可以在端口 3000 上正常运行。

现在,我正在尝试连接到我的 Viewer 数据库,但我收到了错误消息 'Metadata Load Error'。
如何修复AGE Viewer中的“元数据加载错误”?

我还注意到我的图形、节点和边缘的信息不见了。单击下拉菜单以选择 Current Graph 不显示我的任何图形。

我期望显示有关数据库中现有图形、节点和边缘的信息,并且在连接到我的数据库时不会出现错误。

英文:

When using npm start to start AGE Viewer, I get the following error in my terminal.

Error: Not connected
    at _callee4$ (/home/hallixon/age-viewer/backend/src/controllers/databaseController.js:64:19)
    at tryCatch (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
    at Generator.<anonymous> (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
    at Generator.next (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
    at asyncGeneratorStep (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
    at /home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
    at new Promise (<anonymous>)
    at apply (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
    at getMetadata (/home/hallixon/age-viewer/backend/src/controllers/databaseController.js:66:6)
info: ::ffff:127.0.0.1 - - [05/Aug/2023:04:50:51 +0000] "POST /api/v1/db/meta HTTP/1.1" 500 51
 {"timestamp":"2023-08-05 05:50:51"}
Error: Not connected
    at _callee3$ (/home/hallixon/age-viewer/backend/src/controllers/databaseController.js:54:19)
    at tryCatch (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
    at Generator.<anonymous> (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
    at Generator.next (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
    at asyncGeneratorStep (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
    at /home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
    at new Promise (<anonymous>)
    at apply (/home/hallixon/age-viewer/backend/node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12)
    at getStatus (/home/hallixon/age-viewer/backend/src/controllers/databaseController.js:56:6)
info: ::ffff:127.0.0.1 - - [05/Aug/2023:04:50:51 +0000] "GET /api/v1/db HTTP/1.1" 500 51
 {"timestamp":"2023-08-05 05:50:51"}
info: ::ffff:127.0.0.1 - - [05/Aug/2023:04:50:51 +0000] "GET /api/v1/miscellaneous HTTP/1.1" 304 -
 {"timestamp":"2023-08-05 05:50:51"}

Still, AGE Viewer runs just fine on port 3000.

Now, I'm trying to connect to my database on Viewer, and I get the error 'Metadata Load Error'.
如何修复AGE Viewer中的“元数据加载错误”?

I also noticed that information about my graphs, nodes, and edges are missing. Clicking the dropdown to select Current Graph does not show any of my graphs.

I expected that information about the existing graphs, nodes, and edges in the database were displayed, and that there were no errors on connection to my database.

答案1

得分: 1

错误指向AGE后端的databaseController.js文件,您需要检查:

  • 数据库驱动程序
  • 数据库凭据配置

因此,您需要查看上述提到的驱动程序和数据库配置以解决此元数据加载错误。

英文:

The error is pointing to databaseController.js file of AGE backend and you need to check:

  • Database Driver
  • Database credential configuration

So, you need to review the above mentioned driver and database configuration to solve this metadata load error.

答案2

得分: 1

错误可能发生是因为您使用的pg版本> 12。在这种情况下,age-viewer的后端文件夹中应该有一个.version sql文件。因为有一个代码来获取sql版本并将其与.sql文件匹配,否则元数据端点将无法正常响应,因此图形也无法加载。

英文:

The error may be happening because you are using pg version > 12.
In that case there should be a .version sql file in the backend folder of age-viewer.
Because there's a code to fetch the sql version and match it with the .sql file, without which metadata endpoint will not give proper response, and so graph will also not load.

答案3

得分: 0

A postgres process should be running before you start AGE Viewer.
The steps should be as follows:

  • Start a Postgres process
  • cd into the AGE Viewer directory and run npm run start
  • Connect to database on AGE Viewer.

Ensure the details of the postgres process match the details entered in AGE Viewer.

英文:

A postgres process should be running before you start AGE Viewer.
The steps should be as follows:

  • Start a Postgres process
  • cd into the AGE Viewer directory and run npm run start
  • Connect to database on AGE Viewer.

Ensure the details of the postgres process match the details entered in AGE Viewer.

答案4

得分: 0

你可能忘记在运行 AGE Viewer 之前启动了 PostgreSQL 服务器

cd 到/postgresql
bin/pg_ctl -D <cluster_name> -l logfile start

cd 到/age-viewer
npm run start
英文:

You may have forgotten to start the PostgreSQL server before running AGE Viewer

cd path/to/postgresql
bin/pg_ctl -D &lt;cluster_name&gt; -l logfile start

cd path/to/age-viewer
npm run start

答案5

得分: 0

这个错误可能是因为你的pg版本导致的。可能是大于12。请确保检查版本,或者在运行AGE Viewer之前可能忘记启动了PostgreSQL服务器。

cd path/to/postgresql
bin/pg_ctl -D <cluster_name> -l logfile start

cd path/to/age-viewer
npm run start
英文:

This error may be happening because of your pg version. May be its greater than 12. Make sure to check the version or You may have forgotten to start the PostgreSQL server before running AGE Viewer.

cd path/to/postgresql
bin/pg_ctl -D &lt;cluster_name&gt; -l logfile start

cd path/to/age-viewer
npm run start

答案6

得分: 0

可能是由于使用高于12的PostgreSQL版本而导致错误发生。在这种情况下,Age-Viewer的后端文件夹中应该有一个.version.sql文件。这个文件是必不可少的,因为它包含了检索SQL版本并将其与相应的.sql文件进行比较的代码。如果没有这个必要的步骤,元数据端点将无法提供准确的响应,因此图形将无法正确加载。

英文:

It's possible that the error is occurring due to the usage of PostgreSQL versions higher than 12. In such situations, there should be a .version.sql file located in the backend folder of Age-Viewer. This file is essential because it contains code to retrieve the SQL version and compare it with the corresponding .sql file. Without this essential step, the metadata endpoint won't provide accurate responses, and consequently, the graph won't load correctly.

答案7

得分: -1

确保在运行AGE-Viewer之前通过以下方式运行Postgres服务器:

bin/pg_ctl -D demoDataBase -l logfile start

然后进入age-viewer存储库并运行此命令:

npm run start

最后,在这个部分(照片)检查两个凭据是否完全相同。

picture

英文:

Make sure to run the Postgres server before running AGE-Viewer by using

bin/pg_ctl -D demoDataBase -l logfile start

and then cd into the age-viewer repository and run this commmand

npm run start

Lastly, in this part (photo) check both the credentials are exact same.

picture

答案8

得分: -1

在启动age-viewer项目之前,请运行PostgreSQL服务器:

bin/pg_ctl -D demo -l log start

在运行npm run start命令之前,请确保你在age-viewer目录中。

英文:

run the postgresql server before start the age-viewer project:

bin/pg_ctl -D demo -l log start

make sure that you are inside the age-viewer directory before run the npm run start command.

答案9

得分: -1

确保在使用 AGE Viewer 时使用了合适的 PostgreSQL 版本。此外,在访问 AGE Viewer 之前,请确保后台正在运行 PostgreSQL 服务器。

英文:

You need to make sure an appropriate postgres version is being used along with the AGE Viewer. Moreover, make sure a postgres server is running in the background before accessing the AGE Viewer.

huangapple
  • 本文由 发表于 2023年8月5日 13:24:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76840251.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定