Not able to set the password while installing Lucee using silent installation steps in windows.

Description

We are able to install the software using silent installation commands. But we are not able to setup the password for the application.

Below is the command we are using to install the Lucee.

cmd.exe /c "$LuceeDownloadPath --luceepass password123 --unattendedmodeui none --mode unattended --prefix E:\Lucee"

We are passing the password in the command but even though it is not setting it.

We checked the official website of Lucee and found that automation script guide is in progress.
https://docs.lucee.org/guides/installing-lucee/windows.html

Environment

Azure windows 2019 server

Attachments

2

Activity

Show:

Zac Spitzer 4 July 2022 at 07:49
Edited

thanks for diving into this

I've attached a test installer can you give it a go and report back here?

Gavin Baumanis 3 July 2022 at 05:38
Edited


I have worked out the issue.
And it effects the GUI installer AND the command-line install option, equally.

You MUST install the bundled JRE - or the install fails.
With the GUI make Sure you choose the Bundled JRE and NOT the automatically found one (if you have a JRE already installed)
For the command Line ensure you use the argument “--installjre true”

if you attempt to use your already installed version;
Required files are not copied.
Then; an install step fails and THUS;
The Lucee service is NOT started
The Server and Web contexts are NOT “warmed up”
The password from the command-line is NOT copied into the Server and Web contexts.
With the end result being that when you manually start the service, and go to the admin pages - you get the notification of no password being set.

I have created a PR to fix this behaviour.

Gavin Baumanis 26 June 2022 at 15:14
Edited

I can replicate this using the latest JAR.
(I only mention it because below shows he is using 5.3.8.201)

Using unattended mode;

the import password.txt file is displayed for server AND web admins.

Same results with command/DOS prompt and PowerShell, too.

Pothys - MitrahSoft 23 June 2022 at 06:10

I've checked this ticket and installed lucee in silent installation using the below command in the windows command prompt.

I got the No Password set yet! warning page if opening the admin page immediately after the installation process is completed. But after a few seconds if refresh the page it shows the admin login page and I entered the password (password123) which I provided in the command, it opens the admin overview page as expected.

But I retried the same above silent installation process with an already have running lucee express server in the same port. Now the installation was completed successfully but the newly installed server has not been started because of the express already running. After that, I stopped the lucee express server and start the newly installed server in services. Now the issue was reproduced and the lucee admin asked for the import password.txt file as mentioned above.

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 17 December 2021 at 06:10
Updated 10 March 2025 at 12:53
Resolved 10 March 2025 at 12:53