You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Dan Kirkwood (JIRA)" <ji...@apache.org> on 2017/05/16 17:59:05 UTC

[jira] [Resolved] (TC-211) admin.pl setup fails - 20170226190747_add_reval_pending.sql

     [ https://issues.apache.org/jira/browse/TC-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Kirkwood resolved TC-211.
-----------------------------
       Resolution: Fixed
         Assignee: Derek Gelinas
    Fix Version/s: 2.1.0

> admin.pl setup fails - 20170226190747_add_reval_pending.sql
> -----------------------------------------------------------
>
>                 Key: TC-211
>                 URL: https://issues.apache.org/jira/browse/TC-211
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Ops
>    Affects Versions: 2.1.0
>            Reporter: Nir Sopher
>            Assignee: Derek Gelinas
>             Fix For: 2.1.0
>
>
> When calling "db/admin.pl --env=<env> setup" the command fails on running one of the migration scripts:
> 2017/03/19 09:23:33 FAIL 20170226190747_add_reval_pending.sql (pq: null value in column "profile" violates not-null constraint), quitting migration.
> Can't run goose
> The issue is caused by line 20 in file 20170226190747_add_reval_pending.sql :
> insert into profile_parameter (profile, parameter) values ((select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'use_reval_pending'));
> When examining the DB it seems that the "GLOBAL" profile does not exists.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)