Page 1 of 1

Web interface stopped working

Posted: Thu Apr 06, 2017 11:18 am
by hedgehog90
Image

I have no idea what's happened. I was updating stuff to do with SSL and this happened.

I've tried service vesta restart, rebuilding all the users, and even tried upgrading vesta.
No luck.

Any ideas?

Re: Web interface stopped working

Posted: Thu Apr 06, 2017 11:25 am
by skurudo
Try this, hope this can help you
viewtopic.php?t=13928#p57417

If not, then can you show us you nginx error log from /var/log/vesta ?

Re: Web interface stopped working

Posted: Thu Apr 06, 2017 11:56 am
by hedgehog90
Bugger. I've just noticed what I've done, but I still can't pinpoint exactly.
I ran a script earlier which I wrote some time ago which changes some of the internal vesta files, where I did some careless regex find and replacing.
I reckon that must be the culprit.

How can I restore /usr/local/vesta without losing vital data (like users, crons, etc), besides reinstalling completely?
I think it's just the template directories that need fixing. I really don't want to reinstall vesta. That brought so many problems last time I did.

EDIT:

OK, I think I know what's happened.
The script I wrote restores a previous version before running, and it appears to have restored a version from late 2015, untouched by any recent updates, and so when app.js asks for the GLOBAL variable, it won't find it because it didn't exist in the 2015 version of VestaCP.

Re: Web interface stopped working

Posted: Thu Apr 06, 2017 12:14 pm
by hedgehog90
I deleted /usr/local/vesta/web and then I ran:
sudo apt-get install --reinstall vesta

Hey presto, it works :D