node-hill's Errors and what they mean

SmartLion
Joined 16/04/2017
Posts 1,970
08:08 PM 04/10/2020
At any stage of hosting your server you may spot some strings of text
Some of these are errors or just info messages
This post will tell you what the messages mean
If you find an error that isn't listed here then please send your error here so I can explain it

The server window opens but closes right after!: This means that node-hill got an error and closed the window as the batch job was complete
This usually only happens if you start node-hill with the launch_server.bat file
Doing this will cause you to miss out on useful information as to why your server isn't starting
To see why your server isn't running try editing the launch_server.bat file to look like this
node .\start.js
pause
The pause will make the window not close when the server crashes
Because of that you should be able to see the errors such as the ones described below

Error: Cannot find module 'node-hill': This means that you have not installed node-hill via npm
To fix this start at step 3 to 4 of my replies at https://www.brick-hill.com/forum/thread/690748/

npm WARNs: Most of the time you should just ignore it

found 143 vulnerabilities: Unsure. It depends but can be ignored

Error: listen EADDRINUSE: address already in use 0.0.0.0:42480: It likely means that you are already running a node-hill server
Close the other server to solve this OR change the port inside start.js

Failure while posting to games page: {"error":"You are not the owner"}: This is likely because of many reasons
1. The gameId wasn't configured. Open the start.js file with notepad and edit gameId to your set's Id
2. Brick Hill isn't able to confirm your IP address and usually because your ip is a ipv6 ip or you use a browser VPN
Try following step 7.0 of this to fix it https://www.brick-hill.com/forum/thread/690748/

Ingame: Cannot find server.: This is most likely caused by not portforwarding/or incorrectly portforwarding
Find a guide for portforwarding
OR If you did portforward then try asking someone to join your game and if they are able to join your game then that's some sort of problem I have not yet found a fix for

'node' is not recognized as an internal or external command, operable program or batch file.: This is because you did not install node.js
https://nodejs.org/en/

SyntaxError: You made a terrible mistake while editing the start.js file!
This depends on how you butchered your important file

Error: Cannot find module 'c:\path\to\file': This means that node.js can't find the file
It usually happens if you incorrectly open command prompt in the wrong folder
In the command prompt the last line you usually see is something like this
C:\Users\UsernameBob\MyServers\node-hill>
If the line doesn't show where its supposed to be then you can try changing the current directory by using the cd command
Example: cd C:\Path\To\Your\node-hill\Folder
And then use the command that sent that error before


SmartLion
Joined 16/04/2017
Posts 1,970
08:12 PM 04/10/2020
Forgot to add a solution to SyntaxError
If you aren't able to solve this on your own then you should send us your start.js file so we can correct the file
Joining our discord would be the easiest way to discuss other hosting issues too
https://discord.gg/f3AHUad


[Code] Noah Cool Boy
Joined 20/06/2019
Posts 1,129
05:56 AM 05/10/2020
Here is a great tool to check if you did the port forwarding correctly
https://www.canyouseeme.org/


SmartLion
Joined 16/04/2017
Posts 1,970
07:30 AM 05/10/2020
Error while posting to games page.: If this error only happens after a few minutes of startup then you should ignore this
If it does happen right after startup then you have an actual problem to worry about
This usually happens on terrible network conditions where requests to Brick Hill take an extremely long time


[TLVK] Edge.
Joined 19/05/2020
Posts 2,266
02:49 PM 05/10/2020
In the vulnerabilities part it's better to take care. Node Package manager has a command to partially fix the vulns.

https://media.discordapp.net/attachments/715626496915406871/762687404116279346/unknown.png

Still, dont worry, most of these vulns are caused by the packages themselves, eventually they get updates and patch most of them.

To update them you just run the command npm update on your node-hill directory.


Timm
Joined 28/06/2020
Posts 4,675
10:45 AM 06/10/2020
ok thank you for this


Green Fox from roblox
Joined 17/07/2020
Posts 35
05:28 PM 21/10/2020
I only get warns but still can't host my server.


SmartLion
Joined 16/04/2017
Posts 1,970
04:13 PM 29/10/2020
Quote from Green Fox from roblox , 05:28 PM 21/10/2020
I only get warns but still can't host my server.
What warns? It is important to explain the whole error.

1