usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.48k stars 577 forks source link

[BUG]Unable to install CyberPanel #1157

Closed DazaiYuki closed 7 months ago

DazaiYuki commented 7 months ago

I want to create a topic on the forum but seems like registration is closed. :(

Fresh install of Ubuntu 22.04 and fully up-to-date

[ERROR] We are not able to run DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed return code: 100.

Here is the full logs ` Starting installation..,1

Initialization completed..,2

Setting up repositories...,1

Setting up repositories for CN server...,1

Setting up repositories for CN server...,1

Setting up PIP repo...,3

Installing necessary components..,3

Installing required virtual environment,3

Installing requirments..,3

Getting CyberPanel code..,4

Necessary components installed..,5

Setting up system tweak...,20

Starting main installation..,30

Setting up URLs for CN server...,1 [11.20.2023_10-41-17] Starting CyberPanel installation..,10 [11.20.2023_10-41-18] Running: dd if=/dev/zero of=/usr/.tempdisk bs=100M count=15,10 [11.20.2023_10-41-29] Successfully ran: dd if=/dev/zero of=/usr/.tempdisk bs=100M count=15.,10 [11.20.2023_10-41-30] Running: mkfs.ext4 -F /usr/.tempdisk,10 [11.20.2023_10-41-32] Successfully ran: mkfs.ext4 -F /usr/.tempdisk.,10 [11.20.2023_10-41-33] Running: mkdir -p /usr/.tmpbak/,10 [11.20.2023_10-41-33] Successfully ran: mkdir -p /usr/.tmpbak/.,10 [11.20.2023_10-41-34] Running: mount -o loop-rw-nodev-nosuid-noexec-nofail /usr/.tempdisk /tmp,10 [11.20.2023_10-41-35] Successfully ran: mount -o loop-rw-nodev-nosuid-noexec-nofail /usr/.tempdisk /tmp.,10 [11.20.2023_10-41-36] Running: chmod 1777 /tmp,10 [11.20.2023_10-41-37] Successfully ran: chmod 1777 /tmp.,10 [11.20.2023_10-41-37] Running: rm -rf /usr/.tmpbak,10 [11.20.2023_10-41-38] Successfully ran: rm -rf /usr/.tmpbak.,10 [11.20.2023_10-41-39] Running: mount --bind /tmp /var/tmp,10 [11.20.2023_10-41-40] Successfully ran: mount --bind /tmp /var/tmp.,10 [11.20.2023_10-41-41] Running: adduser --disabled-login --gecos "" cyberpanel,10 [11.20.2023_10-41-42] Successfully ran: adduser --disabled-login --gecos "" cyberpanel.,10 [11.20.2023_10-41-42] Running: adduser --disabled-login --gecos "" docker,10 [11.20.2023_10-41-43] Successfully ran: adduser --disabled-login --gecos "" docker.,10 [11.20.2023_10-41-44] Running: groupadd docker,10 [11.20.2023_10-41-45] [ERROR] We are not able to run groupadd docker return code: 9.,10 [11.20.2023_10-41-45] Running: usermod -aG docker docker,10 [11.20.2023_10-41-46] Successfully ran: usermod -aG docker docker.,10 [11.20.2023_10-41-47] Running: usermod -aG docker cyberpanel,10 [11.20.2023_10-41-48] Successfully ran: usermod -aG docker cyberpanel.,10 [11.20.2023_10-41-49] Running: mkdir -p /etc/letsencrypt/live/,10 [11.20.2023_10-41-50] Successfully ran: mkdir -p /etc/letsencrypt/live/.,10 [11.20.2023_10-41-50] Running: wget https://cyberpanel.sh/litespeed/enable_lst_debain_repo.sh,10 [11.20.2023_10-41-52] Successfully ran: wget https://cyberpanel.sh/litespeed/enable_lst_debain_repo.sh.,10 [11.20.2023_10-41-52] Running: ./enable_lst_debain_repo.sh,10 [11.20.2023_10-41-57] Successfully ran: ./enable_lst_debain_repo.sh.,10 [11.20.2023_10-41-58] Running: ,10 [11.20.2023_10-41-58] Successfully ran: .,10 [11.20.2023_10-41-59] Running: ,10 [11.20.2023_10-42-00] Successfully ran: .,10 [11.20.2023_10-42-01] Installing LiteSpeed Web server,40 [11.20.2023_10-42-03] Running: DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed,40 [11.20.2023_10-42-05] [ERROR] We are not able to run DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed return code: 100. Fatal error, see /var/log/installLogs.txt for full details. [11.20.2023_10-42-06] [ERROR] We are not able to run DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed return code: 100. Fatal error, see /var/log/installLogs.txt for full details.

Oops, something went wrong... [404] `

qtwrk commented 7 months ago

what was the message on-screen when it stops ? it should give some more information when apt failed

and also please try on a clean ubuntu22.04 , run

bash <(curl https://cyberpanel.sh/litespeed/enable_lst_debain_repo.sh)
DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed

and see what happens.

DazaiYuki commented 7 months ago

what was the message on-screen when it stops ? it should give some more information when apt failed

and also please try on a clean ubuntu22.04 , run

bash <(curl https://cyberpanel.sh/litespeed/enable_lst_debain_repo.sh)
DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed

and see what happens.

When it stops, it shows

[ERROR] We are not able to run DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed return code: 100. Fatal error, see /var/log/installLogs.txt for full details.

Oops, something went wrong... 

My server is in China, so maybe there are some issues, about mirrors or others? seems like no errors in the network during standard installation. and maybe the "clean ubuntu" is modified by cloud service provider

I tried this but the result is↓

root@VM-8-15-ubuntu:/home/ubuntu# bash <(curl https://cyberpanel.sh/litespeed/enable_lst_debain_repo.sh)
DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3944  100  3944    0     0   7020      0 --:--:-- --:--:-- --:--:--  7017
 detecting OS type : 
detected OS: ubuntu - 22.04
 now enable the LiteSpeed Debian Repo 
 register LiteSpeed GPG key 
--2023-11-20 15:15:58--  https://cyberpanel.sh/rpms.litespeedtech.com/debian/lst_debian_repo.gpg
Resolving cyberpanel.sh (cyberpanel.sh)... 89.208.248.38
Connecting to cyberpanel.sh (cyberpanel.sh)|89.208.248.38|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1198 (1.2K) [application/octet-stream]
Saving to: ‘/etc/apt/trusted.gpg.d/lst_debian_repo.gpg’

/etc/apt/trusted.gpg.d/lst 100%[========================================>]   1.17K  --.-KB/s    in 0s      

2023-11-20 15:15:59 (16.8 MB/s) - ‘/etc/apt/trusted.gpg.d/lst_debian_repo.gpg’ saved [1198/1198]

--2023-11-20 15:15:59--  https://cyberpanel.sh/rpms.litespeedtech.com/debian/lst_repo.gpg
Resolving cyberpanel.sh (cyberpanel.sh)... 89.208.248.38
Connecting to cyberpanel.sh (cyberpanel.sh)|89.208.248.38|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2336 (2.3K) [application/octet-stream]
Saving to: ‘/etc/apt/trusted.gpg.d/lst_repo.gpg’

/etc/apt/trusted.gpg.d/lst 100%[========================================>]   2.28K  --.-KB/s    in 0s      

2023-11-20 15:15:59 (114 MB/s) - ‘/etc/apt/trusted.gpg.d/lst_repo.gpg’ saved [2336/2336]

 update the repo 
Hit:1 http://mirrors.tencentyun.com/ubuntu jammy InRelease
Get:2 http://mirrors.tencentyun.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://mirrors.tencentyun.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://mirrors.tencentyun.com/ubuntu jammy-updates/main amd64 Packages [1,162 kB]
Get:5 http://mirrors.tencentyun.com/ubuntu jammy-updates/main Translation-en [248 kB]
Get:6 http://mirrors.tencentyun.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [16.1 kB]
Get:7 http://mirrors.tencentyun.com/ubuntu jammy-updates/restricted amd64 Packages [1,114 kB]
Get:8 http://mirrors.tencentyun.com/ubuntu jammy-updates/restricted Translation-en [181 kB]
Get:9 http://mirrors.tencentyun.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [520 B]
Get:10 http://mirrors.tencentyun.com/ubuntu jammy-updates/universe amd64 Packages [998 kB]
Get:11 http://mirrors.tencentyun.com/ubuntu jammy-updates/universe Translation-en [219 kB]
Get:12 http://mirrors.tencentyun.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]
Get:13 http://mirrors.tencentyun.com/ubuntu jammy-updates/multiverse amd64 Packages [41.6 kB]
Get:14 http://mirrors.tencentyun.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]
Get:15 http://mirrors.tencentyun.com/ubuntu jammy-security/main amd64 Packages [953 kB]
Get:16 http://mirrors.tencentyun.com/ubuntu jammy-security/main Translation-en [188 kB]
Get:17 http://mirrors.tencentyun.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.4 kB]
Get:18 http://mirrors.tencentyun.com/ubuntu jammy-security/restricted amd64 Packages [1,093 kB]
Get:19 http://mirrors.tencentyun.com/ubuntu jammy-security/restricted Translation-en [178 kB]
Get:20 http://mirrors.tencentyun.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [520 B]
Get:21 http://mirrors.tencentyun.com/ubuntu jammy-security/universe amd64 Packages [795 kB]
Get:22 http://mirrors.tencentyun.com/ubuntu jammy-security/universe Translation-en [147 kB]
Get:23 http://mirrors.tencentyun.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.8 kB]
Get:24 http://mirrors.tencentyun.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
Get:25 http://mirrors.tencentyun.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Fetched 7,651 kB in 6s (1,386 kB/s)      
Reading package lists... Done
 All done, congratulations and enjoy ! 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package openlitespeed
qtwrk commented 7 months ago

please try again , it should be fixed now.

DazaiYuki commented 7 months ago

please try again , it should be fixed now.

It works! Many thanks. But it almost went wrong cuz still some links still from Github, stuck for a long time. I spent 2 hrs fully installing :( 20231121004832 I know that proxies can speed up, but for some reasons, I dare not use in those servers.

qtwrk commented 7 months ago

okay , looks like some new stuffs are added in later version , I had made a proxy to github before for CN servers, I will update the link