openfoodnetwork
openfoodnetwork copied to clipboard
Docker environment setup fails to build worker container
Description
see this slack thread for more info.
summary: The worker container is not starting succesfully, probably due to migration from delayed_job to sidekiq. Adding the code below fixes this issue
# lib/tasks/jobs.rake
namespace :jobs do
desc "sidekiq"
task work: :environment do
exec("bundle exec sidekiq")
end
end
but when I try to send an email I get the following error: Error while trying to deserialize arguments: Couldn't find Spree::User with 'id'=10
, which is also displayed on the sidekiq portal (/admin/sidekiq):
Expected Behavior
worker container should be built correctly and email delivery functionality should work properly (as displayed in the sidekiq portal)
Actual Behaviour
worker container does not start up. If above fix is applied, email delivery does not work properly.
Steps to Reproduce
- follow the guides to docker setup
- run
docker/server
ordocker-compose up worker
and notice that the build fails - apply fixed descibed above to get container running
- try to send an email (new user creation, forgot password, etc)
- check woker_1 container logs or sidekiq portal to see that the delivery failed with error descibed above