Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A
app
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Site.js
  • app
  • Issues
  • #235

Closed
Open
Opened Sep 18, 2020 by Laura Kalbag@laura❤Developer
  • Report abuse
  • New issue
Report abuse New issue

Can’t run local server on specific port

For some reason (newest version?) I can no longer run the local server on a specific port (example: site @localhost:444 or shorthand site :444)

I get the following error, suggesting that the port is already in use, on every port I try. I am already running another site on https://localhost, which is why I’m trying to run another site on a different port.


   🌱    Site.js

         Created September 2nd, 2020 at 15:53:29

         Version 20200902155329-15.1.0-2fa9b2d-macOS/x64
         Node.js 12.16.2
         Hugo    0.64.1

         Base    https://sitejs.org/nexe/darwin-x64-12.16.2
         Source  https://source.small-tech.org/site.js/app/-/tree/2fa9b2d

         ╔═══════════════════════════════════════════╗
         ║ Like this? Fund us!                       ║
         ║                                           ║
         ║ We’re a tiny, independent not-for-profit. ║
         ║ https://small-tech.org/fund-us            ║
         ╚═══════════════════════════════════════════╝

   🚧    ❨site.js❩ Using locally-trusted certificates.
   🔒    ❨https❩ Creating server at localhost with locally-trusted certificates.
   📜    ❨auto-encrypt-localhost❩ Local development TLS certificate exists.
   🔒    ❨https❩ Created HTTPS server.
   🎠    ❨site.js❩ Starting Hugo server (.hugo/ → https://localhost:888/)
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  port 1313 already in use, attempting to use an available port
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  Building sites …
🅷 🆄 🅶 🅾  WARN 2020/09/18 15:36:43 No custom.css file found in /assets/css
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  WARN 2020/09/18 15:36:43 homeFeatureImageAlt is not set in /config/params.toml
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  WARN 2020/09/18 15:36:43 No homepage feature image found in /assets
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  WARN 2020/09/18 15:36:43 No feature image found for '/subscribe/'
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾                     | EN
🅷 🆄 🅶 🅾  -------------------+-----
🅷 🆄 🅶 🅾    Pages            | 64
🅷 🆄 🅶 🅾    Paginator pages  |  2
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  Non-page files   |  2
🅷 🆄 🅶 🅾    Static files     | 79
🅷 🆄 🅶 🅾    Processed images | 22
🅷 🆄 🅶 🅾    Aliases          | 16
🅷 🆄 🅶 🅾    Sitemaps
🅷 🆄 🅶 🅾   |  1
🅷 🆄 🅶 🅾    Cleaned          |  0
🅷 🆄 🅶 🅾
🅷 🆄 🅶 🅾  Built in 56 ms
🅷 🆄 🅶 🅾
   🎠    ❨site.js❩ Serving generated static files.
   🐁    ❨site.js❩ Watching for changes to dynamic and wildcard routes.
events.js:287
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::80
    at Server.setupListenHandle [as _listen2] (net.js:1313:16)
    at listenInCluster (net.js:1361:12)
    at Server.listen (net.js:1449:7)
    at /usr/local/bin/node_modules/@small-tech/auto-encrypt-localhost/lib/HttpServer.js:132:21
    at new Promise (<anonymous>)
    at HttpServer.init (/usr/local/bin/node_modules/@small-tech/auto-encrypt-localhost/lib/HttpServer.js:130:11)
    at Function.getSharedInstance (/usr/local/bin/node_modules/@small-tech/auto-encrypt-localhost/lib/HttpServer.js:36:33)
    at Server.server.listen (/usr/local/bin/node_modules/@small-tech/auto-encrypt-localhost/index.js:153:18)
    at Site.serve (/usr/local/bin/index.js:922:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
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: 80
}
Assignee
Assign to
15.4.0
Milestone
15.4.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
1
Labels
Bug
Assign labels
  • View project labels
Reference: site.js/app#235

Like this? Fund us! Your patronage helps keep us independent and going.