Ctrlpanel-gg / panel

CtrlPanel offers an easy-to-use and free billing solution for all starting and experienced hosting providers that seamlessly integrates with the Pterodactyl panel.
https://ctrlpanel.gg/
MIT License
408 stars 146 forks source link

fix: Panel Installer #951

Closed S0ly closed 2 months ago

S0ly commented 4 months ago

I invite contributions to address several issues with the installer for the ctrlpanel:

Issues to be Fixed:

Contributors are encouraged to address these issues to enhance the reliability and usability of the ctrlpanel installer. Thank you for your contributions!

jameskitt616 commented 3 months ago

I'd like to take a look and implement "Post-Installation Issues with Redis Configuration" I assume it will be an extra step after/before database configuration and preferably with a verification that the redis server connection was successful?

S0ly commented 3 months ago

@jameskitt616 yep exactly

S0ly commented 3 months ago

I think the best would be after the main database its just some env value to set and test

IceToast commented 3 months ago

LGTM, couldnt test it for sure. Please fix conflicts too.

kenshin133 commented 3 months ago

idk how to comment on specific fixes but checking this out I found a couple things: Unconfigured Panel Handling: this seems completely fixed, tried a few ways and could not get un-favorable results.

during install I still got this ` at vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:79 75▕ protected function key(array $config) 76▕ { 77▕ return tap($config['key'], function ($key) { 78▕ if (empty($key)) { ➜ 79▕ throw new MissingAppKeyException; 80▕ } 81▕ }); 82▕ } 83▕ }

i Your app key is missing: https://laravel.com/docs/master/installation#configuration` and had to click install a second time.

IceToast commented 3 months ago

@S0ly Should the installer handle the app key generation too?

S0ly commented 3 months ago

@S0ly Should the installer handle the app key generation too?

I suppose that if he can he should no ? like if no app key is present maybe generate one ? since he do all the rest, but if you think it should not be handled by the installer we could have the script of weez doing it, since we now have an installation script

jameskitt616 commented 3 months ago

Wasn't that fixed somewhere? When i was re-factoring the web-installer i didn't ran into the issue anymore.

S0ly commented 3 months ago

its why I called it " Inconsistent Behavior" sometimes it happend sometimes not

IceToast commented 3 months ago

Most likely file/directory permissions were missing for the user that runs php -> thus cannot create a app key?

jameskitt616 commented 3 months ago

Not really, if it was a permission issue, it would need to fail everytime.

jameskitt616 commented 3 months ago

I (think) i fixed this issue with my timezone fix with the new Installer

jameskitt616 commented 3 months ago

I found out if there is a fresh install with no APP_KEY, the first time running the installer and generating the key fails for some reason, will look into it and fix it.

jameskitt616 commented 3 months ago

@S0ly please check the new PR with fixes https://github.com/S0ly/panel/pull/6

S0ly commented 2 months ago

@1day2die @IceToast this PR should be done it still need some testing to be sure everything work as excepted