cloudpanel-io / cloudpanel-ce

1.21k stars 99 forks source link

Issue Installing CloudPanel on freshly spun up Instances (Oracle Cloud and Vultr) DPKG Error for CloudPanel #485

Closed patel1029 closed 3 months ago

patel1029 commented 3 months ago

CloudPanel version(s) affected

2.4.2-4+clp-noble

Description

Here is my output. With me poking around to see why it was looking in the tmp dir.

Firewall is active and enabled on system startup Synchronizing state of ufw.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable ufw Created symlink /etc/systemd/system/multi-user.target.wants/clp-agent.service → /usr/lib/systemd/system/clp-agent.service. Killed dpkg: error processing package cloudpanel (--configure): installed cloudpanel package post-installation script subprocess returned error exit status 137 Processing triggers for ufw (0.36.2-6) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for libc-bin (2.39-0ubuntu8.2) ... /sbin/ldconfig.real: /lib/libvarnishapi.so.3 is not a symbolic link

Processing triggers for php8.2-cli (8.2.20-1+clp-noble) ... Processing triggers for php7.4-cli (7.4.33-2+clp-noble) ... Processing triggers for php8.3-cli (8.3.8-1+clp-noble) ... Processing triggers for php8.2-fpm (8.2.20-1+clp-noble) ... Processing triggers for php8.1-cli (8.1.29-1+clp-noble) ... Processing triggers for php7.3-cli (7.3.33-2+clp-noble) ... Processing triggers for php7.2-cli (7.2.34-3+clp-noble) ... Processing triggers for php7.3-fpm (7.3.33-2+clp-noble) ... Processing triggers for php7.4-fpm (7.4.33-2+clp-noble) ... Processing triggers for php8.3-fpm (8.3.8-1+clp-noble) ... Processing triggers for php7.2-fpm (7.2.34-3+clp-noble) ... Processing triggers for php7.1-cli (7.1.33-3+clp-noble) ... Processing triggers for php8.1-fpm (8.1.29-1+clp-noble) ... Processing triggers for php8.0-cli (8.0.30-2+clp-noble) ... Processing triggers for php7.1-fpm (7.1.33-3+clp-noble) ... Processing triggers for php8.0-fpm (8.0.30-2+clp-noble) ... Errors were encountered while processing: cloudpanel needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1)

The installation of CloudPanel is complete!

CloudPanel can be accessed now: https://[IP}:8443 

root@SunWeb:~# sudo apt-get update && sudo apt-get upgrade Hit:1 http://ubuntu.mirror.constant.com noble InRelease Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://ubuntu.mirror.constant.com noble-updates InRelease
Hit:4 http://ubuntu.mirror.constant.com noble-backports InRelease
Hit:5 http://ubuntu.mirror.constant.com noble-security InRelease
Hit:6 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu noble InRelease
Hit:8 https://d17k9fuiwb52nc.cloudfront.net noble InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] Get:10 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] Hit:11 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease Hit:12 http://archive.ubuntu.com/ubuntu noble-backports InRelease Hit:13 http://archive.ubuntu.com/ubuntu noble-security InRelease Fetched 252 kB in 1s (177 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up cloudpanel (2.4.2-4+clp-noble) ... cp: cannot stat '/tmp/cloudpanel/data/clp/services/nginx/systemd/clp-nginx.service': No such file or directory dpkg: error processing package cloudpanel (--configure): installed cloudpanel package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: cloudpanel needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) root@SunWeb:~# sudo dpkg --configure -a Setting up cloudpanel (2.4.2-4+clp-noble) ... cp: cannot stat '/tmp/cloudpanel/data/clp/services/nginx/systemd/clp-nginx.service': No such file or directory dpkg: error processing package cloudpanel (--configure): installed cloudpanel package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: cloudpanel root@SunWeb:~# ls install.sh root@SunWeb:~# cd / root@SunWeb:/# ls bin dev lib64 mnt run srv usr bin.usr-is-merged etc lib.usr-is-merged opt sbin swapfile var boot home lost+found proc sbin.usr-is-merged sys cdrom lib media root snap tmp root@SunWeb:/# cd tmp root@SunWeb:/tmp# ls snap-private-tmp systemd-private-357bcd4cd578405891c11a82065a3b43-chrony.service-JvFyzw systemd-private-357bcd4cd578405891c11a82065a3b43-fwupd.service-QAvHsH systemd-private-357bcd4cd578405891c11a82065a3b43-memcached.service-5RUSoS systemd-private-357bcd4cd578405891c11a82065a3b43-ModemManager.service-biY2Ub systemd-private-357bcd4cd578405891c11a82065a3b43-polkit.service-gNDAHP systemd-private-357bcd4cd578405891c11a82065a3b43-redis-server.service-GaBxbb systemd-private-357bcd4cd578405891c11a82065a3b43-systemd-logind.service-F6aUur systemd-private-357bcd4cd578405891c11a82065a3b43-systemd-resolved.service-kpxOqv systemd-private-357bcd4cd578405891c11a82065a3b43-upower.service-bme4cd root@SunWeb:/tmp# cd cloudpanel -bash: cd: cloudpanel: No such file or directory root@SunWeb:/tmp# sudo apt install -f Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up cloudpanel (2.4.2-4+clp-noble) ... cp: cannot stat '/tmp/cloudpanel/data/clp/services/nginx/systemd/clp-nginx.service': No such file or directory dpkg: error processing package cloudpanel (--configure): installed cloudpanel package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: cloudpanel needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1)

How to reproduce

Spin up a new VM tried both 22.04 in Oracle and 24.04 in VULTR

Possible Solution

No response

Additional Context

No response

cloudpanel-io commented 3 months ago

Cannot be reproduced, works fine in our tests and other people are not reporting the issue as well.

patel1029 commented 3 months ago

For anyone else having this issue. It could be your RAM! 1GB was what my limit was.. and it was not enough. 2GB of RAM worked flawlessly during the install.

FoxXxHater commented 1 month ago

I have 4 gig and i have this error