Giter VIP home page Giter VIP logo

ethermap's Introduction

Ethermap

Ethermap is a real-time collaborative map editor allowing:

  • synchronization of geoobjects between all clients
  • visual highlights of changes creating user-awareness
  • watching other users or show their current workarea
  • basic feature version control (browse older revisions and revert changes)
  • communicating about specific features within the chat

How does it work? shortly explains the overall concept.

For a demo (desktop only), open the website with several browsers log into the same map id with different user names. Or check out the video.

The application has been built as part of my master thesis at the ifgi (Institute for Geoinformatics, WWU Münster).

Technologies

Install dependencies (Ubuntu)

It is assumed that you have installed node.js (developed using 0.10.26)

sudo apt-get install couchdb
npm install -g grunt-cli
npm install -g bower
npm install -g forever

Run for Development

npm install
bower install
grunt serve

Run for Production

npm install
bower install
grunt build
NODE_ENV=production forever -o out.log -e err.log start dist/server.js

or with Docker and fig

It may be necessary to rename the folder Ethermap to ethermap (note the lower case e), as Docker cannot create things with uppercase names.

sudo fig up

Ethermap will be available from http://localhost:8080

Testing

Tests are based on Karma + Jasmine

For single test runs:

grunt test

For continuous testing:

npm install -g karma-cli
karma start

Create the JSDoc pages

grunt docs

License

Apache v2.0 - Dennis Wilhelm 2014

ethermap's People

Contributors

bryant1410 avatar dwilhelm89 avatar ubergesundheit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ethermap's Issues

Possibilities..

This is an awesome looking project Dennis. I wonder how much work it would be to adapt the codebase to replace Leaflet with a simple white background, and add option to place and format text labels? You'd then effectively have the world's best open-source collaborative mind-mapping app. Basically etherpad with full flexibility on content location in the page-space.. Do you have a sense of how much work that would be to achieve?

Error: Missing at Request._callback

i am constantly getting the below error. I get this error at /api/documentRevisions/username/13434397 - 500m

200 2ms
GET /presets/presets 200 35ms
{ Error: missing
at Request.callback (E:\WORKSPACE\SERVER\htdocs\server\Apps\Dev\gh_maps
\node_modules\nano\nano.js:319:39)
at Request.self.callback (E:\WORKSPACE\SERVER\htdocs\server\Apps\Dev\gh

maps\node_modules\nano\node_modules\request\request.js:122:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (E:\WORKSPACE\SERVER\htdocs\server\Apps\Dev\gh_ma
ps\node_modules\nano\node_modules\request\request.js:888:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage. (E:\WORKSPACE\SERVER\htdocs\server\Apps\D
ev\gh_maps\node_modules\nano\node_modules\request\request.js:839:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
name: 'Error',
scope: 'couch',
status_code: 404,
'status-code': 404,
request:
{ method: 'GET',
headers:
{ 'content-type': 'application/json',
accept: 'application/json' },
uri: 'http://koofah:Koofah710498@localhost:5984/hughes/1492737459272271
20?revs_info=true',
jar: false },
headers:
{ 'cache-control': 'must-revalidate',
connection: 'close',
'content-type': 'application/json',
date: 'Fri, 21 Apr 2017 01:18:48 GMT',
'x-couch-request-id': '31a2c62012',
'x-couchdb-body-time': '0',
'status-code': 404,
uri: 'http://koofah:Koofah710498@localhost:5984/hughes/1492737459272271
20?revs_info=true' },
errid: 'non_200',
error: 'not_found',
reason: 'missing',
description: 'missing',
stacktrace:
[ 'Error: missing',
' at Request._callback (E:\WORKSPACE\SERVER\htdocs\server\Apps
\Dev\gh_maps\node_modules\nano\nano.js:319:39)',
' at Request.self.callback (E:\WORKSPACE\SERVER\htdocs\server\A
pps\Dev\gh_maps\node_modules\nano\node_modules\request\request.js:122
:22)',
' at emitTwo (events.js:106:13)',
' at Request.emit (events.js:191:7)',
' at Request. (E:\WORKSPACE\SERVER\htdocs\server\App
s\Dev\gh_maps\node_modules\nano\node_modules\request\request.js:888:1
4)',
' at emitOne (events.js:101:20)',
' at Request.emit (events.js:188:7)',
' at IncomingMessage. (E:\WORKSPACE\SERVER\htdocs\ser
ver\Apps\Dev\gh_maps\node_modules\nano\node_modules\request\request.
js:839:12)',
' at emitNone (events.js:91:20)',
' at IncomingMessage.emit (events.js:185:7)',
' at endReadableNT (_stream_readable.js:974:12)',
' at _combinedTickCallback (internal/process/next_tick.js:80:11)',
' at process._tickCallback (internal/process/next_tick.js:104:9)' ]
}

Docker Building Problems

I was trying to host my own ethermap instace as a docker Container via docker-compose, because this is an absolute cool Projekt.
Sadly i coulnt get it to Work.
First of al i had to replace the dockerfile/nodejs-bower-grunt with digitallyseamless/nodejs-bower-grunt, otherwise it wouldnt even start to build the container.
This is my Error Log:

