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

reaction init produces error on Windows 8.1 #3191

Closed
metavaults opened this issue Oct 29, 2017 · 11 comments
Closed

reaction init produces error on Windows 8.1 #3191

metavaults opened this issue Oct 29, 2017 · 11 comments

Comments

@metavaults
Copy link

metavaults commented Oct 29, 2017

Expected behavior

start "reaction init"

Actual behavior

error

Steps to reproduce the behavior

reaction init on Windows

Meteor, Python and Windows Build Tools are installed


npm ERR! git clone C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.5.
2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reactioncom
merce-transliteration-git-5ec7c7d9 C:\Users\User\AppData\Local\Temp\npm-5160-206
9317c\git-cache-e12d1889\699d48cc8dd9a64f1a2773e1b36b6faa4bbdca2f: Cloning into
'C:\Users\User\AppData\Local\Temp\npm-5160-2069317c\git-cache-e12d1889\699d48cc8
dd9a64f1a2773e1b36b6faa4bbdca2f'...
npm ERR! git clone C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.5.
2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reactioncom
merce-transliteration-git-5ec7c7d9 C:\Users\User\AppData\Local\Temp\npm-5160-206
9317c\git-cache-e12d1889\699d48cc8dd9a64f1a2773e1b36b6faa4bbdca2f: error: cannot
 spawn sh: No such file or directory
npm ERR! git clone C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.5.
2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reactioncom
merce-transliteration-git-5ec7c7d9 C:\Users\User\AppData\Local\Temp\npm-5160-206
9317c\git-cache-e12d1889\699d48cc8dd9a64f1a2773e1b36b6faa4bbdca2f: fatal: unable
 to fork
