Thank you!
Unfortunately I don’t have a fresh site.
And I don’t remember if I ran the wizard yet.
Shouldn’t it be possible to install custom apps on non-fresh sites? Why not to have the possibility to install erpnext then?
ERPNext can’t be installed once setup wizard is run.
That’s part of frappe/ERPNext code and is has nothing to do with docker.
Add feature request in ERPNext that you want to install ERPNext after wizard is complete.
Also redeploying the docker-compose doesn’t reinstall anything. Site creator container only runs once, second time it’ll stop if it finds same site already existing.
To manipulate the existing site, you’ll need to enter the erpnext-python container and issue bench helper commands. Same can also be done by creating new containers with attached network and volumes from existing frappe_docker project
unfortunately it seems that i ran the wizzard before:
frappe@01e36404ce48:~/frappe-bench/sites$ bench --site mysite.org install-app erpnext
Installing erpnext...
An error occurred while installing erpnext:
ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall
Traceback (most recent call last):
File "/usr/local/bin/bench", line 18, in <module>
[sys.executable, bench_helper, 'frappe'] + sys.argv[1:],
File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/frappe/frappe-bench/env/bin/python', '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', 'frappe', '--site', 'mysite.org', 'install-app', 'erpnext']' returned non-zero exit status 1.
What if I do some partial backup and then re-install the whole site (with ERPnext) and then partially restoring the backup?
do you think such a thing could work?
one possible solution is to start a fresh site including ERPNext and then import the metadata and data one by one.
let me know what are your thoughts
thx
1 custom module with 3 doctypes each with about 600 entries; 2 of them are also linked.
we also have about 30 users
1 email domain/address configured for notifications
1 webpage as the landing page
1 custom script on 1 of the custom doctypes
is this feasible? do i need to recreate each doctype before the import? will i face loads of errors and incompatibilities?
are you suggesting i create a new app and move the custom doctypes i have to this new app?
but then how do i export a specific app with its doctypes and then import them?
it seems very complicated to export/import every individual doctype dependencies (i’ve tried it and failed miserably either because i am doing something wrong or because i’m insisting on the dependencies in order to guarantee logs and versions)
I have submitted this feature request: (in the hope that we will be able to use ERPNext using the same frappe installation soon)
P.S: We (local branch of the Lebanese Red Cross) are currently only using it for custom modules for recruitment, but we hope to be able to use it also for inventory management and other tasks.
thank you @revant_one,
unfortunately we can not afford to have a second server (at least not for now especially with the current economical crisis in Lebanon )
Besides, we are looking to have all our work in one place; ERPNext: one platform to rule them all!
i was thinking maybe i could export the files of erpnext and install them the same way as other new apps, but then i will loose the automatic updates, no?
even if i choose to do that, i guess i will need to do some more research.
Worst case scenario i wait until some hero finds our feature-request and do it
Method 1:
Use bench export-json and specify the DocTypes you want to export.
Reinstall the site (fresh with no data), install ERPNext in it.
Use bench import-doc with the path of the exported doctypes folder.
Method 2:
Comment out before_install hook inside ERPNext source code.
After installation make sure you manually create a Company, add fiscal year.