trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

Pre-existing `admin` binary breaks dev environment

Open ocket8888 opened this issue 3 years ago • 1 comments

This Bug Report affects these Traffic Control components:

None

Current behavior:

If a binary already exists at traffic_ops/app/db/admin, the Traffic Ops service of the developer environment will fail to start

Logs
Attaching to trafficcontrol_trafficops_1
trafficops_1      | db:5432 - no response
trafficops_1      | waiting for db on postgresql://db:5432/postgres
trafficops_1      | db:5432 - accepting connections
trafficops_1      | make: 'traffic_ops/app/db/admin' is up to date.
trafficops_1      | Error relocating /root/go/src/github.com/apache/trafficcontrol//traffic_ops/app/db/admin: __vfprintf_chk: symbol not found
trafficops_1      | Error relocating /root/go/src/github.com/apache/trafficcontrol//traffic_ops/app/db/admin: __fprintf_chk: symbol not found
trafficops_1      | Error on line 1 of /root/go/src/github.com/apache/trafficcontrol/dev/traffic_ops/run.sh

Expected behavior:

The success of the developer environment should not depend on the build state of the project.

Steps to reproduce:

  1. source dev/atc.dev.sh && atc stop && atc start trafficops && docker-compose logs -f trafficops

ocket8888 avatar Jun 01 '22 18:06 ocket8888

The command should be

source dev/atc.dev.sh && atc stop && atc start trafficops && docker-compose logs -f trafficops

asheikm avatar Jun 09 '22 14:06 asheikm