arcadedb icon indicating copy to clipboard operation
arcadedb copied to clipboard

Arcade does not start properly on M1 Mac

Open kai-baumann opened this issue 2 years ago • 5 comments

ArcadeDB Version: 22.2.1

JDK Version: 11.0.13_8

OS: MacOS 12.4 Apple M1 Pro

Expected behavior

I wanted to start the docker image of arcadedb on an M1 Mac. The Image starts normally and I can access the studio with port 2480.

Actual behavior

The image just fills the ram till the docker limit and gets killed by the oom killer (exit code 137). I tried to build the image with an arm linux image. That was successful but when i tried to start the image it just prints that I need to set the root password or use the generated one. This message gets printed every second. Setting the env vars does not seem to change this behaviour.

I use the following compose file to start the arcadedb:

---
version: '3.7'
    arcadedb:
        image: arcadedata/arcadedb:22.2.1
        container_name: relate-arcade
        restart: 'no'
        environment:
            arcadedb.server.defaultDatabases: 'Imported[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz}'
            arcadedb.server.rootPassword: 'playwithdata'
        ports:
            - '127.0.0.1:2480:2480'
            - '127.0.0.1:2424:2424'

Steps to reproduce

On an M1 Mac just use the docker compose file above. The ram gets filled and the application will be terminated with exit code 137.

kai-baumann avatar May 24 '22 07:05 kai-baumann

I guess with M1 the docker-compose uses, by default, some settings with smaller RAM. @arcade-player any idea about how to increase the RAM?

lvca avatar May 26 '22 21:05 lvca

Our docker image is targeted to amd64, we don't provide an arm64 or multiplatform one. AFAIU, such images are executed in emulation mode and I don't really know what can go wrong in this case. The idea is to enhance our build pipeline to emit a multiplatform image. I'm going to open a dedicated issue for that and link it here

#412

arcade-player avatar May 27 '22 06:05 arcade-player

Alright thanks for creating the issue.

kai-baumann avatar May 30 '22 13:05 kai-baumann

I've found a solution. Has still a problem no more related with CPU arch. I'll open PR in a couple of days.

arcade-player avatar Jul 11 '22 21:07 arcade-player

please, read this comment https://github.com/ArcadeData/arcadedb/pull/455#issuecomment-1192977710

arcade-player avatar Jul 29 '22 12:07 arcade-player

closing: pr is merged

robfrank avatar Sep 04 '22 19:09 robfrank