netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Creating intranet Jnet development - failed

Open wlcina opened this issue 8 years ago • 19 comments

Hi, I wanted to create own Jnet server on intranet (we are not allowed access to internet other than working purposes) - I have windows machine:

I met 3 issues when following page: "https://github.com/mtgred/netrunner/wiki/Setting-up-Jnet-Development-on-Windows"

  1. After installing MongoDB on guide "I also had to go into the data directory and mkdir db" Where to create db directory exactly? at %appdata% ?

2)Install NPM and Javascript Stuff commands

npm install bower install

are not working at all (they dont find file)

wlcina avatar Jan 24 '18 18:01 wlcina

mdkir db is referring to the data/ folder in the Jinteki.net source root folder, where you find several files like "fetch.coffee". I never had to do this step -- my MongoDB just created its own /data/db folder in the root of the drive that I installed it on.

If npm install is failing it means you didn't install NPM correctly. Likewise for Bower, which would have been installed earlier in the steps with npm install -g bower.

nealterrell avatar Jan 24 '18 18:01 nealterrell

C:\Users\Server λ npm install npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Server\package.json' npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Server\package.json' npm WARN Server No description npm WARN Server No repository field. npm WARN Server No README data npm WARN Server No license field.

C:\Users\Server λ bower install bower ENOENT No bower.json present

This is what I get :-/ I tried to do steps all from the start on clean machine, and the same error appears.

wlcina avatar Jan 24 '18 18:01 wlcina

OK, that command simply needs to be run from the Jinteki.net source root folder.

nealterrell avatar Jan 24 '18 18:01 nealterrell

Thank you :-) I almost got it to end, the last issue is:

λ java -jar target/netrunner-standalone.jar Error: Unable to access jarfile target/netrunner-standalone.jar it seems to be that file is nowhere in downloaded package, I tried to search it.

wlcina avatar Jan 24 '18 19:01 wlcina

That file is created when "lein uberjar" is executed in the source root.

On Jan 24, 2018 11:20 AM, "wlcina" [email protected] wrote:

Thank you :-) I almost got it to end, the last issue is:

λ java -jar target/netrunner-standalone.jar Error: Unable to access jarfile target/netrunner-standalone.jar it seems to be that file is nowhere in downloaded package, I tried to search it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mtgred/netrunner/issues/3015#issuecomment-360243900, or mute the thread https://github.com/notifications/unsubscribe-auth/AJncDczKEcP5dyy-6SZvwLY_3bAhe3B2ks5tN4KAgaJpZM4Rrsx2 .

nealterrell avatar Jan 24 '18 19:01 nealterrell

That generates lot of error, however if I am annoying, just tell me so, I understand I am big noob, and practically asking for basic stuff :-/

λ Lein uberjar java.lang.IllegalArgumentException: One of setGitDir or setWorkTree must be called. at org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree (BaseRepositoryBuilder.java:582) org.eclipse.jgit.lib.BaseRepositoryBuilder.setup (BaseRepositoryBuilder.java:550) org.eclipse.jgit.storage.file.FileRepositoryBuilder.build (FileRepositoryBuilder.java:89) org.eclipse.jgit.storage.file.FileRepositoryBuilder.build (FileRepositoryBuilder.java:71) lein_sha_version.plugin$git_sha.invokeStatic (plugin.clj:11) lein_sha_version.plugin$git_sha.invoke (plugin.clj:9) lein_sha_version.plugin$middleware.invokeStatic (plugin.clj:24) lein_sha_version.plugin$middleware.invoke (plugin.clj:22) clojure.lang.Var.invoke (Var.java:379) leiningen.core.project$apply_middleware.invokeStatic (project.clj:801) leiningen.core.project$apply_middleware.invoke (project.clj:794) clojure.core.protocols$naive_seq_reduce.invokeStatic (protocols.clj:62) clojure.core.protocols$interface_or_naive_reduce.invokeStatic (protocols.clj:72) clojure.core.protocols$fn__6755.invokeStatic (protocols.clj:168) clojure.core.protocols/fn (protocols.clj:124) clojure.core.protocols$fn__6710$G__6705__6719.invoke (protocols.clj:19) clojure.core.protocols$seq_reduce.invokeStatic (protocols.clj:31) clojure.core.protocols$fn__6738.invokeStatic (protocols.clj:75) clojure.core.protocols/fn (protocols.clj:75) clojure.core.protocols$fn__6684$G__6679__6697.invoke (protocols.clj:13) clojure.core$reduce.invokeStatic (core.clj:6545) clojure.core$reduce.invoke (core.clj:6527) leiningen.core.project$apply_middleware.invokeStatic (project.clj:796) leiningen.core.project$apply_middleware.invoke (project.clj:794) leiningen.core.project$activate_middleware.invokeStatic (project.clj:828) leiningen.core.project$activate_middleware.invoke (project.clj:824) leiningen.core.project$init_project.invokeStatic (project.clj:952) leiningen.core.project$init_project.invoke (project.clj:942) leiningen.core.project$read.invokeStatic (project.clj:1023) leiningen.core.project$read.invoke (project.clj:1020) leiningen.core.project$read.invokeStatic (project.clj:1024) leiningen.core.project$read.invoke (project.clj:1020) leiningen.core.main$_main$fn__4734.invoke (main.clj:416) leiningen.core.main$_main.invokeStatic (main.clj:411) leiningen.core.main$_main.doInvoke (main.clj:408) clojure.lang.RestFn.invoke (RestFn.java:408) clojure.lang.Var.invoke (Var.java:379) clojure.lang.AFn.applyToHelper (AFn.java:154) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invokeStatic (core.clj:646) clojure.main$main_opt.invokeStatic (main.clj:314) clojure.main$main_opt.invoke (main.clj:310) clojure.main$main.invokeStatic (main.clj:421) clojure.main$main.doInvoke (main.clj:384) clojure.lang.RestFn.invoke (RestFn.java:436) clojure.lang.Var.invoke (Var.java:388) clojure.lang.AFn.applyToHelper (AFn.java:160) clojure.lang.Var.applyTo (Var.java:700) clojure.main.main (main.java:37)

