Hey,
is there any way to reinstall without loosing data? Somehow my erpnext lost assets and bench build doesn’t help (probably because I did wrong way updating). For me I’ve did total mess with files (version 16.0.0-dev … etc) and I was thinking to do clean install and migrate database to it.
When I try to bench migrate it return this message:
Migrating Frappe
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 48, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 28, in _func
ret = f(ctx.obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 706, in migrate
).run(site=site)
^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 198, in run
if not self.required_services_running():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 177, in required_services_running
service_status = check_connection(redis_services=[“redis_cache”])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/connections.py”, line 54, in check_connection
service_status.update(check_redis(redis_services))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/connections.py”, line 47, in check_redis
status[srv] = is_open(url.scheme, url.hostname, url.port, url.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/connections.py”, line 13, in is_open
conn = (hostname, int(port))
^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘NoneType’int() argument must be a string, a bytes-like object or a real number, not ‘NoneType’
In general main problem is with logging to the site. When I try to do this it only shows erpnext blue logo and doesn’t load css. In console I have this log:
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/css/desk.bundle.DQM44BAO.css
[HTTP/2 404 60ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/css/report.bundle.VWCNLCM2.css
[HTTP/2 404 58ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/erpnext/dist/css/erpnext.bundle.DEYVMYDK.css
[HTTP/2 404 69ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/desk.bundle.7VZCYKUE.js
[HTTP/2 404 60ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/list.bundle.DWCMIDYF.js
[HTTP/2 404 59ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/form.bundle.5WGQJSC4.js
[HTTP/2 404 64ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/controls.bundle.XYVEQIFK.js
[HTTP/2 404 63ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/report.bundle.JS7AFESX.js
[HTTP/2 404 58ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/billing.bundle.AFTRQ3D5.js
[HTTP/2 404 61ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/erpnext/dist/js/erpnext.bundle.OBP2BMGP.js
[HTTP/2 404 60ms]
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/desk.bundle.7VZCYKUE.js
[HTTP/2 404 58ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/desk.bundle.7VZCYKUE.js”. sales-order:8653:86
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/list.bundle.DWCMIDYF.js
[HTTP/2 404 41ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/list.bundle.DWCMIDYF.js”. sales-order:8655:86
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/form.bundle.5WGQJSC4.js
[HTTP/2 404 56ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/form.bundle.5WGQJSC4.js”. sales-order:8657:86
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/controls.bundle.XYVEQIFK.js
[HTTP/2 404 44ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/controls.bundle.XYVEQIFK.js”. sales-order:8659:90
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/report.bundle.JS7AFESX.js
[HTTP/2 404 41ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/report.bundle.JS7AFESX.js”. sales-order:8661:88
Uncaught ReferenceError: cint is not defined
c index.js:10
index.js:85
index.js:86
telemetry.bundle.LKEZCADB.js:1:1108
GET
https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/billing.bundle.AFTRQ3D5.js
[HTTP/2 404 48ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/frappe/dist/js/billing.bundle.AFTRQ3D5.js”. sales-order:8665:89
GET
https://erpnext.MY_SERVER_NAME.com/assets/erpnext/dist/js/erpnext.bundle.OBP2BMGP.js
[HTTP/2 404 41ms]
Loading failed for the “script” with source „https://erpnext.MY_SERVER_NAME.com/assets/erpnext/dist/js/erpnext.bundle.OBP2BMGP.js”. sales-order:8667:90
Maybe someone could help me with that? It was working just fine but one day it crashed during generating reports from warehouse. It stucked on genereting them in queue and when I’ve tried to remove them it crashed css. Before/after I’ve tried to update it and did total mess with them… I don’t have much experience with working on such setups, should have done it on production env but we learn on our mistakes.