What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
> π [SOLUTION] #MacUsers: Many thanks @U02P7B6K2LC @U013M1LC46A @UJJQTT1QQ
π [SOLUTION] #MacUsers: Many thanks @U02P7B6K2LC @U013M1LC46A @valerii.trots @U01LE4BMBK7 I encountered this error:
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
β’ Double check if you are using Docker Compose V1docker-compose version
β’ Double check docker on terminalwhich docker-compose
and if you see the output/opt/homebrew/bin/docker-compose
itβs not supposed to be installed with brew, docker for mac handles that itself.brew uninstall docker-compose
to uninstall it.
β’ On Docker desktop app make sure to uncheck βUse Docker Compose V2β from the setting. Now try to reinstall the project.
β’ For M1 users could be that for some reason terminal works in x86 mode and because of this docker could not work when you start command from terminal. This command could help to switch terminal to the right mode (for zsh)env /usr/bin/arch -arm64 /bin/zsh --login
β’ There is a PR branch that specifically works on M1 Macs Apple m1 adjustments by volhov Β· Pull Request #225 Β· spryker/docker-sdk
β’ So pull the docker SDK as normal using:git clone <https://github.com/spryker/docker-sdk.git> --single-branch docker
β’ Then cd into the docker directory:cd docker
β’ Now fetch and checkoutΒ the PR branch:git fetch origin pull/225/head:apple-m1-adjustments
β’git checkout apple-m1-adjustments
β’ Come back up to the main directory:cd ../
β’ Then re-run the bootstrap:docker/sdk bootstrap deploy.dev.yml
β’ Now run the SDK again:docker/sdk up
β’ You will most likely run into this error:unableΒ toΒ reconcileΒ MutagenΒ sessions:Β unableΒ toΒ flushΒ synchronizationΒ session(s):Β unableΒ toΒ flushΒ session:Β sessionΒ is notΒ currentlyΒ ableΒ toΒ synchronize
β’ run:docker/sdk trouble
β’ and then rundocker/sdk up
again
Booomm!!! It works π
Comments
-
Hey! Iβm so glad you got this sorted and I wish I could have helped more. Many thanks for sharing your solution back with the communityβ¦ I will write this up in my companies Confluence and share it back with any new Spryker learners who ask. π π
0 -
@valerii.trots would be nice if we could get all of this written down in the official docs. Perhaps even a dedicated M1 setup page with troubleshooting FAQs? There's already been a lot of issues with the M1s and the same questions/issues will keep popping up in the future...
0 -
As soon as there is official support of M1 probably. But I'll forward this internally to people responsible of this.
0 -
when will that be @valerii.trots?
0 -
Speaking of which: When are you planning to merge this PR? is there any timeline or any blockers that still need fixing?
New devs will only get M1 machines if you donβt want to buy refurbished and stay on the Mac path.
0 -
The plan is to have this Q1 AFAIK.
0 -
@valerii.trots who from Spryker is in lead (owner) when it comes to this topic?
0 -
hi! you can contact me
0 -
Thank you so much for this!! In combination with https://sprykercommunity.slack.com/archives/CMYFJCG2E/p1643812049583259?thread_ts=1642429030.002900&cid=CMYFJCG2E I was finally able to get the demo-shop running on my M1 machine! π₯³
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
Hello everyone... sooner or later it had to be my turn to struggle with ARM architecture....
I followed all the advice in the channel... Good! The installation starts, but then in the Build-static section it seems to fail....
If i run the command
npm ci --prefer-offline
directly in the cli then i got the following error (see second screenshot attached)On Intel Mac everything is working good. Node-Sass dependency in package.json is
~4.14.1
that should be compatible with node v.14 installed in cli image.But if u see better, it try to download a binary that does not exits (maybe with wrong arch ?)....
OT: why we use still node-sass and not dart-sass?? Then we will have no dependecies more from which version of node and g++, make, python2 etc....
@valerii.trots U can sure help me... maybe the same problem was posted in another thread but I missed it... Thank in advance an all for your help/suggestion etc...
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
i forgot -> Image used is:
spryker/php:8.0-alpine3.13
0 -
iirc there were some issues with building zed ui on my m1 -> they werenβt built properly during project installation - something about wrong arch for some npm module(s) (might be exactly that one from your screenshot)
0 -
the fix was to manually run the zed ui build command directly from the consoleβ¦
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
Yes, the node-sass try to download a binary for wrong arch...
I think that the better solution is to switch to dart-sass...0 -
but my project install did not stop because of the failing asset build, so not sure if itβs the same issue as you are having right now
0 -
maybe as a workaround remove the asset build from the project install script, and then build them manually post install
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
yes... i can try so.. but i don't understand why the others say that everything works on m1...
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
i will try to replace node-sass with dart-sass (there is also a PR in private repo suite on spryker since 1 year still open.... i don't understand why spryker don't switch to dart-sass)
0 -
everything
is a bit of an overstatement, butmost things
definitely do work. you need some workarounds here and there, and docker is significantly slower than on intels, but itβs at least usableβ¦0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
what mean with "slower" ??? too slower or what?
some peopel in channel say also that it run very fast
0 -
the m1 cpu itself is extremely fast - but that does not translate to docker as thereβs (afaik) 2 layers of virtualization happening when running docker images on m1
0 -
I did a lot of performance tests 2 months ago - m1 ended up being 2-4 times slower than intel
0 -
+-------------------------------+------------------+-------------------------+----------------------+ | benchmark | WSL2 - optimized | Mac - Intel - optimized | Mac - M1 - optimized | +-------------------------------+------------------+-------------------------+----------------------+ | HomePageBench | 63.338ms | 231.712ms | 1.028s | | CatalogPageBench | 481.861ms | 1.240s | 5.422s | | LoginBench | 312.840ms | 391.086ms | 1.023s | | AddToGuestCartBench | 146.357ms | 182.833ms | 624.561ms | | ConsoleTransferGenerateBench | 1.793s | 2.353s | 9.280s | | ConsoleFrontendYvesBuildBench | 1.265m | 2.551m | 5.611m | +-------------------------------+------------------+-------------------------+----------------------+
this would be a summary of those tests
0 -
though to be fair, a lot could have changed since then, so Iβm hoping the final version of sprykerβs m1 images will be at least as fast as the intelsβ¦
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
With apple-m1 experimental branch and dart-sass instead node-sass it works on m1 and it is very fasttttt... faster als my intel mac
0 -
Updating
@spryker/oryx-for-zed
to the latest version (2.11.4) worked for me as well. Thank you for the hint @UL65CH0MC!0 -
why we use still node-sass and not dart-sass?
0 -
HI A @U03A37J26NP Let follow this thread. Thank @U032PGXJ2N4 for your contribute.
0 -
@U03H00RBWJ1 let follow this thread
0 -
Hi everyone,
Do you have any issue like that? Iβm working on Macbook M1 and faced this issue. Thanks for your help! 0.0sError response from daemon: create ././docker/deployment/default/env/cli: "././docker/deployment/default/env/cli" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 73 Spryker News
- 910 Developer Corner
- 770 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random