Top Diff List Farm Source Search Help RSS Login

HARK Designer

HARK Designer Quick Start

  News


  What is HARK Designer?

HARK Designer is a web interface for building and running networks.
node.js is used as a web server, and jQuery, jQuery UI are used as a client.

  Windows

1. Download installer from download page

2. Double click the icon. Then, you will find a browser is opened.


  Linux

  • Ubuntu 12.04 (Precise)

1. curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -

2. sudo apt-get install -y nodejs

4. sudo apt-get install hark-designer

5. run hark_designer

  • Ubuntu 14.04 (Trusty) or 16.04 (Xenial)

1. curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

2. sudo apt install -y nodejs

3. run hark_designer


  Workarounds

How to inspect the problem

Running HARK Designer server manually, you can inspect the HARK Designer in detail.

Firstly, reboot the computer to kill all the HARK Designer processes. Using the Command Prompt, run

cd C:\ProgramData\HARK\hark-Designer
node app.js

Then, You can find the reason of the problem from the messages shown in the Command Prompt.


Error: listen EADDRINUSE

This is because HARK Designer's default port 3000 is occupied. You can change the port using the environment variable PORT.

set PORT=3001
node app.js

Confirm that

Express server listening on port 3001

is in the messages.
Then, access http://localhost:3001 from your browser.

If you want to change the port, replace 3001 with any port number you want to use.

In Japanese
デフォルトで使用する 3000 番ポートが別のプロセスが使っていてふさがっているので
set PORT=3001
node app.js

の順で実行して、ログに

Express server listening on port 3001

と指定したポートが表示されていることを確認し、
ブラウザから http://localhost:3001 にアクセスする。


Error: Cannot find module './binding\Release\node-v11-win32-ia32\node_sqlite3.node'

This occurs that HARK Designer dependent module "node-sqlite3" does not match
with your computer.

Delete C:\ProgramData\HARK\hark-Designer\node_modules
In the Command Prompt, run

cd C:\ProgramData\HARK\hark-Designer\
npm install

Then,

node app.js

In Japanese
HARK Designer の依存モジュールがOSに合っていないので、次の手順で依存モジュール再インストール。
C:\ProgramData\HARK\hark-Designer\node_modules を削除
cd C:\ProgramData\HARK\hark-Designer\
npm install

When you access from the browser, your browser fails loading only CSS and images.

This happens if HARK Designer can find no HARK nodes.
You should see

found defs: []
C:\ProgramData\HARK\hark-Designer\routes\index.js:70
           defs = _.uniq(defs.split("\r\n"));
TypeError: Object  has no method 'split'

In the Command Prompt, run

set FLOWDESIGNER_PATH=C:\Program Files (x86)\HARK\Flowdesigner

to set the search path.
Please confirm that under the path, at least one def file whose extension is .def exists.


In Japanese
ブラウザからアクセスできるが、CSS と 画像の表示に失敗しており、かつ、ログに下記のエラーが出ている
C:\ProgramData\HARK\hark-Designer\routes\index.js:70
           defs = _.uniq(defs.split("\r\n"));
TypeError: Object  has no method 'split'

HARK Designer が使用できるノードのリストファイル (拡張子 def) を一つも見つけられない場合に発生する。
ログには、

found defs: []

が表示されているはず。
コマンドプロンプトから

echo %FLOWDESIGNER_PATH%

で何も表示されないないことを確認し、されていなければ

set FLOWDESIGNER_PATH=C:\Program Files (x86)\HARK\Flowdesigner

で .def ファイルの検索パスを設定する。


  Known Bugs

1. If you use HARK-ROS, you cannot run from Execute button of HARK Designer. Please download the network from File button and run with batchflow command in the terminal.
--> Fixed. Select the ROS version from Preferences -> Environmet in advance.