Memgraph 2.1.1 在搭载 M1 芯片的 MacBook Air 上运行时出现错误。

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

Error when running Memgraph 2.1.1 on MacBook Air with M1

问题

我想在Docker中运行Memgraph 2.1.1。我有一台装有M1芯片的MacBook Air。当我尝试运行它时,我遇到了以下错误:

> docker run -p 7687:7687 memgraph/memgraph
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
You are running Memgraph v2.1.1
To get started with Memgraph, visit https://memgr.ph/start
qemu: uncaught target signal 6 (Aborted) - core dumped

在我的Docker日志中,我还可以看到一些错误信息:

memgraph@e01736c43b23:/usr/lib/memgraph$ cat /var/log/memgraph/memgraph_2023-02-13.log
[2023-02-13 11:16:17.124] [memgraph_log] [warning] Invalid license key string. To use Enterprise features please set it to a valid string using the following query:
SET DATABASE SETTING "enterprise.license" TO "your-license-key"
[2023-02-13 11:16:17.254] [memgraph_log] [warning] No snapshot or WAL file found. For more details, visit https://memgr.ph/durability.
[2023-02-13 11:17:50.221] [memgraph_log] [warning] Using non-secure Bolt connection (without SSL). For more details, visit https://memgr.ph/ssl.
[2023-02-13 11:18:03.589] [memgraph_log] [critical]
Assertion failed in file /memgraph/src/utils/async_timer.cpp at line 144.
	Expression: 'timer_create(CLOCK_MONOTONIC, &notification_settings, &timer_id_) == 0'
	Message: 'Couldn't create timer: (22) Invalid argument'

我该如何在Docker中启动Memgraph?

英文:

I want to run Memgraph 2.1.1 inside Docker. I have MacBook Air with M1. When I try to run it I get the error:

> docker run -p 7687:7687 memgraph/memgraph
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
You are running Memgraph v2.1.1
To get started with Memgraph, visit https://memgr.ph/start
qemu: uncaught target signal 6 (Aborted) - core dumped

In my docker log I can see also some errors:

memgraph@e01736c43b23:/usr/lib/memgraph$ cat /var/log/memgraph/memgraph_2023-02-13.log
[2023-02-13 11:16:17.124] [memgraph_log] [warning] Invalid license key string. To use Enterprise features please set it to a valid string using the following query:
SET DATABASE SETTING "enterprise.license" TO "your-license-key"
[2023-02-13 11:16:17.254] [memgraph_log] [warning] No snapshot or WAL file found. For more details, visit https://memgr.ph/durability.
[2023-02-13 11:17:50.221] [memgraph_log] [warning] Using non-secure Bolt connection (without SSL). For more details, visit https://memgr.ph/ssl.
[2023-02-13 11:18:03.589] [memgraph_log] [critical]
Assertion failed in file /memgraph/src/utils/async_timer.cpp at line 144.
	Expression: 'timer_create(CLOCK_MONOTONIC, &notification_settings, &timer_id_) == 0'
	Message: 'Couldn't create timer: (22) Invalid argument'

What can I do to start Memgraph in docker?

答案1

得分: 2

你需要升级 Memgraph 到较新的版本。对 M1 的支持在 Memgraph 2.2 中添加。

英文:

You will need to upgrade Memgraph to newer version. Support for M1 was added in Memgraph 2.2.

huangapple
  • 本文由 发表于 2023年2月14日 00:40:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/75438776.html
匿名

发表评论

匿名网友

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

确定