apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.02k stars 339 forks source link

Pre-existing `admin` binary breaks dev environment #6874

Open ocket8888 opened 2 years ago

ocket8888 commented 2 years ago

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
asheikm commented 2 years ago

The command should be

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