Giter VIP home page Giter VIP logo

iofog-operator's People

Contributors

baghbidi avatar ctron avatar geethree avatar lkrcal avatar nehanaithani avatar neilotoole avatar pixcell avatar rushminatorr avatar sergerad avatar xaoc000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iofog-operator's Issues

Deploy controller with writable PID file directory

The default PID file directory may not be writable, then the controller fails to start up:

Error: EACCES: permission denied, open '/usr/local/lib/node_modules/iofogcontroller/src/iofog-controller.pid'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.writeFileSync (fs.js:1299:33)
    at Object.run (/usr/local/lib/node_modules/iofogcontroller/src/server.js:188:12)
    at jobs.forEach (/usr/local/lib/node_modules/iofogcontroller/src/server.js:127:31)
    at Array.forEach (<anonymous>)
    at Server.onStart (/usr/local/lib/node_modules/iofogcontroller/src/server.js:127:10)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:106:13)
    at Server.emit (events.js:208:7)
    at emitListeningNT (net.js:1387:10)
    at _combinedTickCallback (internal/process/next_tick.js:136:11)
    at process._tickDomainCallback (internal/process/next_tick.js:219:9)

The path of the PID file should be configurable, or point to a dedicated PID file directory by default. The current default seems to be /usr/local/lib/node_modules/iofogcontroller/src/iofog-controller.pid, which may be immutable.

Controller deployment binds viewer port to 80, which fails

Error: listen EACCES 0.0.0.0:80
    at Server.setupListenHandle [as _listen2] (net.js:1343:19)
    at listenInCluster (net.js:1401:12)
    at Server.listen (net.js:1485:7)
    at Function.listen (/usr/local/lib/node_modules/iofogcontroller/node_modules/express/lib/application.js:618:24)
    at startHttpServer (/usr/local/lib/node_modules/iofogcontroller/src/server.js:116:36)
    at initState.then (/usr/local/lib/node_modules/iofogcontroller/src/server.js:199:7)
    at <anonymous>

I think there should be a way to configure the viewer port using the VIEWER_PORT variable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.