Can't login on new install via webpage

Problem:
New install of katello on centos7 seems to fail to log in - password can be reset with foreman-rake but still fails.
Expected outcome:
Can login
Foreman and Proxy versions:
2.3-rc2
Distribution and version:
CentOS7.9-2009
Other relevant data:

1 Like

Is there any message in /var/log/foreman/production.log? do you have LDAP or external authentication configured?

1 Like

[root@centos7 ~]# tail /var/log/foreman/production.log
2020-11-19T14:18:24 [E|app|95878339] DalliError: No server available
2020-11-19T14:18:39 [W|app|95878339] 127.0.0.1:11211 failed (count: 565) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
2020-11-19T14:18:39 [E|app|95878339] DalliError: No server available
2020-11-19T14:18:39 [E|app|95878339] DalliError: No server available
2020-11-19T14:18:54 [W|app|95878339] 127.0.0.1:11211 failed (count: 566) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
2020-11-19T14:18:54 [E|app|95878339] DalliError: No server available
2020-11-19T14:18:54 [E|app|95878339] DalliError: No server available
2020-11-19T14:19:09 [W|app|95878339] 127.0.0.1:11211 failed (count: 567) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
2020-11-19T14:19:09 [E|app|95878339] DalliError: No server available
2020-11-19T14:19:09 [E|app|95878339] DalliError: No server available

Looks like an issue with memcached configuration, what do you have in /etc/foreman/settings.yaml under :rails_cache_store:? Do you have the foreman_memcache plugin installed? is memcached installed and running?

:rails_cache_store:
:type: file

I did have memcache plugin installed, didn’t realise i’d have to install and startup memcached - this node is a bare install.

memcahced is required for the plugin to work. That said, the plugin is quite old and now we have the ability to use redis caching in foreman as well without need for a plugin, so you might not need the plugin at all.

Oh, and that’s by default? Or is that also via plugin?

Also, any way to modify the plugins post-install? Say for instance, if you wanted to implement SaltStack integration after install? Just re-run the installer, or is there a maintenance task?

Installing memcached and starting up got me onto the login so that’s great.

you can install all plugins except for katello on an existing server using the installer. uninstalling plugins depends on the plugin - some may leave left-overs in the database that need cleanup if you uninstall them, but specifically memcache plugin should be possible to cleanly uninstall.
Redis caching isn’t well documented, but you can enable it by passing --foreman-rails-cache-store redis to the installer.