# Errors after migrating to a new version (1.9.0.beta3)

**URL:** https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709
**Category:** Bug
**Created:** [7월 6, 2017, 6:12오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709 "2017-07-06T06:12:29Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 6, 2017, 6:12오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/1 "2017-07-06T06:12:29Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/a/e/ae2ecbc092b7b55886767e44a66fbf25bc7158b5.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/5/f/5fa1c2dfb3989cf7a941ccbbdd45c78acd064500.jpg)

Increase the website loading time

Prior to the upgrade: 220mc  
After updating: 2321mc

Use: safe\_mode - 2122mc

doscobot became fully English

default locale = russian

Trying to find the text to be translated: Excellent! Now you can easily find your way back to our private conversation… (and all other texts)

The translation could not be found  
Earlier, the bot has been fully translated into Russian language via admin panel

 ![](https://global.discourse-cdn.com/meta/original/3X/3/d/3d499e64b6dd8d68c556ad1c03f80dcb2a6e2b02.jpg)

Increased significantly the number of requests: this is the best time

 ![](https://global.discourse-cdn.com/meta/original/3X/0/a/0a59ee3d9a85d2afc20546d42973d806551f9a7a.jpg)

The update is done via: launcher rebuild app

> **app.yml**
>
> ```
> templates:
> - "templates/cron.template.yml"
> - "templates/postgres.template.yml"
> - "templates/redis.template.yml"
> - "templates/web.template.yml"
> 
> ## which TCP/IP ports should this container expose?
> ## If you want Discourse to share a port with another webserver like Apache or nginx,
> ## see https://meta.discourse.org/t/17247 for details
> expose:
> - "25654:80" # http
> 
> params:
> db_default_text_search_config: "pg_catalog.english"
> 
> ## Set db_shared_buffers to a max of 25% of the total memory.
> ## will be set automatically by bootstrap based on detected RAM, or you can override
> db_shared_buffers: "128MB"
> 
> ## can improve sorting performance, but adds memory usage per-connection
> #db_work_mem: "40MB"
> 
> ## Which Git revision should this container use? (default: tests-passed)
> #version: tests-passed
> 
> env:
> LANG: en_US.UTF-8
> # DISCOURSE_DEFAULT_LOCALE: en
> 
> ## How many concurrent web requests are supported? Depends on memory and CPU cores.
> ## will be set automatically by bootstrap based on detected CPUs, or you can override
> UNICORN_WORKERS: 2
> 
> ```
> 
> This file has not changed since last time
> 
> `# DISCOURSE_DEFAULT_LOCALE: en -> DISCOURSE_DEFAULT_LOCALE: ru ?`

Errors /logs no

* * *

When switching: default locale → en (admin/site\_settings/category/basic)  
the speed of loading pages is reduced: 2434мс to 187мс

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [7월 6, 2017, 11:10오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/2 "2017-07-06T11:10:58Z")

</div>

@eviltrout can you have a look at this?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 6, 2017, 11:55오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/3 "2017-07-06T11:55:03Z")

</div>

Maybe this will help. Looking for lyrics (you are invited), which came in the letter. Next → edit. And there is a test translated. Mail text comes without translation.

 ![](https://global.discourse-cdn.com/meta/original/3X/f/4/f460de991a043be2154156462e653ce64cf3496c.jpg)

⬇

 ![](https://global.discourse-cdn.com/meta/original/3X/e/7/e7e86a9e3aa9e7b9f1ef20dd3e17d2b2f25f0be1.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/6/b/6bb7c19a0ab9c0d7922f43a4d53e1666d9aa9427.jpg)

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 6, 2017, 9:50오후 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/5 "2017-07-06T21:50:26Z")

</div>

I looked at the following lines

> <https://github.com/discourse/discourse/blob/main/plugins/discourse-narrative-bot/config/locales/server.en.yml#L118>

A letter came (bot). Looking for text. The text is not found. But the translation it is. Looking for search: **random\_mention**.

 ![](https://global.discourse-cdn.com/meta/original/3X/7/9/79f05afcb113510c8fa4dcefeb74cd513605e5fc.jpg)

But the main thing is

 ![](https://global.discourse-cdn.com/meta/original/3X/5/b/5b2bcecf10901d5ef73c40411e2e86d1ed163b73.jpg)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [7월 6, 2017, 11:38오후 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/6 "2017-07-06T23:38:06Z")

</div>

Might be a bug that I introduced with the recent translation fallback changes. I’ll have a look today.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [7월 7, 2017, 3:29오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/7 "2017-07-07T03:29:04Z")

</div>

@Stranik Thank you for reporting! The performance problem is fixed in

[https://github.com/discourse/discourse/commit/a4399c2eabcc32f277dc7b355a22fba2b9bffc2f](https://github.com/discourse/discourse/commit/a4399c2eabcc32f277dc7b355a22fba2b9bffc2f)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [7월 7, 2017, 3:30오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/8 "2017-07-07T03:30:45Z")

</div>

Hi I don’t really understand the second bug which you’ve posted. Are you saying that your text are no longer appearing in Russian?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 7, 2017, 12:00오후 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/11 "2017-07-07T12:00:31Z")

</div>

I did a little research. Checked in. At the registration stage, I saw the inscription:

> You’re almost done! We sent an activation mail to \*_ **@** _.org. Please follow the instructions in the mail to activate your account.

> If it doesn’t arrive, check your spam folder.

> <https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L1693>

Russian (activate\_email: no)

> <https://github.com/discourse/discourse/blob/main/config/locales/server.ru.yml#L1264>

In the Russian version of this string do not: **activate\_email:**

The search site I can find: login.activate\_email (`admin/customize/site_texts?overridden=login.activate_email&q=login.activate_email`)  
This string has a translation

So, if the string is not in the localization file, all translations are not working.

The bot is similar. In the localization file there is no translation.

> <https://github.com/discourse/discourse/blob/main/plugins/discourse-narrative-bot/config/locales/server.ru.yml#L115>

This is the last line.

PS I will try soon to translate. But I still think it should not be. If there are no translation files, it should work local translation.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [7월 7, 2017, 12:14오후 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/12 "2017-07-07T12:14:47Z")

</div>

Sorry but I think the bug you’re describing is getting lost in translation. The translations look OK to me here

```ruby
[6] pry(main)> I18n.locale = :en
=> :en
[7] pry(main)> I18n.t("discourse_narrative_bot.advanced_user_narrative.certificate.alt")
=> "Advanced User Track Certificate of Achievement"
[8] pry(main)> I18n.locale = :ru
=> :ru
[9] pry(main)> I18n.t("discourse_narrative_bot.advanced_user_narrative.certificate.alt")
=> "Свидетельство о прогрессе для опытных пользователей"

```

Is this something you’re not expecting?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 7, 2017, 12:29오후 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/13 "2017-07-07T12:29:39Z")

</div>

This is the last line of (115) where there is a translated. Next, the script bot I translated with the help of the admin (`admin/customize/site_texts`). All subsequent rows. They do not work. If there are no translation files, it should work local translation?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 8, 2017, 6:00오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/14 "2017-07-08T06:00:07Z")

</div>

It may be more clear

 ![](https://global.discourse-cdn.com/meta/original/3X/d/2/d25deb7a2cbd7ef25e9ade5dc65424174a5840c7.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/f/f/ffe3541a6b5396fb307f8cc06d47c37937a2e0b5.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/1/8/18abf79111e275ba4b3f37fdcdf4b7f9f0e9b9d1.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/1/8/1819cd29ed23034af0371279747c4bf6cde75ce6.jpg)

Before, if the translation was not in the file, it was possible to translate through admin area (http://\*\*\*.ru/admin/customize/site\_texts/badges.first\_reply\_by\_email.description)  
Now it’s not working. And only those that were translated before.

That is, the data from the table are not displayed?

```
COPY translation_overrides (id, locale, translation_key, value, created_at, updated_at, compiled_js) FROM stdin;
562	ru	badges.crazy_in_love.description	Used 50 likes in a day 20 times 123454321	2017-07-08 06:24:23.603068	2017-07-08 07:06:06.747101	\N

```

I specifically 123454321 added to the translation. In the table they came from. On the website they are not.

 ![](https://global.discourse-cdn.com/meta/original/3X/a/7/a775831badb467301c37fe9eb431108ec2b10984.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/c/7/c71ce19646052751f6be616815104eb03e6d6309.jpg)

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 10, 2017, 4:42오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/15 "2017-07-10T04:42:09Z")

</div>

Ie I understand that the data from the table are not used for translation? The text in the table is changed, but the translation comes entirely from files?

 ![](https://global.discourse-cdn.com/meta/original/3X/8/e/8ecad6e706d6817c5c7d156985f629fff24345ef.jpg)

And in view of the fact that the data is taken from the cache, then the data from that table (translation\_overrides) is not stored in the cache.  
When the change in the table (translation\_overrides) - cache not updated.  
It turned out that the last patch just caches the translation files. The table is not taken into account.

Very strange

![](https://global.discourse-cdn.com/meta/optimized/3X/9/f/9f4f4684b0ca6f4e7979f373ca023dcf0fa321b4_2_690x26.jpg)

In addition, it happens only with old records.

id 562 - the old entry. Change in the table on the site do not occur.  
id 563 - - a new record. Change the table, change the new entry visible on the site.

And due to the fact that: badges.autobiographer.description is in the file. And badges.crazy\_in\_love.description not in the file.

Ie. table (translation\_overrides) is taken into account only when the variable types (badges.crazy\_in\_love.description) in the file. If not, the field in the table is not working.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [7월 11, 2017, 3:53오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/16 "2017-07-11T03:53:26Z")

</div>

@Stranik Thank you for the repro. Can you see if this fixed it for you?

[https://github.com/discourse/discourse/commit/b605d5d61bac7a1c16a334624ff85ec2e2c539f2](https://github.com/discourse/discourse/commit/b605d5d61bac7a1c16a334624ff85ec2e2c539f2)

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [7월 11, 2017, 4:51오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/17 "2017-07-11T04:51:37Z")

</div>

Thank you! Everything works fine! 🏆

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [7월 11, 2017, 12:24오후 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/18 "2017-07-11T12:24:31Z")

</div>

Big 🤙 for persisting and giving us all the help we needed in isolating this issue 😍

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [7월 13, 2017, 1:00오전 UTC](https://meta.discourse.org/t/errors-after-migrating-to-a-new-version-1-9-0-beta3/65709/19 "2017-07-13T01:00:07Z")

</div>

This topic was automatically closed after 43 hours. New replies are no longer allowed.
