These are chat archives for reactioncommerce/reaction

24th
May 2019
Janus Reith
@janus-reith
May 24 07:18
@ashwinsoni Does it not reload at all, or did you just not wait long enough?
The Refresh times are quite slow on the meteor based backend, but usually the page would become unresponsive in the meantime and you could notice in the console logs that it is rebuilding.
Baldwin John Sumatra
@bij-fts
May 24 08:19
can anyone outline the process a discount takes from applying it to the cart until placing the order (checking out)
also, does anyone know if you can add more than one discount code for a cart?
ashwinsoni
@ashwinsoni
May 24 12:50

Does it not reload at all, or did you just not wait long enough?

Sorry my bad!! Correcting my sentence, Just made a change again and noticed I had to wait little long for hot reload.

Oh i see, Yes it does provide the status on console perfectly.
Thanks for your reply @janus-reith :)

Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:34
Hello! Anything available to help me installing Reaction?
It's not working with my SSH key :/
Loan Laux
@loan-laux
May 24 16:34
@S7R1D3R You mean the git clone isn't working?
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:35
@loan-laux no, the git clone worked correctly, but now when I try to use "make" it gives me errors
first was that got permission denied while trying to connect to the Docker Daemon socket
then I tried with sudo
Loan Laux
@loan-laux
May 24 16:36
You definitely shouldn't have to use sudo. Dumb question, but are you sure your Docker is running?
@S7R1D3R I believe you're looking for the backticks: `
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:38
ahahah yeah :D
reaction-hydra post-project-start script invoked.
if [ ! -d "reaction" ] ; then git clone "git@github.com:/reactioncommerce/reaction.git" "reaction"; cd reaction && git checkout "v2.0.0-rc.11"; fi
Cloning into 'reaction'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
/bin/sh: 1: cd: can't cd to reaction
Makefile:133: recipe for target 'reaction' failed
make: *** [reaction] Error 2
Loan Laux
@loan-laux
May 24 16:39
So yeah, the Makefile is set up to clone the Reaction repo via SSH, which requires you to set up an SSH key with GitHub.
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:39
ok so I am restarting the whole process, yes I already went through all that process and it says that the key is working
it says my username and that I am authenticated
Loan Laux
@loan-laux
May 24 16:39
Do you have your key set up on your GitHub account?
My bad, I misread your message. Alright so that's a problem. It shouldn't be giving you this message if your key was set up properly. Can you maybe try and do this git clone "git@github.com:/reactioncommerce/reaction.git" on your own for a test?
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:41
Sure, will try
cloning
Loan Laux
@loan-laux
May 24 16:42
Is it working? That's strange.
Honestly no idea what's happening there. But seems to be a Git issue more than anything else for sure.
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:42
ok it was sucessful
any next steps?
And why Reaction needs for SSH setup?
Loan Laux
@loan-laux
May 24 16:44
@S7R1D3R It's just the way the git clone command is ran from the Makefile. As for next steps, you could clone the storefront and Hydra as well, just like the Makefile would do. Then you can do make and see if it works as is. But once again you shouldn't have this error at all and the whole process should be smooth, so you likely have a bit of investigation to do there.
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:45
can i start the project with reaction cli?
Loan Laux
@loan-laux
May 24 16:46
No, the Reaction CLI was deprecated not long ago. I'd strongly suggest sticking to the Makefile.
Joaquim Teixeira Duarte
@S7R1D3R
May 24 16:47
I try to dockerd now and it says operation not permitted
Loan Laux
@loan-laux
May 24 16:47
You could start the backend up using the Node command that you can find in the docker-compose.yml, but you'd have to supply environment variables yourself and Docker networks wouldn't be available. For the sake of simplicity, I wouldn't bother.
Seems like you've got issues with your Docker installation. At least that's what it looks like.
Joaquim Teixeira Duarte
@S7R1D3R
May 24 17:44
@loan-laux
Hello again mate, so after correcting my Docker, yes the problem was there, the "make" command runned successfully
when I check my logs for the starter kit I get this
s7r1d3r@strdr:~/Documents/projects/reaction-platform/reaction-next-starterkit$ docker-compose logs -f
Attaching to reaction-next-starterkit_web_1
web_1  | yarn install v1.13.0
web_1  | [1/4] Resolving packages...
web_1  | [2/4] Fetching packages...
web_1  | error An unexpected error occurred: "https://registry.yarnpkg.com/brcast/-/brcast-3.0.1.tgz: EACCES: permission denied, open '/home/node/.cache/yarn-offline-mirror/brcast-3.0.1.tgz'".
web_1  | info If you think this is a bug, please open a bug report with the information provided in "/usr/local/src/reaction-app/yarn-error.log".
web_1  | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
reaction-next-starterkit_web_1 exited with code 1
reaction also says it failed to start the App
Loan Laux
@loan-laux
May 24 17:46
@S7R1D3R Some people have reported this issue here. Can you do a make clean && make?
Joaquim Teixeira Duarte
@S7R1D3R
May 24 17:46
I think the problems are because of permissions
will try
Joaquim Teixeira Duarte
@S7R1D3R
May 24 17:53
done @loan-laux
same errors
permission denied somewhere
Joaquim Teixeira Duarte
@S7R1D3R
May 24 18:06
tried with sudo, not working :(
Eliot Hills
@elhil
May 24 18:08
@S7R1D3R are you on linux?
if so, is your uid anything other than 1000? (id -u)
Jason (koad) Zvaniga
@koad
May 24 18:09
that uid!=1000 got me good, took a bit to finger that one out
Loan Laux
@loan-laux
May 24 18:10
Never heard of that issue. What's that about? Mac user here so that must be why I never ran into it.
And most importantly, how did you resolve it?
Joaquim Teixeira Duarte
@S7R1D3R
May 24 18:10
id -u = 1000 , yes I am on Ubuntu 18
Jason (koad) Zvaniga
@koad
May 24 18:10
I had to install RC w/docker using the FIRST intalled user on the system..
Eliot Hills
@elhil
May 24 18:11
@loan-laux bind mount file permissions :weary:
Jason (koad) Zvaniga
@koad
May 24 18:11
so for example, when I tried using a dedicated RC user, it failed -- but the user I created when installing linux worked good because the first user always gets UID 1000; which is important
Loan Laux
@loan-laux
May 24 18:11
Fun stuff... I'm about to set up an Ubuntu dev machine so that's good to know.
Joaquim Teixeira Duarte
@S7R1D3R
May 24 18:11
I am using the first user I think my id -u = 1000
Eliot Hills
@elhil
May 24 18:12
I have a way around it using gosu and an entrypoint, if anyone wants to know more DM me
Joaquim Teixeira Duarte
@S7R1D3R
May 24 18:13
The error it gives is this one
web_1  | error An unexpected error occurred: "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz: EACCES: permission denied, open '/home/node/.cache/yarn-offline-mirror/classnames-2.2.6.tgz'".
web_1  | error An unexpected error occurred: "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz: EACCES: permission denied, open '/home/node/.cache/yarn-offline-mirror/classnames-2.2.6.tgz'".
Eliot Hills
@elhil
May 24 18:14
can you run docker-compose run —rm reaction bash and ls -l /home/node/.cache/ and also ls -l ~/.cache on the host
Joaquim Teixeira Duarte
@S7R1D3R
May 24 18:15
sure
where should I run that? in the reaction folder inside reaction platform?
@elhil
"ERROR: No such service -rm"
Eliot Hills
@elhil
May 24 20:00
double dash :)
but yes in reaction
sorry @S7R1D3R had to step away