Closed chrisXar closed 2 months ago
I changed .json to .txt because it does not let me up json file
log-events-viewer-result.csv I attached the log of ECS task
Hi @chrisXar thanks for reaching out, Please make sure you use the latest sample.env - it has a default value of "github.com" https://github.com/awslabs/harmonix/blob/558792058098e38f57dccbb9e19063f0d9e57a51/config/sample.env#L101
You may also comment out github configurations(integrations.github) if you don't need it and use gitlab.
Hi @z-sourcecode i'm very sure i'm using the latest version of sample.env because i cloned the repository a few minutes earlier to do this installation. when I copied the sample.env to config/.env I comment out the GITHUB_HOSTNAME variable and GITHUB-SECRET-NAME variable (you can see in install log file that it skipped the GITHUB Secret creation), is there something else that I have to do for skip all GITHUB configuratión? If yes, please give the step by step to fulfill this and fix it.
here's the piece of log:
/harmonix Bootstrap Finished. make[1]: Leaving directory '/harmonix'
make[1]: Entering directory '/harmonix' ./build-script/secure-secrets-creation.sh
Skipping GitHub secret
Creating/Updating GitLab opa-admin-gitlab-secrets secret...
Creating new secret: { "ARN": "arn:aws:secretsmanager:us-east-1:767397843562:secret:opa-admin-gitlab-secrets-dkZpch", "Name": "opa-admin-gitlab-secrets", "VersionId": "13d08011-50c3-455a-8a8b-603d0707f651" } [1;32mSuccessfully set GitLab opa-admin-gitlab-secrets secret[0m
[1;33mSkipping Harness secret[0m [1;33mSkipping Terraform Cloud secret[0m
Can you please try to not comment out the GITHUB_HOSTNAME and GITHUB-SECRET-NAME. Even if you may not actually use them in your app-config.aws-production.yaml. Please let me know if this works?
Closing this ticket as it resolved.
Description
I'm trying to install Harmonix, but the installation did not finish succesfully, the ECS task definition never has a task running. The stopped tasks shows the message:
ForwardedError [TypeError]: Module 'gitlab' for plugin 'scaffolder' startup failed; caused by TypeError: Invalid type in config for key 'integrations.github[0].host' in 'app-config.aws-production.yaml', got empty-string, wanted string
I don have any variable of GitHUB in my config/.env file, so I don't know why it still wanted a value for GitHub integration.
Versions
Reproduction Code [Required]
I'm ussing the last release from your github code.
Steps to reproduce the behavior:
I install the prerequisites: root@C11-PNOPH6BSJXD:/harmonix/backstage# node -v yarn -v aws --version cdk --version jq --version docker --version git --version python3 --version v18.20.4 1.22.22 aws-cli/2.17.40 Python/3.11.9 Linux/5.15.146.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 2.154.1 (build febce9d) jq-1.6 Docker version 27.2.0, build 3ab4256 git version 2.34.1 Python 3.10.12
Then, I run Make install
Expected behavior
The ECS taks starts good, and the final state Running
Actual behavior
The tasks are stopped
Terminal Output Screenshot(s)
install_20240829-1222.log app-config.aws-production.txt