Database initialization of Sequel Model fails on first run.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegard |
Fix Released
|
High
|
Chris Tusa |
Bug Description
When attempting to start the tg.rb program for the first time, the Telegard.init method fails when loading the Users model. Additionally, on a subsequent run, the "SYSOP" user is created with id 2 instead of id 1, and id 1 does not exist in the users table. The console output is:
Initializing Database Models.
DB Model: groups.
DB Model: users..
from /opt/devel/
from /opt/devel/
from /opt/devel/
from /opt/devel/
from /opt/devel/
from /opt/devel/
from /opt/devel/
from /opt/devel/
... 12 levels...
from ./lib/telegard.
from ./lib/telegard.
from ./tg.rb:164
Changed in telegard: | |
assignee: | nobody → Chris Tusa (chris-tusa) |
importance: | Undecided → High |
Changed in telegard: | |
status: | Fix Committed → Fix Released |
This error was resolved by upgrading to Sequel gem 3.12.0 or later. This new version implements Sequel: :Plugins: :SkipCreateRefr esh. This plugin is no loaded directly after the gem requirement & schema plugin and before the Model loading.