npm ERR! git clone C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.5.
2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reactioncom
merce-transliteration-git-5ec7c7d9 C:\Users\User\AppData\Local\Temp\npm-5160-206
9317c\git-cache-e12d1889\699d48cc8dd9a64f1a2773e1b36b6faa4bbdca2f:
npm ERR! git fetch -a origin (https://github.com/reactioncommerce/transliteratio
n.git) fatal: Unable to find remote helper for 'https'
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config -
-get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:200:12)
npm WARN addRemoteGit     at emitTwo (events.js:87:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:862:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child
_process.js:222:5)
npm WARN addRemoteGit  reactioncommerce/transliteration resetting remote C:\User
s\User\AppData\Local\.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\d
ev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reactioncommerce-transliteration-git-
8d5184dd because of error: { [Error: Command failed: git -c core.longpaths=true
config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.ori
gin.url' }
npm ERR! git clone --template=C:\Users\User\AppData\Local\.meteor\packages\meteo
r-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\_templates --mi
rror [email protected]:reactioncommerce/transliteration.git C:\Users\User\AppData\L
ocal\.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_
git-remotes\git-jackfan.us.kg-reactioncommerce-transliteration-git-8d5184dd: Clonin
g into bare repository 'C:\Users\User\AppData\Local\.meteor\packages\meteor-tool
\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reacti
oncommerce-transliteration-git-8d5184dd'...
npm ERR! git clone --template=C:\Users\User\AppData\Local\.meteor\packages\meteo
r-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\_templates --mi
rror [email protected]:reactioncommerce/transliteration.git C:\Users\User\AppData\L
ocal\.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_
git-remotes\git-jackfan.us.kg-reactioncommerce-transliteration-git-8d5184dd: error:
 cannot spawn ssh: No such file or directory
npm ERR! git clone --template=C:\Users\User\AppData\Local\.meteor\packages\meteo
r-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\_templates --mi
rror [email protected]:reactioncommerce/transliteration.git C:\Users\User\AppData\L
ocal\.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_
git-remotes\git-jackfan.us.kg-reactioncommerce-transliteration-git-8d5184dd: fatal:
 unable to fork
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\Us
er\AppData\Local\.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\dev_b
undle\.npm\_git-remotes\_templates --mirror [email protected]:reactioncommerce/tran
sliteration.git C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.5.2_2
\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-jackfan.us.kg-reactioncommer
ce-transliteration-git-8d5184dd
npm ERR! Cloning into bare repository 'C:\Users\User\AppData\Local\.meteor\packa
ges\meteor-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\.npm\_git-remotes\git-gi
thub-com-reactioncommerce-transliteration-git-8d5184dd'...
npm ERR! error: cannot spawn ssh: No such file or directory
npm ERR! fatal: unable to fork
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.5.2_2\mt
-os.windows.x86_32\dev_bundle\.npm\_logs\2017-10-29T15_50_53_993Z-debug.log
@jshimko
Copy link
Contributor

jshimko commented Oct 29, 2017

Do you have OpenSSH installed? I'm pretty sure that's a requirement of git. It looks like all of the errors there are related to ssh commands failing (which is one of the ways a git clone pulls down a repo).

@jshimko
Copy link
Contributor

jshimko commented Oct 29, 2017

You can also try using the git command directly to remove reaction-cli from the equation.

git clone https://github.com/reactioncommerce/reaction.git

@metavaults
Copy link
Author

  1. Didn't find any tutorials on how to install OpenSSH on Windows 8. Do you know any?
  2. I tried doing "git clone ... " successfully. Then I entered the reaction folder and executed "meteor npm install" successfully. I tried to launch it with "reaction", but it gets stuck at "Started Proxy -> Started MongoDB". Waiting for 10 minutes, nothing happens.

@jshimko
Copy link
Contributor

jshimko commented Oct 29, 2017

  1. https://www.google.com/search?q=windows+openssh+install

  2. Are you positive there were no errors on the git clone or the meteor npm install? Can you share the log output?

@metavaults
Copy link
Author

metavaults commented Oct 29, 2017

I could install OpenSSH, restarted my PC and tried to do "reaction init" again. This time, I didn't get the error from above, but the whole process stopped (actually it was running for ages), at:

Cloning the master branch of Reaction from Github...
Cloning into 'reaction'...
Checking out files: 100% (2534/2534), done.

Installing NPM packages...
npm WARN prefer global [email protected] should be installed with -g

> [email protected] install C:\Lukas\Programavimas\reaction\node_modules\dt
ace-provider
> node scripts/install.js


> [email protected] install C:\Lukas\Programavimas\reaction\node_modules\fibers
> node build.js || nodejs build.js

I have stopped the process, entered the "reaction" folder and executed "reaction". After few minutes I got the messages "Started proxy" and "Started MongoDB". After about 20 more minutes, I got the error "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory". If you can tell me how can I access the full log, I could paste it here too.

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Installing dependencies for connectors-shopify...

npm WARN [email protected] No repository field.
Setting up style imports...

[[[[[ C:\Lukas\Programavimas\reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
cfs:tempstore: updating npm dependencies -- combined-stream...
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

I ran "reaction -v" and that's the output:

Node: 6.10.3
NPM: 3.10.10
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.19.1
Reaction: 1.5.4
Reaction branch: master

@stoil
Copy link

stoil commented Oct 31, 2017

I have the exact same problem like @LukasNavickas .
Following the installation guide and after everything installed correctly. Running the reaction run command on Windows 10 machine, outputs the following:

[[[[[ ~\D\Side\B\REACTION\reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
cfs:tempstore: updating npm dependencies -- combined-stream...
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

or in other situations it just freezes on

=> Started proxy.

and then outputs the same error as above

Node: 6.11.0
NPM: 3.10.10
Meteor Node: 8.8.1
Meteor NPM: 5.4.2
Reaction CLI: 0.19.1
Docker: 17.09.0-ce

@metavaults
Copy link
Author

@jshimko any solution to this problem? Many users encounter it as far as I can see.

@mulianto
Copy link

mulianto commented Nov 5, 2017

I have the same problem, settings environment variable TOOL_NODE_FLAGS = --max-old-space-size=1024 taking care of the issue with FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory.

The issue I have now is the client see only empty page when running http://localhost:3000

Here is the server console looks like:

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Installing dependencies for connectors-shopify...

npm WARN [email protected] No repository field.
Setting up style imports...

[[[[[ c:\Users\Mulianto\reaction ]]]]]

=> Started proxy.
=> Meteor 1.6 is available. Update this project with 'meteor update'.
=> Started MongoDB.
04:03:40.208Z INFO Reaction: Load default data from /private/data/
04:03:40.347Z INFO Reaction: JobServer started
04:03:40.358Z WARN Reaction: Skipped loading settings from reaction.json.
04:03:42.553Z INFO Reaction: Reaction Version: 1.5.6
04:03:42.647Z WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
04:03:42.651Z WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
04:03:42.899Z INFO Reaction: Reaction initialization finished.
=> Started your app.

=> App running at: http://localhost:3000/
Type Control-C twice to stop.

On The client side:
when open up the browser http://localhost:3000/ it return empty page.

Any idea what's going wrong on with my installation?

@mulianto
Copy link

mulianto commented Nov 5, 2017

Here is the version I use:

Node: 8.3.0
NPM: 5.5.1
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.20.0
Reaction: 1.5.6
Reaction branch: master

@mulianto
Copy link

mulianto commented Nov 5, 2017

found the issue. Run: "npm install" works, instead of "meteor npm install"

@jshimko
Copy link
Contributor

jshimko commented Nov 7, 2017

Now that we know the OpenSSH issue was the first issue, the rest of this is a duplicate of #3183. Specifically, take a look at all of the comments from earlier today.

For the sake of organization, I'm closing this issue in favor of #3183.

@jshimko jshimko closed this as completed Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants