Skip to content

ERR_CONNECTION_REFUSEDย #367

@iamludal

Description

@iamludal

Hello ๐Ÿ‘‹,

I know that's a duplicate issue, but I've searched for everything concerning : hotel.localhost, hotel.dev, ERR_CONNECTION_REFUSED, and couldn't find any solution.

โœ… http://localhost:2000 works fine, but โŒ http://hotel.localhost doesn't.

I've tried to use another browser, Firefox ("Unable to connect"), use https over http, set my proxy settings to 'Automatic' and with http://localhost:2000/proxy.pac as configuration url, but nothing seems to works.

Here's the content of ~/.hotel/daemon.log:

20:00:41 - Watching /home/ludal/.hotel/servers
20:00:41 - /home/ludal/.hotel/servers/aikido-roncq.json added
20:00:41 - Add server aikido-roncq
create /home/ludal/.hotel/daemon.pid 55298
20:00:41 - Reading self-signed certificate in ~/.hotel
Exiting
Stop daemon
Remove pid file
events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::2001
    at Server.setupListenHandle [as _listen2] (net.js:1313:16)
    at listenInCluster (net.js:1361:12)
    at Server.listen (net.js:1447:7)
    at ProxyServer.listen (/home/ludal/.nvm/versions/node/v12.18.0/lib/node_modules/hotel/node_modules/http-proxy/lib/http-proxy/index.js:136:16)
    at Object.<anonymous> (/home/ludal/.nvm/versions/node/v12.18.0/lib/node_modules/hotel/lib/daemon/index.js:46:7)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
Emitted 'error' event on Server instance at:
    at emitErrorNT (net.js:1340:8)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  code: 'EADDRINUSE',
  errno: 'EADDRINUSE',
  syscall: 'listen',
  address: '::',
  port: 2001
}

The content seems to be the same as #300, and #323 .

If anyone has an idea, please don't hesitate.

Thanks in advance. ๐Ÿ˜Š

Specificiations

Ubuntu 20.04.1 LTS
Google Chrome 86.0.4240.111
Mozilla Firefox 82.0
Hotel 0.8.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions