New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSCache and CWP CageFS at no extra cost with all CWPpro licences. The LSCache plugin is integrated into our WordPress and other script installers, and CWP CageFS gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Bug - AutoSSL Hangs

Started by WISTFUL, September 30, 2022, 06:03:24 PM

Previous topic - Next topic

WISTFUL

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

WISTFUL

The problem is that there is no .acme.sh in the root directory!
I had no such problem in my previous installation...

WISTFUL

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!

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

Regards,
Franco P.

WISTFUL

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)
[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:
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:
# tail -f /var/log/cwp/cwp_renew_autossl_bulk.log