Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy success, access with blank page #1

Open
zhan2016 opened this issue Jan 1, 2019 · 0 comments
Open

deploy success, access with blank page #1

zhan2016 opened this issue Jan 1, 2019 · 0 comments

Comments

@zhan2016
Copy link

zhan2016 commented Jan 1, 2019

Hello,
Thanks for your work. I had deployed the codebase with docker-compose, comand as below

docker-compose -f production.yml up

I had generated a new env file with file name ".env"

 AWS_ACCESS_KEY_ID=                                                                                                     
 AWS_ENABLED=False                                                                                                       
AWS_LOCATION=ambition/static                                                                                            AWS_S3_ENDPOINT_URL=https://ams3.digitaloceanspaces.com                                                                 AWS_SECRET_ACCESS_KEY=                                                                                                  
AWS_STORAGE_BUCKET_NAME=                                                                                                
CDN_ENABLED=False                                                                                                      
 CDN_ZONE_URL=                                                                                                           DATABASE_URL=mysql://root@localhost:3306/ambition                                                                       DATABASE_SQLITE_ENABLED=True                                                                                            DJANGO_ALLOWED_HOSTS=localhost                                                                                          DJANGO_APP_NAME=ambition_edc                                                                                            
DJANGO_AUTO_CREATE_KEYS=False                                                                                           
DJANGO_CACHE=memcache                                                                                                   DJANGO_COLLECT_OFFLINE_FILES_REMOTE_HOST=                                                                               DJANGO_COLLECT_OFFLINE_FILES_USB_VOLUME=                                                                                DJANGO_COLLECT_OFFLINE_FILES_USER=                                                                                      DJANGO_COLLECT_OFFLINE_SERVER_IP=                                                                                       
DJANGO_COUNTRY=botswana                                                                                                 DJANGO_CSRF_COOKIE_SECURE=False                                                                                         DJANGO_CUPS_SERVERS=localhost=None                                                                                      DJANGO_DASHBOARD_BASE_TEMPLATES=edc_base_template=edc_dashboard/base.html,listboard_base_template=ambition_edc/base.html,dashboard_base_template=ambition_edc/base.html,screening_listboard_template=ambition_dashboard/screening/listboard.html,subject_listboard_template=ambition_dashboard/subject/listboard.html,subject_dashboard_template=ambition_dashboard/subject/dashboard.html,tmg_ae_listboard_template=ambition_dashboard/tmg/ae_listboard.html,tmg_death_listboard_template=ambition_dashboard/tmg/death_listboard.html,tmg_summary_listboard_template=ambition_dashboard/tmg/summary_listboard.html,subject_review_listboard_template=edc_subject_dashboard/subject_review_listboard.html                                       DJANGO_DASHBOARD_URL_NAMES=subject_models_url=subject_models_url,subject_listboard_url=ambition_dashboard:subject_listboard_url,screening_listboard_url=ambition_dashboard:screening_listboard_url,subject_dashboard_url=ambition_dashboard:subject_dashboard_url,tmg_ae_listboard_url=ambition_dashboard:tmg_ae_listboard_url,tmg_death_listboard_url=ambition_dashboard:tmg_death_listboard_url,tmg_summary_listboard_url=ambition_dashboard:tmg_summary_listboard_url,subject_review_listboard_url=ambition_dashboard:subject_review_listboard_url                                                                   
DJANGO_DEBUG=True                                                                                                       
DJANGO_EDC_BOOTSTRAP=3                                                                                                  [email protected],[email protected],[email protected],[email protected]                                                                       DJANGO_EMAIL_ENABLED=False                                                                                              DJANGO_EMAIL_HOST=smtp.mailgun.org                                                                                      DJANGO_EMAIL_HOST_PASSWORD=                                                                                             [email protected]                                                                      DJANGO_EMAIL_PORT=587                                                                                                   
DJANGO_EMAIL_USE_TLS=True                                                                                               DJANGO_ETC_FOLDER=/home/ambition/.etc/ambition                                                                          DJANGO_EXPORT_FOLDER=/home/ambition/export                                                                              DJANGO_FQDN=clinicedc.org                                                                                              
 DJANGO_HOLIDAY_FILE=holidays.csv                                                                                        DJANGO_INDEX_PAGE=http://localhost:8000                                                                                 DJANGO_INDEX_PAGE_LABEL=Change site                                                                                     DJANGO_KEY_FOLDER=/home/ambition/.etc/ambition/crypto_fields                                                            DJANGO_LABEL_TEMPLATE_FOLDER=                                                                                           DJANGO_LAB_DASHBOARD_BASE_TEMPLATES=                                                                                    DJANGO_LAB_DASHBOARD_REQUISITION_MODEL=ambition_subject.subjectrequisition                                              DJANGO_LAB_DASHBOARD_URL_NAMES=                                                                                         DJANGO_LANGUAGES=af:Afrikaans,ny:Chichewa,en:English,xh:isiXhosa,lg:Luganda,rny:Runyankore,tn:Setswana,sn:Shona         DJANGO_LANGUAGE_CODE=en-us                                                                                              
