zendesk / samson

Web interface for deployments, with plugin architecture and kubernetes support
Other
1.45k stars 234 forks source link

Docker compose setup fails #1924

Closed dasch closed 7 years ago

dasch commented 7 years ago

Here's the full output of running docker-compose up on the latest master:

Full output ``` $ docker-compose up master Creating network "samson_default" with the default driver Pulling samson (zendesk/samson:latest)... latest: Pulling from zendesk/samson 6d827a3ef358: Already exists cfd750008fb6: Pull complete 3fe65b384f96: Pull complete 2c66fbc02694: Pull complete e666fc56656b: Pull complete 652af4ea5edf: Pull complete 31d56e4bc7dc: Pull complete 4b6b9cd118e2: Pull complete eed489cf0422: Pull complete c67dfdb629b6: Pull complete caf5cab19d71: Pull complete ccf3cb4ee0f9: Pull complete fd7477374341: Pull complete 2f579d0a2770: Pull complete 1179546e564c: Pull complete f74f48f5ae3b: Pull complete c297dd0ddb30: Pull complete c88abceab2b1: Pull complete f3c8fb0b3dfa: Pull complete 2e5d7c047595: Pull complete a8af4098fb34: Pull complete a595ffa1ac57: Pull complete 915feec6049f: Pull complete 5bfcf44cfd0d: Pull complete 454defdc910c: Pull complete 0e3ab7de1ffa: Pull complete d99f69889b0e: Pull complete 40a6d4a52029: Pull complete 8d8e80f447c9: Pull complete Digest: sha256:9588154eae208e8cbc03926c079bb1f82c97860ec6e1edd41cc15c82ef38d5d3 Status: Downloaded newer image for zendesk/samson:latest Creating samson_samson_1 Attaching to samson_samson_1 samson_1 | Created database '/development.sqlite' samson_1 | fatal: Not a git repository (or any of the parent directories): .git samson_1 | Starting SSE heartbeat thread! samson_1 | -- create_table("builds", {:force=>:cascade}) samson_1 | (4.4ms) CREATE TABLE "builds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "number" integer, "git_sha" varchar NOT NULL, "git_ref" varchar NOT NULL, "docker_image_id" varchar, "docker_tag" varchar, "docker_repo_digest" varchar, "docker_build_job_id" integer, "label" varchar, "description" varchar(1024), "created_by" integer, "created_at" datetime, "updated_at" datetime, "kubernetes_job" boolean DEFAULT 'f' NOT NULL, "started_at" datetime, "finished_at" datetime, "source_url" varchar) samson_1 | (0.1ms) select sqlite_version(*) samson_1 | (2.5ms) CREATE INDEX "index_builds_on_created_by" ON "builds" ("created_by") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_builds_on_created_by' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_builds_on_created_by' AND type='index' samson_1 | samson_1 | (2.4ms) CREATE UNIQUE INDEX "index_builds_on_git_sha" ON "builds" ("git_sha") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_builds_on_git_sha' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_builds_on_git_sha' AND type='index' samson_1 | samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_builds_on_created_by' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_builds_on_created_by' AND type='index' samson_1 | samson_1 | (4.2ms) CREATE INDEX "index_builds_on_project_id" ON "builds" ("project_id") samson_1 | -> 0.0224s samson_1 | -- create_table("commands", {:force=>:cascade}) samson_1 | (3.5ms) CREATE TABLE "commands" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "command" text(10485760), "created_at" datetime, "updated_at" datetime, "project_id" integer) samson_1 | -> 0.0046s samson_1 | -- create_table("csv_exports", {:force=>:cascade}) samson_1 | (2.7ms) CREATE TABLE "csv_exports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "filters" varchar DEFAULT '{}' NOT NULL, "status" varchar DEFAULT 'pending' NOT NULL) samson_1 | -> 0.0040s samson_1 | -- create_table("deploy_groups", {:force=>:cascade}) samson_1 | (2.5ms) CREATE TABLE "deploy_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "environment_id" integer NOT NULL, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "env_value" varchar NOT NULL, "permalink" varchar NOT NULL, "vault_server_id" integer) samson_1 | (3.5ms) CREATE INDEX "index_deploy_groups_on_environment_id" ON "deploy_groups" ("environment_id") samson_1 | (0.0ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploy_groups_on_environment_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploy_groups_on_environment_id' AND type='index' samson_1 | samson_1 | (5.0ms) CREATE UNIQUE INDEX "index_deploy_groups_on_permalink" ON "deploy_groups" ("permalink") samson_1 | -> 0.0155s samson_1 | -- create_table("deploy_groups_stages", {:id=>false, :force=>:cascade}) samson_1 | (2.8ms) CREATE TABLE "deploy_groups_stages" ("deploy_group_id" integer, "stage_id" integer) samson_1 | (3.1ms) CREATE INDEX "index_deploy_groups_stages_on_deploy_group_id" ON "deploy_groups_stages" ("deploy_group_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploy_groups_stages_on_deploy_group_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploy_groups_stages_on_deploy_group_id' AND type='index' samson_1 | samson_1 | (4.0ms) CREATE INDEX "index_deploy_groups_stages_on_stage_id" ON "deploy_groups_stages" ("stage_id") samson_1 | -> 0.0129s samson_1 | -- create_table("deploy_response_urls", {:force=>:cascade}) samson_1 | (2.9ms) CREATE TABLE "deploy_response_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deploy_id" integer NOT NULL, "response_url" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) samson_1 | (2.2ms) CREATE UNIQUE INDEX "index_deploy_response_urls_on_deploy_id" ON "deploy_response_urls" ("deploy_id") samson_1 | -> 0.0069s samson_1 | -- create_table("deploys", {:force=>:cascade}) samson_1 | (3.5ms) CREATE TABLE "deploys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stage_id" integer NOT NULL, "job_id" integer NOT NULL, "reference" varchar NOT NULL, "created_at" datetime, "updated_at" datetime, "buddy_id" integer, "started_at" datetime, "deleted_at" datetime, "build_id" integer, "release" boolean DEFAULT 'f' NOT NULL, "kubernetes" boolean DEFAULT 'f' NOT NULL, "project_id" integer NOT NULL, "kubernetes_rollback" boolean DEFAULT 't' NOT NULL, "kubernetes_reuse_build" boolean DEFAULT 'f' NOT NULL) samson_1 | (2.7ms) CREATE INDEX "index_deploys_on_build_id" ON "deploys" ("build_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | samson_1 | (2.4ms) CREATE INDEX "index_deploys_on_deleted_at" ON "deploys" ("deleted_at") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_deleted_at' AND type='index' samson_1 | samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | samson_1 | (2.4ms) CREATE INDEX "index_deploys_on_job_id_and_deleted_at" ON "deploys" ("job_id", "deleted_at") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_job_id_and_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_job_id_and_deleted_at' AND type='index' samson_1 | samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_deleted_at' AND type='index' samson_1 | samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | samson_1 | (2.6ms) CREATE INDEX "index_deploys_on_project_id_and_deleted_at" ON "deploys" ("project_id", "deleted_at") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_project_id_and_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_project_id_and_deleted_at' AND type='index' samson_1 | samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_job_id_and_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_job_id_and_deleted_at' AND type='index' samson_1 | samson_1 | (0.3ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_deleted_at' AND type='index' samson_1 | samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_deploys_on_build_id' AND type='index' samson_1 | samson_1 | (2.8ms) CREATE INDEX "index_deploys_on_stage_id_and_deleted_at" ON "deploys" ("stage_id", "deleted_at") samson_1 | -> 0.0327s samson_1 | -- create_table("environment_variable_groups", {:force=>:cascade}) samson_1 | (3.3ms) CREATE TABLE "environment_variable_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "comment" text(65535)) samson_1 | (3.5ms) CREATE UNIQUE INDEX "index_environment_variable_groups_on_name" ON "environment_variable_groups" ("name") samson_1 | -> 0.0108s samson_1 | -- create_table("environment_variables", {:force=>:cascade}) samson_1 | (2.9ms) CREATE TABLE "environment_variables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "value" varchar NOT NULL, "parent_id" integer NOT NULL, "parent_type" varchar NOT NULL, "scope_id" integer, "scope_type" varchar) samson_1 | (7.7ms) CREATE UNIQUE INDEX "environment_variables_unique_scope" ON "environment_variables" ("parent_id", "parent_type", "name", "scope_type", "scope_id") samson_1 | -> 0.0133s samson_1 | -- create_table("environments", {:force=>:cascade}) samson_1 | (7.7ms) CREATE TABLE "environments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "production" boolean DEFAULT 'f' NOT NULL, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "permalink" varchar NOT NULL) samson_1 | (3.0ms) CREATE UNIQUE INDEX "index_environments_on_permalink" ON "environments" ("permalink") samson_1 | -> 0.0125s samson_1 | -- create_table("flowdock_flows", {:force=>:cascade}) samson_1 | (6.8ms) CREATE TABLE "flowdock_flows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "token" varchar NOT NULL, "stage_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) samson_1 | -> 0.0086s samson_1 | -- create_table("jenkins_jobs", {:force=>:cascade}) samson_1 | (5.9ms) CREATE TABLE "jenkins_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "jenkins_job_id" integer, "name" varchar NOT NULL, "status" varchar, "error" varchar, "deploy_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "url" varchar) samson_1 | (4.3ms) CREATE INDEX "index_jenkins_jobs_on_deploy_id" ON "jenkins_jobs" ("deploy_id") samson_1 | (0.3ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_jenkins_jobs_on_deploy_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_jenkins_jobs_on_deploy_id' AND type='index' samson_1 | samson_1 | (4.2ms) CREATE INDEX "index_jenkins_jobs_on_jenkins_job_id" ON "jenkins_jobs" ("jenkins_job_id") samson_1 | -> 0.0237s samson_1 | -- create_table("jobs", {:force=>:cascade}) samson_1 | (6.9ms) CREATE TABLE "jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "command" text(65535) NOT NULL, "user_id" integer NOT NULL, "project_id" integer NOT NULL, "status" varchar DEFAULT 'pending', "output" text(1073741823), "created_at" datetime, "updated_at" datetime, "commit" varchar, "tag" varchar, "canceller_id" integer) samson_1 | (7.0ms) CREATE INDEX "index_jobs_on_project_id" ON "jobs" ("project_id") samson_1 | (0.3ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_jobs_on_project_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_jobs_on_project_id' AND type='index' samson_1 | samson_1 | (15.2ms) CREATE INDEX "index_jobs_on_status" ON "jobs" ("status") samson_1 | (0.8ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_jobs_on_status' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_jobs_on_status' AND type='index' samson_1 | samson_1 | (0.6ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_jobs_on_project_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_jobs_on_project_id' AND type='index' samson_1 | samson_1 | (13.1ms) CREATE INDEX "index_jobs_on_user_id" ON "jobs" ("user_id") samson_1 | -> 0.0655s samson_1 | -- create_table("kubernetes_cluster_deploy_groups", {:force=>:cascade}) samson_1 | (6.9ms) CREATE TABLE "kubernetes_cluster_deploy_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "kubernetes_cluster_id" integer NOT NULL, "deploy_group_id" integer NOT NULL, "namespace" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) samson_1 | (4.8ms) CREATE INDEX "index_kubernetes_cluster_deploy_groups_on_deploy_group_id" ON "kubernetes_cluster_deploy_groups" ("deploy_group_id") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_kubernetes_cluster_deploy_groups_on_deploy_group_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_kubernetes_cluster_deploy_groups_on_deploy_group_id' AND type='index' samson_1 | samson_1 | (7.0ms) CREATE INDEX "index_kuber_cluster_deploy_groups_on_kuber_cluster_id" ON "kubernetes_cluster_deploy_groups" ("kubernetes_cluster_id") samson_1 | -> 0.0223s samson_1 | -- create_table("kubernetes_clusters", {:force=>:cascade}) samson_1 | (7.6ms) CREATE TABLE "kubernetes_clusters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "created_at" datetime, "updated_at" datetime, "config_filepath" varchar, "config_context" varchar, "ip_prefix" varchar) samson_1 | -> 0.0086s samson_1 | -- create_table("kubernetes_deploy_group_roles", {:force=>:cascade}) samson_1 | (6.3ms) CREATE TABLE "kubernetes_deploy_group_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "deploy_group_id" integer NOT NULL, "replicas" integer NOT NULL, "ram" integer NOT NULL, "cpu" decimal(4,2) NOT NULL, "kubernetes_role_id" integer NOT NULL) samson_1 | (9.5ms) CREATE INDEX "index_kubernetes_deploy_group_roles_on_deploy_group_id" ON "kubernetes_deploy_group_roles" ("deploy_group_id") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_kubernetes_deploy_group_roles_on_deploy_group_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_kubernetes_deploy_group_roles_on_deploy_group_id' AND type='index' samson_1 | samson_1 | (6.8ms) CREATE INDEX "index_kubernetes_deploy_group_roles_on_project_id" ON "kubernetes_deploy_group_roles" ("project_id", "deploy_group_id", "kubernetes_role_id") samson_1 | -> 0.0260s samson_1 | -- create_table("kubernetes_release_docs", {:force=>:cascade}) samson_1 | (12.0ms) CREATE TABLE "kubernetes_release_docs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "kubernetes_role_id" integer NOT NULL, "kubernetes_release_id" integer NOT NULL, "replica_target" integer NOT NULL, "created_at" datetime, "updated_at" datetime, "deploy_group_id" integer, "cpu" decimal(4,2) NOT NULL, "ram" integer NOT NULL, "resource_template" text(65535)) samson_1 | (6.7ms) CREATE INDEX "index_kubernetes_release_docs_on_kubernetes_release_id" ON "kubernetes_release_docs" ("kubernetes_release_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_kubernetes_release_docs_on_kubernetes_release_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_kubernetes_release_docs_on_kubernetes_release_id' AND type='index' samson_1 | samson_1 | (5.3ms) CREATE INDEX "index_kubernetes_release_docs_on_kubernetes_role_id" ON "kubernetes_release_docs" ("kubernetes_role_id") samson_1 | -> 0.0289s samson_1 | -- create_table("kubernetes_releases", {:force=>:cascade}) samson_1 | (6.5ms) CREATE TABLE "kubernetes_releases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "build_id" integer, "user_id" integer, "project_id" integer NOT NULL, "deploy_id" integer, "git_sha" varchar(40) NOT NULL, "git_ref" varchar NOT NULL) samson_1 | (6.2ms) CREATE INDEX "index_kubernetes_releases_on_build_id" ON "kubernetes_releases" ("build_id") samson_1 | -> 0.0150s samson_1 | -- create_table("kubernetes_roles", {:force=>:cascade}) samson_1 | (10.5ms) CREATE TABLE "kubernetes_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "name" varchar NOT NULL, "config_file" varchar, "service_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "deleted_at" datetime, "resource_name" varchar NOT NULL) samson_1 | (7.2ms) CREATE INDEX "index_kubernetes_roles_on_project_id" ON "kubernetes_roles" ("project_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_kubernetes_roles_on_project_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_kubernetes_roles_on_project_id' AND type='index' samson_1 | samson_1 | (7.2ms) CREATE UNIQUE INDEX "index_kubernetes_roles_on_resource_name_and_deleted_at" ON "kubernetes_roles" ("resource_name", "deleted_at") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_kubernetes_roles_on_resource_name_and_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_kubernetes_roles_on_resource_name_and_deleted_at' AND type='index' samson_1 | samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_kubernetes_roles_on_project_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_kubernetes_roles_on_project_id' AND type='index' samson_1 | samson_1 | (5.4ms) CREATE UNIQUE INDEX "index_kubernetes_roles_on_service_name_and_deleted_at" ON "kubernetes_roles" ("service_name", "deleted_at") samson_1 | -> 0.0350s samson_1 | -- create_table("locks", {:force=>:cascade}) samson_1 | (7.6ms) CREATE TABLE "locks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime, "description" varchar(1024), "warning" boolean DEFAULT 'f' NOT NULL, "delete_at" datetime, "resource_type" varchar) samson_1 | (5.7ms) CREATE UNIQUE INDEX "index_locks_on_resource_id_and_resource_type_and_deleted_at" ON "locks" ("resource_id", "resource_type", "deleted_at") samson_1 | -> 0.0160s samson_1 | -- create_table("macro_commands", {:force=>:cascade}) samson_1 | (7.4ms) CREATE TABLE "macro_commands" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "macro_id" integer, "command_id" integer, "position" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime) samson_1 | (6.0ms) CREATE INDEX "index_macro_commands_on_command_id" ON "macro_commands" ("command_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_macro_commands_on_command_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_macro_commands_on_command_id' AND type='index' samson_1 | samson_1 | (5.9ms) CREATE INDEX "index_macro_commands_on_macro_id" ON "macro_commands" ("macro_id") samson_1 | -> 0.0240s samson_1 | -- create_table("macros", {:force=>:cascade}) samson_1 | (6.2ms) CREATE TABLE "macros" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "reference" varchar NOT NULL, "project_id" integer, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) samson_1 | (4.9ms) CREATE INDEX "index_macros_on_project_id_and_deleted_at" ON "macros" ("project_id", "deleted_at") samson_1 | -> 0.0130s samson_1 | -- create_table("new_relic_applications", {:force=>:cascade}) samson_1 | (6.2ms) CREATE TABLE "new_relic_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "stage_id" integer) samson_1 | (8.1ms) CREATE UNIQUE INDEX "index_new_relic_applications_on_stage_id_and_name" ON "new_relic_applications" ("stage_id", "name") samson_1 | -> 0.0162s samson_1 | -- create_table("oauth_access_grants", {:force=>:cascade}) samson_1 | (4.5ms) CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text(65535) NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar) samson_1 | (18.5ms) CREATE INDEX "fk_rails_b4b53e07b8" ON "oauth_access_grants" ("application_id") samson_1 | (0.5ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='fk_rails_b4b53e07b8' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='fk_rails_b4b53e07b8' AND type='index' samson_1 | samson_1 | (4.6ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token") samson_1 | -> 0.0310s samson_1 | -- create_table("oauth_access_tokens", {:force=>:cascade}) samson_1 | (15.8ms) CREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar NOT NULL, "refresh_token" varchar, "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar, "previous_refresh_token" varchar DEFAULT '' NOT NULL, "description" varchar, "last_used_at" datetime) samson_1 | (4.3ms) CREATE INDEX "fk_rails_732cb83ab7" ON "oauth_access_tokens" ("application_id") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='fk_rails_732cb83ab7' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='fk_rails_732cb83ab7' AND type='index' samson_1 | samson_1 | (6.0ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index' samson_1 | samson_1 | (2.7ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='fk_rails_732cb83ab7' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='fk_rails_732cb83ab7' AND type='index' samson_1 | samson_1 | (7.5ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index' samson_1 | samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index' samson_1 | samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='fk_rails_732cb83ab7' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='fk_rails_732cb83ab7' AND type='index' samson_1 | samson_1 | (7.4ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token") samson_1 | -> 0.0530s samson_1 | -- create_table("oauth_applications", {:force=>:cascade}) samson_1 | (21.9ms) CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "secret" varchar NOT NULL, "redirect_uri" text(65535) NOT NULL, "scopes" varchar DEFAULT '' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) samson_1 | (8.4ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid") samson_1 | -> 0.0436s samson_1 | -- create_table("outbound_webhooks", {:force=>:cascade}) samson_1 | (22.0ms) CREATE TABLE "outbound_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "deleted_at" datetime, "project_id" integer DEFAULT 0 NOT NULL, "stage_id" integer DEFAULT 0 NOT NULL, "url" varchar NOT NULL, "username" varchar, "password" varchar) samson_1 | (7.0ms) CREATE INDEX "index_outbound_webhooks_on_deleted_at" ON "outbound_webhooks" ("deleted_at") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_outbound_webhooks_on_deleted_at' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_outbound_webhooks_on_deleted_at' AND type='index' samson_1 | samson_1 | (9.8ms) CREATE INDEX "index_outbound_webhooks_on_project_id" ON "outbound_webhooks" ("project_id") samson_1 | -> 0.0479s samson_1 | -- create_table("project_environment_variable_groups", {:force=>:cascade}) samson_1 | (5.5ms) CREATE TABLE "project_environment_variable_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "environment_variable_group_id" integer NOT NULL) samson_1 | (5.9ms) CREATE INDEX "project_environment_variable_groups_group_id" ON "project_environment_variable_groups" ("environment_variable_group_id") samson_1 | (0.7ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='project_environment_variable_groups_group_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='project_environment_variable_groups_group_id' AND type='index' samson_1 | samson_1 | (12.2ms) CREATE UNIQUE INDEX "project_environment_variable_groups_unique_group_id" ON "project_environment_variable_groups" ("project_id", "environment_variable_group_id") samson_1 | -> 0.0291s samson_1 | -- create_table("projects", {:force=>:cascade}) samson_1 | (11.6ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "repository_url" varchar NOT NULL, "deleted_at" datetime, "created_at" datetime, "updated_at" datetime, "token" varchar, "release_branch" varchar, "permalink" varchar NOT NULL, "description" text(65535), "owner" varchar, "include_new_deploy_groups" boolean DEFAULT 'f' NOT NULL, "docker_release_branch" varchar, "release_source" varchar DEFAULT 'any' NOT NULL, "build_command_id" integer, "dashboard" text(65535)) samson_1 | (4.2ms) CREATE INDEX "index_projects_on_build_command_id" ON "projects" ("build_command_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_projects_on_build_command_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_projects_on_build_command_id' AND type='index' samson_1 | samson_1 | (5.8ms) CREATE UNIQUE INDEX "index_projects_on_permalink" ON "projects" ("permalink") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_projects_on_permalink' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_projects_on_permalink' AND type='index' samson_1 | samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_projects_on_build_command_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_projects_on_build_command_id' AND type='index' samson_1 | samson_1 | (14.0ms) CREATE UNIQUE INDEX "index_projects_on_token" ON "projects" ("token") samson_1 | -> 0.0453s samson_1 | -- create_table("releases", {:force=>:cascade}) samson_1 | (6.1ms) CREATE TABLE "releases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "commit" varchar NOT NULL, "number" varchar(20) DEFAULT '1' NOT NULL, "author_id" integer NOT NULL, "author_type" varchar NOT NULL, "created_at" datetime, "updated_at" datetime, "build_id" integer) samson_1 | (10.2ms) CREATE INDEX "index_releases_on_build_id" ON "releases" ("build_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_releases_on_build_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_releases_on_build_id' AND type='index' samson_1 | samson_1 | (9.0ms) CREATE UNIQUE INDEX "index_releases_on_project_id_and_number" ON "releases" ("project_id", "number") samson_1 | -> 0.0291s samson_1 | -- create_table("secrets", {:id=>false, :force=>:cascade}) samson_1 | (13.2ms) CREATE TABLE "secrets" ("id" varchar, "encrypted_value" varchar NOT NULL, "encrypted_value_iv" varchar NOT NULL, "encryption_key_sha" varchar NOT NULL, "updater_id" integer NOT NULL, "creator_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "visible" boolean DEFAULT 'f' NOT NULL, "comment" varchar) samson_1 | (6.8ms) CREATE UNIQUE INDEX "index_secrets_on_id" ON "secrets" ("id") samson_1 | -> 0.0222s samson_1 | -- create_table("slack_channels", {:force=>:cascade}) samson_1 | (4.6ms) CREATE TABLE "slack_channels" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "channel_id" varchar NOT NULL, "stage_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) samson_1 | (6.7ms) CREATE INDEX "index_slack_channels_on_stage_id" ON "slack_channels" ("stage_id") samson_1 | -> 0.0124s samson_1 | -- create_table("slack_identifiers", {:force=>:cascade}) samson_1 | (7.9ms) CREATE TABLE "slack_identifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "identifier" text(65535) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) samson_1 | (4.4ms) CREATE INDEX "index_slack_identifiers_on_identifier" ON "slack_identifiers" ("identifier") samson_1 | (0.2ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_slack_identifiers_on_identifier' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_slack_identifiers_on_identifier' AND type='index' samson_1 | samson_1 | (7.7ms) CREATE UNIQUE INDEX "index_slack_identifiers_on_user_id" ON "slack_identifiers" ("user_id") samson_1 | -> 0.0239s samson_1 | -- create_table("slack_webhooks", {:force=>:cascade}) samson_1 | (12.3ms) CREATE TABLE "slack_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "webhook_url" text(65535) NOT NULL, "channel" varchar, "stage_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime, "before_deploy" boolean DEFAULT 'f' NOT NULL, "after_deploy" boolean DEFAULT 'f' NOT NULL, "buddy_box" boolean DEFAULT 'f' NOT NULL, "only_on_failure" boolean DEFAULT 'f' NOT NULL, "buddy_request" boolean DEFAULT 'f' NOT NULL) samson_1 | (4.2ms) CREATE INDEX "index_slack_webhooks_on_stage_id" ON "slack_webhooks" ("stage_id") samson_1 | -> 0.0226s samson_1 | -- create_table("stage_commands", {:force=>:cascade}) samson_1 | (5.4ms) CREATE TABLE "stage_commands" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stage_id" integer, "command_id" integer, "position" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime) samson_1 | (7.1ms) CREATE INDEX "index_stage_commands_on_command_id" ON "stage_commands" ("command_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_stage_commands_on_command_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_stage_commands_on_command_id' AND type='index' samson_1 | samson_1 | (6.3ms) CREATE INDEX "index_stage_commands_on_stage_id" ON "stage_commands" ("stage_id") samson_1 | -> 0.0221s samson_1 | -- create_table("stages", {:force=>:cascade}) samson_1 | (9.6ms) CREATE TABLE "stages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "project_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime, "notify_email_address" varchar, "order" integer NOT NULL, "deleted_at" datetime, "confirm" boolean DEFAULT 't' NOT NULL, "datadog_tags" varchar, "update_github_pull_requests" boolean DEFAULT 'f' NOT NULL, "deploy_on_release" boolean DEFAULT 'f' NOT NULL, "comment_on_zendesk_tickets" boolean DEFAULT 'f' NOT NULL, "production" boolean DEFAULT 'f' NOT NULL, "use_github_deployment_api" boolean DEFAULT 'f' NOT NULL, "permalink" varchar NOT NULL, "dashboard" text(65535), "email_committers_on_automated_deploy_failure" boolean DEFAULT 'f' NOT NULL, "static_emails_on_automated_deploy_failure" varchar, "datadog_monitor_ids" varchar, "jenkins_job_names" varchar, "next_stage_ids" varchar, "no_code_deployed" boolean DEFAULT 'f' NOT NULL, "docker_binary_plugin_enabled" boolean DEFAULT 'f' NOT NULL, "kubernetes" boolean DEFAULT 'f' NOT NULL, "is_template" boolean DEFAULT 'f' NOT NULL, "notify_airbrake" boolean DEFAULT 'f' NOT NULL, "template_stage_id" integer, "jenkins_email_committers" boolean DEFAULT 'f' NOT NULL, "run_in_parallel" boolean DEFAULT 'f' NOT NULL, "jenkins_build_params" boolean DEFAULT 'f' NOT NULL, "cancel_queued_deploys" boolean DEFAULT 'f' NOT NULL, "no_reference_selection" boolean DEFAULT 'f' NOT NULL) samson_1 | (6.2ms) CREATE UNIQUE INDEX "index_stages_on_project_id_and_permalink" ON "stages" ("project_id", "permalink") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_stages_on_project_id_and_permalink' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_stages_on_project_id_and_permalink' AND type='index' samson_1 | samson_1 | (4.7ms) CREATE INDEX "index_stages_on_template_stage_id" ON "stages" ("template_stage_id") samson_1 | -> 0.0261s samson_1 | -- create_table("stars", {:force=>:cascade}) samson_1 | (7.3ms) CREATE TABLE "stars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "project_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) samson_1 | (3.9ms) CREATE UNIQUE INDEX "index_stars_on_user_id_and_project_id" ON "stars" ("user_id", "project_id") samson_1 | -> 0.0139s samson_1 | -- create_table("user_project_roles", {:force=>:cascade}) samson_1 | (6.2ms) CREATE TABLE "user_project_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "user_id" integer NOT NULL, "role_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) samson_1 | (9.0ms) CREATE INDEX "index_user_project_roles_on_project_id" ON "user_project_roles" ("project_id") samson_1 | (0.1ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_user_project_roles_on_project_id' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_user_project_roles_on_project_id' AND type='index' samson_1 | samson_1 | (9.1ms) CREATE UNIQUE INDEX "index_user_project_roles_on_user_id_and_project_id" ON "user_project_roles" ("user_id", "project_id") samson_1 | -> 0.0269s samson_1 | -- create_table("users", {:force=>:cascade}) samson_1 | (7.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "email" varchar, "created_at" datetime, "updated_at" datetime, "role_id" integer DEFAULT 0 NOT NULL, "token" varchar, "deleted_at" datetime, "external_id" varchar, "desktop_notify" boolean DEFAULT 'f' NOT NULL, "integration" boolean DEFAULT 'f' NOT NULL, "access_request_pending" boolean DEFAULT 'f' NOT NULL, "time_format" varchar DEFAULT 'relative' NOT NULL, "last_login_at" datetime, "last_seen_at" datetime) samson_1 | (5.6ms) CREATE INDEX "index_users_on_external_id_and_deleted_at" ON "users" ("external_id", "deleted_at") samson_1 | -> 0.0152s samson_1 | -- create_table("vault_servers", {:force=>:cascade}) samson_1 | (7.9ms) CREATE TABLE "vault_servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "address" varchar NOT NULL, "encrypted_token" varchar NOT NULL, "encrypted_token_iv" varchar NOT NULL, "encryption_key_sha" varchar NOT NULL, "tls_verify" boolean DEFAULT 'f' NOT NULL, "ca_cert" text(65535), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) samson_1 | (9.7ms) CREATE UNIQUE INDEX "index_vault_servers_on_name" ON "vault_servers" ("name") samson_1 | -> 0.0195s samson_1 | -- create_table("versions", {:force=>:cascade}) samson_1 | (75.9ms) CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime) samson_1 | (9.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id") samson_1 | -> 0.0882s samson_1 | -- create_table("webhooks", {:force=>:cascade}) samson_1 | (23.5ms) CREATE TABLE "webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "project_id" integer NOT NULL, "stage_id" integer NOT NULL, "branch" varchar NOT NULL, "created_at" datetime, "updated_at" datetime, "deleted_at" datetime, "source" varchar NOT NULL) samson_1 | (18.2ms) CREATE INDEX "index_webhooks_on_project_id_and_branch" ON "webhooks" ("project_id", "branch") samson_1 | (1.3ms) SELECT sql samson_1 | FROM sqlite_master samson_1 | WHERE name='index_webhooks_on_project_id_and_branch' AND type='index' samson_1 | UNION ALL samson_1 | SELECT sql samson_1 | FROM sqlite_temp_master samson_1 | WHERE name='index_webhooks_on_project_id_and_branch' AND type='index' samson_1 | samson_1 | (8.1ms) CREATE INDEX "index_webhooks_on_stage_id_and_branch" ON "webhooks" ("stage_id", "branch") samson_1 | -> 0.0630s samson_1 | -- add_foreign_key("deploy_groups", "environments") samson_1 | -> 0.0001s samson_1 | -- initialize_schema_migrations_table() samson_1 | (7.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) samson_1 | -> 0.0086s samson_1 | (0.2ms) SELECT version FROM "schema_migrations" samson_1 | (56.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170418183047') samson_1 | (8.1ms) INSERT INTO schema_migrations (version) VALUES samson_1 | ('20150520210103'), samson_1 | ('20150220193142'), samson_1 | ('20140116001521'), samson_1 | ('20130813002317'), samson_1 | ('20140414123939'), samson_1 | ('20161028211415'), samson_1 | ('20150924082915'), samson_1 | ('20160317215713'), samson_1 | ('20150611013506'), samson_1 | ('20160413171549'), samson_1 | ('20150317205551'), samson_1 | ('20150302060555'), samson_1 | ('20160701215002'), samson_1 | ('20160429203410'), samson_1 | ('20150228003920'), samson_1 | ('20140910113325'), samson_1 | ('20140109053431'), samson_1 | ('20161019000833'), samson_1 | ('20160929164204'), samson_1 | ('20150619170905'), samson_1 | ('20160818194622'), samson_1 | ('20161026004331'), samson_1 | ('20150605194346'), samson_1 | ('20161019034559'), samson_1 | ('20150903201829'), samson_1 | ('20150109005441'), samson_1 | ('20160414181707'), samson_1 | ('20141002162529'), samson_1 | ('20140108011517'), samson_1 | ('20161011173842'), samson_1 | ('20160218161746'), samson_1 | ('20160726210144'), samson_1 | ('20150605194347'), samson_1 | ('20170328214722'), samson_1 | ('20161116022637'), samson_1 | ('20150416231106'), samson_1 | ('20160722205359'), samson_1 | ('20140116050403'), samson_1 | ('20161102201243'), samson_1 | ('20141021202831'), samson_1 | ('20170402035231'), samson_1 | ('20131007183106'), samson_1 | ('20141014165353'), samson_1 | ('20140106235614'), samson_1 | ('20160317212902'), samson_1 | ('20130807191252'), samson_1 | ('20140625070348'), samson_1 | ('20140109041859'), samson_1 | ('20150224031239'), samson_1 | ('20161114194705'), samson_1 | ('20161213182356'), samson_1 | ('20140331094429'), samson_1 | ('20140114051012'), samson_1 | ('20141211010825'), samson_1 | ('20161216183341'), samson_1 | ('20150223135916'), samson_1 | ('20141211010750'), samson_1 | ('20160827172550'), samson_1 | ('20161028173926'), samson_1 | ('20170130235020'), samson_1 | ('20141011000131'), samson_1 | ('20130807182821'), samson_1 | ('20160316233616'), samson_1 | ('20150312110723'), samson_1 | ('20161216202909'), samson_1 | ('20140707225625'), samson_1 | ('20160508055458'), samson_1 | ('20140110000439'), samson_1 | ('20160407181257'), samson_1 | ('20141218225050'), samson_1 | ('20160205015635'), samson_1 | ('20151001140703'), samson_1 | ('20161012161509'), samson_1 | ('20140415011020'), samson_1 | ('20160818210955'), samson_1 | ('20141124214629'), samson_1 | ('20141211004054'), samson_1 | ('20150508140514'), samson_1 | ('20140108010302'), samson_1 | ('20140114004419'), samson_1 | ('20140804204455'), samson_1 | ('20160422223358'), samson_1 | ('20140416194907'), samson_1 | ('20140109073634'), samson_1 | ('20140107000028'), samson_1 | ('20170106212807'), samson_1 | ('20151211031950'), samson_1 | ('20140107000258'), samson_1 | ('20160328221058'), samson_1 | ('20140227211403'), samson_1 | ('20170407001330'), samson_1 | ('20140717013754'), samson_1 | ('20161208170829'), samson_1 | ('20160927223306'), samson_1 | ('20141211005552'), samson_1 | ('20160815185747'), samson_1 | ('20170118172040'), samson_1 | ('20160831151133'), samson_1 | ('20141211005600'), samson_1 | ('20170208195102'), samson_1 | ('20140520043144'), samson_1 | ('20170207193042'), samson_1 | ('20150720121725'), samson_1 | ('20140902105205'), samson_1 | ('20161228210729'), samson_1 | ('20140109074325'), samson_1 | ('20161118215353'), samson_1 | ('20161103221846'), samson_1 | ('20141211003651'), samson_1 | ('20140115063327'), samson_1 | ('20161116002724'), samson_1 | ('20160408193842'), samson_1 | ('20150508142111'), samson_1 | ('20140331081549'), samson_1 | ('20140108043655'), samson_1 | ('20161014175742'), samson_1 | ('20170208221802'), samson_1 | ('20161103205530'), samson_1 | ('20140116041043'), samson_1 | ('20160909013442'), samson_1 | ('20160409160258'), samson_1 | ('20140115222724'), samson_1 | ('20140113083726'), samson_1 | ('20140908154402'), samson_1 | ('20140331121039'), samson_1 | ('20151201104205'), samson_1 | ('20160715165508'), samson_1 | ('20141021204733'), samson_1 | ('20170317001258'), samson_1 | ('20150618182108'), samson_1 | ('20160915042046'), samson_1 | ('20140203155241'), samson_1 | ('20150309212516'), samson_1 | ('20160929161911'), samson_1 | ('20160405103253'), samson_1 | ('20170320213836'), samson_1 | ('20150527210505'), samson_1 | ('20150608214904'), samson_1 | ('20150603211116'), samson_1 | ('20140113010124'), samson_1 | ('20150302060556'), samson_1 | ('20150327144239'), samson_1 | ('20170310033621'), samson_1 | ('20160929164311'), samson_1 | ('20160901175936'), samson_1 | ('20140319001623'), samson_1 | ('20150529162928'), samson_1 | ('20150318215604'), samson_1 | ('20150519000042'), samson_1 | ('20150325010900'), samson_1 | ('20150824234709'), samson_1 | ('20160503233847'), samson_1 | ('20151014205641'), samson_1 | ('20151109142022'), samson_1 | ('20150725010056'), samson_1 | ('20160629185512'), samson_1 | ('20160629232753'), samson_1 | ('20170102212707'), samson_1 | ('20160503162523'), samson_1 | ('20151013181500'), samson_1 | ('20161007231901'), samson_1 | ('20151014202234'), samson_1 | ('20160426223230'), samson_1 | ('20160509225637'), samson_1 | ('20160510153731'), samson_1 | ('20160504225531'), samson_1 | ('20160512204809'), samson_1 | ('20161111005027'), samson_1 | ('20150902221719'), samson_1 | ('20151116174240'), samson_1 | ('20161115181738'), samson_1 | ('20150827181056'), samson_1 | ('20160617223512'), samson_1 | ('20160627191312'), samson_1 | ('20150819235959'), samson_1 | ('20160621174658'), samson_1 | ('20150902221720'), samson_1 | ('20160523234717'), samson_1 | ('20160429224533'), samson_1 | ('20160627212913'), samson_1 | ('20140131005054'), samson_1 | ('20150602113621'), samson_1 | ('20170202231551'), samson_1 | ('20160709001231'), samson_1 | ('20160711222417'), samson_1 | ('20160717144254'), samson_1 | ('20170310020151'), samson_1 | ('20161013175858'), samson_1 | ('20160624025817'), samson_1 | ('20151123184501'), samson_1 | ('20140410213058'), samson_1 | ('20160901175937'); samson_1 | samson_1 | samson_1 | (13.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) samson_1 | ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] samson_1 | (0.1ms) begin transaction samson_1 | SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-04-20T09:45:00.573Z"], ["updated_at", "2017-04-20T09:45:00.573Z"]] samson_1 | (3.8ms) commit transaction samson_1 | ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]] samson_1 | (0.1ms) begin transaction samson_1 | (0.0ms) commit transaction samson_1 | ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" samson_1 | (0.1ms) begin transaction samson_1 | Environment Exists (0.2ms) SELECT 1 AS one FROM "environments" WHERE "environments"."permalink" = ? LIMIT ? [["permalink", "production"], ["LIMIT", 1]] samson_1 | Environment Exists (0.1ms) SELECT 1 AS one FROM "environments" WHERE "environments"."permalink" = ? LIMIT ? [["permalink", "production"], ["LIMIT", 1]] samson_1 | Environment Exists (0.1ms) SELECT 1 AS one FROM "environments" WHERE "environments"."name" = ? LIMIT ? [["name", "Production"], ["LIMIT", 1]] samson_1 | SQL (0.2ms) INSERT INTO "environments" ("name", "production", "created_at", "updated_at", "permalink") VALUES (?, ?, ?, ?, ?) [["name", "Production"], ["production", true], ["created_at", "2017-04-20T09:45:00.770Z"], ["updated_at", "2017-04-20T09:45:00.770Z"], ["permalink", "production"]] samson_1 | SQL (0.2ms) INSERT INTO "versions" ("item_type", "item_id", "event", "created_at") VALUES (?, ?, ?, ?) [["item_type", "Environment"], ["item_id", 1], ["event", "create"], ["created_at", "2017-04-20T09:45:00.770Z"]] samson_1 | (9.7ms) commit transaction samson_1 | (0.1ms) begin transaction samson_1 | Environment Exists (0.2ms) SELECT 1 AS one FROM "environments" WHERE "environments"."permalink" = ? LIMIT ? [["permalink", "staging"], ["LIMIT", 1]] samson_1 | Environment Exists (0.2ms) SELECT 1 AS one FROM "environments" WHERE "environments"."permalink" = ? LIMIT ? [["permalink", "staging"], ["LIMIT", 1]] samson_1 | Environment Exists (0.1ms) SELECT 1 AS one FROM "environments" WHERE "environments"."name" = ? LIMIT ? [["name", "Staging"], ["LIMIT", 1]] samson_1 | SQL (0.2ms) INSERT INTO "environments" ("name", "created_at", "updated_at", "permalink") VALUES (?, ?, ?, ?) [["name", "Staging"], ["created_at", "2017-04-20T09:45:00.812Z"], ["updated_at", "2017-04-20T09:45:00.812Z"], ["permalink", "staging"]] samson_1 | SQL (0.2ms) INSERT INTO "versions" ("item_type", "item_id", "event", "created_at") VALUES (?, ?, ?, ?) [["item_type", "Environment"], ["item_id", 2], ["event", "create"], ["created_at", "2017-04-20T09:45:00.812Z"]] samson_1 | (3.0ms) commit transaction samson_1 | (0.1ms) begin transaction samson_1 | Environment Exists (0.2ms) SELECT 1 AS one FROM "environments" WHERE "environments"."permalink" = ? LIMIT ? [["permalink", "master"], ["LIMIT", 1]] samson_1 | Environment Exists (0.1ms) SELECT 1 AS one FROM "environments" WHERE "environments"."permalink" = ? LIMIT ? [["permalink", "master"], ["LIMIT", 1]] samson_1 | Environment Exists (0.1ms) SELECT 1 AS one FROM "environments" WHERE "environments"."name" = ? LIMIT ? [["name", "Master"], ["LIMIT", 1]] samson_1 | SQL (0.2ms) INSERT INTO "environments" ("name", "created_at", "updated_at", "permalink") VALUES (?, ?, ?, ?) [["name", "Master"], ["created_at", "2017-04-20T09:45:00.823Z"], ["updated_at", "2017-04-20T09:45:00.823Z"], ["permalink", "master"]] samson_1 | SQL (0.4ms) INSERT INTO "versions" ("item_type", "item_id", "event", "created_at") VALUES (?, ?, ?, ?) [["item_type", "Environment"], ["item_id", 3], ["event", "create"], ["created_at", "2017-04-20T09:45:00.823Z"]] samson_1 | (4.4ms) commit transaction samson_1 | (1.0ms) begin transaction samson_1 | DeployGroup Exists (0.2ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."permalink" = ? LIMIT ? [["permalink", "production"], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."permalink" = ? LIMIT ? [["permalink", "production"], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."name" = ? LIMIT ? [["name", "Production"], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."env_value" = ? LIMIT ? [["env_value", "production"], ["LIMIT", 1]] samson_1 | SQL (0.2ms) INSERT INTO "deploy_groups" ("name", "environment_id", "created_at", "updated_at", "env_value", "permalink") VALUES (?, ?, ?, ?, ?, ?) [["name", "Production"], ["environment_id", 1], ["created_at", "2017-04-20T09:45:00.872Z"], ["updated_at", "2017-04-20T09:45:00.872Z"], ["env_value", "production"], ["permalink", "production"]] samson_1 | SQL (0.2ms) INSERT INTO "versions" ("item_type", "item_id", "event", "created_at") VALUES (?, ?, ?, ?) [["item_type", "DeployGroup"], ["item_id", 1], ["event", "create"], ["created_at", "2017-04-20T09:45:00.872Z"]] samson_1 | SQL (0.2ms) UPDATE "stages" SET "updated_at" = '2017-04-20 09:45:00.932880' WHERE "stages"."id" IN (SELECT "stages"."id" FROM "stages" INNER JOIN "deploy_groups_stages" ON "stages"."id" = "deploy_groups_stages"."stage_id" WHERE "stages"."deleted_at" IS NULL AND "deploy_groups_stages"."deploy_group_id" = ? ORDER BY "stages"."order" ASC) [["deploy_group_id", 1]] samson_1 | (3.8ms) commit transaction samson_1 | (0.1ms) begin transaction samson_1 | Project Exists (0.2ms) SELECT 1 AS one FROM "projects" WHERE "projects"."permalink" = ? LIMIT ? [["permalink", "example-project"], ["LIMIT", 1]] samson_1 | Project Exists (0.1ms) SELECT 1 AS one FROM "projects" WHERE "projects"."permalink" = ? LIMIT ? [["permalink", "example-project"], ["LIMIT", 1]] samson_1 | rake aborted! samson_1 | Circular dependency detected while autoloading constant DockerRegistry samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:509:in `load_missing_constant' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:543:in `load_missing_constant' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing' samson_1 | /app/app/models/terminal_executor.rb:125:in `whitelisted_env' samson_1 | /app/app/models/terminal_executor.rb:31:in `execute!' samson_1 | /app/app/models/git_repository.rb:112:in `clone!' samson_1 | /usr/local/bundle/gems/newrelic_rpm-3.15.2.317/lib/new_relic/agent/method_tracer.rb:364:in `block in clone__with_trace_Custom_GitRepository_clone_' samson_1 | /usr/local/bundle/gems/newrelic_rpm-3.15.2.317/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped' samson_1 | /usr/local/bundle/gems/newrelic_rpm-3.15.2.317/lib/new_relic/agent/method_tracer.rb:362:in `clone__with_trace_Custom_GitRepository_clone_' samson_1 | /app/app/models/git_repository.rb:37:in `update_local_cache!' samson_1 | /app/app/models/git_repository.rb:50:in `fuzzy_tag_from_ref' samson_1 | /app/app/models/release.rb:83:in `next_release_number' samson_1 | /app/app/models/release.rb:59:in `assign_release_number' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:169:in `block (2 levels) in halting' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:770:in `block (2 levels) in deprecated_false_terminator' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:769:in `catch' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:769:in `block in deprecated_false_terminator' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:170:in `block in halting' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:454:in `block in call' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:454:in `each' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:454:in `call' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_validation_callbacks' samson_1 | /usr/local/bundle/gems/activemodel-5.0.1/lib/active_model/validations/callbacks.rb:113:in `run_validations!' samson_1 | /usr/local/bundle/gems/activemodel-5.0.1/lib/active_model/validations.rb:338:in `valid?' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/validations.rb:65:in `valid?' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/validations.rb:82:in `perform_validations' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/validations.rb:50:in `save!' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/attribute_methods/dirty.rb:30:in `save!' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:324:in `block in save!' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:395:in `block in with_transaction_returning_status' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:230:in `transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:211:in `transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:392:in `with_transaction_returning_status' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:324:in `save!' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/suppressor.rb:45:in `save!' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/has_many_association.rb:46:in `insert_record' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:520:in `block (2 levels) in _create_record' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:433:in `replace_on_target' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:427:in `add_to_target' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:518:in `block in _create_record' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:207:in `block in transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:211:in `transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:206:in `transaction' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:517:in `_create_record' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/has_many_association.rb:136:in `_create_record' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:180:in `create!' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_proxy.rb:340:in `create!' samson_1 | /app/db/seeds.rb:24:in `' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency' samson_1 | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load' samson_1 | /usr/local/bundle/gems/railties-5.0.1/lib/rails/engine.rb:549:in `load_seed' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/tasks/database_tasks.rb:268:in `load_seed' samson_1 | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/railties/databases.rake:196:in `block (2 levels) in ' samson_1 | /usr/local/bundle/gems/rake-12.0.0/exe/rake:27:in `' samson_1 | Tasks: TOP => db:setup => db:seed samson_1 | (See full trace by running task with --trace) samson_1 | SQL (0.3ms) INSERT INTO "projects" ("name", "repository_url", "created_at", "updated_at", "token", "permalink") VALUES (?, ?, ?, ?, ?, ?) [["name", "Example-project"], ["repository_url", "https://github.com/samson-test-org/example-project.git"], ["created_at", "2017-04-20T09:45:01.657Z"], ["updated_at", "2017-04-20T09:45:01.657Z"], ["token", "f25402f25d5694d731322c0e053e7022"], ["permalink", "example-project"]] samson_1 | SQL (0.2ms) INSERT INTO "versions" ("item_type", "item_id", "event", "created_at") VALUES (?, ?, ?, ?) [["item_type", "Project"], ["item_id", 1], ["event", "create"], ["created_at", "2017-04-20T09:45:01.657Z"]] samson_1 | (4.9ms) commit transaction samson_1 | (0.2ms) begin transaction samson_1 | Stage Exists (0.2ms) SELECT 1 AS one FROM "stages" WHERE "stages"."project_id" = ? AND "stages"."permalink" = ? LIMIT ? [["project_id", 1], ["permalink", "production"], ["LIMIT", 1]] samson_1 | Stage Exists (0.1ms) SELECT 1 AS one FROM "stages" WHERE "stages"."project_id" = ? AND "stages"."permalink" = ? LIMIT ? [["project_id", 1], ["permalink", "production"], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."permalink" = ? AND (id <> 1) LIMIT ? [["permalink", "production"], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."name" = ? AND ("deploy_groups"."id" != ?) LIMIT ? [["name", "Production"], ["id", 1], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."env_value" = ? AND ("deploy_groups"."id" != ?) LIMIT ? [["env_value", "production"], ["id", 1], ["LIMIT", 1]] samson_1 | Stage Exists (0.1ms) SELECT 1 AS one FROM "stages" WHERE "stages"."name" = ? AND "stages"."project_id" = 1 AND "stages"."deleted_at" IS NULL LIMIT ? [["name", "Production"], ["LIMIT", 1]] samson_1 | (0.2ms) SELECT MAX("stages"."order") FROM "stages" WHERE "stages"."deleted_at" IS NULL AND "stages"."project_id" = ? [["project_id", 1]] samson_1 | SQL (0.3ms) INSERT INTO "stages" ("name", "project_id", "created_at", "updated_at", "order", "permalink") VALUES (?, ?, ?, ?, ?, ?) [["name", "Production"], ["project_id", 1], ["created_at", "2017-04-20T09:45:01.743Z"], ["updated_at", "2017-04-20T09:45:01.743Z"], ["order", 1], ["permalink", "production"]] samson_1 | SQL (0.2ms) INSERT INTO "versions" ("item_type", "item_id", "event", "created_at") VALUES (?, ?, ?, ?) [["item_type", "Stage"], ["item_id", 1], ["event", "create"], ["created_at", "2017-04-20T09:45:01.743Z"]] samson_1 | SQL (0.2ms) INSERT INTO "deploy_groups_stages" ("deploy_group_id", "stage_id") VALUES (?, ?) [["deploy_group_id", 1], ["stage_id", 1]] samson_1 | DeployGroup Exists (0.1ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."permalink" = ? AND (id <> 1) LIMIT ? [["permalink", "production"], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.2ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."name" = ? AND ("deploy_groups"."id" != ?) LIMIT ? [["name", "Production"], ["id", 1], ["LIMIT", 1]] samson_1 | DeployGroup Exists (0.2ms) SELECT 1 AS one FROM "deploy_groups" WHERE "deploy_groups"."env_value" = ? AND ("deploy_groups"."id" != ?) LIMIT ? [["env_value", "production"], ["id", 1], ["LIMIT", 1]] samson_1 | SQL (1.0ms) UPDATE "stages" SET "updated_at" = '2017-04-20 09:45:01.763375' WHERE "stages"."id" IN (SELECT "stages"."id" FROM "stages" INNER JOIN "deploy_groups_stages" ON "stages"."id" = "deploy_groups_stages"."stage_id" WHERE "stages"."deleted_at" IS NULL AND "deploy_groups_stages"."deploy_group_id" = ? ORDER BY "stages"."order" ASC) [["deploy_group_id", 1]] samson_1 | SQL (9.3ms) UPDATE "stages" SET "updated_at" = '2017-04-20 09:45:01.757334' WHERE "stages"."id" = ? [["id", 1]] samson_1 | SQL (0.5ms) UPDATE "projects" SET "updated_at" = '2017-04-20 09:45:01.779361' WHERE "projects"."id" = ? [["id", 1]] samson_1 | (3.2ms) commit transaction samson_1 | (0.1ms) begin transaction samson_1 | Release Load (0.2ms) SELECT "releases".* FROM "releases" WHERE "releases"."project_id" = ? ORDER BY "releases"."id" DESC LIMIT ? [["project_id", 1], ["LIMIT", 1]] samson_1 | (0.1ms) rollback transaction samson_samson_1 exited with code 1 ```

