Cloudron install fails (...Init script failed. See /var/log/cloudron-setup.log for details)
-
Hi,
I'm running into script failed error while installing Cloudron:logmilo@logmilo-virtual-machine:~$ sudo ./cloudron-setup ############################################## Cloudron Setup (latest) ############################################## Follow setup logs in a second terminal with: $ tail -f /var/log/cloudron-setup.log Join us at https://forum.cloudron.io for any questions. => Updating apt and installing script dependencies => Checking version => Downloading version 6.3.5 ... => Installing base dependencies and downloading docker images (this takes some time) ...Init script failed. See /var/log/cloudron-setup.log for details
Log:
logmilo@logmilo-virtual-machine:~$ tail -f /var/log/cloudron-setup.log Reading state information... The following package was automatically installed and is no longer required: docker-scan-plugin Use 'sudo apt autoremove' to remove it. Suggested packages: aufs-tools cgroupfs-mount | cgroup-lite The following packages will be DOWNGRADED: containerd.io docker-ce docker-ce-cli 0 upgraded, 0 newly installed, 3 downgraded, 0 to remove and 0 not upgraded. E: Packages were downgraded and -y was used without --allow-downgrades.
So it seems like i am running into some script problem. I tried to download the suggested packages but nothing work.
Did i do anything wrong? Please let me know.
Thanh you :))) -
@logmilo welcome here! It seems your base system already had a docker version installed newer than what Cloudron provides. Which Ubuntu version is this and on which VPS provider?
Maybe you can initialize the instance with pristine Ubuntu 20.04 and do not upgrade the system prior to running the cloudron-setup script. Cloudron will update relevant packages on its own as well as doing security updates to the system automatically.
-
@nebulon This is the second similar support post I've seen recently. Maybe there's been more. The text on https://www.cloudron.io/get.html seems clear to me,
Create a fresh Ubuntu Focal 20.04 x64 server and run these commands
, but maybe the word "fresh" is not being understood. Maybe people are thinking they shouldn't have any functioning webapps running, not realizing that the underlying software (Apache, nginx, docker) is also included.In your answer here you use "pristine" instead of "fresh". Maybe those Install directions (also on https://docs.cloudron.io/installation/) need to be a little more verbose about what "fresh" and "pristine" means?
Or, make the error message clearer, along the lines of:
This script has detected that nginx/apache/docker/etc., are already installed on this server. Cloudron will install all that is needed and does not need to upgrade nor downgrade any existing software. Please réinitialise the server, start fresh, and run this script again.
-
Perhaps something like this is clearer.
"Cloudron is designed to be installed on a brand new install of Ubuntu Linux, without any additional modifications or upgrades.
Installing on instances other than that may cause installations to fail and further hidden issues down the road."
-
@scooke right.. we have used 'vanilla' as well in the past and many people were not familiar with that term. So, we changed it 'new' I think for a short period before going with 'fresh'.
But generally nobody reads those things So, I am going to implement your next suggestion which is to abort and give a proper error message if nginx/apache/docker are already installed.
-
@humptydumpty ha ha, didn't mean to overly generalize. I think some people live by copy/paste and don't completely follow instructions, especially those who are just testing things out and want to get to it quickly.
-
How about "virgin" --- or is that stretching a point?