Building ethermap
Step 1/13 : FROM digitallyseamless/nodejs-bower-grunt
 ---> 54852479d9a3
Step 2/13 : WORKDIR /app
 ---> Using cache
 ---> 2000c421f061
Step 3/13 : ADD package.json /app/
 ---> 432f4c51efa9
Step 4/13 : RUN npm install
 ---> Running in 83388003e2ec
npm WARN notice [SECURITY] grunt has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=grunt - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: use grunt-ng-annotate instead
npm WARN notice [SECURITY] lodash has the following vulnerabilities: 1 critical, 3 high, 2 moderate, 1 low. Go here for more details: https://github.com/advisories?query=lodash - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] ejs has the following vulnerabilities: 1 critical, 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=ejs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Critical security bugs fixed in 2.5.5
npm WARN notice [SECURITY] socket.io has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=socket.io - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] karma has the following vulnerabilities: 2 moderate. Go here for more details: https://github.com/advisories?query=karma - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] express has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=express - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please upgrade to @sentry/node. See the migration guide https://bit.ly/3ybOlo7
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN notice [SECURITY] lodash has the following vulnerabilities: 1 critical, 3 high, 2 moderate, 1 low. Go here for more details: https://github.com/advisories?query=lodash - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] underscore.string has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=underscore.string - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] minimatch has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=minimatch - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN notice [SECURITY] getobject has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=getobject - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] js-yaml has the following vulnerabilities: 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=js-yaml - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] clean-css has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=clean-css - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN notice [SECURITY] bower has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=bower - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This Bower version has SECURITY BUG THAT ALLOWS TO WRITE TO ARBITRARY FILE ON YOUR COMPUTER when you install malicious package. Please upgrade Bower to at least version 1.8.8 if you don't want to get hacked. More info: https://snyk.io/blog/severe-security-vulnerability-in-bowers-zip-archive-extraction/
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN notice [SECURITY] uglify-js has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=uglify-js - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] lodash has the following vulnerabilities: 4 high, 2 low. Go here for more details: https://github.com/advisories?query=lodash - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: use ng-annotate instead
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN notice [SECURITY] tar has the following vulnerabilities: 7 high. Go here for more details: https://github.com/advisories?query=tar - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=debug - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated [email protected]: Mocha v1.x is no longer supported.
npm WARN notice [SECURITY] request has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=request - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN notice [SECURITY] send has the following vulnerabilities: 1 moderate, 1 low. Go here for more details: https://github.com/advisories?query=send - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: connect 2.x series is deprecated
npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=debug - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] fresh has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=fresh - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN notice [SECURITY] cookie-signature has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=cookie-signature - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] underscore has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=underscore - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] http-proxy has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=http-proxy - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN notice [SECURITY] lodash has the following vulnerabilities: 1 critical, 3 high, 2 moderate, 1 low. Go here for more details: https://github.com/advisories?query=lodash - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: connect 2.x series is deprecated
npm WARN notice [SECURITY] useragent has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=useragent - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] log4js has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=log4js - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=mime - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: 0.x is no longer supported. Please upgrade to 6.x or higher.
npm WARN notice [SECURITY] underscore.string has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=underscore.string - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN notice [SECURITY] lodash has the following vulnerabilities: 1 critical, 3 high, 2 moderate, 1 low. Go here for more details: https://github.com/advisories?query=lodash - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] qs has the following vulnerabilities: 3 high. Go here for more details: https://github.com/advisories?query=qs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] underscore has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=underscore - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] shelljs has the following vulnerabilities: 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=shelljs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] minimatch has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=minimatch - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN notice [SECURITY] cli has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=cli - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] request has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=request - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] fstream has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=fstream - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN notice [SECURITY] semver has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=semver - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] request has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=request - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN notice [SECURITY] semver has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=semver - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] minimist has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=minimist - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] growl has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=growl - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] diff has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=diff - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] request has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=request - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN notice [SECURITY] qs has the following vulnerabilities: 3 high. Go here for more details: https://github.com/advisories?query=qs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] tunnel-agent has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=tunnel-agent - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] hawk has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=hawk - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN notice [SECURITY] uglify-js has the following vulnerabilities: 1 critical, 1 high. Go here for more details: https://github.com/advisories?query=uglify-js - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] negotiator has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=negotiator - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] xmlhttprequest has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=xmlhttprequest - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN notice [SECURITY] marked has the following vulnerabilities: 5 high, 3 moderate. Go here for more details: https://github.com/advisories?query=marked - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] underscore has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=underscore - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN notice [SECURITY] ws has the following vulnerabilities: 2 high, 1 low. Go here for more details: https://github.com/advisories?query=ws - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] qs has the following vulnerabilities: 3 high. Go here for more details: https://github.com/advisories?query=qs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] minimatch has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=minimatch - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN notice [SECURITY] semver has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=semver - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN notice [SECURITY] qs has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=qs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] tunnel-agent has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=tunnel-agent - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] bl has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=bl - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] hawk has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=hawk - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN notice [SECURITY] moment has the following vulnerabilities: 2 high, 1 moderate. Go here for more details: https://github.com/advisories?query=moment - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] bl has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=bl - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] qs has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=qs - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] hawk has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=hawk - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN notice [SECURITY] tough-cookie has the following vulnerabilities: 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=tough-cookie - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN notice [SECURITY] cryptiles has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=cryptiles - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: Use the globby package instead
npm WARN notice [SECURITY] concat-stream has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=concat-stream - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] minimatch has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=minimatch - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=hoek - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN notice [SECURITY] cli has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=cli - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] ini has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=ini - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated [email protected]: This module relies on Node.js's internals and will break at some point. Do not use it, and update to [email protected].
npm WARN notice [SECURITY] mout has the following vulnerabilities: 2 high. Go here for more details: https://github.com/advisories?query=mout - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN notice [SECURITY] decompress has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=decompress - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN notice [SECURITY] cryptiles has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=cryptiles - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=hoek - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN notice [SECURITY] minimist has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=minimist - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN notice [SECURITY] got has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=got - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.

