zikunz commented on issue #3549:
URL: 
https://github.com/apache/trafficcontrol/issues/3549#issuecomment-1494497760

   Hi @ocket8888, I I am interested to contribute to this issue and several 
other issues relating to Traffic Ops and Traffic Portal.
   
   I have been trying to read the documentation and get started with the 
project by setting up the backend (i.e., Traffic Ops) and frontend (i.e., 
Traffic Portal) but I have been struggling for a week and have not been able to 
make much progress. Despite trying several ways to start the application, I 
have not been successful so far.
   
   These are the ways I have tried:
   1. After following the instructions on 
https://traffic-control-cdn.readthedocs.io/en/latest/development/index.html# 
and cloning the repository, I executed `source dev/atc.dev.sh` and ran `atc 
build` and `atc start` with no errors on my Mac machine where Docker is 
installed. However, upon running `atc ready`, nothing is printed on the console 
and commands like `atc trafficops` or `atc trafficportal` seem to be waiting 
indefinitely. Additionally, attempting to access the Traffic Portal interface 
via https://localhost:60443/ or https://localhost:8080/ has not been 
successful. Despite multiple attempts at restarting the process, the issue 
persists.
   2. I attempted to build Traffic Control using the pkg command following the 
instructions provided in the link 
https://traffic-control-cdn.readthedocs.io/en/latest/development/building.html#build-using-pkg.
 To ensure I was in the correct directory, I cloned the repo and in 
`$GOPATH/src/github.com/apache/trafficcontrol`, I ran `pkg -a`. However, the 
only output I saw was `"Building weasel."` and it appeared to be stuck 
indefinitely. This was attempted on my Mac machine and I have tried restarting 
the process multiple times, but the issue persists.
   3. After following the instructions in 
https://traffic-control-cdn.readthedocs.io/en/latest/development/building.html#build-using-docker-compose,
 I ran the command `docker-compose build` with no errors. However, I am unable 
to access the Traffic Portal interface at https://localhost:60443/ or 
https://localhost:8080/. Despite restarting the process multiple times, the 
issue persists.
   4. After referring to 
https://traffic-control-cdn.readthedocs.io/en/latest/development/building.html#building-individual-components,
 I attempted to execute `build/clean_build.sh`. However, I encountered errors 
during the process , per the below.
   ```
   ==================================================
   WORKSPACE: /private/tmp/go/src/github.com/apache/trafficcontrol
   BUILD_NUMBER: 12425.72b2332e
   RHEL_VERSION: el7
   TC_VERSION: 7.1.0
   --------------------------------------------------
   -rw-r--r--  1 zhuzikun  staff  50950600 Apr  3 22:37 
dist/apache-trafficcontrol-7.1.0.tar.gz
   + for project in '"$@"'
   + [[ 0 -eq 1 ]]
   + ./build/build.sh traffic_monitor
   + tee dist/build-traffic_monitor.log
   /opt/homebrew/bin/realpath
   -----  Building traffic_monitor ...
   /opt/homebrew/bin/realpath
   git is /opt/homebrew/bin/git
   go is /opt/homebrew/bin/go
   /private/tmp/go/src/github.com/apache/trafficcontrol/build/functions.sh: 
line 173: type: rpmbuild: not found
   rpmbuild not found in PATH
   Error on line 97 of traffic_monitor/build/build_rpm.sh
   traffic_monitor failed: traffic_monitor/build/build_rpm.sh
   The following subdirectories had errors:
      traffic_monitor
   Error on line 110 of ./build/build.sh
   + exit_code=1
   + '[' 1 -ne 0 ']'
   + echo 'Error on line 77 of build/clean_build.sh'
   Error on line 77 of build/clean_build.sh
   + cleanup
   ++ id -u
   + '[' 501 -eq 0 ']'
   + exit 1
   ```
   5. After installing CentOS Stream 9 on my Mac machine using Parallels, I 
followed the instructions in 
https://traffic-control-cdn.readthedocs.io/en/latest/development/traffic_portal.html#installing-the-traffic-portal-developer-environment,
 except for step 4.2 where I didn't modify `api.base_url` to point to my 
Traffic Ops API endpoint. After this, I was able to access 
https://localhost:60443/. I then attempted to follow the instructions in 
https://traffic-control-cdn.readthedocs.io/en/latest/development/traffic_ops.html#installing-the-developer-environment,
 but encountered an error while attempting step 4, which involved using the 
reset and upgrade commands of admin (see app/db/admin for usage) to set up the 
traffic_ops databases. The error message is shown below.
   ![Screen Shot 2023-04-03 at 22 59 
54](https://user-images.githubusercontent.com/75139323/229548997-3b47b5cf-de65-402b-8373-7d6a9ab5a69d.png)
   
   I am new to open-source. I would greatly appreciate if you could advise me 
on how to get started.
   
   Thank you for your time reading this and have a nice day!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to