Author Topic: Bug - AutoSSL Hangs  (Read 548 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Bug - AutoSSL Hangs
« on: September 30, 2022, 06:03:24 PM »
When I use Auto SSL, without completing the process, the whole panel hangs!

Also on Create a New Account if Auto SSL checked, after long time below error displayed in popup:
504 Gateway Time-out
cwpsrv

CWPpro version: 0.9.8.1145 (fresh install without any settings)
Distro Name: CentOS Linux release 7.9.2009 (Core)
Kernel Version: 3.10.0-1160.76.1.el7.x86_64

Offline
*
Re: Bug - AutoSSL Hangs
« Reply #1 on: September 30, 2022, 09:31:17 PM »
The problem is that there is no .acme.sh in the root directory!
I had no such problem in my previous installation...

Offline
*
Re: Bug - AutoSSL Hangs
« Reply #2 on: October 01, 2022, 03:06:19 AM »
Even though I tell CWP support that .acme.sh file doesn't exist in the root directory, it insists that it's not a bug and acme.sh.log should be checked!

Quote
This is not a bug, as instructed you are advised to check the acme. /root/acme.sh/acme.sh.log

Regards,
Franco P.

Offline
*
Re: Bug - AutoSSL Hangs
« Reply #3 on: October 01, 2022, 09:35:39 PM »
During the installation, due to issue in my server network, acme was not downloaded from repository.

I solved the issue by doing following steps:

1. Install acme (with proxy)
Code: [Select]
[root@server ~]# sh /scripts/install_acme
--2022-10-01 19:45:48--  http://get.acme.sh/
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’
2022-10-01 19:45:48 (20.4 MB/s) - ‘index.html’ saved [1032]
[Sat Oct  1 19:45:50 BST 2022] Installing from online archive.
[Sat Oct  1 19:45:50 BST 2022] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Sat Oct  1 19:45:52 BST 2022] Extracting master.tar.gz
[Sat Oct  1 19:45:53 BST 2022] Installing to /root/.acme.sh
[Sat Oct  1 19:45:53 BST 2022] Installed to /root/.acme.sh/acme.sh
[Sat Oct  1 19:45:53 BST 2022] Installing alias to '/root/.bashrc'
[Sat Oct  1 19:45:53 BST 2022] OK, Close and reopen your terminal to start using acme.sh
[Sat Oct  1 19:45:53 BST 2022] Installing alias to '/root/.cshrc'
[Sat Oct  1 19:45:53 BST 2022] Installing alias to '/root/.tcshrc'
[Sat Oct  1 19:45:53 BST 2022] Installing cron job
18 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Sat Oct  1 19:45:53 BST 2022] Good, bash is found, so change the shebang to use bash as preferred.
[Sat Oct  1 19:45:56 BST 2022] OK
[Sat Oct  1 19:45:56 BST 2022] Install success!
[Sat Oct  1 19:45:56 BST 2022] Changed default CA to: https://acme-v02.api.letsencrypt.org/directory

2. Update Crontab for user root:
Code: [Select]
0 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh/cwp_certs" > /dev/null
3. CWP.admin > Server Settings > Change Hostname > Save (without change)

4. CWP.admin > SSL Certificates > Force all renovations

5. View log:
Code: [Select]
# tail -f /var/log/cwp/cwp_renew_autossl_bulk.log