#502 error after domain change

1 messages · Page 1 of 1 (latest)

visual canyon
#

nginx tests fine, .env is edited, just 502 error

wary falcon
#

Ssl?

visual canyon
#

yup

still oxide
#

Check your nginx configuration

visual canyon
#

its correct

warm cypress
#

its not

#

the error is comming from nginx

visual canyon
warm cypress
#

telling you it's incorrect

visual canyon
warm cypress
#

thats not the way you check this

still oxide
#

Check php fpm

warm cypress
#

you need to check the nginx logs and see the error

visual canyon
#
#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

warm cypress
#

is that the nginx error log?

visual canyon
#

yes

warm cypress
#

looks like the laravel.log

still oxide
visual canyon
#

idk where else xD for nginx sorry

still oxide
#

Because nginx error logs sometimes contain Laravel logs

#

It's ok

warm cypress
#

did you enable the nginx configu? putting in in enabled folder

visual canyon
#

1 sec

#

our old domain was embernodes new is potatonodes

warm cypress
#

have you restarted nginx

visual canyon
#

just did again just incase

warm cypress
#

well not entirely sure, your logs is still complaining about using the old domain

visual canyon
#

or is there something else i needed to do

warm cypress
#

yea and make sure to flush the cache after the .env

#

php artisan cache:clear i believe

visual canyon
#

should i try revert to old domain and see if error persists?

warm cypress
#

mmm i'm not entirely sure why nginx still wants to use the old domain

#

i'm no networker xD i write code

visual canyon
#

hmm ok

warm cypress
#

it looks correct to me but your nginx want to use the old domain

still oxide
#

Try nano /etc/nginx/sites-enabled/controlpanel.conf

#

Or ctrlpanel.conf

#

I don't remember

visual canyon
#

ok

warm cypress
#

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

visual canyon
still oxide
visual canyon
#

there is full

still oxide
#

LE puts } in front of the http server block

warm cypress
#

you have cloudflare?

still oxide
visual canyon
warm cypress
#

mmm

visual canyon
still oxide
#

Send screenshot of systemctl status php8.3-fpm

visual canyon
#

could be an issue

#

but wouldnt explain why it worked before

warm cypress
#

strange

still oxide
visual canyon
#

and it works

#

lel ty

#

i dont get why it worked before

#

odd but ig all that matters is it works rn