Skip to content

Setup a local environment on a mac

Guy Margalit edited this page Aug 2, 2021 · 3 revisions

WARNING: DEPRECATED PAGE !!!

This page was previously update on Feb 29, 2016.


  • verify that mongo is running
  • have .env present under noobaa-core (see content below)
  • run noobaa components (from noobaa-core):
    • build native code: npm install
    • run metadata server: node src/server/web_server.js
    • run bg_worker: node src/bg_workers/bg_workers_starter.js
    • run s3 server: sudo node src/s3/s3rver_starter.js
  • create system in http://127.0.0.1:5001/
  • add nodes:
    • first agent: node src/agent/agent_cli.js [--repl]
    • from the repl run other agents: create_some(2)

Change debug level:

  • in noobaa-core/config.js - change config.dbg_log_level

.env file content:

#.env
#DEV_MODE=true
DEBUG_MODE=true
PORT=5001
# address means the address of the server as reachable from the internet
#ADDRESS=http://localhost:5001
COOKIE_SECRET=iwqhefbq2g3b872yb3cq87bukgyaw3or8
JWT_SECRET=xoiafiho2y89pq4t2p8hawgiuwafeiur8923
MONGOHQ_URL=mongodb://localhost/nbcore
SSL_PORT=5443
web_port=5001
#AGENTS_OVER_WS=true
BUILD_WORKER_DISABLED=false
DEDUP_DISABLED=true
CURRENT_VERSION=0.2
AGENT_VERSION=1
Clone this wiki locally