CommunitySolidServer / CommunitySolidServer

An open and modular implementation of the Solid specifications
https://communitysolidserver.github.io/CommunitySolidServer/
MIT License
526 stars 125 forks source link

Bug Report: Community Solid Server Setup Fails On Startup #1962

Open tdiprima opened 2 days ago

tdiprima commented 2 days ago

Environment

Description

I followed the instructions in the README by running npx @solid/community-server and then navigating to http://localhost:3000/. The page displays "500: Internal Error", and the following errors were observed in the Developer Console:

  1. Error loading backend config:

    {
     "name": "NotFoundHttpError",
     "message": "",
     "statusCode": 404,
     "errorCode": "H404",
     "details": {}
    }
  2. Module Loading Error:

    TypeError: error loading dynamically imported module: http://localhost:3000/_app/immutable/nodes/28.C0V9_rRv.js

These errors were consistent on both Firefox and Chrome.

Expected Behavior

The server should start successfully and display the default interface at http://localhost:3000/

tdiprima commented 2 days ago

Update: After some troubleshooting, I discovered that running the server on a different port (e.g., 3003 instead of 3000) allowed it to start without errors. It's unclear why this workaround resolved the issue since nothing else was running on port 3000.

joachimvh commented 23 hours ago

I have never seen anyone have this error so I can't immediately help here. I'm wondering if perhaps something else is running on port 3000 that is conflicting?

tdiprima commented 15 hours ago

Thanks for commenting! And that would totally make sense! But as I said - nothing else was running on port 3000. I checked.

Just now, I tested what would happen if you do run something on the same port. The output log clearly says that the address is in use:

{
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '::',
  port: 3000
}

It terminates immediately, so you don't even get a running web page. So we're back to the original error.