> [email protected] install /app/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/app/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
bufferutil.target.mk:97: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: Leaving directory '/app/node_modules/ws/build'

> [email protected] install /app/node_modules/phantomjs
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
Saving to /app/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Receiving...

Received 12854K total.
Extracting tar contents (via spawned process)
Removing /app/node_modules/phantomjs/lib/phantom
Copying extracted folder /app/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1664387729605/phantomjs-1.9.8-linux-x86_64 -> /app/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /app/node_modules/phantomjs/lib/phantom/bin/phantomjs

> [email protected] postinstall /app/node_modules/jpegtran-bin
> node pre-build.js
  (node:198) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

  3 passing (229ms)

pre-build test passed successfully, skipping build...

> [email protected] postinstall /app/node_modules/gifsicle
> node index.js

path.js:39
    throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'path', 'string');
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
    at assertPath (path.js:39:11)
    at Object.basename (path.js:1300:5)
    at /app/node_modules/download/index.js:35:43
    at each (/app/node_modules/each-async/each-async.js:63:4)
    at module.exports (/app/node_modules/download/index.js:33:5)
    at /app/node_modules/bin-wrapper/index.js:108:20
    at /app/node_modules/bin-wrapper/index.js:141:24
    at /app/node_modules/bin-check/index.js:30:20
    at /app/node_modules/executable/index.js:39:20
    at FSReqWrap.oncomplete (fs.js:170:21)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@github:pipobscure/fsevents#7dcdf9fa3f8956610fd6f69f72c67bace2de7138 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-09-28T17_55_34_220Z-debug.log
ERROR: Service 'ethermap' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

The Only Important Stuff is at the End of course.

Kind Regards Joni

Unhandled stream error in pipe.

Ich benutze Ethermap mit einem selbstgeschriebenen Dockerfile, welches mit einer CouchDB Instanz verlinkt wird:

FROM dockerfile/nodejs-bower-grunt

RUN \
  mkdir -p /data && \
  cd /data && \
  git clone https://github.com/dwilhelm89/Ethermap.git && \
  cd Ethermap && \
  npm install
RUN  \
  cd /data/Ethermap && \
  bower install --allow-root && \
  grunt build

# Define working directory.
WORKDIR /data/Ethermap

ENV NODE_ENV production

# Define default command.
CMD ["node", "dist/server.js"]

Die CouchDB Quelle ist https://github.com/klaemo/docker-couchdb,
erstellt mit docker build -t couchdb .
gestartet mit docker run -d -p 127.0.0.1::5984 --name="couch_db" couchdb

erstellt mit docker build -t almereyda/ethermap:testing .,
gestartet mit docker run -i --name="ethermap" --link couch_db:db -p 8080:3000 almereyda/ethermap:testing

Der Server startet und zeigt auch die Startseite, jedoch das Öffnen einer Map crasht per

info: socket.io started
Express server listening on port 3000 in production mode
GET / 200 15ms
GET /partials/start 200 4ms - 546b
GET /partials/main 200 2ms - 370b
GET /partials/toolbox 200 12ms
{ [Error: error happened in your connection]
  name: 'Error',
  scope: 'socket',
  errid: 'request',
  code: 'ECONNREFUSED',
  errid: 'request',                                                                          [0/1375]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  description: 'connect ECONNREFUSED',
  stacktrace: 
   [ 'Error: connect ECONNREFUSED',
     '    at errnoException (net.js:904:11)',
     '    at Object.afterConnect [as oncomplete] (net.js:895:19)' ] }

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: connect ECONNREFUSED
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)

Womöglich ist eine Mitteilung darüber auch in eurem Sentry gelandet;
hätte ich gestern Abend doch mal eine eigene Instanz aufgebaut.

Was für ein Fehler kann das sein?

  • Socket.io?
  • die CouchDB Verlinkung?
  • ... ?

Danke.

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.