Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArangoDB doesnt work with apple M1 #9

Open
dgastudio opened this issue Feb 9, 2021 · 13 comments
Open

ArangoDB doesnt work with apple M1 #9

dgastudio opened this issue Feb 9, 2021 · 13 comments
Labels
question Further information is requested

Comments

@dgastudio
Copy link

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

arangodb/arangodb-docker#53

it's possible to run the project without it?

thank you

@camba1
Copy link
Owner

camba1 commented Feb 9, 2021

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
Copy link
Owner

camba1 commented Feb 9, 2021

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 camba1 added the question Further information is requested label Feb 9, 2021
@dgastudio
Copy link
Author

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

@camba1
Copy link
Owner

camba1 commented Feb 10, 2021

De nada.
Que error te aparece?

@dgastudio
Copy link
Author

registro
Failed to join multicast group on all interfaces!

login ( default values)
user not found

@camba1
Copy link
Owner

camba1 commented Feb 10, 2021

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

@dgastudio
Copy link
Author

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

@ProFive
Copy link

ProFive commented Nov 28, 2022

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?

@camba1
Copy link
Owner

camba1 commented Nov 28, 2022 via email

@ProFive
Copy link

ProFive commented Nov 29, 2022

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

docker --version
Docker version 20.10.21, build baeda1f

@ProFive
Copy link

ProFive commented Nov 29, 2022

@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
Copy link

ProFive commented Nov 29, 2022

=> 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.

@camba1
Copy link
Owner

camba1 commented Nov 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants