Error 111 connecting to localhost after bench update

service redis-server start
service redis-server status

1 Like

I ran that: redis-server active “Running”

try bench update now

the same problem

Dear @pdvyas @pdvyas2
Any help please???

@Omar_Salah @vishdha
check the mysql status

Thanks

Hello @sagar it’s work well

1 Like

hello @Omar_Salah,
try to stop the supervisor and nginx and restart after 5 min and check it.

Thanks

I revert back to v7 :smirk::expressionless:

@sagar I tried that by the way but it didn’t work

if you are on development setup try starting bench first and then do bench update.

bench start
bench update #new terminal tab
9 Likes

Thanks @revant_one for reply
I really tried that before but didn’t work, I tried all tricks to solve that but all’s failed
So I revert to V7

Try running the bench in one terminal using bench start
and in another terminal use the command ‘bench migrate’ or bench update
this will keep the reddis running

12 Likes

thanks a lot its working

Here’s what worked for me:

sudo bench setup production <frappe-user>
sudo systemctl reload nginx
5 Likes

this works for me…thanks

1 Like

How to take another terminal inside virtualbox,can you help please ?

When I update frappe bench i got this problem "redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused. " i tried to restart Redis server also deleted dump.rdb then restart Redis server but the problem still raise. any help please?

[quote=“revant_one, post:15, topic:22058”]
if you are on development setup try starting bench first and then do bench update.


[/quote]When I update frappe bench i got this problem "redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused. " i tried to restart Redis server also deleted dump.rdb then restart Redis server but the problem still raise. any help please?

I found this problem when I’m trying to update…

Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 110, in <module>
    main()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 31, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py", line 407, in migrate
    migrate(context.verbose, skip_failing=skip_failing, skip_search_index=skip_search_index)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/migrate.py", line 84, in migrate
    frappe.get_doc("Portal Settings", "Portal Settings").sync_menu()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/doctype/portal_settings/portal_settings.py", line 40, in sync_menu
    self.save()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 310, in save
    return self._save(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 346, in _save
    self._validate_links()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 908, in _validate_links
    frappe.throw(_("Could not find {0}").format(msg), frappe.LinkValidationError)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 504, in throw
    msgprint(
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 479, in msgprint
    _raise_exception()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 434, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Row #2: Reference Document Type: Timesheet

List apps in my site:

erpnext@porsite-VirtualBox:~/frappe-bench$ bench --site haelthcare list-apps
frappe
healthcare

and my Operating System: Ubuntu 21.04

erpnext@porsite-VirtualBox:~/frappe-bench$ bench version
erpnext 13.36.2
frappe 13.36.3
healthcare 0.0.1
posawesome 3.4.0

After 4 years, this method works for me somehow