[GH-ISSUE #26] Not serving web page #20

Closed
opened 2026-02-26 12:33:44 +03:00 by kerem · 1 comment
Owner

Originally created by @jeffshead on GitHub (May 21, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/26

I used the shadowsocks-ck-release.sh script to install on a CentOS 7 Minimal server with Apache. The script finished with a success message and displayed the install info. However, the redirect web page is no longer served and I get the following error in a Firefox browser:

An error occurred during a connection to mysite.com. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

I get the same error even when I change the redirect web page to: WebServerAddr=204.79.197.200:443.

Also, connections from the Shadowsocks client are unsuccessful.

Below is what I get if I use ss-server -c /etc/shadowsocks-libev/config.json

2019-05-21 11:26:55 INFO: plugin "ck-server" enabled
2019-05-21 11:26:55 INFO: initializing ciphers... aes-256-gcm
2019-05-21 11:26:55 INFO: using nameserver: 8.8.8.8
2019-05-21 11:26:55 INFO: tcp server listening at 127.0.0.1:54768
2019/05/21 11:26:55 ck-server.go:265: Listening on 0.0.0.0:443
2019/05/21 11:26:55 ck-server.go:267: listen tcp 0.0.0.0:443: bind: address already in use
2019-05-21 11:26:55 ERROR: plugin service exit unexpectedly

I don't know where to begin troubleshooting. Please help.

I do have my Apache vhost listening on port 444.

Below is my \etc\shadowsocks-libev\config.json

{
    "server":"0.0.0.0",
    "server_port":443,
    "password":"gjxuLfgght$jN",
    "timeout":300,
    "user":"nobody",
    "method":"aes-256-gcm",
    "fast_open":false,
    "nameserver":"8.8.8.8",
    "plugin":"ck-server",
    "plugin_opts":"WebServerAddr=127.0.0.1:444;PrivateKey=mOgNzBsdg19xDt+rdffgLZ/VAadffgRlg3strty=;AdminUID=6YoiyuorttypTtruOrW9Ns45ytbIC12/3bI=;DatabasePath=/root/userinfo.db;BackupDirPath=/root"
}

Below is my ck-client.json:

{
	"ServerName":"www.mysite.com",
	"Key":"Jk4faPMsdfCt/svxbjNl352dghyHWW7Khjjk68WLzkc=",
	"TicketTimeHint":3600,
	"Browser":"chrome"
}
Originally created by @jeffshead on GitHub (May 21, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/26 I used the _shadowsocks-ck-release.sh_ script to install on a CentOS 7 Minimal server with Apache. The script finished with a success message and displayed the install info. However, the redirect web page is no longer served and I get the following error in a Firefox browser: > An error occurred during a connection to mysite.com. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG I get the same error even when I change the redirect web page to: WebServerAddr=204.79.197.200:443. Also, connections from the Shadowsocks client are unsuccessful. Below is what I get if I use **_ss-server -c /etc/shadowsocks-libev/config.json_** > 2019-05-21 11:26:55 INFO: plugin "ck-server" enabled > 2019-05-21 11:26:55 INFO: initializing ciphers... aes-256-gcm > 2019-05-21 11:26:55 INFO: using nameserver: 8.8.8.8 > 2019-05-21 11:26:55 INFO: tcp server listening at 127.0.0.1:54768 > 2019/05/21 11:26:55 ck-server.go:265: Listening on 0.0.0.0:443 > 2019/05/21 11:26:55 ck-server.go:267: listen tcp 0.0.0.0:443: bind: address already in use > 2019-05-21 11:26:55 ERROR: plugin service exit unexpectedly ### I don't know where to begin troubleshooting. Please help. I do have my Apache vhost listening on port 444. Below is my **_\etc\shadowsocks-libev\config.json_** ``` { "server":"0.0.0.0", "server_port":443, "password":"gjxuLfgght$jN", "timeout":300, "user":"nobody", "method":"aes-256-gcm", "fast_open":false, "nameserver":"8.8.8.8", "plugin":"ck-server", "plugin_opts":"WebServerAddr=127.0.0.1:444;PrivateKey=mOgNzBsdg19xDt+rdffgLZ/VAadffgRlg3strty=;AdminUID=6YoiyuorttypTtruOrW9Ns45ytbIC12/3bI=;DatabasePath=/root/userinfo.db;BackupDirPath=/root" } ``` Below is my **_ck-client.json_**: ``` { "ServerName":"www.mysite.com", "Key":"Jk4faPMsdfCt/svxbjNl352dghyHWW7Khjjk68WLzkc=", "TicketTimeHint":3600, "Browser":"chrome" } ```
kerem closed this issue 2026-02-26 12:33:44 +03:00
Author
Owner

@jeffshead commented on GitHub (May 21, 2019):

I solved my issues.

  1. I changed the Apache Listen port to 444 in my vhost config file but I neglected to also change it in the ssl.conf file.
  2. I was using the GoQuiet variables in my ck-client.json config file.
<!-- gh-comment-id:494464502 --> @jeffshead commented on GitHub (May 21, 2019): I solved my issues. 1. I changed the Apache Listen port to 444 in my vhost config file but I neglected to also change it in the ssl.conf file. 2. I was using the GoQuiet variables in my ck-client.json config file.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#20
No description provided.