Webadmin do not access, just take the password and back again to main page

My YunoHost server

Hardware: qemu machine
YunoHost version: 4.3.4.2
YunoHost-admin version: 4.3.2.3
moulinette version: 4.3.2.2
ssowat version: 4.3.2.2
Problem: I can’t have access to my server : through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no / yes

Description of my issue

https://maindomain.dlt/yunohost/admin/#/login?redirect=%2F

I do put the admin password, and do nothing. It blink, and back to the same page, like nothing happen.
no error thrown
/var/log/yunohost/yunohost-api.log

2021-12-16 21:11:58,709 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 21:11:58,709 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 21:11:58,709 DEBUG    geventwebsocket.handler (unknown function) - Can only upgrade connection if using GET method.
2021-12-16 21:11:58,709 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 21:11:58,719 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 21:11:58] "POST /login HTTP/1.1" 200 383 0.010607
2021-12-16 21:11:58,764 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 21:11:58,764 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 21:11:58,764 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 21:11:58,765 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 21:11:58] "GET /versions?locale=en HTTP/1.1" 401 149 0.001198
2021-12-16 21:11:58,791 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 21:11:58,791 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 21:11:58,792 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 21:11:58] "GET /installed?locale=en HTTP/1.1" 200 159 0.000604

I can do nothing about it… anybody knows why this happens? someone need more logs or info?

I have that happening when one of the Yunohost-services was not running, it must have been yunohost-api. You still can use SSH or direct access via Qemu, right?

Can you check

$ sudo service yunohost-api status
● yunohost-api.service - YunoHost API Server
   Loaded: loaded (/lib/systemd/system/yunohost-api.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-12-13 08:16:40 UTC; 3 days ago
 Main PID: 1214815 (yunohost-api)
    Tasks: 2 (limit: 38276)
   Memory: 2.8G
   CGroup: /system.slice/yunohost-api.service
           └─1214815 /usr/bin/python3 /usr/bin/yunohost-api

If it is not running, try restarting it (sudo service yunohost start).

If it is running, than I don’t have an idea :slight_smile: You could try restarting the server (again?)

Yes, the yunohost-api service is working let me show you:

● yunohost-api.service - YunoHost API Server
   Loaded: loaded (/lib/systemd/system/yunohost-api.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-12-16 21:42:16 CET; 53min ago
 Main PID: 589 (yunohost-api)
    Tasks: 2 (limit: 4686)
   Memory: 24.3M
   CGroup: /system.slice/yunohost-api.service
           └─589 /usr/bin/python3 /usr/bin/yunohost-api

dic 16 21:42:16 domain systemd[1]: Started YunoHost API Server.

I removed domain name… for security reasons
I CAN access via ssh, and qemu vnc console, BOTH. By the way… this is a long road to go… I reboot about a hundred times… slapd is working too

Which address do you use for accessing the admin interface? When visiting the IP of the Yunohost, it will always present the admin pages; visiting domain.tld/yunohost/admin/ will also give the admin pages, but maybe something got upset after removing the domain? Is there any domain left?

YES, there’s SEVERAL domains… DNS working, as server, host file configured etc it’s not a domain or yunohost-api thing… IT’S A BUG the /var/log/yunohost/yunohost-api.log shows:

2021-12-16 23:00:27,049 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 23:00:27,060 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 23:00:27] "POST /login HTTP/1.1" 200 383 0.028330
2021-12-16 23:00:27,106 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 23:00:27,107 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 23:00:27,107 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 23:00:27,108 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 23:00:27] "GET /versions?locale=en HTTP/1.1" 401 149 0.002037
2021-12-16 23:00:27,148 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 23:00:27,148 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 23:00:27,149 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 23:00:27] "GET /installed?locale=en HTTP/1.1" 200 159 0.000729

DEBUG geventwebsocket.handler (unknown function) ring a bell?

@Aleks, @YunoHost hey… I’m here… with a problem in moulinette, no webadmin possible… And I address this issue more than once, SINCE JULY Can't access admin web interface … and no body cares…

Is it a support forum? Is there someone that could help? WHO do the maintenance for yunohost-api?

unknown function ring a bell to someone?

can you access the user panel ?

Yes, I can access the user app list, yes I can admin the server via ssh and command line… but webadmin DO NOT WORK.

at the bottom of the user panel, there is administration. clic on it and retry. dont use the link you have in bookmarks

