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

Standard installation failing - Config failed to initialise #22

Open
JeffParkerOi opened this issue May 20, 2023 · 5 comments
Open

Standard installation failing - Config failed to initialise #22

JeffParkerOi opened this issue May 20, 2023 · 5 comments
Labels
bug An error has occurred high priority Should be prioritised over all other issues

Comments

@JeffParkerOi
Copy link

JeffParkerOi commented May 20, 2023

What happened?

When installing the current 1.0.0-rc.2 pre-release version using the standard installation method, the installer gets to the point where it is asking for server details (mongodb URI, server host/path, etc). Upon entering these details and continuing in the process, the installer throws the following error:

Failed to fetch

A more detailed error from the server logs is included in the 'relevant log output' field below.

I'm not sure what is causing the error, but it appears to manifest as the 'conf/production.config.js' file being written with no settings in it. If I manually populate the settings of this file, and save it immediately after submitting the form, then the installation process continues to the next step successfully.

Expected behaviour

After entering the configuration settings as part of the installation process, they should be saved in 'conf/production.config.js'.

Steps to reproduce

  1. Follow the 'standard installation' instructions at: https://adapt-security.github.io/adapt-authoring-documentation/manual/#/install
  2. At the stage that you are asked to enter server details, do so, and click continue.
  3. Note that the error is thrown immediately afterward

Authoring tool version

1.0.0-rc.2

Framework version

n/a

What browsers are you seeing the problem on?

Chrome

Relevant log output

adapt-authoring-auth: must have required property 'tokenSecret'
adapt-authoring-server: must have required property 'host', must have required property 'port', must have required property 'url'
adapt-authoring-mongodb: must have required property 'connectionUri'
adapt-authoring-sessions: must have required property 'secret'
Error
    at ConfigModule.storeSchemaSettings (file:///home/adapt/app/node_modules/adapt-authoring-config/lib/ConfigModule.js:128:26)
    at async ConfigModule.init (file:///home/adapt/app/node_modules/adapt-authoring-config/lib/ConfigModule.js:33:7)

Config failed to initialise for environment 'production'. See above for details.
@JeffParkerOi JeffParkerOi added the bug An error has occurred label May 20, 2023
@taylortom taylortom added the high priority Should be prioritised over all other issues label May 23, 2023
@taylortom taylortom transferred this issue from adapt-security/adapt-authoring May 23, 2023
@taylortom
Copy link
Collaborator

taylortom commented May 24, 2023

Will have a look into this one this week 😄

@taylortom taylortom removed the high priority Should be prioritised over all other issues label Jun 9, 2023
@simondate
Copy link

simondate commented Aug 14, 2023

@taylortom this was the issue that I mentioned on the call today. Happening to me on 1.0.0-rc.3 on Windows 11. the production.config.js file shows this after the failed install

export default {};

I didn't have this issue when I did the --no-ui install

@simondate
Copy link

simondate commented Aug 16, 2023

Just spent a couple of hours playing around with this.

I've discovered that the request body here is empty.

Form data is present when the UI sends the message so this is probably an error with the POST event.

@taylortom taylortom self-assigned this Sep 4, 2023
@taylortom
Copy link
Collaborator

This one should now be fixed in [email protected]

@joe-allen-89
Copy link

Unable to install using --prerelease flag

@taylortom taylortom added the high priority Should be prioritised over all other issues label Jan 18, 2024
@taylortom taylortom removed their assignment Jan 23, 2024
@taylortom taylortom self-assigned this Feb 28, 2024
@taylortom taylortom removed their assignment Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error has occurred high priority Should be prioritised over all other issues
Projects
Development

No branches or pull requests

4 participants