Project

General

Profile

Actions

Bug #1904

closed

Admin is not created in MySQL when there is a SQLite database

Added by Jasper Poppe over 11 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When Foreman is installed with the Debian packages the default database adapter is SQLite. When the SQLite database has been created and you change the adapter to mysql or mysql2 and run the '/usr/share/foreman/extras/dbmigrate' script the admin user will not be created.

It fails somehow even when running the 'RAILS_ENV=production rake permissions:reset' command. When you delete the SQLite database from the '/usr/share/foreman/db' directory the 'RAILS_ENV=production rake permissions:reset' works fine and the admin user will be created.

Actions

Also available in: Atom PDF