Post #2473252
2026-03-14 19:04 UTC
[SOLVED] 👍
Hi #mastoAdmins
I'm trying to help a friend out with his Mastodon instance. An upgrade went badly wrong and mastodon would not restart.
We've rebuilt the server using backups and the server is up and running. It is federating. However no one can login.
If I enable debugging log i get the following for a log attempt in the system logs
Errno::ECONNREFUSED (Connection refused - connect(2) for 127.0.0.1:389):
Mar 14 18:47:50 debian-s2-2 bundle[13675]: [0e4f20e2-6069-47ee-8678-e4db5247e075]
Mar 14 18:47:50 debian-s2-2 bundle[13675]: [0e4f20e2-6069-47ee-8678-e4db5247e075] app/models/concerns/user/ldap_authenticable.rb:11:in 'User::LdapAuthenticable::ClassMethods#authenticate_with_ldap'
Mar 14 18:47:50 debian-s2-2 bundle[13675]: [0e4f20e2-6069-47ee-8678-e4db5247e075] app/controllers/auth/sessions_controller.rb:69:in 'Auth::SessionsController#find_user_from_params'
Mar 14 18:47:50 debian-s2-2 bundle[13675]: [0e4f20e2-6069-47ee-8678-e4db5247e075] app/controllers/auth/sessions_controller.rb:62:in 'Auth::SessionsController#find_user'
Mar 14 18:47:50 debian-s2-2 bundle[13675]: [0e4f20e2-6069-47ee-8678-e4db5247e075] app/controllers/concerns/auth/two_factor_authentication_concern.rb:12:in 'Auth::TwoFactorAuthenticationConcern#two_factor_enabled?'
Mar 14 18:47:50 debian-s2-2 bundle[13675]: [0e4f20e2-6069-47ee-8678-e4db5247e075] lib/mastodon/middleware/socket_cleanup.rb:11:in 'Mastodon::Middleware::SocketCleanup#call'
API calls are working. Just the Web logins that are failing.
Any help much appreciated
#mastoadmin #mastodonadmin
Replies (1)
-
@daniel@colquitt.xyz 2026-03-14 19:33
@bumble@ibe.social is your friend really using an LDAP server for authentication? This would be an unusual setup. If your friend is using an LDAP server, then is it not currently listening on the referenced port and is likely not running.