New-site error : v12.0.17

Installing frappe…
Updating DocTypes for frappe : [========================================]
Traceback (most recent call last):
File “/home/frappe/mybench/env/lib/python3.6/site-packages/redis/connection.py”, line 484, in connect
sock = self._connect()
File “/home/frappe/mybench/env/lib/python3.6/site-packages/redis/connection.py”, line 541, in _connect
raise err
File “/home/frappe/mybench/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/mybench/env/lib/python3.6/site-packages/redis/client.py”, line 2879, in execute
return execute(conn, stack, raise_on_error)
File “/home/frappe/mybench/env/lib/python3.6/site-packages/redis/client.py”, line 2749, in _execute_transaction
connection.send_packed_command(all_cmds)
File “/home/frappe/mybench/env/lib/python3.6/site-packages/redis/connection.py”, line 585, in send_packed_command
self.connect()
File “/home/frappe/mybench/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:

1 Like

You probably already have an instance running. Try this…

sudo supervisorctl restart all

Faced the same error and restarting supervisor did not get the instance to run.

before you execute install.py, you need to
run
sudo apt-get update
sudo apt-get upgrade
and restart…
then that’s the time to install your install.py

Perhaps you need to stop the processes, wait a few moments to be sure they have exited properly, and then (re)start them

sudo supervisorctl stop all
killall -9 redis
#sleep 20
sudo supervisorctl start all

Same problem here. I’m using the same installation script that I’ve always use and I can’t install it.

bench start

20:20:13 schedule.1 | Traceback (most recent call last):
20:20:14 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 68, in enqueue_events_for_all_sites
20:20:28 schedule.1 | enqueue_events_for_site(site=site, queued_jobs=jobs_per_site[site])
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 92, in enqueue_events_for_site
20:20:28 schedule.1 | log_and_raise()
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 82, in enqueue_events_for_site
20:20:28 schedule.1 | if is_scheduler_inactive():
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 229, in is_scheduler_inactive
20:20:28 schedule.1 | if is_scheduler_disabled():
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 238, in is_scheduler_disabled
20:20:28 schedule.1 | return not frappe.utils.cint(frappe.db.get_single_value(“System Settings”, “enable_scheduler”))
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py”, line 552, in get_single_value
20:20:28 schedule.1 | tabSingles where doctype=%s and field=%s"“”, (doctype, fieldname))
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py”, line 122, in sql
20:20:28 schedule.1 | self.connect()
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py”, line 75, in connect
20:20:28 schedule.1 | self._conn = self.get_connection()
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 90, in get_connection
20:20:28 schedule.1 | local_infile = frappe.conf.local_infile)
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/init.py”, line 94, in Connect
20:20:28 schedule.1 | return Connection(*args, **kwargs)
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 325, in init
20:20:28 schedule.1 | self.connect()
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 599, in connect
20:20:28 schedule.1 | self._request_authentication()
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 861, in _request_authentication
20:20:28 schedule.1 | auth_packet = self._read_packet()
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 657, in _read_packet
20:20:28 schedule.1 | packet_header = self._read_bytes(4)
20:20:28 schedule.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 707, in _read_bytes
20:20:28 schedule.1 | CR.CR_SERVER_LOST, “Lost connection to MySQL server during query”)
20:20:28 schedule.1 | pymysql.err.OperationalError: (2013, ‘Lost connection to MySQL server during query’)
20:20:28 schedule.1 |

try to reformat your OS… and use the easy install procedure for frappe-erpnext…

You should increase max_allowed_packet in mysql settings
The file is normally at /etc/mysql/my.cnf, and you need to add the line below to the [mysqld] section

# the default here is 4MB, or sometimes 16MB?? in more recent versions, which sometimes allows for disconnects in the middle of transactions
max_allowed_packet=64M

Then restart mysql

sudo systemctl restart mysql

guys this also happen with fresh installation . i try to update then same error … try to move to new server same error on fresh installation

during new-site, redis not ready, connect redis is error!

I also got this error.

I have travis to automatically build erpnext image every week.
https://travis-ci.com/pipech/erpnext-docker-debian/builds

It only occur with v12.0.17
It only happen with v12.

First occurrence: Build #128 [2019-10-23]
Last success built: v12.0.16 [2019-10-15]

Even, I got this same error for erpnext v12. version 11 was running smooth. biggest mistake in shifting to v12.

It is literally killing me.

Is there any permanent solution to fix this?