From 615b26d7673dcce9da8c482b0945c4a26e96251f Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Wed, 25 May 2022 18:51:32 +0200 Subject: [PATCH] Suggestions by VincDev#0001 --- Troubleshooting.md | 48 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index fe82ab4..8c681da 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -14,8 +14,6 @@ Specify the correct version using: This error is derived from the server being unable to bind to a certain port. The server uses ports: `8888`, `443`, `80`, and `22102` (by default) -The keyphrase for verifying is `sponzen`. - **Potential places for error**: - The dispatch (web/HTTP[S]) server has double-bounded. - One of the above ports (or any you've specified) has been bound to by another process. @@ -24,17 +22,43 @@ The keyphrase for verifying is `sponzen`. - If an SSL certificate error is logged to the console, check your `keystore.p12` is in the correct place and with the correct password. - Run `netstat -aon | find /i "listening"` to find processes with the server ports. Then kill the process with `taskkill /PID `. -# Client Errors - -## Code 4206 -This error is derived from the client not being able to properly query the current server region. +## Client Can't Connect To The Server ( Error 4206 For Client ) **Potential places for error**: -- The client cannot properly establish an encrypted connection to the local server. -- The server is not properly handling the `query_cur_region` request. -- Your proxy isn't setup properly and isn't redirecting the `query_cur_region` request. +- Your operating system firewall have blocked the Grasscutter Port. +- These error can be happen on A Public Server , Because They Haven't Reverse Proxy HTTP To HTTPS. +- Hosting Firewall Have Blocked The Grasscutter Ports **Solutions**: -- Add the `keystore.p12` certificate to your system's **trusted certificate root authority** list. -- Double-check you can access `https://127.0.0.1/query_cur_region` in the browser. -- Check the settings for the proxy you are using (ex. Fiddler with its Fiddlerscript, MiTMProxy with its Python script, etc.) \ No newline at end of file +- Check Your Operating System Firewall Settings:
+Windows: Make Sure To Allow Their Port On Windows Firewall Settings (80,443,8888, And 22102)
+Linux: Make Sure To Write `sudo ufw allow 22102` , `sudo ufw allow 443` , `sudo ufw allow 80` , And `sudo ufw allow 8888` .
+- For public server hosting can use Nginx Proxy On Windows/Linux For Auto Redirect HTTP > HTTPS (Reverse Proxy) Or Cloudflare For The Auto Redirect ([Nginx Config File](https://raw.githubusercontent.com/Grasscutters/nginxgcconfig/main/nginx.conf)) +- The keyphrase for verifÿing is `sponzen`. +- Check Your Hosting Panel Like Azure, Google Cloud, Or ETC , Find The Networking Setting Or Firewall Setting On The Panel And Allow Grasscutter Port
+Allowed Port: `8888`, `443`, `80`, and `22102` + +# Client Errors +```java + public const ReportErrorCode DISPATCH_GLOBAL_GET_TIMEOUT = 4201; + public const ReportErrorCode DISPATCH_GLOBAL_GET_ERROR = 4202; + public const ReportErrorCode DISPATCH_GLOBAL_PARSE_EXCEPTION = 4203; + public const ReportErrorCode DISPATCH_GLOBAL_PARSE_INVALID = 4204; + public const ReportErrorCode DISPATCH_GLOBAL_CONFIG_PARSE_FAIL = 4205; + public const ReportErrorCode DISPATCH_REGION_GET_TIMEOUT = 4206; + public const ReportErrorCode DISPATCH_REGION_GET_ERROR = 4207; + public const ReportErrorCode DISPATCH_REGION_PARSE_EXCEPTION = 4208; + public const ReportErrorCode DISPATCH_REGION_PARSE_INVALID = 4209; + public const ReportErrorCode DISPATCH_CONFIG_PARSE_EXCEPTION = 4210; + public const ReportErrorCode DISPATCH_GLOBAL_CONFIG_PARSE_INVALID = 4211; + public const ReportErrorCode DISPATCH_REGION_RSP_INVALID = 4212; + public const ReportErrorCode DISPATCH_REGION_ERR_WITH_CODE = 4213; + public const ReportErrorCode LOGIN_TOKEN_GET_FAIL = 4301; + public const ReportErrorCode LOGIN_PLAYER_LOGIN__FAIL = 4302; + public const ReportErrorCode LOGIN_ENTER_SCENE_READY_FAIL = 4303; + public const ReportErrorCode LOGIN_INIT_FINISH_FAIL = 4304; + public const ReportErrorCode LOGIN_ENTER_SCENE_DONE_FAIL = 4305; + public const ReportErrorCode LOGIN_POST_ENTER_SCENE_FAIL = 4306; + public const ReportErrorCode LOGIN_ENTERTOKEN_INVALID = 4307; + public const ReportErrorCode LOGIN_TASK_TIMEOUT = 4308; +``` \ No newline at end of file