@jarod5001 thanks… next time I need to know how to access WEBADMIN panel, won’t ask you. I’m already doing that for months.

I tried a comparison with my (still working, for now) admin page. This is what it logs while rendering the login page (pressing “Administration” on the user portal, before I log in at the admin portal) :

# tail -f /var/log/yunohost/yunohost-api.log
2021-12-16 22:37:45,332 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 22:37:45,332 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 22:37:45,333 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 22:37:45] "GET /installed?locale=en HTTP/1.1" 200 159 0.000932

When I press login, it logs:

tail -f /var/log/yunohost/yunohost-api.log
2021-12-16 07:26:31,766 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 07:26:31,766 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 07:26:31,767 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 07:26:31,767 DEBUG    moulinette.core acquire - acquiring lock...
2021-12-16 07:26:31,767 DEBUG    moulinette.core acquire - lock has been acquired
2021-12-16 07:26:31,768 DEBUG    moulinette.actionsmap process - loading python module yunohost.app took 0.000s
2021-12-16 07:26:31,768 DEBUG    moulinette.actionsmap process - processing action [1214815.28]: yunohost.app.list with args={'full': True, 'installed': False, 'filter': None}
2021-12-16 07:26:32,711 DEBUG    moulinette.actionsmap process - action [1214815.28] executed in 0.943s
2021-12-16 07:26:32,711 DEBUG    moulinette.core release - lock has been released
2021-12-16 07:26:32,715 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 07:26:32] "GET /apps?full&locale=en HTTP/1.1" 200 159527 0.949212

2021-12-16 22:35:30,640 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 22:35:30,641 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 22:35:30,641 DEBUG    moulinette.core set_locale - unable to load locale 'en' from '/usr/share/moulinette/locale'
2021-12-16 22:35:30,641 DEBUG    moulinette.core set_locale - unable to load locale 'en' from '/usr/lib/moulinette/yunohost/locales'
2021-12-16 22:35:30,642 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 22:35:30] "GET /installed?locale=null HTTP/1.1" 200 159 0.001253
2021-12-16 22:35:43,339 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 22:35:43,340 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 22:35:43,340 DEBUG    geventwebsocket.handler (unknown function) - Can only upgrade connection if using GET method.
2021-12-16 22:35:43,341 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 22:35:43,351 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 22:35:43] "POST /login HTTP/1.1" 200 383 0.011601
2021-12-16 22:35:43,572 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-16 22:35:43,572 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 22:35:43,572 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 22:35:43,573 DEBUG    moulinette.core acquire - acquiring lock...
2021-12-16 22:35:43,573 DEBUG    moulinette.core acquire - lock has been acquired
2021-12-16 22:35:43,573 DEBUG    moulinette.actionsmap process - loading python module yunohost.tools took 0.000s
2021-12-16 22:35:43,574 DEBUG    moulinette.actionsmap process - processing action [1214815.29]: yunohost.tools.versions with args={}
2021-12-16 22:35:43,615 DEBUG    moulinette.actionsmap process - action [1214815.29] executed in 0.041s
2021-12-16 22:35:43,616 DEBUG    moulinette.core release - lock has been released
2021-12-16 22:35:43,617 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-16 22:35:43] "GET /versions?locale=en HTTP/1.1" 200 363 0.045374

It seems part of the action is missing on your Yunohost.

You mentioned security reasons, could anything have happened to the installation/config files?

Have you tried to use an other browser or private browsing mode ?
Did you tried CTRL + F5 on the page (to force refresh) ?
Are you sure it’s not a fail2ban issue ?
Which apps have you installed ?

Are you able to use the network tools in firefox ? If yes, did you see othere return than 200 ?
Did you see some error in red when you do “CTRL + MAJ + J” and after try to log in ?

What’s the return of https://domain.tlde/yunohost/api/installed

NB: please try to avoid to ping people personnally or write in uppercase like if you was angry against the people who tried to help you.

1 Like

Noted.

with waterfox in private browsing…

The console from firefox says nothing about it… tried several times…

I “tail” /var/log/fail2ban.log, and nothing about it… even not in the last 5 hours.

Firewall checked (yunohost firewall list) to check if ldap port is open… It is.

Any idea?

I DO guess… it have to be the simplest thing in a config file… just a single file with-out “;” in a line (java/c slang). But when i do say “security reasons” is to not invite you all like in a pool party to my server, it could be disgusting for you.

