Skip to content

Commit 9584784

Browse files
committed
Add a notice to flush Redis before starting ThingsBoard after upgrade
1 parent 0968dc4 commit 9584784

File tree

3 files changed

+201
-0
lines changed

3 files changed

+201
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% capture redis-notice %}
2+
If you use Redis for caching, you need to flush all stored keys before starting the ThingsBoard.
3+
4+
Connect to your Redis instance (or container/pod, depending on your setup) and run the command:
5+
6+
`redis-cli flushall`
7+
{% endcapture %}
8+
{% include templates/info-banner.md content=redis-notice %}
9+

docs/user-guide/install/pe/upgrade-instructions.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.3.1
367367

368368
#### Start the service
369369

370+
{% include templates/redis-post-upgrade-notice.md %}
371+
370372
```bash
371373
$ sudo service thingsboard start
372374
```
@@ -411,6 +413,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.3.1
411413

412414
#### Start the service
413415

416+
{% include templates/redis-post-upgrade-notice.md %}
417+
414418
```text
415419
net start thingsboard
416420
```
@@ -463,6 +467,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.3.0
463467

464468
#### Start the service
465469

470+
{% include templates/redis-post-upgrade-notice.md %}
471+
466472
```bash
467473
$ sudo service thingsboard start
468474
```
@@ -507,6 +513,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.3.0
507513

508514
#### Start the service
509515

516+
{% include templates/redis-post-upgrade-notice.md %}
517+
510518
```text
511519
net start thingsboard
512520
```
@@ -597,6 +605,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.2.2
597605

598606
#### Start the service
599607

608+
{% include templates/redis-post-upgrade-notice.md %}
609+
600610
```bash
601611
$ sudo service thingsboard start
602612
```
@@ -666,6 +676,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.2.2
666676

667677
#### Start the service
668678

679+
{% include templates/redis-post-upgrade-notice.md %}
680+
669681
```text
670682
net start thingsboard
671683
```
@@ -730,6 +742,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.2.1
730742

731743
#### Start the service
732744

745+
{% include templates/redis-post-upgrade-notice.md %}
746+
733747
```bash
734748
$ sudo service thingsboard start
735749
```
@@ -784,6 +798,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.2.1
784798

785799
#### Start the service
786800

801+
{% include templates/redis-post-upgrade-notice.md %}
802+
787803
```text
788804
net start thingsboard
789805
```
@@ -836,6 +852,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.2.0
836852

837853
#### Start the service
838854

855+
{% include templates/redis-post-upgrade-notice.md %}
856+
839857
```bash
840858
$ sudo service thingsboard start
841859
```
@@ -880,6 +898,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.2.0
880898

881899
#### Start the service
882900

901+
{% include templates/redis-post-upgrade-notice.md %}
902+
883903
```text
884904
net start thingsboard
885905
```
@@ -933,6 +953,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.1.1
933953

934954
#### Start the service
935955

956+
{% include templates/redis-post-upgrade-notice.md %}
957+
936958
```bash
937959
$ sudo service thingsboard start
938960
```
@@ -977,6 +999,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.1.1
977999

9781000
#### Start the service
9791001

1002+
{% include templates/redis-post-upgrade-notice.md %}
1003+
9801004
```text
9811005
net start thingsboard
9821006
```
@@ -1030,6 +1054,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.1.0
10301054

10311055
#### Start the service
10321056

1057+
{% include templates/redis-post-upgrade-notice.md %}
1058+
10331059
```bash
10341060
$ sudo service thingsboard start
10351061
```
@@ -1074,6 +1100,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.1.0
10741100

10751101
#### Start the service
10761102

1103+
{% include templates/redis-post-upgrade-notice.md %}
1104+
10771105
```text
10781106
net start thingsboard
10791107
```
@@ -1143,6 +1171,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=3.0.1
11431171

11441172
#### Start the service
11451173

1174+
{% include templates/redis-post-upgrade-notice.md %}
1175+
11461176
```bash
11471177
$ sudo service thingsboard start
11481178
```
@@ -1193,6 +1223,8 @@ C:\thingsboard>upgrade.bat --fromVersion=3.0.1
11931223

11941224
#### Start the service
11951225

1226+
{% include templates/redis-post-upgrade-notice.md %}
1227+
11961228
```text
11971229
net start thingsboard
11981230
```
@@ -1266,6 +1298,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.5.0
12661298

12671299
#### Start the service
12681300

1301+
{% include templates/redis-post-upgrade-notice.md %}
1302+
12691303
```bash
12701304
$ sudo service thingsboard start
12711305
```
@@ -1328,6 +1362,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.5.0
13281362

13291363
#### Start the service
13301364

1365+
{% include templates/redis-post-upgrade-notice.md %}
1366+
13311367
```text
13321368
net start thingsboard
13331369
```
@@ -1399,6 +1435,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.5.0
13991435

14001436
#### Start the service
14011437

1438+
{% include templates/redis-post-upgrade-notice.md %}
1439+
14021440
```bash
14031441
$ sudo service thingsboard start
14041442
```
@@ -1459,6 +1497,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.5.0
14591497

14601498
#### Start the service
14611499

1500+
{% include templates/redis-post-upgrade-notice.md %}
1501+
14621502
```text
14631503
net start thingsboard
14641504
```
@@ -1496,6 +1536,8 @@ thingsboard-installation-2-5-6-centos,CentOS,shell,resources/2.5.6pe/thingsboard
14961536

