I installed ERPNext and it doesn´t work, ERPNext is showing the following error:
Setup failed
Could not start up: Error in setup
Do someone knows how to fix it?
I installed ERPNext and it doesn´t work, ERPNext is showing the following error:
Setup failed
Could not start up: Error in setup
Do someone knows how to fix it?
You’ll have to share/show more than that before anyone will be able to help you
shows this image when I’m setting up the company in ERPNext
We need to see the traceback screen (where you see the bench start errors etc)
I´m new in ERPNext. Where do I can to see the traceback screen?
It is in the terminal part where you ran the setup.
Normally you log in as the install-user (eg. frappe)
Then open a terminal, and run
cd ~/frappe-bench
bench start
In that terminal, you should see the descriptions and details of the errors
Show me this:
PNext:~/erpnext$ bench start
12:30:05 system | web.1 started (pid=16051)
12:30:06 system | redis_socketio.1 started (pid=16047)
12:30:06 system | watch.1 started (pid=16052)
12:30:06 system | redis_cache.1 started (pid=16066)
12:30:06 system | worker_long.1 started (pid=16054)
12:30:06 system | worker_default.1 started (pid=16056)
12:30:06 system | redis_queue.1 started (pid=16055)
12:30:06 system | schedule.1 started (pid=16064)
12:30:06 system | socketio.1 started (pid=16073)
12:30:06 system | worker_short.1 started (pid=16074)
12:30:06 redis_cache.1 | 16071:C 30 Jun 12:30:06.185 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
12:30:06 redis_cache.1 | 16071:C 30 Jun 12:30:06.185 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=16071, just started
12:30:06 redis_cache.1 | 16071:C 30 Jun 12:30:06.185 # Configuration loaded
12:30:06 redis_queue.1 | 16069:C 30 Jun 12:30:06.192 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
12:30:06 redis_queue.1 | 16069:C 30 Jun 12:30:06.192 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=16069, just started
12:30:06 redis_queue.1 | 16069:C 30 Jun 12:30:06.192 # Configuration loaded
12:30:06 redis_socketio.1 | 16060:C 30 Jun 12:30:06.194 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
12:30:06 redis_socketio.1 | 16060:C 30 Jun 12:30:06.194 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=16060, just started
12:30:06 redis_socketio.1 | 16060:C 30 Jun 12:30:06.194 # Configuration loaded
12:30:06 redis_socketio.1 | 16060:M 30 Jun 12:30:06.195 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:30:06 redis_socketio.1 | 16060:M 30 Jun 12:30:06.195 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
12:30:06 redis_queue.1 | 16069:M 30 Jun 12:30:06.195 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:30:06 system | redis_socketio.1 stopped (rc=1)
12:30:06 system | sending SIGTERM to worker_long.1 (pid 16054)
12:30:06 system | sending SIGTERM to watch.1 (pid 16052)
12:30:06 system | sending SIGTERM to redis_queue.1 (pid 16055)
12:30:06 system | sending SIGTERM to web.1 (pid 16051)
12:30:06 system | sending SIGTERM to schedule.1 (pid 16064)
12:30:06 system | sending SIGTERM to worker_default.1 (pid 16056)
12:30:06 system | sending SIGTERM to socketio.1 (pid 16073)
12:30:06 system | sending SIGTERM to redis_cache.1 (pid 16066)
12:30:06 system | sending SIGTERM to worker_short.1 (pid 16074)
12:30:06 redis_cache.1 | 16071:M 30 Jun 12:30:06.199 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:30:06 redis_cache.1 | 16071:M 30 Jun 12:30:06.200 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
12:30:06 system | redis_cache.1 stopped (rc=1)
12:30:06 system | watch.1 stopped (rc=-15)
12:30:06 redis_queue.1 | 16069:M 30 Jun 12:30:06.204 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
12:30:06 system | redis_queue.1 stopped (rc=1)
12:30:06 system | worker_long.1 stopped (rc=-15)
12:30:06 system | socketio.1 stopped (rc=-15)
12:30:06 system | schedule.1 stopped (rc=-15)
12:30:06 system | worker_short.1 stopped (rc=-15)
12:30:06 system | worker_default.1 stopped (rc=-15)
12:30:06 system | web.1 stopped (rc=-15)
this is the log that shows
if you’re in develop then you may have to try run the setup a couple of times including rebooting the machine. Faced the same issue 24 hours ago and setup eventually completed after series of tries. Didn’t record the trace back though.
EDIT
you may need to check this though.
Try this… (as user erpnext)
cd ~/frappe-bench; sudo supervisorctl restart all
or
cd ~/frappe-bench; bench restart
I already did it but it doesn’t work
Me too. This is really frustrating, after tons of endeavour to install ERPNext.
Hello,
I am facing the same issue.
I redeploy using ‘install.py’ in a new OS, but still have the same issue.
Can somebody explain what is exactly the issue? @ERP_Implementer1 @ERPNext123 @erpnex_admin @erpnextdeveloper @erpnextdeveloper
Could you attached photo for the error !?
Hello,
After retry retry … retry this definitevely works.
Thanks for support
Same error after installing erpnext multi bench setup
/1.1" 200 -
127.0.0.1 - - [16/Nov/2022 12:35:57] "GET /socket.io/?EIO=4&transport=polling&t=OH_GZCf HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:00] "GET /socket.io/?EIO=4&transport=polling&t=OH_GZxk HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:04] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gb22 HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:06] "GET /socket.io/?EIO=4&transport=polling&t=OH_GbZU HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:14] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gcsj HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:14] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gd8M HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:22] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gf7j HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:22] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gf5k HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:30] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gh4U HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:30] "GET /socket.io/?EIO=4&transport=polling&t=OH_GhIh HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:36] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gin- HTTP/1.1" 404 -
127.0.0.1 - - [16/Nov/2022 12:36:38] "GET /socket.io/?EIO=4&transport=polling&t=OH_GjDs HTTP/1.1" 404 -
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
127.0.0.1 - - [16/Nov/2022 12:36:43] "GET /socket.io/?EIO=4&transport=polling&t=OH_GkSd HTTP/1.1" 404 -
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
127.0.0.1 - - [16/Nov/2022 12:36:45] "GET /socket.io/?EIO=4&transport=polling&t=OH_Gl5M HTTP/1.1" 404 -
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
Please make sure that Redis Queue runs @ redis://localhost:11001
Traceback (most recent call last):
File "env/lib/python3.10/site-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "env/lib/python3.10/site-packages/redis/connection.py", line 615, in _connect
raise err
File "env/lib/python3.10/site-packages/redis/connection.py", line 603, 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 "env/lib/python3.10/site-packages/tenacity/__init__.py", line 407, in __call__
result = fn(*args, **kwargs)
File "apps/frappe/frappe/utils/background_jobs.py", line 333, in get_redis_conn
redis_connection = RedisQueue.get_connection(**cred)
File "apps/frappe/frappe/utils/redis_queue.py", line 24, in get_connection
conn.ping()
File "env/lib/python3.10/site-packages/redis/client.py", line 1378, in ping
return self.execute_command('PING')
File "env/lib/python3.10/site-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "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:11001. Connection refused.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py", line 79, in process_setup_stages
task.get("fn")(task.get("args"))
File "apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py", line 64, in stage_four
company_setup.create_website(args)
File "apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.py", line 125, in create_website
website_maker(args)
File "apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.py", line 18, in __init__
self.make_blog()
File "apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.py", line 49, in make_blog
).insert()
File "apps/frappe/frappe/model/document.py", line 283, in insert
self.run_post_save_methods()
File "apps/frappe/frappe/model/document.py", line 1095, in run_post_save_methods
self.run_method("on_change")
File "apps/frappe/frappe/model/document.py", line 908, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1260, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1242, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 905, in fn
return method_object(*args, **kwargs)
File "apps/frappe/frappe/website/website_generator.py", line 90, in on_change
self.update_website_search_index()
File "apps/frappe/frappe/website/website_generator.py", line 177, in update_website_search_index
frappe.enqueue(update_index_for_path, path=self.route)
File "apps/frappe/frappe/__init__.py", line 2138, in enqueue
return frappe.utils.background_jobs.enqueue(*args, **kwargs)
File "apps/frappe/frappe/utils/background_jobs.py", line 90, in enqueue
q = get_queue(queue, is_async=is_async)
File "apps/frappe/frappe/utils/background_jobs.py", line 295, in get_queue
return Queue(generate_qname(qtype), connection=get_redis_conn(), is_async=is_async)
File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 324, in wrapped_f
return self(f, *args, **kw)
File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 404, in __call__
do = self.iter(retry_state=retry_state)
File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 361, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f99b39d7220 state=finished raised ConnectionError>]