wlcina avatar Jan 24 '18 19:01 wlcina

I'm not sure how to help with that one, sorry. Google will have to suffice :(.

nealterrell avatar Jan 24 '18 19:01 nealterrell

For the sake of other noobs I found solution: need to enter command: "git clone https://github.com/mtgred/netrunner.git" copy .GIT folder to your root (.GIT folder was hidden for me) then "Lein uberjar"

wlcina avatar Jan 24 '18 19:01 wlcina

This story has no end :D at the final command:

λ npm run start

[email protected] start D:\Servers\Jinteki\netrunner coffee server.coffee

npm ERR! code ELIFECYCLE npm ERR! errno 3228369022 npm ERR! [email protected] start: coffee server.coffee npm ERR! Exit status 3228369022 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

LOG file 0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files (x86)\nodejs\node.exe', 1 verbose cli 'C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]~prestart: [email protected] 6 info lifecycle [email protected]~start: [email protected] 7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~start: PATH: C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Servers\Jinteki\netrunner\node_modules.bin;D:\Servers\Jinteki\bin;D:\Servers\Jinteki\vendor\git-for-windows\cmd;D:\Servers\Jinteki\vendor\conemu-maximus5\ConEmu\Scripts;D:\Servers\Jinteki\vendor\conemu-maximus5;D:\Servers\Jinteki\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Calibre2;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\nodejs;C:\Users\Server\AppData\Local\Microsoft\WindowsApps;C:\Program Files\MongoDB\Server\3.6\bin;C:\Users\Server\AppData\Roaming\npm;C:\Users\Server.lein\bin;D:\Servers\Jinteki\vendor\git-for-windows\usr\bin;D:\Servers\Jinteki\vendor\git-for-windows\usr\share\vim\vim74;D:\Servers\Jinteki
9 verbose lifecycle [email protected]~start: CWD: D:\Servers\Jinteki\netrunner 10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'coffee server.coffee' ] 11 silly lifecycle [email protected]~start: Returned: code: 3228369022 signal: null 12 info lifecycle [email protected]~start: Failed to exec start script 13 verbose stack Error: [email protected] start: coffee server.coffee 13 verbose stack Exit status 3228369022 13 verbose stack at EventEmitter. (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at EventEmitter.emit (events.js:214:7) 13 verbose stack at ChildProcess. (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at ChildProcess.emit (events.js:214:7) 13 verbose stack at maybeClose (internal/child_process.js:925:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 14 verbose pkgid [email protected] 15 verbose cwd D:\Servers\Jinteki\netrunner 16 verbose Windows_NT 10.0.16299 17 verbose argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run" "start" 18 verbose node v8.9.4 19 verbose npm v5.6.0 20 error code ELIFECYCLE 21 error errno 3228369022 22 error [email protected] start: coffee server.coffee 22 error Exit status 3228369022 23 error Failed at the [email protected] start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 3228369022, true ]

wlcina avatar Jan 24 '18 21:01 wlcina

What happens if you just run coffee --version from a command prompt?

nealterrell avatar Jan 24 '18 21:01 nealterrell

CoffeeScript version 1.12.7

wlcina avatar Jan 24 '18 21:01 wlcina

How about coffee server.coffee from the source root?

nealterrell avatar Jan 24 '18 21:01 nealterrell

D:\Servers\Jinteki\netrunner (master -> origin) λ coffee server.coffee

D:\Servers\Jinteki\netrunner (master -> origin)

when I enter command, the bottom of cmder shows "node.exe" after few seconds cursor appears and node.exe went back to cmd exe.

wlcina avatar Jan 24 '18 21:01 wlcina

How about if you run coffee fetch.coffee from the /data folder of the source root?

nealterrell avatar Jan 24 '18 21:01 nealterrell

(while MongoDB is running.)

nealterrell avatar Jan 24 '18 21:01 nealterrell

D:\Servers\Jinteki\netrunner\data (master -> origin) λ coffee fetch.coffee 16 cycles fetched 54 sets fetched 1401 cards fetched 4 MWL lists fetched

this seems to be ok, tried coffee server.coffee -> the same result (waited a bit, returned to prompt) npm run start - the same error npm start - same error

(like script start has some error inside)

  • I have 4 other windows running image

wlcina avatar Jan 24 '18 21:01 wlcina

I'm honestly not sure what's wrong 😢 .

We are in the process of migrating the code to a new server written in Clojure instead of Node/CoffeeScript. It's possible that will work for you. If you give me your email address I can invite you to our Slack channel and walk you through setup; or if you are on Stimhack Slack, you can find me @nealterrell.

nealterrell avatar Jan 24 '18 21:01 nealterrell

use my nick in front of gmail.com :-) I will join slack channel and we will see, I think I missed something, but I tried to do it 3 times (uninstalling software and reinstalling again).

wlcina avatar Jan 24 '18 22:01 wlcina

hello there< its seems that i have same issue stop on last stage can you help me?

hosterbot avatar Mar 22 '18 05:03 hosterbot