These are chat archives for reactioncommerce/reaction

19th
Dec 2017
Joshua Needham
@joshuaneedham
Dec 19 2017 00:01
Curious what the reason would be that I'm not able to pull the latest version using reaction pull
Brent Hoover
@zenweasel
Dec 19 2017 00:02
what’s the problem you are seeing?
Joshua Needham
@joshuaneedham
Dec 19 2017 00:02
it says my current version is 1.4.2 but the latest is 1.6.1 I've trie reaction pull and it immediately says I'm up to date
Brent Hoover
@zenweasel
Dec 19 2017 00:02
is origin pointed at the main reaction repo?
Joshua Needham
@joshuaneedham
Dec 19 2017 00:02
ahh
not sure let me check
It does pull in the latest node modules or it say that it is.
Brent Hoover
@zenweasel
Dec 19 2017 00:03
basically reaction pull is just doing git pull origin/master + reinstalling npm packages
Joshua Needham
@joshuaneedham
Dec 19 2017 00:03
That's the issue DOH!
Joshua Needham
@joshuaneedham
Dec 19 2017 00:53
@zenweasel ++
Sophie He
@sophiehe
Dec 19 2017 00:57
In case you didn't know, the 2017 hackabugathon is still underway. If you've submitted a PR in the last 3 months, we'll send you tote bags, shirts, and other exclusive Reaction gear. Learn more here: https://blog.reactioncommerce.com/introducing-the-reaction-hackabugathon/
If you've submitted a PR, go ahead and fill out this form to receive your swag: https://docs.google.com/forms/d/1FxLSia99Cw4IahKgO7jT8C0jwEBp3WmqYm-9FFlt2Sw/edit
Joshua Needham
@joshuaneedham
Dec 19 2017 02:07
I've been messing around this evening and have had updates within the last few hours.
Brent Hoover
@zenweasel
Dec 19 2017 02:07
yeah, we just did a release and then a small fix to that release
Joshua Needham
@joshuaneedham
Dec 19 2017 02:08
I tried running 1.6.2 and it's loading up a blank screen
Was that the fix?
Brent Hoover
@zenweasel
Dec 19 2017 02:10
we’re already at 1.6.3
you’ll want to meteor npm install again but I don’t know why you would be getting a blank screen. Any errors in the console?
Joshua Needham
@joshuaneedham
Dec 19 2017 02:11
None
I'll try again.
Brent Hoover
@zenweasel
Dec 19 2017 02:11
in either the browser console or the server console?
Joshua Needham
@joshuaneedham
Dec 19 2017 02:11
It definitely didn't like going from 1.4.2 to 1.6.2 so I started over
I ultimately want to run my small shop on Reaction.
upon running reaction init I'm getting a ton of NPM package errors
Brent Hoover
@zenweasel
Dec 19 2017 02:14
what sort of errors?
Joshua Needham
@joshuaneedham
Dec 19 2017 02:15
var code = "formatted"
Installing NPM packages...

WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-4UMAPbno3PwnL8gvPQyBjylCUVs= integrity checksum failed when using sha1: wanted sha1-4UMAPbno3PwnL8gvPQyBjylCUVs= but got sha512-u4ontTETlROmLglkMDyouMXlX62NXOGfOUAd75Ilk3W4tcsRjRXX+g5C5B4mBCCcJB0wHn1yh/a4pOYkn81vUQ==. (120641 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-2zmUma10rv2gFPDBAyGrJVE0sd8= integrity checksum failed when using sha1: wanted sha1-2zmUma10rv2gFPDBAyGrJVE0sd8= but got sha512-3N+VJW+KlezEjFBG7WSYeMyC5kIqVLPb/PGSzCDPFcJrnArluD1GIl7Y3xC7cjKiTq2/JohaLWHVPjJWHlo9Gg==. (31678 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-Rz0CHsxXOizOHAfVtQnVIV9GujU= integrity checksum failed when using sha1: wanted sha1-Rz0CHsxXOizOHAfVtQnVIV9GujU= but got sha512-yd7CkUughvHQoEahQqcMdrZw6o/6PwUxiRkfZuVDVHCDe77mysD/suoNyk5mK6phTnRW1kyIbPHyCJgxw++LXg==. (3239 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-r+Y615kgmYk0ixEJtE/rZqokX1c= integrity checksum failed when using sha1: wanted sha1-r+Y615kgmYk0ixEJtE/rZqokX1c= but got sha512-c+DAyp8LMm2nzSs2uXEuxp4LYGSUYEyHtU3fU57avFChjsnTmmpWmXj2dv0yUxHTEydgVAv5fIzA+4KJwoqWDA==. (1723 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-V3uyk4n2xJfD59AUYX59ZxP2i9o= integrity checksum failed when using sha1: wanted sha1-V3uyk4n2xJfD59AUYX59ZxP2i9o= but got sha512-97IRmLvoDhIDSQkqklVt3UCxJsv0LUEVb/0DzXWtc8Lgiyxj567qZkmTG9aR21CmcJVVIvq2Y/moZj4oEpl5AA==. (6234 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

> dtrace-provider@0.8.5 install /Users/joshua/Sites/reaction/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js


> fsevents@1.1.2 install /Users/joshua/Sites/reaction/node_modules/fsevents
> node install

[fsevents] Success: "/Users/joshua/Sites/reaction/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> fibers@2.0.0 install /Users/joshua/Sites/reaction/node_modules/fibers
> node build.js || nodejs build.js

`darwin-x64-57` exists; testing
Binary is fine; exiting
added 2182 packages in 89.119s

Reaction successfully installed!
Brent Hoover
@zenweasel
Dec 19 2017 02:16
let me try a fresh reaction init here
Joshua Needham
@joshuaneedham
Dec 19 2017 02:16
Ok
I'm trying with 1.6.3 now
Brent Hoover
@zenweasel
Dec 19 2017 02:17
yeah, 1.6.3 is the fix to the package-json.lock error which seems to be the issue
I was able to reaction init successfully
Joshua Needham
@joshuaneedham
Dec 19 2017 02:27
I am working through the various issues on my machine at the moment. Should be ready to try and launch a new site shortly
Joshua Needham
@joshuaneedham
Dec 19 2017 02:33
Ok it finally loaded up the dev site
Brent Hoover
@zenweasel
Dec 19 2017 02:35
:+1:
Tse
@tse2909
Dec 19 2017 02:59
image.png
product image doesn't show up on 1.6.3 . i am using toggle device
Brent Hoover
@zenweasel
Dec 19 2017 03:04
screenshot_20171219-110159.png
I don’t see that on my Android device
Brent Hoover
@zenweasel
Dec 19 2017 03:10
Actually I do see that every once in a while
Tse
@tse2909
Dec 19 2017 03:11
yes thats right . it works sometimes.
Brent Hoover
@zenweasel
Dec 19 2017 03:11
and if I refresh it works
Tse
@tse2909
Dec 19 2017 03:14
also the cart icon on top right hasn't been fixed yet ? i see it display correctly on previous reaction release
Brent Hoover
@zenweasel
Dec 19 2017 03:14
Yeah, that seems to have been broken as well. It was working in the last release
Tse
@tse2909
Dec 19 2017 03:25
image.png
well it doesn't show up on desktop too sometimes
Brent Hoover
@zenweasel
Dec 19 2017 03:27
Yeah, it looks like it
Tse
@tse2909
Dec 19 2017 03:44
image.png
i can't find any component or function named coreNavigationBrand . sorry i am new
Brent Hoover
@zenweasel
Dec 19 2017 03:46
where do you see that reference to it?
Tse
@tse2909
Dec 19 2017 03:46
image.png
Brent Hoover
@zenweasel
Dec 19 2017 03:47
Yes, the swag shop resets every few minutes and removes all products and reinserts them
Tse
@tse2909
Dec 19 2017 03:47
oh i see
it's on core\checkout\client\templates\checkout\header.html
Tse
@tse2909
Dec 19 2017 04:24
i can't find that coreNavigationBrand on all files . @zenweasel
Brent Hoover
@zenweasel
Dec 19 2017 04:37
I feel like that was something that was removed a couple of versions ago
Tse
@tse2909
Dec 19 2017 04:38
ok thanks i will pull latest release .
Brent Hoover
@zenweasel
Dec 19 2017 04:39
I think that was a blaze template that was replaced with a component
Tse
@tse2909
Dec 19 2017 04:41
ok . i have another question. i have to wait several minutes after i made change while reaction is running . it takes time. is there any way to make it faster ? will it runs faster on linux ?
Brent Hoover
@zenweasel
Dec 19 2017 04:42
I haven’t really tested it on Linux enough to say. On my local Mac here it takes 15-20 seconds to restart after change
Josh Cox
@joshuacox
Dec 19 2017 05:32
Is there anyone with a current mac that can test my install script? travis-ci says its working, but I'd like some real world feedback. curl -L https://git.io/rxNstall | bash. I, also, added gentoo and arch linux to the previous list of tested linux distros, any requests for others?
Brent Hoover
@zenweasel
Dec 19 2017 05:41
rxNstall has finished
bash: line 258: [: =: unary operator expected
Josh Cox
@joshuacox
Dec 19 2017 05:44
hmm that is actually in the travis ci output, but it finished by outputting reaction help which I imagine is already installed on your laptop
try which node
Brent Hoover
@zenweasel
Dec 19 2017 05:45
yeah, there’s a ton of output, and that’s the last of it
/usr/local/bin/node
Josh Cox
@joshuacox
Dec 19 2017 05:47
I'll fix the unary. mine ends up being which node /home/thoth/.nvm/versions/node/v8.9.3/bin/node
Josh Cox
@joshuacox
Dec 19 2017 06:00
my guess is everything went fine on your end but nvm guessed wrong on which dotfile to place the lines into. which is
export NVM_DIR="/home/thoth/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
export PATH=~/.meteor:$PATH
^the third line with meteor is what I usually do as well, as meteor tries to put a link to meteor in /usr/local but I think keeping it in the users directory makes it more portable
its also possible you just need to open a new terminal as well or /bin/bash -l
Josh Cox
@joshuacox
Dec 19 2017 06:16
in the travis-ci output it appears to choose .bashrc, is that also true on your system?
Brent Hoover
@zenweasel
Dec 19 2017 06:17
I believe Macs use .bash_profile don’t they?
Josh Cox
@joshuacox
Dec 19 2017 06:18
bash_profile is called upon login, bashrc is called for non-interactive shells
I just put source .bash_profile into bashrc and make them both the same effectively
or source .profile which I'm using more and more as I also use zsh and its nice to have a common ground for all shells
I placed a giant mallet in the script which can be activated with export FIX_DOTFILES='true' which is a very opinionated way of doing it
Brent Hoover
@zenweasel
Dec 19 2017 06:22
my .bash_profile is just a flle that sources .bashrc
Josh Cox
@joshuacox
Dec 19 2017 06:23
and does bashrc now contain the nvm export and the function that loads nvm?
Brent Hoover
@zenweasel
Dec 19 2017 06:23
which then recursively sources all the files in my .dotfiles directory
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
export PATH=~/.meteor:$PATH
Josh Cox
@joshuacox
Dec 19 2017 06:24
after sourcing it does nvm help work?
Brent Hoover
@zenweasel
Dec 19 2017 06:25
nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local"
Run `npm config delete prefix` or `nvm use --delete-prefix v8.9.3 --silent` to unset it.
that’s what I get when I open a new shell now
Josh Cox
@joshuacox
Dec 19 2017 06:26
export FIX_NVM_PREFIX='true' and re run curl -L https://git.io/rxNstall | bash and it will remove that prefix before installing node lts/carbon
i had to do the same thing in the travis-ci
Brent Hoover
@zenweasel
Dec 19 2017 06:31
Downloading Meteor distribution
######################################################################## 100.0%
curl: (56) Unexpected EOF
Retrying download in 5 seconds...
######################################################################## 100.0%
curl: (22) The requested URL returned error: 416
Retrying download in 5 seconds...
######################################################################## 100.0%
curl: (22) The requested URL returned error: 416
Retrying download in 5 seconds...
######################################################################## 100.0%
we should probably take this conversation to a private chat
Josh Cox
@joshuacox
Dec 19 2017 06:32
nvm needs to modify the prefix, because it installs everything under the users directory, and more importantly allows you install many version of node and switch amongst them easily nvm use lts/carbon or nvm use lts/boron etc, or nvm alias default lts/carbon
Hadi Lee
@leeshuzheng
Dec 19 2017 09:43
hi, it seems the Requirements page is down. Is there any way I can view the requirements before i get reaction commerce started?
Brent Hoover
@zenweasel
Dec 19 2017 09:49
the requirements page has been removed. Just go to the install page for your platform
both requirements and the install are covered together
Hadi Lee
@leeshuzheng
Dec 19 2017 10:53
Thank you!
Brent Hoover
@zenweasel
Dec 19 2017 10:53
:+1:
Pierre de Soultrait
@PDS42
Dec 19 2017 13:31
Hello everyone! Trying to get into reaction because it looks awesome! However, I've got a problem when trying to set it up at my workplace (where I don't have root).
Anybody seen those errors and can help me solve them? :) https://imgur.com/a/a5YnJ
Michael Jenny
@prinzdezibel
Dec 19 2017 13:32
Actually reaction is supposed to be executed as non-root
Pierre de Soultrait
@PDS42
Dec 19 2017 13:32
It looks like meteor cannot be installed w/o root access
Or am I doing something wrong?
Loan Laux
@loanlaux
Dec 19 2017 13:32
Oh, a fellow french man!
Pierre de Soultrait
@PDS42
Dec 19 2017 13:32
It worked no problem on my personal computer
Michael Jenny
@prinzdezibel
Dec 19 2017 13:33
Pierre de Soultrait
@PDS42
Dec 19 2017 13:33
What was your first clue @loanlaux ? :D
Loan Laux
@loanlaux
Dec 19 2017 13:33
@PDS42 Your first name, and I'm 99% sure your profile pic was taken at 42
Pierre de Soultrait
@PDS42
Dec 19 2017 13:34
Damn, gottem
Loan Laux
@loanlaux
Dec 19 2017 13:35
@PDS42 — Just to let you know I'll organize a Reaction Commerce meetup very soon in the 9th Arrondissement. Would love to have you there! https://www.meetup.com/Reaction-Commerce-in-Paris/
Michael Jenny
@prinzdezibel
Dec 19 2017 13:37
@PDS42 but actually I'm not sure about the Meteor installation part.
Pierre de Soultrait
@PDS42
Dec 19 2017 13:39
Yeah, it looks like that's what is causing the issue
:'(
Brent Hoover
@zenweasel
Dec 19 2017 13:43
You shouldn’t need root access, in fact you should not install anything with sudo/root
Pierre de Soultrait
@PDS42
Dec 19 2017 13:44
Well, if you saw my attached screenies, I cannot seem to bypass it
Which sucks
Even installing meteor directly via curl https://install.meteor.com/ | sh does not work
Loan Laux
@loanlaux
Dec 19 2017 13:44
Seems more like a configuration problem on your machine then
Pierre de Soultrait
@PDS42
Dec 19 2017 13:44
Which I guess is what reaction is doing anyways
Most definitely, yes.
Brent Hoover
@zenweasel
Dec 19 2017 13:46
Ok, the important part is that you can’t install anything (none of the prerequisites either) with sudo
Pierre de Soultrait
@PDS42
Dec 19 2017 13:46
Got it
Tse
@tse2909
Dec 19 2017 14:01
image.png
must i add min-height to image container ?
ereyes97
@ereyes97
Dec 19 2017 15:15
Hello
What Meteor Package do you use for pagination in rc ?
Michael Jenny
@prinzdezibel
Dec 19 2017 16:51
@ereyes97 I don't think we're using a meteor package for pagination. AFAIK, on the server side we're using Collection.find(selector, {skip: x, limit: y}) when publishing the paginated results.
Kenneth Beartusk
@beartusk
Dec 19 2017 17:41
Quick question: What exactly does "reaction reset" do?
Michael Jenny
@prinzdezibel
Dec 19 2017 17:42
@beartusk: resets the mongo db and deletes some temporary build files.
Loz
@lozGemachet_twitter
Dec 19 2017 17:47
@prinzdezibel is it safe to run reset on a production server or it will delete orders/items?
Michael Jenny
@prinzdezibel
Dec 19 2017 17:47
no. it will purge everything
Kenneth Beartusk
@beartusk
Dec 19 2017 17:49
@prinzdezibel Okay, I need to somehow safely change the reaction administrator credentials on my production build. How can I go about this with out doing a reaction reset?
Michael Jenny
@prinzdezibel
Dec 19 2017 17:49
except that on the server you don't interact with your application though reaction-cli, anyway.
reaction-cli is a development & deployment tool.
like meteor
Loz
@lozGemachet_twitter
Dec 19 2017 17:50
@prinzdezibel So how can I install a plugin on server without using reset?
Michael Jenny
@prinzdezibel
Dec 19 2017 17:51
clone the plugin into /imports/plugins/custom before building the app.
Kenneth Beartusk
@beartusk
Dec 19 2017 17:53
@prinzdezibel How can I safely change the administrator credentials on a production build using Docker?
Loz
@lozGemachet_twitter
Dec 19 2017 17:53
@prinzdezibel Thanks
Michael Jenny
@prinzdezibel
Dec 19 2017 17:54
AFIAK, through env variables, like REACTION_USER and REACTION_AUTH.
Kenneth Beartusk
@beartusk
Dec 19 2017 18:00
@prinzdezibel okay that's was thinking. Thank you!
Michael Jenny
@prinzdezibel
Dec 19 2017 18:00
or even with something along the lines export METEOR_SETTINGS=$(cat settings.json), not sure about that.
maybe @jshimko knows better.
Kenneth Beartusk
@beartusk
Dec 19 2017 18:01
@prinzdezibel Wait. Do the settings.json attributes still apply to the docker deployment, or do the env variables take over?
Michael Jenny
@prinzdezibel
Dec 19 2017 18:03
that depends on the code . I've seen something like
     // defaults use either env or generated values
    options.name = env.REACTION_USER || defaultName;

    // or use `meteor --settings`
    if (Meteor.settings && !configureEnv) {
      if (Meteor.settings.reaction) {
        options.username = Meteor.settings.reaction.REACTION_USER || defaultUsername;
       }
    }
Kenneth Beartusk
@beartusk
Dec 19 2017 18:04
@prinzdezibel I see well I will do some experimenting then
Loz
@lozGemachet_twitter
Dec 19 2017 18:58
How can I tell whether my plugin has been loaded or not? I coped all files to reaction/impors/plugins/custom/my-plugin, but it doesn't seem to be working.
machiko
@machikoyasuda
Dec 19 2017 19:00
@lozGemachet_twitter Do you see a Installing dependencies for my-plugin...when you start up the app?
Loz
@lozGemachet_twitter
Dec 19 2017 19:01
I don't. but it doesn't have any dependencies I think.
@machikoyasuda image.png
machiko
@machikoyasuda
Dec 19 2017 19:07
When you run meteor mongo or use RoboMongo, do you see your my-plugin in the DB?
machiko
@machikoyasuda
Dec 19 2017 19:13
@lozGemachet_twitter ^
Loz
@lozGemachet_twitter
Dec 19 2017 20:07
@machikoyasuda Nope, querying mongo returns nothing.
Samson Paul Jr.
@SamsonPaulJr
Dec 19 2017 20:12
The latest releases aren't building to docker?
machiko
@machikoyasuda
Dec 19 2017 20:14
@lozGemachet_twitter Do you have a register.js file?
Loz
@lozGemachet_twitter
Dec 19 2017 20:17
@machikoyasuda Yes, sure.
Import { Reaction } from "/server/api"; Reaction.registerPackage({ label: "myPlugin", name: "myplugin", icon: "fa fa-vine", meta: { version: "1.0.0" }, autoEnable: true });
machiko
@machikoyasuda
Dec 19 2017 20:20
hrmm.. looks good to me!
Im not sure why the plugin loader isn't finding it
Loz
@lozGemachet_twitter
Dec 19 2017 21:14
@machikoyasuda I'm sorry.. I misspelled the name in the query. It does show up now.
Kenneth Beartusk
@beartusk
Dec 19 2017 21:31
@prinzdezibel @jshimko Executing "reaction reset" only resets the internal MongoDB used for development correct? I am trying to change the reaction administrator credentails for my production deployment on Docker and that uses a remote MongoDB. So, I don't believe that reaction reset could touch my remote data base correct? I tried using the env variables to change the credentials on the docker image, but this did not work. So i'm going to run reaction reset on the development branch then build another Docker image to deploy. This should not mess up any of my plugins, other imports, or the products and other data in my remote MongoDB correct?
Josh Cox
@joshuacox
Dec 19 2017 22:09
@beartusk there definitely needs to be some manual password reset documentation, does gterrono/houston#275 work?
Josh Cox
@joshuacox
Dec 19 2017 22:15
@PDS42 re-read that output, meteor can be installed without root, however, by default it tries to throw a copy of launch-meteor in /usr/bin, if your user does not have permission for that you have three options: 1. run the cp command as root 2. add $HOME/.meteor to your path or 3. change the perms of /usr/bin and run the script again. I prefer option 2 i.e. export PATH=~/.meteor:$PATH or to make it permanent for bash --> echo 'export PATH=~/.meteor:$PATH' >> .bash_profile
Kenneth Beartusk
@beartusk
Dec 19 2017 22:25
@joshuacox Well I believe the link you posted is referring to a different project. But, are you suggesting tracking down the collection that contains the admin credentials and manually changing them?
Josh Cox
@joshuacox
Dec 19 2017 22:25
yep that's the idea, it is also a meteor project so the fundamentals should still be the same
if you figure it out document it!
Josh Cox
@joshuacox
Dec 19 2017 22:35
@PDS42 I have automated all of that in curl -L https://git.io/rxNstall | bash if you have problems with that method submit issues here
machiko
@machikoyasuda
Dec 19 2017 23:55
@lozGemachet_twitter Yay!