It would seem that this is the important part:

samson_1  | Circular dependency detected while autoloading constant DockerRegistry
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:509:in `load_missing_constant'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:543:in `load_missing_constant'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing'
samson_1  | /app/app/models/terminal_executor.rb:125:in `whitelisted_env'
samson_1  | /app/app/models/terminal_executor.rb:31:in `execute!'
samson_1  | /app/app/models/git_repository.rb:112:in `clone!'
samson_1  | /usr/local/bundle/gems/newrelic_rpm-3.15.2.317/lib/new_relic/agent/method_tracer.rb:364:in `block in clone__with_trace_Custom_GitRepository_clone_'
samson_1  | /usr/local/bundle/gems/newrelic_rpm-3.15.2.317/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped'
samson_1  | /usr/local/bundle/gems/newrelic_rpm-3.15.2.317/lib/new_relic/agent/method_tracer.rb:362:in `clone__with_trace_Custom_GitRepository_clone_'
samson_1  | /app/app/models/git_repository.rb:37:in `update_local_cache!'
samson_1  | /app/app/models/git_repository.rb:50:in `fuzzy_tag_from_ref'
samson_1  | /app/app/models/release.rb:83:in `next_release_number'
samson_1  | /app/app/models/release.rb:59:in `assign_release_number'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:382:in `block in make_lambda'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:169:in `block (2 levels) in halting'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:770:in `block (2 levels) in deprecated_false_terminator'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:769:in `catch'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:769:in `block in deprecated_false_terminator'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:170:in `block in halting'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:454:in `block in call'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:454:in `each'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:454:in `call'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_validation_callbacks'
samson_1  | /usr/local/bundle/gems/activemodel-5.0.1/lib/active_model/validations/callbacks.rb:113:in `run_validations!'
samson_1  | /usr/local/bundle/gems/activemodel-5.0.1/lib/active_model/validations.rb:338:in `valid?'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/validations.rb:65:in `valid?'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/validations.rb:82:in `perform_validations'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/validations.rb:50:in `save!'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/attribute_methods/dirty.rb:30:in `save!'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:324:in `block in save!'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:395:in `block in with_transaction_returning_status'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:230:in `transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:211:in `transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:392:in `with_transaction_returning_status'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:324:in `save!'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/suppressor.rb:45:in `save!'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/has_many_association.rb:46:in `insert_record'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:520:in `block (2 levels) in _create_record'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:433:in `replace_on_target'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:427:in `add_to_target'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:518:in `block in _create_record'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:207:in `block in transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/transactions.rb:211:in `transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:206:in `transaction'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:517:in `_create_record'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/has_many_association.rb:136:in `_create_record'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_association.rb:180:in `create!'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/associations/collection_proxy.rb:340:in `create!'
samson_1  | /app/db/seeds.rb:24:in `<top (required)>'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
samson_1  | /usr/local/bundle/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
samson_1  | /usr/local/bundle/gems/railties-5.0.1/lib/rails/engine.rb:549:in `load_seed'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/tasks/database_tasks.rb:268:in `load_seed'
samson_1  | /usr/local/bundle/gems/activerecord-5.0.1/lib/active_record/railties/databases.rake:196:in `block (2 levels) in <top (required)>'
samson_1  | /usr/local/bundle/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
samson_1  | Tasks: TOP => db:setup => db:seed
grosser commented 7 years ago

did you find any simpler way of triggering this ? does adding a require to the top of the class fix it ?

dasch commented 7 years ago

Adding a require at the top of terminal_executor.rb doesn't help.

grosser commented 7 years ago

works for me after https://github.com/zendesk/samson/pull/1938

dasch commented 7 years ago
Circular dependency detected while autoloading constant SecretStorage

:-(

grosser commented 7 years ago

stop breaking it!

dasch commented 7 years ago

;-) On Mon, 24 Apr 2017 at 17.09, Michael Grosser notifications@github.com wrote:

stop breaking it!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zendesk/samson/issues/1924#issuecomment-296699061, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAYzx8tArU1AzTSk_KPLifYJshOFYCKks5rzLsggaJpZM4NCzGa .