You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. We're trying to deploy covid shield app in our country. Here is what I'm doing and issues I've encountered, solved so far.
run docker-compose up -d mysql key-submission key-retrieval
created custom credentials.yml.enc file by running EDITOR=vim rails credentials:edit inside portal container first with default content, nothing added. Saved this file.
run docker-compose run portal bundle exec rake portal:bootstrap
Here is my first issue. I don't exactly know what is portal:bootstrap doing, but it's giving error on
User Exists? (0.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`username` = BINARY '[email protected]' LIMIT 1
part. I've found out bundle exec rake db:seed command is giving the exact same error. (assuming portal:bootstrap calls db:seed under the hood? Because of this error default admin user is not being created.
I've been wandering around code and found out that if I use ENV RAILS_ENV=test I could actually run db:seed without error and actual admin user is being created! So following command is being used for now.
docker-compose run -e RAILS_ENV=test portal bundle exec rake db:seed
Time to bring up portal service finally. docker-compose up -d portal docker-compose up -d nginx <- has to start nginx after everything setup. Because of nginx config upstream failure errors.
Right now I'm logged into portal app as admin user. But I cannot generate code, whenever I click Generate Code button it says There was an error generating a code. Please try again. and printing following error on portal server console.
I, [2020-11-19T08:09:22.877998 #101] INFO -- : [2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] Started POST "/keys/generate" for 172.27.0.7 at 2020-11-19 08:09:22 +0000
I, [2020-11-19T08:09:22.880846 #101] INFO -- : [2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] Processing by KeysController#generate as */*
I, [2020-11-19T08:09:22.880997 #101] INFO -- : [2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] Parameters: {"key"=>{}}
D, [2020-11-19T08:09:22.883929 #101] DEBUG -- : [2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
I, [2020-11-19T08:09:22.891469 #101] INFO -- : [2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.3ms | Allocations: 644)
F, [2020-11-19T08:09:22.891830 #101] FATAL -- : [2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517]
[2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: wrong version number):
[2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517]
[2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] app/controllers/keys_controller.rb:17:in `generate'
[2531ec5e-73b9-4d4e-9a6b-ce3dd20cc517] app/controllers/application_controller.rb:32:in `switch_locale'
Please help us successfully deploy the application. We might be able to save people lives by using this wonderful open source application. Any pointers would be appreciated. Thank you.
Hi. We're trying to deploy covid shield app in our country. Here is what I'm doing and issues I've encountered, solved so far.
docker-compose up -d mysql key-submission key-retrieval
credentials.yml.enc
file by runningEDITOR=vim rails credentials:edit
insideportal
container first with default content, nothing added. Saved this file.docker-compose run portal bundle exec rake portal:bootstrap
Here is my first issue. I don't exactly know what is
portal:bootstrap
doing, but it's giving error onpart. I've found out
bundle exec rake db:seed
command is giving the exact same error. (assumingportal:bootstrap
callsdb:seed
under the hood? Because of this error default admin user is not being created.I've been wandering around code and found out that if I use ENV
RAILS_ENV=test
I could actually rundb:seed
without error and actual admin user is being created! So following command is being used for now.Time to bring up portal service finally.
docker-compose up -d portal
docker-compose up -d nginx
<- has to start nginx after everything setup. Because of nginx config upstream failure errors.Right now I'm logged into portal app as admin user. But I cannot generate code, whenever I click Generate Code button it says
There was an error generating a code. Please try again.
and printing following error on portal server console.Please help us successfully deploy the application. We might be able to save people lives by using this wonderful open source application. Any pointers would be appreciated. Thank you.
Our setup:
Nginx config:
The text was updated successfully, but these errors were encountered: