- Status Closed
- Percent Complete
- Task Type Bug Report
- Category Backend/Core
- Assigned To No-one
- Operating System All
- Severity High
- Priority Low
- Reported Version 0.9.9.7
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Opened by magicfinger - 15.03.2013
Last edited by jordanmendler - 14.01.2015
FS#1850 - Installer not Creating first user
From Email Group
I recently set up FlySpray 0.9.9.7 to use as a simple trouble-ticket system to use for a club to which I belong. I like it a lot. I customized a few things by changing code (mainly, I wanted to remove some of the fields on the task form).
Then today I got the 1.0 development version via GIT, and installed it as a fresh system on another computer. I ran into a few problems:
The admin user id I entered in the setup form never appeared in the flypray_users table. I couldn't login with the super userid. I got around the problem by copying the records from my "production" system's users table. Now I can login.
In the login box at the top right, I get complaints about not finding allow_passwd, etc. Same when I created a new user. Figured out that I needed to add a couple of fields to the prefs table.
ID | Project | Summary | Priority | Severity | Assigned To | Progress | |
---|---|---|---|---|---|---|---|
1849 | Flyspray | FS#1849 - Installer Overhaul | Low | High |
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
This seems to happen sometimes its not that the allow_passwd field is missing, it is that the install script is not processing anything after the create user line in the SQL fails... this fails silently with no error message, and is not even attempting a SQL call when looked at with SQL profiler.
Not only the _users table is empty, other empty (and they shouldnt) are:
- _groups
- _users_in_groups
I've dumped these three columns from my production and imported them into fresh installation of Flyspray (dev) and I can now log in.
In file setup\upgrade\1.0\flyspray-install.xml
groups should be:
projects should be
<query>INSERT INTO projects VALUES (DEFAULT, 'Default Project', 'CleanFS', 0, 'Welcome to your first Flyspray project! We hope that Flyspray provides you with many hours of increased productivity. If you have any issues, go to http://flyspray.org/support. You can customise this message by clicking the Manage Project link in the menu above...', 1, 'id category tasktype priority severity summary status progress', 'tasktype category severity priority status private assignedto reportedin dueversion duedate progress os votes', 1, 0,
,
, NULL, '0', NULL, NULL,, 'en', 0, 0, 0, NULL, 'index',0,0,'Undecided');</query> users should be
, '', 25, 0, 0, 0, 0, 0, 'en');INSERT INTO users VALUES (DEFAULT, 'super', '1b3231655cebb7a1f783eddf27d254ca', 'Mr Super User', 'super@example.com', 'super@example.com', 0, 1, 1,
Bug on Github: https://github.com/Flyspray/flyspray/issues/11
Submitted a pull-request to fix this: https://github.com/Flyspray/flyspray/pull/14