Openfoodnetwork: Email domain gone back to demo.spreecommerce.com after deploying v3.0.2

Created on 30 Jun 2020  路  14Comments  路  Source: openfoodfoundation/openfoodnetwork

Description

Emails with wrong domain in India and Brasil after deploying v3.0.2.

Expected Behavior

Emails should be sent from the configured domain.

Actual Behaviour

demo domain was used.

Steps to Reproduce

Deploy v3 in a v2 server and send a test email.

Workaround

Set the domain in mail settings again?

Severity

bug-s1: a critical feature is broken: checkout, payments, signup, login

Your Environment

India and Brasil servers

  • Version used: v3.0.2

Possible Fix

This maybe related to #5668 and the new data format in table spree_preferences.

bug-s1 prod-test v3-regression

All 14 comments

@luisramos0 The logo also seems out of line.
image

Please note that this anomaly is also found in v2.10.1.

Was the anomaly seen in 2.10.1 after reverting from 3.0.2 @satyasarathy ?

@sigmundpetersen I first reverted to v3.0.0 and then to v2.10.1. I did not see this anomaly in 3.0.0. Also, in 3.0.0 the logo in the email was off but the URL was fine.

The screen capture for v3.0.0
image

I just registered in BR and the problem is solved. I am not sure what happened there.

@satyasarathy I think you should move back to v3.0.2 and we should work from there.

@luisramos0 I just moved to v3.0.2 and yes the email part is resolved. But the fav icon (https://github.com/openfoodfoundation/openfoodnetwork/issues/5700) is still not visible.

ok, #5700 is not related to this issue here except the fact they are issues in the same version.

So, this issue is fixed in both Brasil and India BUT I dont know why it happened or what fixed it or if it is going to happen in other instances as they upgrade to v3. Looks like this will happen again to other instances as it happened in both IN and BR.

Let's try to describe what was done in India, did you just deploy the different versions @satyasarathy ? (in this sequence 3.0.2, 3.0.0, 2.10.2 and then 3.0.2 again) Did you run any manual commands?

@rafaelbbraz can you add some details about what have you done in BR exactly?

@luisramos0, India instance was originally on v2.9.10 (Chop Suey). Then it was upgraded to 3.0.2.
Yes, the sequence was 3.0.2, 3.0.0, 2.10.1 and finally 3.0.2. I only ran this deploy command (changed the versions accordingly)
ansible-playbook playbooks/deploy.yml --limit in-prod -e "git_version=v3.0.2" -vvvv

great, that's useful, did you go to /admin/general_settings/edit and tried to change the data there?

@luisramos0 the change was required only when moving between major versions.

Here in Brasil:
My deploy was in a new server directly to 3.0.2 and after I move to 3.0.0 and the email was fixed!

The icons/logos issue is totally separate and is already fixed in other PRs (which should be in the next release) :+1:

I'm not sure about all the variables in play here; both of these servers were reset / reinstalled just before this bug appeared, right?

This appears to be related to https://github.com/openfoodfoundation/openfoodnetwork/pull/5660 and the marshalling/unmarshalling preferences issue. I'm concerned the switching back to previous releases might have had a negative impact here with the migrations.

@Matt-Yorkley Is there any specific operation or validation steps that be performed to see for any negative impact.

Hello!

I checked for this issue in AU production server, right after deploying v3.1.0 - it looks good:

image

nice, thanks Filipe.

I think we can close it now.
We can reopen if it comes back later in some server.

Was this page helpful?
0 / 5 - 0 ratings