Page 1 of 2

NO LANGUAGE DEFINED error in VestaCP Login [SOLVED]

Posted: Sat Nov 10, 2018 2:15 am
by scristi
Hi all,

This afternoon the panel did not let me login, shows the error "NO LANGUAGE DEFINED" and apparently the panel does not recognize my user/password.

I have enough space:

Code: Select all

[root@server /]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/vg-root  450G   11G  417G   3% /
tmpfs                3.9G     0  3.9G   0% /dev/shm
/dev/sda1            485M   80M  380M  18% /boot
/dev/mapper/vg-tmp   976M  1.3M  924M   1% /tmp

Code: Select all

/dev/mapper/vg-root 29917184 128236 29788948    1% /
tmpfs                 998302      1   998301    1% /dev/shm
/dev/sda1             128016     46   127970    1% /boot
/dev/mapper/vg-tmp     65536     23    65513    1% /tmp
I think the problem started when I tried to modify a hosting package, increasing space. After that change I could not enter the panel again.

Any idea, or how to resolve this issue?

Thanks in advance any help,

Sebastian

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Sat Nov 10, 2018 2:34 pm
by grayfolk
Any messages in /usr/local/vesta/php/var/log/php-fpm.log?
I think about some issue with session storage write permissions.

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Mon Nov 12, 2018 12:06 am
by scristi
nothing strange:

Code: Select all

[09-Nov-2018 18:12:53] NOTICE: Terminating ...
[09-Nov-2018 18:12:54] NOTICE: exiting, bye-bye!
[09-Nov-2018 18:15:29] NOTICE: fpm is running, pid 2533
[09-Nov-2018 18:15:29] NOTICE: ready to handle connections
[09-Nov-2018 22:35:17] NOTICE: Terminating ...
[09-Nov-2018 22:35:17] NOTICE: exiting, bye-bye!
[09-Nov-2018 22:37:40] NOTICE: fpm is running, pid 2536
[09-Nov-2018 22:37:40] NOTICE: ready to handle connections
[09-Nov-2018 22:44:25] NOTICE: Finishing ...
[09-Nov-2018 22:44:25] NOTICE: exiting, bye-bye!
[09-Nov-2018 22:44:25] NOTICE: fpm is running, pid 3640
[09-Nov-2018 22:44:25] NOTICE: ready to handle connections

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Mon Nov 12, 2018 12:38 am
by scristi
At /var/log/vesta/nginx-error.log I have the next errors since the moment the CP fails:

Code: Select all

2018/11/09 22:28:32 [error] 2529#0: *71 FastCGI sent in stderr: "PHP message: PHP Notice:  Use of undefined constant VESTA_CMD - assumed 'VESTA_CMD' in /usr/local/vesta/web/inc/i18n.php on line 95
PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/inc/i18n.php on line 102
PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/inc/i18n.php on line 102
PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/inc/i18n.php on line 102" while reading response header from upstream, client: 191.126.99.191, server: _, request: "GET /js/i18n.js.php?149169786$
2018/11/09 22:28:32 [error] 2529#0: *71 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/vesta/data/sessions) in Unknown on line 0" while reading upstream, client: 191.$
2018/11/09 22:28:38 [error] 2529#0: *71 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/vesta/data/sessions) in Unknown on line 0" while reading upstream, client: 191.$
2018/11/09 22:28:46 [error] 2529#0: *82 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: language in /usr/local/vesta/web/inc/i18n.php on line 50" while reading response header from upstream, client: 191.126.99.191, s$
2

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Mon Nov 12, 2018 3:47 am
by grayfolk

Code: Select all

PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/vesta/data/sessions) in Unknown on line 0" while reading upstream, client: 191.$
This is reason.

Make

Code: Select all

chmod 777 /usr/local/vesta/data/sessions

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Wed Nov 14, 2018 3:14 pm
by scristi
Thanks grayfolk, I tried it but the problem persists...
Image

At this time the log shows:

Code: Select all

 2018/11/14 12:55:36 [error] 4412#0: *35 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown:
open(/usr/local/vesta/data/sessions/sess_fa6iknn9gte0q2pa0bslhhcs75, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/usr/local/vesta/data/sessions) in Unknown on line 0" while reading upstream, client: 191.126.**.***, server: _, request: "POST /login/ HTTP/1.1", upstream:
"fastcgi://unix:/var/run/vesta-php.sock:", host: "www.******.**:8083", referrer: "https://www.*******.**:8083/login/"
What should the user and group be for the files within the sessions directory? Please note that my user to access VestaCP is root, not admin.

Thanks for your help

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Wed Nov 14, 2018 5:19 pm
by grayfolk
1. Remove all files from /usr/local/vesta/data/sessions
2. make chmod 777 /usr/local/vesta/data/sessions as root

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Wed Nov 14, 2018 6:09 pm
by scristi
It's strange. I did what you told me, everything is the same. What would you suggest? The truth is I don't understand how a package change could end in this problem. If I did not have some clients on that server, I would choose to reinstall. But this is not an option at this time for me.

Definitely this problem seems to be related to permisions, but I don't know where to dig...

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Wed Nov 14, 2018 8:36 pm
by grayfolk
I can suggest another way: change session.save_path value for Vesta php.

Re: NO LANGUAGE DEFINED error in VestaCP Login

Posted: Thu Nov 15, 2018 2:00 pm
by scristi
Thanks for your time grayfolk, where need I to make the change?