I can not log in the dashboard

I can no longer log in the dashboard. I am sure that the password is correct but after entering and sending the login credentials I am redirected back to the login page.

Did you already try to clear the browser cache or use another browser?

Please also check the web console in your browser for errors.

If it’s possible to login via SSH or console, you may check /var/log/messages.

You could try to restart cockpit or the whole server:

systemctl restart cockpit

1 Like

yes I have already tried to use other browsers and devices. I also need to check the browser console. I wanted to SSH with putty but I don’t remember the port, it’s not the default 21, maybe something like 3939 …

Use nmap to see witch ports are open in your server :slight_smile:

no ssh ports are open.

so, there you go, no ssh connection will be allowed.

but I remember being logged into ssh. how is it possible that there is not an open ssh port?

Port 1234 is NOT a SSH Port per se. But any admin can use almost any free port for ssh.
(You can change the port ssh uses, this doesn’t make that port a “SSH-Port”…)

My 2 cents

Lol, i am currently with a nethserver 100% ok for users, but i cant login to cockpit too… it gives me a blank screen, i do have access with ssh… and it started behaving like that for “nothing”… anyway, sh!t happends! Maybe some faulty hardware.

instead it happens to me that you are unable to login and the system refreshes the login page, but the password is correct!

can’t find out what is causing this malfunction? I don’t want to reconfigure everything from scratch. please help me

I managed to get into ssh. what do I do now?

[root@fw-agrario ~]# visudo -c
/etc/sudoers: parsed OK
/etc/sudoers.d/10_nethserver: parsed OK
/etc/sudoers.d/20_nethserver_backup_config: parsed OK
/etc/sudoers.d/20_nethserver_base: parsed OK
/etc/sudoers.d/20_nethserver_don: bad permissions, should be mode 0440
/etc/sudoers.d/20_nethserver_httpd_admin: parsed OK
/etc/sudoers.d/20_nethserver_ipsec: parsed OK
/etc/sudoers.d/20_nethserver_sssd: parsed OK
/etc/sudoers.d/20_nethserver_subscription: parsed OK
/etc/sudoers.d/30_httpd_app_launcher: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_antivirus: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_cgp: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_firewall_base: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_httpd: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_register: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_squid: parsed OK
/etc/sudoers.d/50_nsapi_nethserver_vpn_ui: parsed OK
[root@fw-agrario ~]#
[root@fw-agrario ~]# yum update nethserver-cockpit
error: db5 error(28) from dbenv->open: No space left on device
error: cannot open Packages index using db5 - No space left on device (28)
error: cannot open Packages database in /var/lib/rpm

Error: rpmdb open failed
[root@fw-agrario ~]#

What can I clean in /var ? so I free up some space

[root@fw-agrario var]# du -hs log
8.0G    log

damn, I think I should free the logs!

Maybe you should reduce the log retention and enable the compression: Base system — NethServer 7 Final :wink:

1 Like