[GH-ISSUE #3815] The SSL installation fails if cron is not installed #2576

Closed
opened 2026-10-31 20:26:28 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @tyumen-777 on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3815

Describe the bug

The SSL installation fails if cron is not installed.

How to repeat the problem?

Please enter your selection [0-25]: 18
	1. Get SSL (Domain)
	2. Revoke
	3. Force Renew
	4. Show Existing Domains
	5. Set Cert paths for the panel
	6. Get SSL for IP Address (6-day cert, auto-renews)
	0. Back to Main Menu
Choose an option: 1
acme.sh could not be found. we will install it
[INF] Installing acme.sh...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  229k  100  229k    0     0   946k      0 --:--:-- --:--:-- --:--:--  949k
[Mon Feb 16 18:32:55 CET 2026] Installing from online archive.
[Mon Feb 16 18:32:55 CET 2026] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Mon Feb 16 18:32:56 CET 2026] Extracting master.tar.gz
[Mon Feb 16 18:32:56 CET 2026] It is recommended to install crontab first. Try to install 'cron', 'crontab', 'crontabs' or 'vixie-cron'.
[Mon Feb 16 18:32:56 CET 2026] We need to set a cron job to renew the certs automatically.
[Mon Feb 16 18:32:56 CET 2026] Otherwise, your certs will not be able to be renewed automatically.
[Mon Feb 16 18:32:56 CET 2026] Please add '--force' and try install again to go without crontab.
[Mon Feb 16 18:32:56 CET 2026] ./acme.sh --install --force
[Mon Feb 16 18:32:56 CET 2026] Pre-check failed, cannot install.
[INF] Installation of acme.sh succeeded.
[INF] install socat succeed...
Please enter your domain name: 
[DEG] Your domain is: , checking it...
/usr/bin/x-ui: line 1365: /root/.acme.sh/acme.sh: No such file or directory
[INF] Your domain is ready for issuing certificates now...
Please choose which port to use (default is 80):
[ERR] Your input  is invalid, will use default port 80.
[INF] Will use port: 80 to issue certificates. Please make sure this port is open.
/usr/bin/x-ui: line 1394: /root/.acme.sh/acme.sh: No such file or directory
/usr/bin/x-ui: line 1395: /root/.acme.sh/acme.sh: No such file or directory
[ERR] Issuing certificate failed, please check logs.
root@instance262172:~# apt-get update
Hit:1 https://mirror.waicore.com/ubuntu jammy InRelease
Hit:2 https://mirror.waicore.com/ubuntu jammy-updates InRelease
Hit:3 https://mirror.waicore.com/ubuntu jammy-backports InRelease
Hit:4 https://mirror.waicore.com/ubuntu jammy-security InRelease
Reading package lists... Done
root@instance262172:~#

This error is resolved after running
apt install cron -y

Expected action

This script already checks for cron, but if cron is missing, the script should install it first.
There must be some logical errors in the current script, cron missing will causes the acme.sh installation to fail. Maybe try fixing it?

Received action

No response

3x-ui Version

2.8.10

Xray-core Version

26.2.6

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @tyumen-777 on GitHub (Feb 16, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3815 ### Describe the bug The SSL installation fails if cron is not installed. ### How to repeat the problem? ``` Please enter your selection [0-25]: 18 1. Get SSL (Domain) 2. Revoke 3. Force Renew 4. Show Existing Domains 5. Set Cert paths for the panel 6. Get SSL for IP Address (6-day cert, auto-renews) 0. Back to Main Menu Choose an option: 1 acme.sh could not be found. we will install it [INF] Installing acme.sh... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 229k 100 229k 0 0 946k 0 --:--:-- --:--:-- --:--:-- 949k [Mon Feb 16 18:32:55 CET 2026] Installing from online archive. [Mon Feb 16 18:32:55 CET 2026] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz [Mon Feb 16 18:32:56 CET 2026] Extracting master.tar.gz [Mon Feb 16 18:32:56 CET 2026] It is recommended to install crontab first. Try to install 'cron', 'crontab', 'crontabs' or 'vixie-cron'. [Mon Feb 16 18:32:56 CET 2026] We need to set a cron job to renew the certs automatically. [Mon Feb 16 18:32:56 CET 2026] Otherwise, your certs will not be able to be renewed automatically. [Mon Feb 16 18:32:56 CET 2026] Please add '--force' and try install again to go without crontab. [Mon Feb 16 18:32:56 CET 2026] ./acme.sh --install --force [Mon Feb 16 18:32:56 CET 2026] Pre-check failed, cannot install. [INF] Installation of acme.sh succeeded. [INF] install socat succeed... Please enter your domain name: [DEG] Your domain is: , checking it... /usr/bin/x-ui: line 1365: /root/.acme.sh/acme.sh: No such file or directory [INF] Your domain is ready for issuing certificates now... Please choose which port to use (default is 80): [ERR] Your input is invalid, will use default port 80. [INF] Will use port: 80 to issue certificates. Please make sure this port is open. /usr/bin/x-ui: line 1394: /root/.acme.sh/acme.sh: No such file or directory /usr/bin/x-ui: line 1395: /root/.acme.sh/acme.sh: No such file or directory [ERR] Issuing certificate failed, please check logs. root@instance262172:~# apt-get update Hit:1 https://mirror.waicore.com/ubuntu jammy InRelease Hit:2 https://mirror.waicore.com/ubuntu jammy-updates InRelease Hit:3 https://mirror.waicore.com/ubuntu jammy-backports InRelease Hit:4 https://mirror.waicore.com/ubuntu jammy-security InRelease Reading package lists... Done root@instance262172:~# ``` This error is resolved after running apt install cron -y ### Expected action This script already checks for cron, but if cron is missing, the script should install it first. There must be some logical errors in the current script, cron missing will causes the acme.sh installation to fail. Maybe try fixing it? ### Received action _No response_ ### 3x-ui Version 2.8.10 ### Xray-core Version 26.2.6 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:26:28 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
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
MHSanaei/3x-ui#2576
No description provided.