You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Derek Gelinas (JIRA)" <ji...@apache.org> on 2017/03/28 19:16:41 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15945764#comment-15945764 ] 

Derek Gelinas commented on TC-211:
----------------------------------

https://github.com/apache/incubator-trafficcontrol/pull/413 should fix this.  The value isn't strictly required unless the setting is enabled.

> 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
>
> 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)