Hello,
I have been stucked with this for a couple of weeks now.
I recently moved from Ubuntu v20 and ERPNext V13 to Ubuntu v22 and ERPNext v14.
It was going everything very well, but when I updated to the last version:
**ERPNext:** v14.4.0 (version-14)
**Frappe Framework:** v14.13.0 (version-14)
**WooCommerce Connector:** v1.7.0 (master)
I have a problem that I stop being able to browse my invoices.
I can see the list of invoices, but if I try to open one of them, nothing happens. The browser displays the link to that particular invoice on the url bar, but the view stays on the list of invoices. This happens with all of them.
I can’t see any error meaningful on the console, nor on Error Doctype inside ERPNext.
I see on worker error log, connection errors to Redis, and errors of Cryptography, but everything else seems to be fine. As:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
main()
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/commands/scheduler.py", line 189, in start_worker
start_worker(queue, quiet=quiet, rq_username=rq_username, rq_password=rq_password)
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 218, in start_worker
Worker(queues, name=get_worker_name(queue_name)).work(logging_level=logging_level)
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/rq/worker.py", line 637, in work
self.register_death()
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/rq/worker.py", line 337, in register_death
p.execute()
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 4012, in execute
conn = self.connection_pool.get_connection('MULTI',
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('HASH', '#0000001a', 1, 3198)
ERROR PropertyValue: Unknown syntax or no value: 0 3px 6px #0000001a
ERROR CSSStyleDeclaration: Syntax Error in Property: box-shadow:0 3px 6px #0000001a
On web log error logs there are warnings and errors as:
serWarning: The 'filters_config' hook used to add custom operators is not yet implemented in frappe.db.query engine. Use db_query (frappe.get_list) instead.
and
TypeError: Object of type <class 're.Match'> with value of <re.Match object; span=(8, 12), match='1978'> is not JSON serializable
If I go back to backup before last update, everything goes back to normal.
I forgot to tell that the route to each invoice is like this:
https://erp1.domain.com/app/sales-invoice/2022/082
The code of each invoice is like this 2022/###. Could this be something related to routes?
Many thanks for your help and kind regards from Spain,