You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/01/28 07:37:26 UTC

[GitHub] [trafficcontrol] lucmichalski opened a new issue #5476: cdn-in-a-box / db upgrade failed!

lucmichalski opened a new issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476


   Hi guys,
   
   Hope you are all well !
   
   I create all my subdomains for deploying the "cdn-in-a-box" version, changed the en.variables, but I have the following error when running ```docker-compose up --build```:
   
   <img width="544" alt="Screenshot 2021-01-28 at 08 31 31" src="https://user-images.githubusercontent.com/1963546/106105098-b4442500-6143-11eb-8131-ea8988291c34.png">
   
   How can I sort that ? Is there a workaround ?
   
   Btw, wouldn't be easier to use certbot/letsencrypt for generating ssl certificates ?
   
   Thanks for any insights or inputs on that deployment isssue.
   
   Cheers,
   Luc Michalski
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-773457111


   When you say "deploy" I get the sense that you're trying to use CDN-in-a-Box as a real, production-ready CDN. It's not meant to be deployed like that and is **not** guaranteed to be safe for clients to connect to - either for clients or for your services.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] jhg03a commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
jhg03a commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-774177835


   That said, there are some tools available that can help expedite a more production-like deployment included as well.  They're only partial solutions though because each implementation is different.  https://traffic-control-cdn.readthedocs.io/en/latest/admin/environment_creation.html


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 closed issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 closed issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-773290489


   No luck ! I am still stuck with the following messages:
   
   <img width="793" alt="Screenshot 2021-02-04 at 14 04 13" src="https://user-images.githubusercontent.com/1963546/106896622-1b3c7d80-66f2-11eb-9233-45cf9aa96dc2.png">
   
   @mitchell852 any idea how to simplify the deploy ? or to fix my deploy issue ^^
   
   Cheers,
   Luc Michalski


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-774420715


   The _project_ is production-oriented. The Dockerfiles you are trying to use in production are for testing and demoing.
   
   But if you really just need a "simple caching web service" you probably don't need ATC to do it. ATC is primarily for large, distributed systems of up to thousands of servers.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-769254118


   I want to change the domain ^^ not the tld sorry for the confusion


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-770359407


   any thoughts ? ^^


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-768997692


   That's what I have for now. Should I replace all "ciab.test" occurences by "evolutive.group" ? How to debug it ?
   
   <img width="1428" alt="Screenshot 2021-01-28 at 12 42 19" src="https://user-images.githubusercontent.com/1963546/106134008-45c48e80-6166-11eb-8ec3-044d55333468.png">
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-774406500


   I am confused with the purpose of this project if it is not production oriented ^^
   
   Also, I have to confess that it is still too complicated to test it.
   
   For now, I will try to write my own simple caching web service.
   
   Cheers,
   Luc Michalski


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-769333922


   Well in `variables.env` there's 
   
   - `TLD_DOMAIN`
   - `INFRA_SUBDOMAIN`
   - `CDN_SUBDOMAIN`
   
   Which one are you trying to change? And why?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-768882445


   > Btw, wouldn't be easier to use certbot/letsencrypt for generating ssl certificates ?
   
   That only works if you have globally authoritative DNS, as I understand it. To really implement that, we'd need to add a letsencrypt container and set up a workflow to answer challenges for TO, which we don't have right now (and likely never will) - it's faster and easier to just use `openssl` calls, imo.
   
   Regarding the failure, what happened to your db container? Did that start up okay?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-768885682


   @ocket8888 
   
   Yeah it started okay but I noticed that my domain is not in the logs:
   <img width="1428" alt="Screenshot 2021-01-28 at 09 25 23" src="https://user-images.githubusercontent.com/1963546/106110275-cb3a4580-614a-11eb-9b74-eba3536a66be.png">
   
   Is it normal to have "insert-self-into-dns domain ciab.test dns_key_path /shared/dns/Kciab.test.+157+47779.private my_host db my_ip 172.20.0.3 my_fqdn db.infra.ciab.test cmd 'update add db.infra.c..." instead of my domain that is set in the env.variables file ?
   
   Cheers,
   Luc
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-773290489


   No luck ! I am still stuck with the following messages:
   
   <img width="793" alt="Screenshot 2021-02-04 at 14 04 13" src="https://user-images.githubusercontent.com/1963546/106896622-1b3c7d80-66f2-11eb-9233-45cf9aa96dc2.png">
   
   @mitchell852 any idea how to simplify the deploy ? or to fix my deploy issue ^^
   
   Cheers,
   Luc Michalski


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] lucmichalski commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
lucmichalski commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-769594198


   Here is my variables.env for test purpose:
   
   I want to use the cdn.evolutive.group subdomain for self hosting my own cdn server.
   
   subdomain = cdn
   domain= evolutive
   tld = group
   
   ```ini
   # Licensed to the Apache Software Foundation (ASF) under one
   # or more contributor license agreements.  See the NOTICE file
   # distributed with this work for additional information
   # regarding copyright ownership.  The ASF licenses this file
   # to you under the Apache License, Version 2.0 (the
   # "License"); you may not use this file except in compliance
   # with the License.  You may obtain a copy of the License at
   #
   #   http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing,
   # software distributed under the License is distributed on an
   # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   # KIND, either express or implied.  See the License for the
   # specific language governing permissions and limitations
   # under the License.
   TLD_DOMAIN=evolutive.group
   INFRA_SUBDOMAIN=infra
   CDN_NAME=Evolutive CDN
   CDN_SUBDOMAIN=cdn
   DS_HOSTS=demo1 demo2 demo3
   X509_CA_NAME=CIAB-CA
   X509_CA_COUNTRY=FR
   X509_CA_STATE=Rhone-Alpes
   X509_CA_CITY=Lyon
   X509_CA_COMPANY=Evolutive Group
   X509_CA_ORG=Evolutive Group
   X509_CA_ORGUNIT=RD
   X509_CA_EMAIL=technique@evolutive-business.com
   X509_CA_DIGEST=sha256
   X509_CA_DURATION_DAYS=365
   X509_CA_KEYTYPE=rsa
   X509_CA_KEYSIZE=4096
   X509_CA_UMASK=0000
   X509_CA_DIR=/shared/ssl
   X509_CA_PERSIST_DIR=/ca
   X509_CA_PERSIST_ENV_FILE=/ca/environment
   X509_CA_ENV_FILE=/shared/ssl/environment
   DB_NAME=traffic_ops
   DB_PORT=5432
   DB_SERVER=db
   DB_USER=traffic_ops
   DB_USER_PASS=twelve
   DNS_SERVER=dns
   DBIC_TRACE=0
   ENROLLER_HOST=enroller
   PGPASSWORD=twelve
   POSTGRES_PASSWORD=twelve
   EDGE_HOST=edge
   INFLUXDB_HOST=influxdb
   INFLUXDB_PORT=8086
   INFLUXDB_ADMIN_USER=influxadmin
   INFLUXDB_ADMIN_PASSWORD=influxadminpassword
   GRAFANA_ADMIN_USER=grafanaadmin
   GRAFANA_ADMIN_PASSWORD=grafanaadminpassword
   GRAFANA_PORT=443
   MID_01_HOST=mid-01
   MID_02_HOST=mid-02
   ORIGIN_HOST=origin
   SMTP_HOST=smtp
   SMTP_PORT=25
   TM_HOST=trafficmonitor
   TM_PORT=80
   TM_EMAIL=technique@evolutive-business.com
   TM_PASSWORD=jhdslvhdfsuklvfhsuvlhs
   TM_USER=tmon
   TM_LOG_EVENT=stdout
   TM_LOG_ERROR=stdout
   TM_LOG_WARNING=stdout
   TM_LOG_INFO=stdout
   TM_LOG_DEBUG=stdout
   TO_ADMIN_PASSWORD=twelve12
   TO_ADMIN_USER=admin
   TO_ADMIN_FULL_NAME=James Cole
   # Set TM_DEBUG_ENABLE to true`to debug Traffic Monitor with Delve
   TM_DEBUG_ENABLE=false
   # Set TO_DEBUG_ENABLE to true`to debug Traffic Ops with Delve
   TO_DEBUG_ENABLE=false
   # Set TO_PERL_DEBUG_ENABLE to true`to debug Traffic Ops Perl with Devel::Camelcadedb
   TO_PERL_DEBUG_ENABLE=false
   # Set TR_DEBUG_ENABLE to true`to debug Traffic Router with with JPDA
   TR_DEBUG_ENABLE=false
   # Set TS_DEBUG_ENABLE to true`to debug Traffic Stats with Delve
   TS_DEBUG_ENABLE=false
   TO_EMAIL=technique@evolutive-business.com
   TO_HOST=trafficops
   TO_PORT=443
   TO_PERL_HOST=trafficops-perl
   TO_PERL_PORT=443
   TO_PERL_SCHEME=https
   TO_SECRET=blahblah
   TO_LOG_ERROR=/var/log/traffic_ops/error.log
   TO_LOG_WARNING=/var/log/traffic_ops/warning.log
   TO_LOG_INFO=/var/log/traffic_ops/info.log
   #TO_LOG_DEBUG=/var/log/traffic_ops/debug.log
   TO_LOG_DEBUG=/dev/null
   TO_LOG_EVENT=/var/log/traffic_ops/event.log
   TP_HOST=trafficportal
   TP_EMAIL=technique@evolutive-business.com
   TR_HOST=trafficrouter
   TR_DNS_PORT=53
   TR_HTTP_PORT=80
   TR_HTTPS_PORT=443
   TR_API_PORT=3333
   TP_PORT=443
   TS_EMAIL=technique@evolutive-business.com
   TS_HOST=trafficstats
   TS_PASSWORD=trafficstatspassword
   TS_USER=tstats
   TV_HOST=trafficvault
   TV_USER=tvault
   TV_PASSWORD=mwL5GP6Ghu_uJpkfjfiBmii3l9vfgLl0
   TV_EMAIL=technique@evolutive-business.com
   TV_ADMIN_USER=admin
   TV_ADMIN_PASSWORD=riakAdmin
   TV_RIAK_USER=riakuser
   TV_RIAK_PASSWORD=riakPassword
   TV_INT_PORT=8087
   TV_HTTP_PORT=8098
   TV_HTTPS_PORT=8088
   ENROLLER_DIR=/shared/enroller
   AUTO_SNAPQUEUE_ENABLED=true
   AUTO_SNAPQUEUE_SERVERS=trafficops,trafficops-perl,trafficmonitor,trafficrouter,trafficvault,edge,mid-01,mid-02
   AUTO_SNAPQUEUE_POLL_INTERVAL=2
   AUTO_SNAPQUEUE_ACTION_WAIT=2
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-769248861


   I don't think you can actually change the TLD. That's the only domain for which the DNS container is authoritative.
   
   May I ask why you want to change it?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-812091144


   Closing as it seems progression on this issue has ceased.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] zrhoffman commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
zrhoffman commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-771058479


   `$CDN_NAME` is unquoted in some places. Using a CDN name with no spaces should work.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #5476: cdn-in-a-box / db upgrade failed!

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #5476:
URL: https://github.com/apache/trafficcontrol/issues/5476#issuecomment-773457111


   When you say "deploy" I get the sense that you're trying to use CDN-in-a-Box as a real, production-ready CDN. It's not meant to be deployed like that and is **not** guaranteed to be safe for clients to connect to - either for clients or for your services.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org