Thank you for taking the time.
I had a look around.
NB Note … this server was destined to be my final server and although it was created a
month ago, I only updated its settings as I learned on my test-system. I only really started
using it on 4 Nov when I started entering transactions.
Blockquote
20:21:18 default: Job OK (8d70e49f-b067-45c1-9c69-93e99a5b08ec)
20:21:18 Result is kept for 500 seconds
20:21:18 Cleaning registries for queue: default
20:23:32 default: frappe.utils.background_jobs.execute_job(event=None, is_async=True, job_name=‘<function run_background at 0x7f41e9671510>’, kwargs={‘prepared_report’: ‘REP00003’}, method=<function run_background at 0x7f41e9671510>, site=‘trinityerp.co.za’, user=‘Administrator’) (219fa858-a985-4366-b817-e4189d540bb3)
20:23:32 default: Job OK (219fa858-a985-4366-b817-e4189d540bb3)
20:23:32 Result is kept for 500 seconds
20:35:02 default: frappe.utils.background_jobs.execute_job(event=None, is_async=True, job_name=‘<function run_background at 0x7f41e95b0d90>’, kwargs={‘prepared_report’: ‘REP00004’}, method=<function run_background at 0x7f41e95b0d90>, site=‘trinityerp.co.za’, user=‘Administrator’) (8bffaec1-03d1-463f-a501-dec1ad08313c)
20:35:03 default: Job OK (8bffaec1-03d1-463f-a501-dec1ad08313c)
20:35:03 Result is kept for 500 seconds
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 177, in _read_from_socket
raise socket.error(SERVER_CLOSED_CONNECTION_ERROR)
OSError: Connection closed by server.
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 668, in execute_command
return self.parse_response(connection, command_name, **options)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 680, in parse_response
response = connection.read_response()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 624, in read_response
response = self._parser.read_response()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 284, in read_response
response = self._buffer.readline()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 216, in readline
self._read_from_socket()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 191, in _read_from_socket
(e.args,))
redis.exceptions.ConnectionError: Error while reading from socket: (‘Connection closed by server.’,)
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 484, in connect
sock = self._connect()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 541, in _connect
raise err
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/rq/worker.py”, line 486, in work
result = self.dequeue_job_and_maintain_ttl(timeout)
File “/home//frappe-bench/env/lib/python3.6/site-packages/rq/worker.py”, line 519, in dequeue_job_and_maintain_ttl
job_class=self.job_class)
File “/home//frappe-bench/env/lib/python3.6/site-packages/rq/queue.py”, line 460, in dequeue_any
result = cls.lpop(queue_keys, timeout, connection=connection)
File “/home//frappe-bench/env/lib/python3.6/site-packages/rq/queue.py”, line 410, in lpop
result = connection.blpop(queue_keys, timeout)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 1269, in blpop
return self.execute_command(‘BLPOP’, *keys)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 673, in execute_command
connection.send_command(*args)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 585, in send_packed_command
self.connect()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 484, in connect
sock = self._connect()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 541, in _connect
raise err
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 2879, in execute
return execute(conn, stack, raise_on_error)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 2749, in _execute_transaction
connection.send_packed_command(all_cmds)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 585, in send_packed_command
self.connect()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 484, in connect
sock = self._connect()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 541, in _connect
raise err
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
;
During handling of the above exception, another exception occurred:
;
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home//frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/home//frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home//frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home//frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home//frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home//frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home//frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home//frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home//frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 167, in start_worker
start_worker(queue, quiet = quiet)
File “/home//frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 151, in start_worker
Worker(queues, name=get_worker_name(queue)).work(logging_level = logging_level)
File “/home//frappe-bench/env/lib/python3.6/site-packages/rq/worker.py”, line 502, in work
self.register_death()
File “/home//frappe-bench/env/lib/python3.6/site-packages/rq/worker.py”, line 300, in register_death
p.execute()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 2894, in execute
return execute(conn, stack, raise_on_error)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 2749, in _execute_transaction
connection.send_packed_command(all_cmds)
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 585, in send_packed_command
self.connect()
File “/home//frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
@ubuntu-s-2vcpu-4gb-sfo2-01-prod-system:~/frappe-bench/logs$
You may see that at the start, there is reference to “Prepared_report” and the ID’s …
REP00003 and REP00004
Not sure if the error trace actually relates to REP00004 ?
Both these reports are indeed “Stock reports” that I executed and it is while executing a
“Stock Balance” report that I noticed the strange behaviour of the “Generate New Report”
button, but I completed another test ( as below)…
Also, if you go to “Prepared Report List” and actually unzip the .gz files attached to these
reports, they actually contain valid information.
If you do have a suggestion I would appreciate it. My frustration level is high becasue after
months of testing/invetigating, I finaly decided to stay with V12 and start entering my data,
and then this becomes apparent.