gotemp icon indicating copy to clipboard operation
gotemp copied to clipboard

ArangoDB doesnt work with apple M1

Open dgastudio opened this issue 4 years ago • 13 comments

Pulling arangodb (library/arangodb:3.7.6)...

3.7.6: Pulling from library/arangodb

ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries Failed to deploy 'Compose: docker-compose.yml': docker-compose process finished with exit code 1

https://github.com/arangodb/arangodb-docker/issues/53

it's possible to run the project without it?

thank you

dgastudio avatar Feb 09 '21 17:02 dgastudio

Without making any modifications to the application code: The user service and the audit service do not depend on data coming from ArangoDB. So, you could just start does two services. That should give you the full visibility on running the services, pulling and modifying data, pushing data to Timescale through NATS. So, in the Makefile start command you can just replace

docker-compose up -d usersrv customersrv productsrv promotionsrv auditsrv

with

docker-compose up -d usersrv auditsrv

You should be able to login, create and update users and see the changes flow to NATS.

FWIW, I did hear a couple of days ago that Arango is close to putting out a version that will work in the Apple M1 but they did not specify a date

camba1 avatar Feb 09 '21 22:02 camba1

You could probably easily get the promotions to come up by commenting out the customer name lookup: In /promotion/server/handler.go find GetPromotionById and comment out getLookups(ctx, outPromotion). Also, in the docker-compose file, remove the customersrv from the depends_on of the promotionsrv service so it won't try to start the customer service. Note that I have not tried this but I think it should work.

camba1 avatar Feb 09 '21 22:02 camba1

Muchas gracias! aunque http://localhost:8080/user/userSrv/auth devuelve error, al menos tengo algo con que empezar.

dgastudio avatar Feb 10 '21 15:02 dgastudio

De nada. Que error te aparece?

camba1 avatar Feb 10 '21 17:02 camba1

registro Failed to join multicast group on all interfaces!

login ( default values) user not found

dgastudio avatar Feb 10 '21 18:02 dgastudio

hum...eso cuando corres la application con docker-compose ? (make start). Multicast es usado por go-micro para service discovery.

camba1 avatar Feb 10 '21 20:02 camba1

Hola Juan si, multicast no funciona correctamente en macos buscare alguna otra realizacion

dgastudio avatar Feb 11 '21 18:02 dgastudio

gotemp % make start docker-compose up -d usersrv customersrv productsrv promotionsrv auditsrv [+] Running 1/8 ⠧ redis Pulling 3.8s ⠿ f3ac85625e76 Already exists 0.0s ⠏ 452c027ddcd0 Pulling fs layer 0.9s ⠏ 4d4b1033f074 Pulling fs layer 0.9s ⠏ f4879444970a Pulling fs layer 0.9s ⠏ 5d458efbd05a Waiting 0.9s ⠏ bbc6365a769e Waiting 0.9s ⠧ arangodb Pulling 3.8s no matching manifest for linux/arm64/v8 in the manifest list entries make: *** [start] Error 18

Have a solution to fix it?

ProFive avatar Nov 28 '22 09:11 ProFive

The version of arangodb image that I am using 3.6.4 is not available for arm processors. But, it seems that the last couple of versions of arangodb support it according to Docker hub. You could try updating the Docker compose file to use one of the newer versions and see if it works. Unfortunately, I do not have an arm based machine so I cannot test it myself. 

camba1 avatar Nov 28 '22 15:11 camba1

@camba1 arangodb 3.10.0 is already installed and up-to-date.

docker --version Docker version 20.10.21, build baeda1f

ProFive avatar Nov 29 '22 00:11 ProFive

@camba1 Thanks I changed image: arangodb:3.6.4 to image: arangodb:3.10.0 => Fixed "no matching manifest for linux/arm64/v8 in the manifest list entries"

The new issue

=> CANCELED [gotemp-auditsrv internal] load metadata for docker.io/library/golang:l 0.0s failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "Dev": invalid reference format: repository name must be lowercase make: *** [start] Error 17

ProFive avatar Nov 29 '22 00:11 ProFive

=> ERROR [dev 3/9] RUN go get github.com/githubnemo/CompileDaemon 0.2s

[dev 3/9] RUN go get github.com/githubnemo/CompileDaemon: #0 0.160 go: go.mod file not found in current directory or any parent directory.

ProFive avatar Nov 29 '22 01:11 ProFive

Hum… not sure what that error is all about. Maybe related to this? https://stackoverflow.com/questions/66894200/error-message-go-go-mod-file-not-found-in-current-directory-or-any-parent-dire

camba1 avatar Nov 29 '22 13:11 camba1