Sorry, I realize the title of my post displays my frustration but…I’m pulling my hair out here.
I’m on a local box (2.6 Ghz 8 cores, 16 Gb RAM) with Ubuntu 20.04, Maria, PHP 7.4, Nginx all working properly.
The install script does not work…but oddly I have somehow managed to get Bench installed.
bench --version gives me - 5.5.5-dev
Redis is also installed - redis-server gives me version+5.0.7
But it also tells me it cannot create a server TCP listening socket (message pasted below)
39106:C 08 Jul 2021 14:05:31.307 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
39106:C 08 Jul 2021 14:05:31.307 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=39106, just started
39106:C 08 Jul 2021 14:05:31.307 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
39106:M 08 Jul 2021 14:05:31.309 * Increased maximum number of open files to 10032 (it was originally set to 1024).
39106:M 08 Jul 2021 14:05:31.309 # Could not create server TCP listening socket *:6379: bind: Address already in use
Maybe that’s why it starts and then shuts down each time I run - bench start…?
I ran bench update and after a long delay and tons of verbose output (and some excitement as it looked like I was making progress) I’m basically in the same boat. Same error when trying to start bench (redis start and then stop).
I’m left to start wondering if it’s really possible to install ERPNext on Ubuntu 20.04…?
Jason
P.S. When I run “sudo python3 install.py --production” I get the following. Every other time I’ve run the install script it has always ended with the last lines that begin with “Traceback”
Logs are saved under /tmp/logs/easy-install__2021-07-08__05-26.log
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
pip3 already installed!
Checking System Compatibility...
ubuntu 20 is compatible!
Not cloning already existing Bench repository at /tmp/.bench
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not
match 'all'
Input MySQL and Frappe Administrator passwords:
Passwords saved at ~/passwords.txt
Initializing bench frappe-bench:
Frappe Branch: version-12
ERPNext Branch: version-12
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not
match 'all'
Traceback (most recent call last):
File "install.py", line 500, in <module>
install_bench(args)
File "install.py", line 281, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 416, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2.