Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 User gets a popup to run /usr/share/opennms/bin/install to finish setup #32

Open
mjksohonet opened this issue Nov 15, 2023 · 3 comments
Labels

Comments

@mjksohonet
Copy link

mjksohonet commented Nov 15, 2023

When running the bootstrap-debian.sh script it outputs a popup stating that the user needs to run /usr/share/opennms/bin/install to complete the installation.
When the user runs the script they get a message stating 'Nothing to do' which will probably confuse some users.
The message should be changed to /usr/share/opennms/bin/install -dis.

Screenshot 2023-11-18 at 01 21 44

The user has to confirm with OK and the DEBIAN_FRONTEND=noninteractive is ignored.

@mmahacek
Copy link

Do you mean this line? It's already using those flags.

sudo "${OPENNMS_HOME}"/bin/install -dis 1>>"${ERROR_LOG}" 2>>"${ERROR_LOG}"

@indigo423 indigo423 changed the title Specify the install options 🐞 Specify the install options Nov 15, 2023
@indigo423 indigo423 added the bug label Nov 15, 2023
@mjksohonet
Copy link
Author

If it's not necessary to run the install script after the bootstrap script has run then the popup is unnecessary and should be removed?
Having said that, after I ran the bootstrap script I waited for a short time and then ran install -dis and captured the output.
Reviewing the output, I can see that the install script found 17 upgrade tasks but later on it reports that 15 of them had been executed at a time that matched when the bootstrap script was run.
The two additional tasks are EventParameterMigratorOffline and VmwareAssetsMigratorOffline.
If it is necessary to run the install script after the bootstrap script, can I please ask that the popup be removed and replaced with a message at the end of the bootstrap run.

@indigo423 indigo423 changed the title 🐞 Specify the install options 🐞 User gets a popup to run /usr/share/opennms/bin/install to complete install which is not required Nov 17, 2023
@indigo423 indigo423 changed the title 🐞 User gets a popup to run /usr/share/opennms/bin/install to complete install which is not required 🐞 User gets a popup to run /usr/share/opennms/bin/install to finish setup Nov 17, 2023
@indigo423
Copy link
Member

@mjksohonet I've done some investigation and added a screenshot in the bug report. Is this the problem you are seeing? I might need to dig a bit into debconf if we have possibilities to suppress this dialog because we do an unattended installation here. The DEBIAN_FRONTEND setting is ignored in this particular case.

Thank you for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants