Cannot log into admin panel and can't enable debug mode to increase issue visibility

I just went through the openfire configuration for openfire 3.10.2 on a new Ubuntu 15.04 installation using a mysql backend.

I connected to the mysql database, found the open fire tables, and looked at table ofUser:

mysql> select * from ofUser;

±---------±--------------±------------------±--------------±--------------- —±-------------±-----------------+

| username | plainPassword | encryptedPassword | name | email | creationDate | modificationDate |

±---------±--------------±------------------±--------------±--------------- —±-------------±-----------------+

| admin | admin | NULL | Administrator | admin@example.com | 0 | 0 |

±---------±--------------±------------------±--------------±--------------- —±-------------±-----------------+

1 row in set (0.00 sec)

However, when I try to use admin admin to log into http://:9090 to log in with admin/admin, I get a


Login failed: make sure your username and password are correct and that you’re an admin or moderator.

Why would the password not work? Is openfire somehow expecting an encrypted password?

I am trying to debug what the failure is, but I can’t figure out how to enable the “debug” log level without going through the web UI.

When you go through a setup, on admin account page, do you put ‘admin’ as a password? Try something else and then try to login with that password.

Thank you for the quick response.

I did try to put in something else, but it didn’t save into the DB.

I tried to go back into setup, as you suggested, to change the admin password. This is what I now get from http://10.0.0.131:9090/setup/setup-admin-settings.jsp

java.lang.NullPointerException

at org.jivesoftware.openfire.admin.setup.setup_002dadmin_002dsettings_jsp._jspServ ice(setup_002dadmin_002dsettings_jsp.java:99)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:74)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:50)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:78)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:159)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 )

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:497)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Thread.java:745)

Hmm… so I see this thread now…

LDAP setup “No users found…” error message

Ok, it was my an LDAP issue.

I purged openfire:

dpkg --purge openfire

Then I reinstalled the openfire package and re-ran through the setup, but making sure to do the “test ldap” button.

Thanks wr00t!