andreapollastri / cipi

Install and manage your server like a pro! With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
https://cipi.andreapollastri.net
1.09k stars 223 forks source link

Installer apt-get issue #343

Closed pyro-code01 closed 2 years ago

pyro-code01 commented 2 years ago

Hi Andrea,

I have noticed this strange issue when installing cipi on newly initialized servers, some providers on server init first run do the apt-get update/upgrade and the process is running in background, if the process is still in background when you init cipi install, the install will go through but fail in background (apt-get process locked), in panel the server is there, however nginx, sql and other services are not installed, then server wipe/reinstall is needed to reinit cipi again.

Possible solution:

  1. Check if there is apt-get process running in the background before init of cipi installer, if throw error?
  2. Check if there is "restart required" linux motd/flag before init of cipi installer.
  3. (dirty) Kill apt-get background processes before installing cipi?

This should fix the installation problems i had, i think digitalocean does not do this, but other providers i have tested the panel with work, they use 20.04 and cipi works perfectly but are somehow finicky.

Regards

andreapollastri commented 2 years ago

Hi! Thank You for the issue... what provider are you using? I never found this problem and I have to replicate it!

pyro-code01 commented 2 years ago

Try vsys.host and shinjiru, regards

andreapollastri commented 2 years ago

Hi @magix01, I'm really sorry but I think that the required providers have custom repositories about Ubuntu and its vendor so I could not change the installer in that way because it may break installation process in major providers (aws, digital ocean, etc...). I'm sorry!

pyro-code01 commented 2 years ago

I dont think its custom repo, they just run apt-get upgrade on first init to update their old distro packages on the image they put.