The app could not be installed - again (DirectPay)

From time to time, we still get the issue as described in this thread: The app could not be installed - still

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 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

1 Like

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

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:apport) which will rediret to 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 or whatever you’ve set up, and the apps work for me every time. Done it like 20 times or something now.
3 Likes

Amazing, thank you!

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

dns: 
- 192.168.65.2

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

I did mention the removal of the dns entry? :stuck_out_tongue:

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

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

Glad that it helped.

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