DJANGO_LIVE_SYSTEM=False                                                                                                
DJANGO_LOGGING_ENABLED=False                                                                                            DJANGO_LOGGING_FILE_LEVEL=INFO                                                                                          DJANGO_LOGGING_SYSLOG_LEVEL=INFO                                                                                        DJANGO_LOGIN_REDIRECT_URL=home_url                                                                                      DJANGO_LOG_FOLDER=/home/ambition/log                                                                                    DJANGO_RANDOMIZATION_LIST_FILE=test_randomization_list.csv                                                              DJANGO_REDIS_PASSWORD=                                                                                                  
DJANGO_REVIEWER_SITE_ID=1                                                                                               
DJANGO_SECRET_KEY=effsdfasdfasdf                                                                                        DJANGO_SECURE_PROXY_SSL_HEADER=None                                                                                     DJANGO_SESSION_COOKIE_SECURE=False                                                                                     
 # DJANGO_SITE_ID=                                                                                                     
 DJANGO_STATIC_ROOT=/home/ambition/static/                                                                               
DJANGO_STATIC_URL=/static/                                                                                              
DJANGO_TIME_ZONE=Africa/Gaborone                                                                                        
DJANGO_TOWN=gaborone                                                                                                    
DJANGO_USE_I18N=True                                                                                                    
DJANGO_USE_L10N=False                                                                                                  
 DJANGO_USE_TZ=True                                                                                                    
  MAILGUN_API_KEY=                                                                                                        MAILGUN_API_URL=https://api.mailgun.net/v3/lists                                                                        
MYSQL_DATABASE=ambition                                                                                              
   MYSQL_ROOT_PASSWORD=root                                                                                                
MYSQL_USER=edc                                                                                                         
 MYSQL_USER_PASSWORD=my_password                                                                                         MYSQL_BACKUP_FOLDER=/home/ambition/log                                                                                  
SAUCE_ACCESS_KEY=                                                                                                       
SAUCE_ENABLED=True                                                                                                    
  SAUCE_USERNAME=erikvw                                                                                                  
 SENTRY_DSN=                                                                                                            
 SENTRY_ENABLED=False                                                                                                    
TWILIO_ENABLED=False                                                                                                  
  TWILIO_AUTH_TOKEN=                                                                                                      
TWILIO_ACCOUNT_SID=                                                                                                     
TWILIO_ENABLED=True                                                                                                    
 TWILIO_SENDER=                                                                                                          
DB_CONTAINER_NAME=edcdb                                                                                                 WEB_CONTAINER_NAME=webcontainer  
 

the docker-compose command successed with no error:

root@mock:~/ctms/ambition-edc# docker-compose -f production.yml up                                                      
Starting edcdb ... done                                                                                                 
Recreating webcontainer ... done                                                                                        
Recreating nginx        ... done                                                                                       
 Attaching to edcdb, webcontainer, nginx                                                                                 
edcdb    | 2019-01-01T13:11:19.895866Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).                                        
edcdb    | 2019-01-01T13:11:19.898106Z 0 [Note] mysqld (mysqld 5.7.24) starting as process 1 ...                        
edcdb    | 2019-01-01T13:11:19.902189Z 0 [Note] InnoDB: PUNCH HOLE support available                                    
edcdb    | 2019-01-01T13:11:19.902219Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins                    
edcdb    | 2019-01-01T13:11:19.902223Z 0 [Note] InnoDB: Uses event mutexes                                             
 edcdb    | 2019-01-01T13:11:19.902227Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier  
