Repository navigation
Conversation
|
@danrademacher , When you test that this documentation is good enough to make working the Dev environment , you can merge this PR. |
Hit an error with ```sh % docker-compose up db -d ERROR: No such service: -d ``` but `docker-compose up -d db` works fine
|
Hitting some issues here. Will document in this thread while still trying to work through them: Editing
|
|
I am testing my SMTP connection using the methods at https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp-client-command-line.html The connection seemed fine, so I went on to teh command line test of sending an email, from inside the container. So the auth to SMTP is successful, the content of the email is in a text file, and yet it's timing out. Huh but why am I getting timeouts and NOT getting emails from the Rails app. Looks like some info about timeouts at https://docs.aws.amazon.com/ses/latest/dg/troubleshoot-smtp.html:
I tried changing to |
|
@danrademacher , are you using |
|
Ruben has again confirmed this is working for him... but I have tried probably 6 times and still no dice @tomay is our third person, trying a fresh install! When rerunning after the first time, these commands will dump the data base to ensure a fresh start in case OAUTH keys were wrong: docker-compose down
rm -rf datathen proceed with steps in the DEVLEOPMENT.MD docker-compose build
docker-compose up -d db
docker-compose up -d memcached
docker compose run --service-ports web bashAnd then into the container and following the docs from there. |
|
@tomay and I have continued to struggle with getting local development working all the way through to loading iD… We spent another hour this morning going through it and after a fresh start, I’m still at the point I was before — 500 error on clicking /edit with the following in I, [2022-11-22T19:35:38.393693 #2399] INFO -- : [56160867-9cf8-4633-a1b5-ae20afd66a24] Completed 500 Internal Server Error in 86ms (ActiveRecord: 38.7ms | Allocations: 4143)
F, [2022-11-22T19:35:38.400919 #2399] FATAL -- : [56160867-9cf8-4633-a1b5-ae20afd66a24]
[56160867-9cf8-4633-a1b5-ae20afd66a24] ActionView::Template::Error (undefined method `access_token_for_user' for nil:NilClass):
[56160867-9cf8-4633-a1b5-ae20afd66a24] 10: <body>
[56160867-9cf8-4633-a1b5-ae20afd66a24] 11: <% data = {}
[56160867-9cf8-4633-a1b5-ae20afd66a24] 12: if Settings.key?(:id_key)
[56160867-9cf8-4633-a1b5-ae20afd66a24] 13: token = current_user.access_token(Settings.id_key)
[56160867-9cf8-4633-a1b5-ae20afd66a24] 14: data[:token] = token.token
[56160867-9cf8-4633-a1b5-ae20afd66a24] 15: data[:token_secret] = token.secret
[56160867-9cf8-4633-a1b5-ae20afd66a24] 16: data[:consumer_key] = token.client_application.key
[56160867-9cf8-4633-a1b5-ae20afd66a24]
[56160867-9cf8-4633-a1b5-ae20afd66a24] app/models/user.rb:346:in `access_token'
[56160867-9cf8-4633-a1b5-ae20afd66a24] app/views/site/id.html.erb:13
[56160867-9cf8-4633-a1b5-ae20afd66a24] app/controllers/site_controller.rb:125:in `id'
[56160867-9cf8-4633-a1b5-ae20afd66a24] config/initializers/compressed_requests.rb:27:in `call'
[56160867-9cf8-4633-a1b5-ae20afd66a24] config/initializers/cors.rb:9:in `call'
I, [2022-11-22T19:35:38.407045 #2399] INFO -- : [56160867-9cf8-4633-a1b5-ae20afd66a24] Processing by ErrorsController#internal_server_error as HTML
I, [2022-11-22T19:35:38.415193 #2399] INFO -- : [56160867-9cf8-4633-a1b5-ae20afd66a24] Rendered errors/internal_server_error.html.erb within layouts/error (Duration: 4.4ms | Allocations: 79)
I, [2022-11-22T19:35:38.426475 #2399] INFO -- : [56160867-9cf8-4633-a1b5-ae20afd66a24] Rendered layout layouts/error.html.erb (Duration: 15.8ms | Allocations: 1518)
I, [2022-11-22T19:35:38.429602 #2399] INFO -- : [56160867-9cf8-4633-a1b5-ae20afd66a24] Completed 500 Internal Server Error in 20ms (Views: 19.1ms | ActiveRecord: 0.0ms | Allocations: 2034)In theory, this is due to improper OAUTH keys, but I’ve recreated, set, and checked those a few times over, including on a screenshare with Tom and at least some with Ruben (though cut up by intervening meetings I had to go to), all to no avail. |
|
Given latest method of local dev within the ohm-website code, I am closing this out unmerged |


@danrademacher