Can not access web admin interface and unable to run moulinette

I am unable to login to the admin interface from web and running Yunohost command from command-line don’t respond.
log for yunohost-api shows:

2017-03-19 02:47:50,109 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 02:47:50] "GET /users?locale=en HTTP/1.1" 500 165 30.067553
2017-03-19 02:50:36,901 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 02:50:36] "GET /users?locale=en HTTP/1.1" 500 165 30.061401
2017-03-19 03:13:31,017 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:13:31] "POST /login HTTP/1.1" 401 142 0.007579
2017-03-19 03:13:44,837 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:13:44] "POST /login HTTP/1.1" 200 410 0.026109
2017-03-19 03:14:15,090 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:14:15] "GET /users?locale=en HTTP/1.1" 500 165 30.052712
2017-03-19 03:14:15,106 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:14:15] "POST /login HTTP/1.1" 200 406 0.012850
2017-03-19 03:14:45,329 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:14:45] "GET /users?locale=en HTTP/1.1" 500 165 30.054518
2017-03-19 03:16:13,924 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:16:13] "POST /login HTTP/1.1" 200 410 0.098166
2017-03-19 03:16:44,185 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:16:44] "GET /users?locale=en HTTP/1.1" 500 165 30.070259
2017-03-19 03:16:44,191 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2017-03-19 03:16:44] "GET /logout?locale=en HTTP/1.1" 200 199 0.002947

How can I know the debugging log for the moulinette?

Hi kanhu,

I just installed a fresh version of yunohost (3.3) on a devian strestch and get the same issue, do you solve it on your side ?

regards

Are you getting the exact same messages ?

I get this message :

cat /var/log/yunohost/yunohost-api.log 
2018-11-27 01:38:15,802 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:38:15] "GET /installed HTTP/1.1" 200 159 0.001040
2018-11-27 01:38:31,841 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:38:31] "POST /login HTTP/1.1" 500 898 0.043994
2018-11-27 01:39:14,044 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:39:14] "GET /installed HTTP/1.1" 200 159 0.000728
2018-11-27 01:39:21,115 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:39:21] "POST /login HTTP/1.1" 500 898 0.004026
2018-11-27 01:40:08,867 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:40:08] "POST /login HTTP/1.1" 500 898 0.004074
2018-11-27 01:40:33,219 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:40:33] "GET /installed HTTP/1.1" 200 159 0.000728
2018-11-27 01:41:15,815 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:41:15] "GET /installed HTTP/1.1" 200 159 0.000735
2018-11-27 01:41:27,346 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:41:27] "POST /login HTTP/1.1" 500 898 0.003993
2018-11-27 02:02:01,463 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:02:01] "GET /installed HTTP/1.1" 200 159 0.000759
2018-11-27 02:02:12,186 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:02:12] "POST /login HTTP/1.1" 500 898 0.004006
2018-11-27 02:06:59,635 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:06:59] "GET /installed HTTP/1.1" 200 159 0.001774
2018-11-27 02:37:48,293 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:37:48] "GET /installed HTTP/1.1" 200 159 0.000723
2018-11-27 02:38:00,783 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:38:00] "POST /login HTTP/1.1" 500 898 0.057602

admin password is working as I can use it from an ssh connection to manage some stuff.

How can I debug this ?

Hm ok, and what does the webadmin says when you try to log in ?

Nothing, I only see the pacman icon running from left to right…Which files I should investigate to have a better debug output ?

BTW cli is working like a charm, I just installed nextcloud and it works perfectly :slight_smile:

Hmmm, but in CLI are you able to authenticate on the LDAP (i.e. entering the admin password) for commands who requires it ?

For instance, try yunohost tools shell - it’s a dev tool we use, if you successfully enter it, just do Ctrl+D to exit it

yes, every shell commands are working. And in the web interface, only admin login failed, normal user login perfectly works :-/

By any chance, does restarting the yunohost-api helps ? (i.e. systemctl restart yunohost-api)

Unfortunately no, it doesn’t save the issue. :-/

cat /var/log/yunohost/yunohost-api.log 
2018-11-27 01:38:15,802 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:38:15] "GET /installed HTTP/1.1" 200 159 0.001040
2018-11-27 01:38:31,841 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:38:31] "POST /login HTTP/1.1" 500 898 0.043994
2018-11-27 01:39:14,044 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:39:14] "GET /installed HTTP/1.1" 200 159 0.000728
2018-11-27 01:39:21,115 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:39:21] "POST /login HTTP/1.1" 500 898 0.004026
2018-11-27 01:40:08,867 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:40:08] "POST /login HTTP/1.1" 500 898 0.004074
2018-11-27 01:40:33,219 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:40:33] "GET /installed HTTP/1.1" 200 159 0.000728
2018-11-27 01:41:15,815 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:41:15] "GET /installed HTTP/1.1" 200 159 0.000735
2018-11-27 01:41:27,346 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 01:41:27] "POST /login HTTP/1.1" 500 898 0.003993
2018-11-27 02:02:01,463 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:02:01] "GET /installed HTTP/1.1" 200 159 0.000759
2018-11-27 02:02:12,186 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:02:12] "POST /login HTTP/1.1" 500 898 0.004006
2018-11-27 02:06:59,635 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:06:59] "GET /installed HTTP/1.1" 200 159 0.001774
2018-11-27 02:37:48,293 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:37:48] "GET /installed HTTP/1.1" 200 159 0.000723
2018-11-27 02:38:00,783 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:38:00] "POST /login HTTP/1.1" 500 898 0.057602
2018-11-27 02:47:50,446 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:47:50] "GET /installed HTTP/1.1" 200 159 0.000734
2018-11-27 02:53:43,871 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:53:43] "POST /login HTTP/1.1" 500 898 0.004012
2018-11-27 02:58:43,700 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 02:58:43] "GET /installed HTTP/1.1" 200 159 0.000733
2018-11-27 03:37:41,651 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 03:37:41] "GET /installed HTTP/1.1" 200 159 0.001789
2018-11-27 03:37:50,330 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2018-11-27 03:37:50] "POST /login HTTP/1.1" 500 898 0.060031

Hmm, random other ideas :

  • can you try doing this in an other clean / raw browsers (wondering if some policy or addon could be blocking stuff)
  • can you try logging in the javascript console (F12 on firefox) if any particular message shows up after trying to log in ? (though there are some known warning)

Hello Aleks,

I got a javascript error, here is the output :

SyntaxError: JSON.parse: unexpected character at line 2 column 5 of the JSON data[En savoir plus] [script.min.js:29:1759](https://myhost.com/yunohost/admin/dist/js/script.min.js?version=3.3.1)

s [https://myhost.com/yunohost/admin/dist/js/script.min.js:29:1759](https://myhost.com/yunohost/admin/dist/js/script.min.js?version=3.3.1) 
l [https://myhost.com/yunohost/admin/dist/js/script.min.js:2:6432](https://myhost.com/yunohost/admin/dist/js/script.min.js?version=3.3.1) 
fireWith [https://myhost.com/yunohost/admin/dist/js/script.min.js:2:7205](https://myhost.com/yunohost/admin/dist/js/script.min.js?version=3.3.1) 
r [https://myhost.com/yunohost/admin/dist/js/script.min.js:3:10332](https://myhost.com/yunohost/admin/dist/js/script.min.js?version=3.3.1) 
n/< [https://myhost.com/yunohost/admin/dist/js/script.min.js:3:16164](https://myhost.com/yunohost/admin/dist/js/script.min.js?version=3.3.1)

Ok,
It seems it’s an error du to hairpinning issue from my ISP router…If I use local adresse (192.168*) it works, if I use DNS it fails.