View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|15069||Bug reports||[All Projects] Installation||public||2019-07-23 14:02||2019-07-28 10:36|
|Target Version||Fixed in Version||3.17.x|
|Summary||15069: setting admin password with CLI database installation fails|
When using the CLI installation script
|Steps To Reproduce|
Configure limesurvey manually (configure webserver, extract directory, create database user, adjust application/config/config.php) and run
Look into the database table users.
The bug is located in file limesurvey/application/commands/InstallFromConfigCommand.php on line 101:
This line should be
|Tags||No tags attached.|
|Complete LimeSurvey version number (& build)||3.17.8 190722|
|I will donate to the project if issue is resolved||No|
|Database & DB-Version||postgresql 11|
|Server OS (if known)|
|Webserver software & version (if known)|
It's not clear if this ticket is for LS3 or LS4.
I'm not really sure - I downloaded and installed "limesurvey3.17.8+190722.tar.gz" but the installation claims to be 4.0.0-RC1 build 190722. Maybe a packaging issue?
(But : in my opinion, must always use model to create user)
Download the package again, please. We had an error in our release before.
Downloaded the package again - the problem still exists. Affected version is 3.17.8 build 190722. I don't see any option to change this information in the ticket.
Models should not be used during installation, due to problems with database cache.
However, it's obvious that the script doesn't run in a valid application context which has its own complexity. This makes it hard to implement a robust installation script and might be the reason, why this approach has been chosen.
@cmrudolph : can you check with
Done. See my pull request at https://github.com/LimeSurvey/LimeSurvey/pull/1309
Installation from config works now as expected.
An additional question, before merge. Could it be, that the observed behavior is intended to prevent the cleartext passwords from being inside the configuration file? This should be documented if it is the case.
I don't think : default password are
|2019-07-23 14:02||cmrudolph||New Issue|
|2019-07-23 14:44||ollehar||Note Added: 52960|
|2019-07-23 14:44||ollehar||Assigned To||=> ollehar|
|2019-07-23 14:44||ollehar||Status||new => feedback|
|2019-07-23 14:44||ollehar||Assigned To||ollehar =>|
|2019-07-24 06:29||cmrudolph||Note Added: 52970|
|2019-07-24 06:29||cmrudolph||Status||feedback => new|
|2019-07-24 10:43||DenisChenu||Note Added: 52975|
|2019-07-24 10:52||ollehar||Note Added: 52977|
|2019-07-24 13:32||cmrudolph||Note Added: 52983|
|2019-07-24 13:34||ollehar||Note Added: 52984|
|2019-07-24 14:26||cmrudolph||Note Added: 52985|
|2019-07-24 14:55||DenisChenu||Complete LimeSurvey version number (& build)||4.0.0-RC1 (build 190722) => 3.17.8 190722|
|2019-07-24 14:56||DenisChenu||Note Added: 52986|
|2019-07-25 07:33||cmrudolph||Note Added: 52993|
|2019-07-25 07:36||cmrudolph||Note Added: 52994|
|2019-07-25 08:56||DenisChenu||Note Added: 52995|
|2019-07-28 10:36||DenisChenu||Assigned To||=> DenisChenu|
|2019-07-28 10:36||DenisChenu||Status||new => resolved|
|2019-07-28 10:36||DenisChenu||Resolution||open => fixed|
|2019-07-28 10:36||DenisChenu||Fixed in Version||=> 3.17.x|
|2019-07-28 10:36||DenisChenu||Note Added: 53029|