14971537
#### Start the service
14981538

1539+
{% include templates/redis-post-upgrade-notice.md %}
1540+
14991541
```bash
15001542
$ sudo service thingsboard start
15011543
```
@@ -1522,6 +1564,8 @@ net stop thingsboard
15221564

15231565
#### Start the service
15241566

1567+
{% include templates/redis-post-upgrade-notice.md %}
1568+
15251569
```text
15261570
net start thingsboard
15271571
```
@@ -1559,6 +1603,8 @@ thingsboard-installation-2-5-5-centos,CentOS,shell,resources/2.5.5pe/thingsboard
15591603

15601604
#### Start the service
15611605

1606+
{% include templates/redis-post-upgrade-notice.md %}
1607+
15621608
```bash
15631609
$ sudo service thingsboard start
15641610
```
@@ -1585,6 +1631,8 @@ net stop thingsboard
15851631

15861632
#### Start the service
15871633

1634+
{% include templates/redis-post-upgrade-notice.md %}
1635+
15881636
```text
15891637
net start thingsboard
15901638
```
@@ -1622,6 +1670,8 @@ thingsboard-installation-2-5-4-centos,CentOS,shell,resources/2.5.4pe/thingsboard
16221670

16231671
#### Start the service
16241672

1673+
{% include templates/redis-post-upgrade-notice.md %}
1674+
16251675
```bash
16261676
$ sudo service thingsboard start
16271677
```
@@ -1648,6 +1698,8 @@ net stop thingsboard
16481698

16491699
#### Start the service
16501700

1701+
{% include templates/redis-post-upgrade-notice.md %}
1702+
16511703
```text
16521704
net start thingsboard
16531705
```
@@ -1685,6 +1737,8 @@ thingsboard-installation-2-5-3-centos,CentOS,shell,resources/2.5.3pe/thingsboard
16851737

16861738
#### Start the service
16871739

1740+
{% include templates/redis-post-upgrade-notice.md %}
1741+
16881742
```bash
16891743
$ sudo service thingsboard start
16901744
```
@@ -1711,6 +1765,8 @@ net stop thingsboard
17111765

17121766
#### Start the service
17131767

1768+
{% include templates/redis-post-upgrade-notice.md %}
1769+
17141770
```text
17151771
net start thingsboard
17161772
```
@@ -1755,6 +1811,8 @@ Please refer to the guides below that will describe how to upgrade your PostgreS
17551811

17561812
#### Start the service
17571813

1814+
{% include templates/redis-post-upgrade-notice.md %}
1815+
17581816
```bash
17591817
$ sudo service thingsboard start
17601818
```
@@ -1790,6 +1848,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.4.3
17901848

17911849
#### Start the service
17921850

1851+
{% include templates/redis-post-upgrade-notice.md %}
1852+
17931853
```text
17941854
net start thingsboard
17951855
```
@@ -1840,6 +1900,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.4.3
18401900

18411901
#### Start the service
18421902

1903+
{% include templates/redis-post-upgrade-notice.md %}
1904+
18431905
```bash
18441906
$ sudo service thingsboard start
18451907
```
@@ -1873,6 +1935,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.4.3
18731935

18741936
#### Start the service
18751937

1938+
{% include templates/redis-post-upgrade-notice.md %}
1939+
18761940
```text
18771941
net start thingsboard
18781942
```
@@ -1957,6 +2021,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.4.3
19572021

19582022
#### Start the service
19592023

2024+
{% include templates/redis-post-upgrade-notice.md %}
2025+
19602026
```bash
19612027
$ sudo service thingsboard start
19622028
```
@@ -2024,6 +2090,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.4.3
20242090

20252091
#### Start the service
20262092

2093+
{% include templates/redis-post-upgrade-notice.md %}
2094+
20272095
```text
20282096
net start thingsboard
20292097
```
@@ -2076,6 +2144,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.4.2
20762144

20772145
#### Start the service
20782146

2147+
{% include templates/redis-post-upgrade-notice.md %}
2148+
20792149
```bash
20802150
$ sudo service thingsboard start
20812151
```
@@ -2117,6 +2187,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.4.2
21172187

21182188
#### Start the service
21192189

2190+
{% include templates/redis-post-upgrade-notice.md %}
2191+
21202192
```text
21212193
net start thingsboard
21222194
```
@@ -2168,6 +2240,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.4.1
21682240

21692241
#### Start the service
21702242

2243+
{% include templates/redis-post-upgrade-notice.md %}
2244+
21712245
```bash
21722246
$ sudo service thingsboard start
21732247
```
@@ -2209,6 +2283,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.4.1
22092283

22102284
#### Start the service
22112285

2286+
{% include templates/redis-post-upgrade-notice.md %}
2287+
22122288
```text
22132289
net start thingsboard
22142290
```
@@ -2261,6 +2337,8 @@ $ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.4.0
22612337

22622338
#### Start the service
22632339

2340+
{% include templates/redis-post-upgrade-notice.md %}
2341+
22642342
```bash
22652343
$ sudo service thingsboard start
22662344
```
@@ -2302,6 +2380,8 @@ C:\thingsboard>upgrade.bat --fromVersion=2.4.0
23022380

23032381
#### Start the service
23042382

2383+
{% include templates/redis-post-upgrade-notice.md %}
2384+
23052385
```text
23062386
net start thingsboard
23072387
```

0 commit comments

Comments
 (0)