By the way @wbk, did you realize this tiny detail that do not be seen in my server…

2021-12-16 07:26:31,766 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-16 07:26:31,767 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-16 07:26:31,767 DEBUG    moulinette.core acquire - acquiring lock...
2021-12-16 07:26:31,767 DEBUG    moulinette.core acquire - lock has been acquired
2021-12-16 07:26:31,768 DEBUG    moulinette.actionsmap process - loading python module yunohost.app took 0.000s

that’s your log… try to find this in my log I already posted. IT do not happened so I do belive @wbk, that you found the “needle in the haystack”… the line saying “moulinette.actionsmap get_authenticator… blah blah blah and so on”, never appears in my log.

TL;DR;
Looks like moulinette and ldap have a bad night together, and they are leaving out the “walk of shame” kind of way.

I may be not totally unerstandable with my last answer, those 2 tests should be done on the /yunohost/admin/ page when you answer login and password.

You should see something changing in the network tab.

Hav you some errors in /var/log/yunohost/yunohost-cli.log when you try to login ?

After introducing the password

tail /var/log/yunohost/yunohost-api.log
2021-12-18 12:40:26,410 DEBUG    geventwebsocket.handler (unknown function) - Can only upgrade connection if using GET method.
2021-12-18 12:40:26,411 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-18 12:40:26,422 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-18 12:40:26] "POST /login HTTP/1.1" 200 383 0.012552
2021-12-18 12:40:26,566 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-18 12:40:26,566 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-18 12:40:26,567 DEBUG    moulinette.actionsmap get_authenticator - Loading auth module yunohost.authenticators.ldap_admin
2021-12-18 12:40:26,568 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-18 12:40:26] "GET /versions?locale=en HTTP/1.1" 401 149 0.001852
2021-12-18 12:40:26,695 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-12-18 12:40:26,695 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-12-18 12:40:26,695 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-12-18 12:40:26] "GET /installed?locale=en HTTP/1.1" 200 159 0.000517

in /var/log/yunohost/yunohost-cli.log there is not a single error.

Just something that is bugging me… is molinette using a specific port number for websocket and which one… It could be as simple as that. Or even worst, lacking of a config file, or something wrong in a config file. But I tried everything, search everywhere a found nothing. But

there is something in WBK computer that is not in mine… hahahaha I know… he have webadmin but I don’t… It have to be something very simple… even with a single line command will solve it… I’m sure…

Nobody cares yes, we only take care of about idk, hundred different issues every month, on this forum, the bugtracker, and all apps in the catalog, volunteering on our free time to create a full distribution that you can use for free, but we absolutely don’t care

No, this is a Tennis Club Discussion Forum, haven’t you heard ?

Volunteers during their free time

This message about “unknown function” is perfectly normal, you’re just obsessing with one specific thing that is probably absolutely not related to the actual problem.

From this log, we see that the login request is accepted (200), then the webadmin tries to fetch the versions which ends up in 401 which is a bit odd

Anyway, at this point the post probably explanation is that for some reason, your browser somehow doesn’t save the login cookie that is sent/obtained by the webadmin after login. This also seems to correlate with some of the weird red/orange messages from your console screenshot.

I would really try to login from another browser and another machine and see if it works, in which case the issue definitely doesnt lie in yunohost but in your browser configuration.

2 Likes

I think @Aleks hit the nail on the head. My cookie settings (and general privacy settings) are relatively conservative, but I do accept session cookies :stuck_out_tongue:

I just set Firefox not to accept any cookies from anyone at my website,

The result is exactly what @bjarkan describes: I enter my credentials, press login, Yunohosts thinks for a while, and presents me with the login page.
After enabling cookies for my site again, there is no problem with log in.

2 Likes

If you’re using Firefox, I’ve noticed every once in a while the login cookie gets timed out or something, and it just locks me out. Doing “Ctrl + Shift + R” to clear the cache for that tab has sorted it out almost always.

1 Like

First.

LMAO

Second. I tried even with samsung internet browser from my phone with the same result… nothing. I delete all coockies, reinstall the browser… the last thing I could do… is to pray an Old Mighty GOD…

Last but not the least… something’s wrong in my server… I’m guessing if “fire-it-down-to-ashes” will solve it…

Dear, the F5 key and the R key in my keyboard, are almost white (the print on it almost came out)… I thank u for your recommendation, but I tried so many times, I’m losing my faith, religion, etc…

By the way… I tried again before answering this post.