Closed elbeicktalat closed 1 month ago
Ah if I try to run install another time I get:
frappe.exceptions.DuplicateEntryError: ('Module Def', 'Frappe Whatsapp', IntegrityError(1062, "Duplicate entry 'Frappe Whatsapp' for key 'PRIMARY'"))
run
bench setup requirements
bench restart
bench --site {site_name} migrate --force
@chechani Thank you.
I have done the migration, you can see the log, but still not able to see the app.
bench --site site1.local migrate
Migrating site1.local
Updating DocTypes for frappe : [========================================] 100%
Updating DocTypes for erpnext : [========================================] 100%
Updating DocTypes for print_designer: [========================================] 100%
Updating DocTypes for pdf_on_submit : [========================================] 100%
Updating DocTypes for hrms : [========================================] 100%
Updating Dashboard for frappe
Updating Dashboard for erpnext
Updating Dashboard for print_designer
Updating Dashboard for pdf_on_submit
Updating Dashboard for hrms
Updating customizations for Address
Updating customizations for Contact
Orphaned DocType(s) found: WhatsApp Templates
Deleting orphaned DocTypes : [========================================] 100%
Queued rebuilding of search index for site1.local
Any Idea?
@chechani
bench setup requirements //done bench restart //done bench --site {site_name} migrate --force // done without --force
--force not available
Sorry, I meant bench - - site (site_name) install-app frappe_whatsapp - - force and then run migrate
This is because the app was not uninstalled properly. Delete all the entries from module def for WhatsApp. Delete this directly from db. And then install the app again. Also make sure to pull the latest changes before reinstalling
I think you mean to delete the DocType related to Frappe Whatsapp and what about Module Def?
DELETE FROM `tabDocType` WHERE module = "Frappe Whatsapp";
I noted if I run bench uninstall-app frappe_whatsapp --force
it removes theam as well as the Frappe Whatsapp Module Def.
What to do?
@chechani I tried following commands as you said:
bench setup requirements
bench restart
bench -- site (site_name) install-app frappe_whatsapp -- force
bench --site {site_name} migrate
This didn't solve, note I tried after removing the app with --force and also before removing it.
@shridarpatil Thanks for your time,
I tried what you suggested:
bench get-app https://github.com/shridarpatil/frappe_whatsapp
There is something related to WhatsApp Templates DocType and a dependency failed to find libmagic
What do you suggest?
@chechani @shridarpatil Any Idea?
:tada: Finally I have solved the issue.
bench uninstall-app frappe_whatsapp --force
bench remove-app frappe_whatsapp
bench get-app https://github.com/shridarpatil/frappe_whatsapp --resolve-deps
bench setup requirements
bench restart
bench --site [sitename] install-app frappe_whatsapp --force
bench --site {site_name} migrate
Probably it will solve with adding --resolve-deps
to the bench get-app
command.
Hi @shridarpatil Thanks for the nice package,
I did uninstall this app some weeks in the past and now I'm facing this issue with installing it again.
The crazy thing is that I'm able to see the Module Def and the other docType.
Oh by the way if I open any DocType I receive the following message.
Also if I open the Module Def I can see it ponting to null.
Installed Apps
Error Log