Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

fbctf plattform doesn't start anymore - modules missing #500

Closed
PhilippBehmer opened this issue May 12, 2017 · 6 comments
Closed

fbctf plattform doesn't start anymore - modules missing #500

PhilippBehmer opened this issue May 12, 2017 · 6 comments

Comments

@PhilippBehmer
Copy link

PhilippBehmer commented May 12, 2017

Using the latest master (e880251)
Fresh & updated Ubuntu 14.04 AWS instance: Linux ip-172-31-28-207 3.13.0-116-generic #163-Ubuntu SMP Fri Mar 31 14:13:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Manuall provisioning using the command: ./extra/provision.sh -m prod -s $PWD

Caused by the "grunt" command in the "run_grunt()" function in the "lib.sh" file.

Log output:

[...]
/usr/bin/flow -> /usr/lib/node_modules/flow-bin/cli.js
[email protected] /usr/lib/node_modules/flow-bin
Running "force:eslint" (force) task

Running "force-internal:pre:eslint" (force-internal) task
>> Enable force mode for task eslint.

Running "eslint:dist" (eslint) task

/var/www/fbctf/node_modules/eslint-plugin-flowtype/dist/rules/defineFlowType.js:37
    ClassImplements(node) {
                   ^
Warning: Failed to load plugin flowtype: Unexpected token ( Used --force, continuing.
Warning: Task "eslint:dist" failed. Used --force, continuing.

Running "force-internal:post:eslint" (force-internal) task
>> Reset force mode for task eslint.

Running "run:flow" (run) task
flow is still initializing; this can take some time. [processing] -Launching Flow server for /var/www/fbctf/src
Spawned flow server (pid=11427)
Logs will go to /tmp/flow/zSvarzSwwwzSfbctfzSsrc.log
Started a new flow server: \flow is still initializing; this can take some time. [local inference] |src/static/js/admin.js:5
  5: var Dropkick = require('dropkickjs');
                            ^^^^^^^^^^^^ dropkickjs. Required module not found

src/static/js/admin.js:6
  6: var $ = require('jquery');
                     ^^^^^^^^ jquery. Required module not found

src/static/js/clock.js:3
  3: var $ = require('jquery');
                     ^^^^^^^^ jquery. Required module not found

src/static/js/fb-ctf.js:12
 12: var d3 = require('d3');
                      ^^^^ d3. Required module not found

src/static/js/fb-ctf.js:13
 13: var $ = require('jquery');
                     ^^^^^^^^ jquery. Required module not found

src/static/js/fb-ctf.js:14
 14: var Keycode = require('keycode');
                           ^^^^^^^^^ keycode. Required module not found

src/static/js/filter.js:3
  3: var $ = require('jquery');
                     ^^^^^^^^ jquery. Required module not found


Found 7 errors
Warning: non-zero exit code 2 Use --force to continue.

Aborted due to warnings.
@PhilippBehmer PhilippBehmer changed the title fbctf plattform doesn't start anymore fbctf plattform doesn't start anymore - modules missing May 12, 2017
@wisco24
Copy link
Contributor

wisco24 commented May 12, 2017

Same as #499. Error same in docker and on bare metal.....

@stevcoll
Copy link

We're looking into the issue now. Will provide an update soon.

@stevcoll
Copy link

At this point it seems using --force is the only solution to the module errors. You'll need to edit the lib.sh file as shown here by @wisco24:

3e557d1

@bradley-evans
Copy link

I'm just popping in to say I'm catching the same error.

@PhilippBehmer
Copy link
Author

Someone just has to merge #502 and after that #503 will probably work too.

@wisco24
Copy link
Contributor

wisco24 commented May 20, 2017

This issue can be closed, the fix has been merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants