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

Blank page after fresh, succesfull installation through Documentation suggested method #370

Closed Get-ThingsRubenMade closed 2 years ago

Get-ThingsRubenMade commented 2 years ago

I did the installation on a fresh new Ubuntu 20.04 LTS VPS hosted by Contabo. I followed the instructions from the Documentation, using the wget -O - https://cipi.sh/go.sh | bash method.

But when I navigate to the given url (public IP) I get a blank page. Debug console tells me 500 Internal Server Error

The ssh console shows (deducted sensitive details);


                    SETUP COMPLETE
***********************************************************

 SSH root user: cipi
 SSH root pass: <snip>
 MySQL root user: cipi
 MySQL root pass: <snip>

 To manage your server visit: http://<public IP>
 and click on 'dashboard' button.
 Default credentials are: administrator / 12345678

***********************************************************
          DO NOT LOSE AND KEEP SAFE THIS DATA
***********************************************************```
andreapollastri commented 2 years ago

Hi! Thank you for the issue, I'm sorry to hear it! Can you share me the error log that you can find at: var/www/html/storage/logs/laravel.log?

Thank You

Get-ThingsRubenMade commented 2 years ago

Unfortunately, there seems to be no such file within that directory!

Could that be due to me rebooting the VPS in the meantime? If so, I'll gladly reset the VPS and try installing again.

Get-ThingsRubenMade commented 2 years ago

I think I figured out what went wrong. I vaguely remembered seeing something about failing to get some GPG key, so when scrolling through the install script I tried adding the PPA manually and there it was; Timeout error on obtaining the GPG key.

Reset the VM, started fresh and ran script again. No more timeout, but;

E: Unable to locate package php8.1-openssl
E: Couldn't find any package by glob 'php8.1-openssl'
E: Couldn't find any package by regex 'php8.1-openssl'

Package php8.1-json is a virtual package provided by:
  php8.1-phpdbg 8.1.1-2+ubuntu20.04.1+deb.sury.org+1
  php8.1-fpm 8.1.1-2+ubuntu20.04.1+deb.sury.org+1
  php8.1-cli 8.1.1-2+ubuntu20.04.1+deb.sury.org+1
  php8.1-cgi 8.1.1-2+ubuntu20.04.1+deb.sury.org+1
  libphp8.1-embed 8.1.1-2+ubuntu20.04.1+deb.sury.org+1
  libapache2-mod-php8.1 8.1.1-2+ubuntu20.04.1+deb.sury.org+1
You should explicitly select one to install.

E: Package 'php8.1-json' has no installation candidate

Also got;

unlink: cannot unlink '.env': No such file or directory
PHP Warning:  require(/var/www/html/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/artisan on line 18
PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/artisan:18
Stack trace:
#0 {main}
  thrown in /var/www/html/artisan on line 18

At first I got the same blank page. Went ahead and installed some of the above mentioned packages and voila CIPI appears to be functioning now.

Any logs you'd like to look into, still?

andreapollastri commented 2 years ago

Hi! Contabo always gave me Issues with Linux repositories, I think that it is using custom repos. So I'm sorry if the installation process is not perfect! If Cipi works I'm happy... Cipi has been tested on Contabo in v3.0 (php8 not 8.1) and it worked. I suppose that their repositories for PHP8.1 are not stable or ready yet! Sorry. It's not a Cipi problem... I hope that Contabo will adapt its system to a standard such as digital ocean, aws, linode, etc... Done!

andreapollastri commented 2 years ago

Ps... anyway thank you for the support and the check about this problem! I think that you installation is OK but I suggest to you to set PHP 8.0 to server and sites (not 8.1 for the report that you pasted here). If you want check if the system has any error, you have to monitor /var/www/html/storage/logs/laravel.log file! If it is missed, you have no errors!