Hi everyone,
I am new to ERPnext and tried to install / setup ERPnext v12 on a fresh VPS running Ubuntu 18.04 LTS 64bit, but wasn’t successful. I have tried basically everything I found in this forum as well as other problem solving approaches on the internet.
My VPS is hosted by strato.de and is using Virtuozzo as virtualizer. Since Virtuozzo is being used Easy Install Scripts as well as Docker don’t work (necessarily).
I have mainly used this guide: The Hitchhiker's Guide to Installing Frappe on Linux · frappe/frappe Wiki · GitHub
The first error occurs when using: bench init --frappe-branch version-12 --python /usr/bin/python3 frappe-bench
Building frappe assets…
events.js:291
throw er; // Unhandled ‘error’ event
^
Error: spawn /usr/bin/node EAGAIN
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:470:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted ‘error’ event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:470:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: ‘EAGAIN’,
code: ‘EAGAIN’,
syscall: ‘spawn /usr/bin/node’,
path: ‘/usr/bin/node’,
spawnargs: [
‘/home/roman/frappe-bench/apps/frappe/node_modules/jest-worker/build/workers/processChild.js’
]
}
→ I can avoid the error when using: bench init frappe-bench
→ But after succesful install → ls doesn’t show complete directory (in comparison to guide)
When I try to create a new site with:
bench new-site h2922090.stratoserver.net --db-host 81.169.223.219 --db-port 80
This happens:
MySQL root password:
Traceback (most recent call last):
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 583, in connect
**kwargs)
File “/usr/lib/python3.6/socket.py”, line 724, in create_connection
raise err
File “/usr/lib/python3.6/socket.py”, line 713, in create_connection
sock.connect(sa)
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/myuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/home/myuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/myuser/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/myuser/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/myuser/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/myuser/frappe-bench/apps/frappe/frappe/commands/site.py”, line 40, in new_site
db_port=db_port, new_site=True)
File “/home/myuser/frappe-bench/apps/frappe/frappe/installer.py”, line 72, in _new_site
no_mariadb_socket=no_mariadb_socket,
File “/home/myuser/frappe-bench/apps/frappe/frappe/installer.py”, line 106, in install_db
setup_database(force, source_sql, verbose, no_mariadb_socket)
File “/home/myuser/frappe-bench/apps/frappe/frappe/database/init.py”, line 16, in setup_database
return frappe.database.mariadb.setup_db.setup_database(force, source_sql, verbose, no_mariadb_socket=no_mariadb_socket)
File “/home/myuser/frappe-bench/apps/frappe/frappe/database/mariadb/setup_db.py”, line 39, in setup_database
if force or (db_name not in dbman.get_database_list()):
File “/home/myuser/frappe-bench/apps/frappe/frappe/database/db_manager.py”, line 60, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/myuser/frappe-bench/apps/frappe/frappe/database/database.py”, line 122, in sql
self.connect()
File “/home/myuser/frappe-bench/apps/frappe/frappe/database/database.py”, line 75, in connect
self._conn = self.get_connection()
File “/home/myuser/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 91, in get_connection
local_infile = frappe.conf.local_infile)
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/pymysql/init.py”, line 94, in Connect
return Connection(*args, **kwargs)
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 325, in init
self.connect()
File “/home/myuser/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 630, in connect
raise exc
pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘81.169.223.219’ ([Errno 111] Connection refused)”)
Any help appreciated! My goal is to have ERPnext running in production mode.