Internal Server Error when 3rd party apps are installed

Issue:
I get an “Internal Server Error” when I install any app except ERPNext on the site. It goes away after uninstalling the app.

Stack:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION=“Ubuntu 22.04.2 LTS”
PRETTY_NAME=“Ubuntu 22.04.2 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.2 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian

Steps to recreate the issue:

  1. I created a server.
  2. Used Easy Install Script
$ wget https://raw.githubusercontent.com/frappe/bench/develop/easy-install.py
$ python3 easy-install.py --prod -n [projectname] -s [sitename] --email [my email id]
  1. Entered docker
$ docker exec -it frappe-backend-1 /bin/bash
  1. Installed app
$ bench get-app https://github.com/shridarpatil/frappe_whatsapp
$ bench --site [sitename] install-app frappe_whatsapp
  1. Got error here
    Internal Server Error

  2. Uninstalled app

$ bench --site [sitename] uninstall-app frappe_whatsapp

How do I add custom apps while using the easy install script? I want to use it because it takes care of all the issues caused while setting up https and ssl certificates.

https://github.com/frappe/bench/blob/develop/easy-install.py check the code of the script.

it is not possible.

1 Like

can you test a new script?

https://raw.githubusercontent.com/revant/bench/custom-image-easy-install/easy-install.py

it takes --image=custom/registry.

1 Like

@anandf have you resolved the issue?
i am getting same issue, its giving 500 internal server error when i install custom app.