# The app could not be installed - again (DirectPay)

**URL:** <https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906>\
**Category:** Questions\
**Tags:** litium-8\
**Created:** [April 13, 2023, 11:07am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906 "2023-04-13T11:07:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [April 13, 2023, 11:07am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/1 "2023-04-13T11:07:39Z")

</div>

From time to time, we still get the issue as described in this thread: [The app could not be installed - still](https://forum.litium.com/t/the-app-could-not-be-installed-still/2864)

The solution I posted did not work for another project, so it must have been a coincidence.  
The list of solutions we’ve tried from the other thread still applies:

- Using a clean docker-compose.yaml file from the docs
- Only defining dnsresolver together with the DirectPay app in docker compose
- Changing the dnsresolver ip from 192.168.65.5 to 192.168.65.7 as per the docs
- Tried with both [localtest.me](http://localtest.me/) and localhost domains
- Upgrading docker desktop
- Using the latest cytopia/bind
- Upgrading and downgrading the DirectPayment app
- Re-trusted the dev cert and re-exported it
- Deleted data folder and restarted/rebuilt the containers
- Checked the database for conflicting apps

Litium version: 8.7.2

---

<div class="post-metadata">

**Author:** ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)\
**Post date:** [April 13, 2023, 6:12pm UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/2 "2023-04-13T18:12:15Z")

</div>

Me and a collegue spent like an entire day trying to get the apps to work properly my local dev machine. We always suspect that our company installed antivirus/firewall makes it really hard to get this to work. It seems to block alot of stuff. But since that day, I can get the apps to work every time on my local dev machine, this is the setup we have:

yaml file changes (works for me for direct pay, direct shipment and klarna):

1. Removed/commented out the DNS-entry completely
2. Changed LitiumApi\_\_ApiUrl to use [https://host.docker.internal:5001](https://host.docker.internal:5001)

host-file in Windows:

1. Add entry for 127.0.0.1 host.docker.internal

To reinstall/install the apps when i need to i follow this order:

1. Stop the apps in docker
2. Clear direct-payment/config folder
3. Clear direct-payment/DataProtection-key folder
4. Log into backoffice, force-remove the apps i want to reinstall/install if they are installed already
5. Start the apps in docker
6. Visit each app metadata url ([https://host.docker.internal](https://host.docker.internal):apport) which will rediret to [http://host.docker.internal:5001](http://host.docker.internal:5001) (the changed litiumapi\_apiurl) where i log into backoffice and install the apps and load the configs
7. Done. Now resume normal development/testning/whatever using the normal url to access Litium, [project.localtest.me:5001](http://project.localtest.me:5001) or whatever you’ve set up, and the apps work for me every time. Done it like 20 times or something now.

---

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [April 14, 2023, 6:16am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/3 "2023-04-14T06:16:07Z")

</div>

Amazing, thank you!

One step that you didn’t mention was to remove the

```yaml
dns: 
- 192.168.65.2

```

from the app section. When I removed that, including the dnsresolver container, it worked!

---

<div class="post-metadata">

**Author:** ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)\
**Post date:** [April 14, 2023, 6:27am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/4 "2023-04-14T06:27:50Z")

</div>

> [@Martin.Brandt](#):
>
> Removed/commented out the DNS-entry completely

I did mention the removal of the dns entry? 😛

---

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [April 14, 2023, 6:28am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/5 "2023-04-14T06:28:37Z")

</div>

I understood that as the whole “dnsresolver” container, but oh well! My bad 😃

---

<div class="post-metadata">

**Author:** ![Martin.Brandt](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/martin.brandt/32/974_2.png) [@Martin.Brandt](https://forum.litium.com/u/Martin.Brandt)\
**Post date:** [April 14, 2023, 6:39am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/6 "2023-04-14T06:39:57Z")

</div>

Hehe yeah, I listed the dns-removal under the “yaml file changes” section in my comment 🙂

Glad that it helped.

---

<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:** [May 12, 2023, 6:40am UTC](https://forum.litium.com/t/the-app-could-not-be-installed-again-directpay/2906/7 "2023-05-12T06:40:45Z")

</div>

Closed on May 12, 2023, 6:40am UTC

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