#502 error after domain change
1 messages · Page 1 of 1 (latest)
Ssl?
Check your nginx configuration
its correct
telling you it's incorrect
nginx -t is fine
thats not the way you check this
Check php fpm
you need to check the nginx logs and see the error
#0 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#2 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()
#3 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(77): Illuminate\Filesystem\Filesystem->put()
#4 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(200): Illuminate\Cache\FileStore->put()
#5 /var/www/controlpanel/vendor/laravel/framework" while reading response header from upstream, client: 95.179.193.59, server: free.embernodes.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", hos>
2024/09/30 07:22:02 [error] 442926#442926: *263644 FastCGI sent in stderr: "PHP message: Settings Error: Could not load settings from database. The Installation probably is not done yet.PHP message: ErrorException: file_put_contents(/va>
Stack trace:
#0 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#2 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents()
#3 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(77): Illuminate\Filesystem\Filesystem->put()
#4 /var/www/controlpanel/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(200): Illuminate\Cache\FileStore->put()
#5 /var/www/controlpanel/vendor/laravel/framework" while reading response header from upstream, client: 95.179.193.59, server: free.embernodes.com, request: "GET /login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:">
2``` idk how it is "not done yet" as it worked for over a month before domain cahnge
ook
is that the nginx error log?
yes
looks like the laravel.log
Yep
free.embernodes.com and in your nginx config in full caps i see potatonodes
did you enable the nginx configu? putting in in enabled folder
yup
1 sec
our old domain was embernodes new is potatonodes
have you restarted nginx
well not entirely sure, your logs is still complaining about using the old domain
is all that needed to be changed the nginx config and .env?
or is there something else i needed to do
yea and make sure to flush the cache after the .env
php artisan cache:clear i believe
mmm i'm not entirely sure why nginx still wants to use the old domain
i'm no networker xD i write code
hmm ok
it looks correct to me but your nginx want to use the old domain
Try nano /etc/nginx/sites-enabled/controlpanel.conf
Or ctrlpanel.conf
I don't remember
isn't there more? it looks like the file is not correct if this is it
it opens a server {
but that would cause nginx -t to say no
It is there, but it did not appear in the screenshot
there is full
LE puts } in front of the http server block
you have cloudflare?
Sometimes
proxy off
mmm
Send screenshot of systemctl status php8.3-fpm
strange
Check our docs to install all php extensions