SUSE Support

Here When You Need Us

Upgraded SUMA 3.1 server reports "Error: jabberd/c2s[29663]: sqlite (authreg): no such table: authreg".

This document (7021129) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 3.1

Situation

This problem is only seen when the SUSE Manager 3.1 server has been upgrade from SUSE Manager 3.0x

As noted in the release notes jabberd can now use sqlite in place of the berkeley db database to improve stability and performance, sqlite is the preferred database option for jabberd.

Fresh installations of SUSE Manager 3.1 Server will use sqlite by default.

Existing installation need to manually switch to this database as follows

      # systemctl stop jabberd
      # spacewalk-setup-jabberd
      # systemctl start jabberd

After this the following error is spawned in the messages file:
2017-07-24T15:13:17.939726+02:00  jabberd/c2s[97309]: sqlite (authreg): no such table: authreg
2017-07-24T15:13:17.941846+02:00  jabberd/c2s[97309]: sqlite (authreg): no such table: authreg
2017-07-24T15:13:17.942099+02:00  jabberd/c2s[97309]: sqlite (authreg): no such table: authreg
2017-07-24T15:13:19.262749+02:00  jabberd/c2s[97309]: sqlite (authreg): no such table: authreg
2017-07-24T15:13:19.266225+02:00  jabberd/c2s[97309]: sqlite (authreg): no such table: authreg


Resolution

To overcome this problem the sqlite database will need to be recreated using the following steps:
# systemctl stop jabberd
# /usr/share/spacewalk/setup/jabberd/create_sqlite3_database
# systemctl start jabberd

Cause

In certain scenarios the database is not created correctly, this will result in an empty database.
# ls -lh /var/lib/jabberd/db/sqlite.db
-rw-r--r-- 1 jabber jabber 0 Jul 12 10:32 /var/lib/jabberd/db/sqlite.db

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7021129
  • Creation Date: 28-Jul-2017
  • Modified Date:03-Mar-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.