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

Devel version not working with AWS S3 Bucket #274

Open
anessi opened this issue Aug 17, 2023 · 1 comment
Open

Devel version not working with AWS S3 Bucket #274

anessi opened this issue Aug 17, 2023 · 1 comment

Comments

@anessi
Copy link

anessi commented Aug 17, 2023

I tried to use the devel version based on https://github.com/camptocamp/terraboard/blob/master/docker-compose.yml#L8

This did not pull any data, but was just logging the following messages with TERRABOARD_LOG_LEVEL: debug and GODEBUG: netdns=go,http2debug=2:

terraboard-terraboard-1  | time="2023-08-17T07:25:46Z" level=info msg="Terraboard v0.12.0-49-g709cbf5 is starting..."
terraboard-terraboard-1  | time="2023-08-17T07:25:46Z" level=info msg=Automigrate
terraboard-terraboard-1  | time="2023-08-17T07:25:47Z" level=info msg="Refreshing DB from S3"
terraboard-terraboard-1  | 2023/08/17 07:25:47 http2: Transport failed to get client conn for mybucket.s3.eu-central-1.amazonaws.com:443: http2: no cached connection was available
terraboard-terraboard-1  | 
terraboard-terraboard-1  | (/go/src/github.com/camptocamp/terraboard/db/db.go:237) 
terraboard-terraboard-1  | [2023-08-17 07:25:47]  [1.70ms]  SELECT states.path, versions.version_id FROM "states" JOIN versions ON versions.id = states.version_id   
terraboard-terraboard-1  | [0 rows affected or returned ] 

After using latest it was working fine:

terraboard-terraboard-1  | time="2023-08-17T07:30:56Z" level=info msg="Terraboard vv2.2.0 (built for Terraform v1.0.2) is starting..."
terraboard-terraboard-1  | time="2023-08-17T07:30:56Z" level=info msg="Using AWS (S3+DynamoDB) as state/locks provider"
terraboard-terraboard-1  | time="2023-08-17T07:30:56Z" level=info msg=Automigrate
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="gorm.io/driver/[email protected]/migrator.go:2344.018738-SELECT count(*) FROM INFORMATION_SCHEMA.columns WHERE table_schema = CURRENT_SCHEMA() AND table_name = 'states' AND column_name = 'lineage'"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="Total providers: 1\n"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=info msg="Refreshing DB"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="Listing states from S3" bucket=mybucket prefix=
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="Listening on port 8080\n"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=info msg="Serving swagger on port 8081"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="Found states from S3" bucket=mybucket prefix= states=33
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="github.com/camptocamp/terraboard/db/db.go:4201.675139-SELECT states.path, versions.version_id FROM \"states\" JOIN versions ON versions.id = states.version_id"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="github.com/camptocamp/terraboard/db/db.go:2731.104821 0SELECT * FROM \"versions\" WHERE \"versions\".\"version_id\" = 'null' AND \"versions\".\"last_modified\" = '2023-08-16 12:21:21' ORDER BY \"versions\".\"id\" LIMIT 1"
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=debug msg="github.com/camptocamp/terraboard/db/db.go:2731.764138 1INSERT INTO \"versions\" (\"version_id\",\"last_modified\") VALUES ('null','2023-08-16 12:21:21') RETURNING \"id\""
terraboard-terraboard-1  | time="2023-08-17T07:30:57Z" level=info msg="Retrieving state from S3" path=account_resources/tfstate.tf version_id=null

Just in case others will encounter this issue. It seems the devel tag points to a very old version.

@hbollon
Copy link
Member

hbollon commented Dec 28, 2023

Hello, the devel tag is not maintained since quite a long so yes it's very outdated.
I will update the docker-compose

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

No branches or pull requests

2 participants