Hello Everyone
Am using AWS EC2 Instance and Ubuntu 16.04.7 LTS operating system and when I am installing frappe with Easy Install Script
when run script $ python3 install.py --production
pip3 installed.
after am getting this errors
Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/usr/local/lib/python3.5/dist-packages/pip/main.py”, line 29, in
from pip._internal.cli.main import main as _main
File “/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/main.py”, line 57
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File “install.py”, line 492, in
install_prerequisites()
File “install.py”, line 179, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools wheel cryptography ansible~=2.8.15”
File “install.py”, line 143, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.5/subprocess.py”, line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo -H python3 -m pip install --upgrade setuptools wheel cryptography ansible~=2.8.15’ returned non-zero exit status 1
Ok this looks like package dependency issue. Maybe you should use Ubuntu 18.04 or 20.04 as I think 16.04 may not have the package versions required to run ERPNext V13. I just did a fresh install on EC2 using Ubuntu 20.04 and the install script and faced no errors.
you have to install docker first. google it
pull a docker image , (I can provide you with my own erpnext image) with command docker pull “image” .
run the image using : docker run -d --restart always --name=any_name -p 80:8000 -p 9000:9000 image_name
after that your app will be hosted with port 80 (you can change it on the run command).
to open app container use : docker exec -it container_id bash
Hi,
I am getting the below error… please suggest a solution.
frappe@v13-new:~$ sudo python3 install.py --production --user frappe
[sudo] password for frappe:
Logs are saved under /tmp/logs/easy-install__2021-12-29__09-36.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: 12. Virtual Environments and Packages — Python 3.11.1 documentation
/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: 12. Virtual Environments and Packages — Python 3.11.1 documentation
pip3 already installed!
Checking System Compatibility…
ubuntu 18 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-13
ERPNext Branch: version-13
[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’
[WARNING]: Consider using the get_url or uri module rather than running ‘curl’. If you need to use command because get_url or uri is
insufficient you can add ‘warn: false’ to this command task or set ‘command_warnings=False’ in ansible.cfg to get rid of this
message.
[DEPRECATION WARNING]: evaluating [] as a bare variable, this behaviour will go away and you might need to add |bool to the
expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle… This feature will be removed in version 2.12.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: Consider using the file module with owner rather than running ‘chown’. If you need to use command because file is
insufficient you can add ‘warn: false’ to this command task or set ‘command_warnings=False’ in ansible.cfg to get rid of this
message.
Traceback (most recent call last):
File “install.py”, line 497, in
install_bench(args)
File “install.py”, line 278, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 413, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.6/subprocess.py”, line 311, 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.
frappe@v13-new:~$