# Apps are in the database but not listed in backoffice

**URL:** <https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960>\
**Category:** Questions\
**Tags:** litium-8\
**Created:** [May 26, 2023, 11:03am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960 "2023-05-26T11:03:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [May 26, 2023, 11:03am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/1 "2023-05-26T11:03:31Z")

</div>

I have an issue where I can see in the database that I have apps installed but they are not listed in backoffice under System Settings / Apps.  
On some channels / countries in backoffice there are payment methods and delivery methods listed and they are also listed and possible to place orders with on the website. There are some channels / countries where no payment methods or delivery methods are listed in backoffice but there are links in the database in ChannelToCountryLinkShippingOption and ChannelToCountryLinkPaymentOption that links between the countries and the channel.

Anyone who have experienced this? What can be the problem?

If I try to add an option I get a ‘Cannot insert duplicate key’ error which make sense since the link is already in the database. But why isn’t backoffice listing them then?

I’ve tried recycling the app pool, restarting the website, changing the prefixes for Redis and Elasticsearch. I also have restarted my computer. Nothing makes any difference.

Litium version: 8.9.0

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [May 26, 2023, 11:17am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/2 "2023-05-26T11:17:45Z")

</div>

My guess is that your redis is used for another installation, try to change redis prefix.

---

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [May 26, 2023, 11:55am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/3 "2023-05-26T11:55:34Z")

</div>

Already tried that. Tried it again a couple times. No difference.

---

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [May 30, 2023, 7:59am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/4 "2023-05-30T07:59:44Z")

</div>

Any other suggestions? I still have the problem.

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [June 1, 2023, 8:40am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/5 "2023-06-01T08:40:14Z")

</div>

How do you see that the app is installed when they not is listed in back office?

---

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [June 2, 2023, 8:00am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/6 "2023-06-02T08:00:37Z")

</div>

They are in the database, in the AppManagement.App table. Also as I wrote before, some countries on some channels have payment and delivery options on them in backoffice but looking in the databse there are links in ChannelToCountryLinkShippingOption and ChannelToCountryLinkPaymentOption for all countries on all channels. They’re just not visible in backoffice.  
Also on the channels where there are payment and delivery options visible in backoffice they also show up on the website and can be used to place orders with.

Possible to place order

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/8ab0c6b600b49cc7dde07b2f7318dcde493d88b0.png)

Apps in the database

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/9df40c968586fa91edbe741d58cdda2f09e2e2a0.png)

But apps is not visible in backoffice

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/c2965b785b905e9175811eb0b4b68d3ae097171e.png)

Options are visible under country on channel though

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/156017295ded78ce22cb341381fa282842ebbab2.png)

* * *

Country France

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/6d7d0b2e0d186a7ff46531062eec67ea11e65809.png)

EU channel with country France and no payment options in backoffice

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/64c4784be6e7bcbe9af290c19603e07aebf06154.png)

There are links in the database though

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/b3e5966d0fc68c626fd47bad6d2e527433f39bc3.png)

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [June 2, 2023, 10:07am UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/7 "2023-06-02T10:07:04Z")

</div>

This scenario where you have information in database but they not shows up in UI is to 99% that the Redis cache is out of sync to the database. Are you getting the same result if you comment out the usage of the Redis cache?

Remember that you may have the configuration in `appsetting.json`, `appsetting.development.json`, as _User Secrets_ or as environment variables in `web.config` depend on your configuration.

---

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [June 5, 2023, 3:50pm UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/8 "2023-06-05T15:50:36Z")

</div>

Yes, that helped. I commented out the

```auto
      "Cache": {
        "ConnectionString": "localhost:6379,abortConnect=false",
        "Password": null
      },

```

part of the Redis section in the appsettings file, did a rebuild of the code and now the apps are showing.

Uncommenting it but using the same prefix as before made them disappear again. Changing to a new prefix, still with the Cache part uncommented made them show up again.

Really strange. I’ve tried changing the prefix at least 5-10 times without any luck.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [July 3, 2023, 3:51pm UTC](https://forum.litium.com/t/apps-are-in-the-database-but-not-listed-in-backoffice/2960/9 "2023-07-03T15:51:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
