Release v1.2: duplicate location "/backups/"

Continuing the discussion from Discourse 1.2 released:

After updating (which also told me to update my docker container, since I was on 1.0 until now), my instance won’t come back up.
./launcher logs tells me:
nginx: [emerg] duplicate location "/backups/" in /etc/nginx/conf.d/discourse.conf:79 <message repeats ad infinitum>

Unfortunately, a commit seems to have sneaked in twice while merging:
https://github.com/discourse/discourse/blob/v1.2.0/config/nginx.sample.conf#L80

nginx doesn’t like that. Is there any way to get that fixed on the stable branch?
Thanks in advance!

1 Like

Hmm @sam can you take a peek at this?

Looks like when we merged stuff into stable stuff got a bit weird, going to clean it up now

As a temporary fix, i switched to “latest-release”, but now I’m getting

undefined method `override_default_style' for #<SiteCustomization:0x007f428a47f788>`

when hitting /login. Is that part of the same problem or a different one?

I updated stable with a fix just now.

re site customization stuff sounds like a migration has not run yet.

1 Like

I fixed it, thanks.

For anyone having similar problems and really want to use my solution:

./launcher ssh nt
cd /var/www/discourse
rake db:migrate
# check website and panic because it's still 500ing
^D
mv shared/standalone shared/standalone_old
mkdir shared/standalone
./launcher rebuild standalone
# wait...
# check and see: it's working again, but with an empty db, as expected
./launcher stop standalone
mv shared/standalone_old shared/standalone
./launcher start standalone
# heyaa, it's back!

This sounds really odd to me, a ./launcher rebuild app should have done the trick.

Next time, i’ll know :slight_smile: