heatpack was running fine until today, here's the error
events.js:85
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at net.js:1280:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:81:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:99:10)
no other server (nginx, node server...) is running.
Any suggestions?
Related
I have a problem my mongo-express container can't connect to the MongoDB container. Although I didn't change my code, I changed the version of the image container by downloading the latest version. And this is the log file from the mongo-express container.
(node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring
engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
Could not connect to database using connectionString: mongodb://admin:password#mongodb:27017/"
(node:7) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [mongodb:27017] on first connect [MongoNetworkTimeoutError: connection timed out
at connectionFailureError (/node_modules/mongodb/lib/core/connection/connect.js:362:14)
at Socket.<anonymous> (/node_modules/mongodb/lib/core/connection/connect.js:330:16)
at Object.onceWrapper (events.js:420:28)
at Socket.emit (events.js:314:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)]
at Pool.<anonymous> (/node_modules/mongodb/lib/core/topologies/server.js:441:11)
at Pool.emit (events.js:314:20)
at /node_modules/mongodb/lib/core/connection/pool.js:564:14
at /node_modules/mongodb/lib/core/connection/pool.js:1000:11
at /node_modules/mongodb/lib/core/connection/connect.js:32:7
at callback (/node_modules/mongodb/lib/core/connection/connect.js:300:5)
at Socket.<anonymous> (/node_modules/mongodb/lib/core/connection/connect.js:330:7)
at Object.onceWrapper (events.js:420:28)
at Socket.emit (events.js:314:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I tried to connect mongo-express to MongoDB and every 10 seconds mongo-express restarted.
I have set http_proxy and https_proxy, also set system variables, but still get the following error when I tried to get the latest chrome driver and selenium server:
C:\Users\Administrator\AppData\Roaming\npm>webdriver-manager update
events.js:160
throw er; // Unhandled 'error' event
^
Error: unable to verify the first certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:610:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
OS:win7 32bit
protractor:5.1.1
nodejs:6.10.2
java:1.7.79
npm:3.10.10
Hello I am working with Ionic and I want to install ionic using command
ionic start --v myapp tabs
But I am getting Error
Creating Ionic app in folder C:\Users\Ahmad\myapp based on tabs project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Error with start Error: tunneling socket could not be established, statusCode=30
2
at ClientRequest.onConnect (C:\Users\Ahmad\AppData\Roaming\npm\node_modules\
ionic\node_modules\ionic-app-lib\node_modules\request\node_modules\tunnel-agent\
index.js:165:19)
at ClientRequest.g (events.js:260:16)
at emitThree (events.js:97:13)
at ClientRequest.emit (events.js:175:7)
at Socket.socketOnData (_http_client.js:352:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
Error Initializing app: Error: tunneling socket could not be established, status
Code=302
Error: tunneling socket could not be established, statusCode=302
at ClientRequest.onConnect (C:\Users\Ahmad\AppData\Roaming\npm\node_modules\
ionic\node_modules\ionic-app-lib\node_modules\request\node_modules\tunnel-agent\
index.js:165:19)
at ClientRequest.g (events.js:260:16)
at emitThree (events.js:97:13)
at ClientRequest.emit (events.js:175:7)
at Socket.socketOnData (_http_client.js:352:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
I did R&D But not getting useful solution how to resolved that.
I resolved this issue.I am working with window 8 .I just find out the
environment variable https_proxy and delete this variable then problem is
resolved
This is what i am getting in console
nothing change in npm or in code ,nothing found on internet related to this issue
[14:29:48] I/local - Starting selenium standalone server...
[14:29:48] I/launcher - Running 1 instances of WebDriver
[14:29:50] I/local - Selenium standalone server started at http://192.168.80.132:49611/wd/hub
D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\error.js:27
super(opt_error);
^
WebDriverError: Connection reset
at WebDriverError (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\error.js:27:10)
at Object.checkLegacyResponse (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\erro
r.js:580:13)
at D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:64:13
at Promise.invokeCallback_ (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\pro
mise.js:1329:14)
at TaskQueue.execute_ (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.
js:2790:14)
at TaskQueue.executeNext_ (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\prom
ise.js:2773:21)
at D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2652:27
at D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
at process._tickCallback (node.js:369:9)
From: Task: WebDriver.createSession()
at acquireSession (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js
:62:22)
at Function.createSession (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\webd
river.js:295:12)
at Builder.build (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\builder.js:458:24
)
at Local.DriverProvider.getNewDriver (D:\Workspace\pen\content\node_modules\protractor\built\driverProviders\driverP
rovider.js:37:33)
at Runner.createBrowser (D:\Workspace\pen\content\node_modules\protractor\built\runner.js:182:43)
at D:\Workspace\pen\content\node_modules\protractor\built\runner.js:255:30
at _fulfilled (D:\Workspace\pen\content\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (D:\Workspace\pen\content\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (D:\Workspace\pen\content\node_modules\q\q.js:796:13)
at D:\Workspace\pen\content\node_modules\q\q.js:604:44
[14:29:54] E/launcher - Process exited with error code 1
npm ERR! Windows_NT 6.3.9600
WHILE CREATING NEW IONIC APP I AM GETTING THIS ERROR
C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\lib\cli.js:474
process.stdout.write('Unable to fetch', err, res.statusCode);
TypeError: Cannot read property 'statusCode' of undefined
at Request._callback (C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\lib\cli.js:474:55)
at self.callback (C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:373:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:971:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:306:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
This most likely a proxy issue.
Make sure that you are using pc / laptop with direct internet connection.
I hope this solves your issue.
If you are using windows and using cmd to run ionic app then use this command to set your proxy
set http_proxy=http://[your proxy servers IP : your proxy servers port]