edcdb    | 2019-01-01T13:11:19.902230Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11                              
 edcdb    | 2019-01-01T13:11:19.902234Z 0 [Note] InnoDB: Using Linux native AIO                                          
edcdb    | 2019-01-01T13:11:19.902562Z 0 [Note] InnoDB: Number of pools: 1                                              
edcdb    | 2019-01-01T13:11:19.902706Z 0 [Note] InnoDB: Using CPU crc32 instructions                                    
edcdb    | 2019-01-01T13:11:19.904776Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M                                                                                                          
 edcdb    | 2019-01-01T13:11:19.916670Z 0 [Note] InnoDB: Completed initialization of buffer pool                         
edcdb    | 2019-01-01T13:11:19.921800Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().                                                            
 edcdb    | 2019-01-01T13:11:19.933996Z 0 [Note] InnoDB: Highest supported file format is Barracuda.                     
edcdb    | 2019-01-01T13:11:19.935750Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 12371125            
edcdb    | 2019-01-01T13:11:19.935765Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 12371134      edcdb    | 2019-01-01T13:11:19.935770Z 0 [Note] InnoDB: Database was not shutdown normally!                            
 edcdb    | 2019-01-01T13:11:19.935775Z 0 [Note] InnoDB: Starting crash recovery.                                        
edcdb    | 2019-01-01T13:11:20.048497Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"                
edcdb    | 2019-01-01T13:11:20.048535Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables                 
edcdb    | 2019-01-01T13:11:20.048581Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...                                                                                                
edcdb    | 2019-01-01T13:11:20.158138Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.                              
edcdb    | 2019-01-01T13:11:20.159140Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.                                                                                                              
edcdb    | 2019-01-01T13:11:20.159157Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.                    
 edcdb    | 2019-01-01T13:11:20.160565Z 0 [Note] InnoDB: 5.7.24 started; log sequence number 12371134                   
 edcdb    | 2019-01-01T13:11:20.160890Z 0 [Note] Plugin 'FEDERATED' is disabled.                                         
edcdb    | 2019-01-01T13:11:20.162906Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool      
 edcdb    | 2019-01-01T13:11:20.164720Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190101 13:11:20                
edcdb    | 2019-01-01T13:11:20.169676Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.                                                                                    
edcdb    | 2019-01-01T13:11:20.169876Z 0 [Warning] CA certificate ca.pem is self signed.                              
  edcdb    | 2019-01-01T13:11:20.172696Z 0 [Note] Server hostname (bind-address): '*'; port: 3306                        
 edcdb    | 2019-01-01T13:11:20.172737Z 0 [Note] IPv6 is available.                                                      
edcdb    | 2019-01-01T13:11:20.172747Z 0 [Note]   - '::' resolves to '::';                                              
edcdb    | 2019-01-01T13:11:20.172773Z 0 [Note] Server socket created on IP: '::'.                                     
 edcdb    | 2019-01-01T13:11:20.176413Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.                                        
edcdb    | 2019-01-01T13:11:20.177562Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.   
edcdb    | 2019-01-01T13:11:20.177703Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.                                                                                                                 
 edcdb    | 2019-01-01T13:11:20.177779Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.                                                                                                                    
  edcdb    | 2019-01-01T13:11:20.177876Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.                                                                                                
 edcdb    | 2019-01-01T13:11:20.177942Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.                                                                                                                  
  edcdb    | 2019-01-01T13:11:20.178012Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.                                                                                                                 
edcdb    | 2019-01-01T13:11:20.181012Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.                                                                                                    
  edcdb    | 2019-01-01T13:11:20.181110Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.                                                                                                 
   edcdb    | 2019-01-01T13:11:20.189869Z 0 [Note] Event Scheduler: Loaded 0 events                                     
   edcdb    | 2019-01-01T13:11:20.190978Z 0 [Note] mysqld: ready for connections.                                        
  edcdb    | Version: '5.7.24'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)           webcontainer | Python 3.6.8 (default, Dec 29 2018, 07:23:17)                                                           
 webcontainer | [GCC 6.3.0 20170516] on linux                                                                            
webcontainer | Type "help", "copyright", "credits" or "license" for more information.     

But I couldn't access the website with "curl http://localhost" or with a browser. Can you give me some suggestion? Or can you implement more docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant