Hi, everyone,
Can someone share installation steps for erpnext, i wanted to install in ubuntu 22.4 downloaded from ms store or wsl .
Thanks
Hi, everyone,
Can someone share installation steps for erpnext, i wanted to install in ubuntu 22.4 downloaded from ms store or wsl .
Thanks
Hii @rs115199789
To install Ubuntu using WSL in Windows, refer to:
Next, launch Ubuntu and install ERPNext by following these steps:
Thanks will let you know after installation.
a quick question-
Do i need to do the ssh@192******** login before starting the installation process ?
if you are installing locally there is no need, but if you are trying to install on a specific server, ssh@192******** login is required.
@Manav_Mandli
ohh thanks for the information, i just wanted to install in my pc and then access it via visual code for learning purpose. so i guess i dont need to login right ?
Perfect, thanks will update here after installation.
@Manav_Mandli
I tried to update the ubuntu and upgrade but facing this error- darklord@Rahul-PC:~$ sudo apt-get update -y
sudo apt-get upgrade -y
[sudo] password for darklord:
Get:1 Index of /ubuntu jammy-security InRelease [110 kB]
Hit:2 Index of /ubuntu jammy InRelease
Get:3 Index of /ubuntu jammy-updates InRelease [119 kB]
Get:4 Index of /ubuntu jammy-backports InRelease [109 kB]
Get:5 Index of /ubuntu jammy-security/main amd64 Packages [1472 kB]
Get:6 Index of /ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:7 Index of /ubuntu jammy-security/main Translation-en [253 kB]
Get:8 Index of /ubuntu jammy/universe Translation-en [5652 kB]
Get:9 Index of /ubuntu jammy-security/restricted amd64 Packages [1876 kB]
Get:10 Index of /ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:11 Index of /ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:12 Index of /ubuntu jammy/multiverse Translation-en [112 kB]
Get:13 Index of /ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
Get:14 Index of /ubuntu jammy-updates/main amd64 Packages [1683 kB]
Get:15 Index of /ubuntu jammy-updates/main Translation-en [312 kB]
Get:16 Index of /ubuntu jammy-updates/restricted amd64 Packages [1933 kB]
Get:17 Index of /ubuntu jammy-updates/restricted Translation-en [328 kB]
Get:18 Index of /ubuntu jammy-updates/universe amd64 Packages [1075 kB]
Get:19 Index of /ubuntu jammy-updates/universe Translation-en [246 kB]
Get:20 Index of /ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]
Get:21 Index of /ubuntu jammy-updates/multiverse amd64 Packages [42.7 kB]
Get:22 Index of /ubuntu jammy-updates/multiverse Translation-en [10.4 kB]
Get:23 Index of /ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]
Get:24 Index of /ubuntu jammy-backports/main amd64 Packages [67.1 kB]
Get:25 Index of /ubuntu jammy-backports/main Translation-en [11.0 kB]
Get:26 Index of /ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:27 Index of /ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:28 Index of /ubuntu jammy-backports/universe amd64 Packages [27.2 kB]
Get:29 Index of /ubuntu jammy-backports/universe Translation-en [16.2 kB]
Get:30 Index of /ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]
Get:31 Index of /ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:32 Index of /ubuntu jammy-security/restricted Translation-en [318 kB]
Get:33 Index of /ubuntu jammy-security/universe amd64 Packages [853 kB]
Get:34 Index of /ubuntu jammy-security/universe Translation-en [164 kB]
Get:35 Index of /ubuntu jammy-security/universe amd64 c-n-f Metadata [16.8 kB]
Get:36 Index of /ubuntu jammy-security/multiverse amd64 Packages [37.2 kB]
Get:37 Index of /ubuntu jammy-security/multiverse Translation-en [7588 B]
Get:38 Index of /ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Fetched 31.5 MB in 15s (2168 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
ubuntu-advantage-tools ubuntu-pro-client-l10n
The following packages will be upgraded:
apt apt-utils base-files bash bind9-dnsutils bind9-host bind9-libs binutils binutils-common
binutils-x86-64-linux-gnu bsdextrautils bsdutils coreutils cpio curl distro-info distro-info-data dpkg
eject iptables irqbalance less libapt-pkg6.0 libbinutils libblkid1 libc-bin libc6 libcryptsetup12
libctf-nobfd0 libctf0 libcurl3-gnutls libcurl4 libexpat1 libglib2.0-0 libglib2.0-bin libglib2.0-data
libgnutls30 libip4tc2 libip6tc2 libldap-2.5-0 libldap-common libmount1 libnghttp2-14 libnss-systemd
libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libperl5.34 libpython3.10
libpython3.10-minimal libpython3.10-stdlib libsmartcols1 libsqlite3-0 libssh-4 libssl3 libsystemd0
libudev1 libuuid1 libuv1 libxml2 libxtables12 locales login motd-news-config mount openssh-client
openssl passwd perl perl-base perl-modules-5.34 python-apt-common python3-apt python3-cryptography
python3-distro-info python3-distupgrade python3-software-properties python3-update-manager python3.10
python3.10-minimal snapd software-properties-common systemd systemd-hwe-hwdb systemd-sysv
systemd-timesyncd tar tcpdump tzdata ubuntu-release-upgrader-core udev update-manager-core util-linux
uuid-runtime vim vim-common vim-runtime vim-tiny xxd
101 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 93.5 MB of archives.
After this operation, 1293 kB of additional disk space will be used.
Get:1 Index of /ubuntu jammy-updates/main amd64 motd-news-config all 12ubuntu4.6 [4352 B]
Get:2 Index of /ubuntu jammy-updates/main amd64 libc6 amd64 2.35-0ubuntu3.7 [3235 kB]
Get:3 Index of /ubuntu jammy-updates/main amd64 base-files amd64 12ubuntu4.6 [62.5 kB]
Get:4 Index of /ubuntu jammy-updates/main amd64 bash amd64 5.1-6ubuntu1.1 [769 kB]
Get:5 Index of /ubuntu jammy-updates/main amd64 bsdutils amd64 1:2.37.2-4ubuntu3.4 [80.9 kB]
Get:6 Index of /ubuntu jammy-updates/main amd64 coreutils amd64 8.32-4.1ubuntu1.2 [1437 kB]
Get:7 Index of /ubuntu jammy-updates/main amd64 libnss-systemd amd64 249.11-0ubuntu3.12 [133 kB]
Get:8 Index of /ubuntu jammy-updates/main amd64 libsystemd0 amd64 249.11-0ubuntu3.12 [319 kB]
Get:9 Index of /ubuntu jammy-updates/main amd64 systemd-timesyncd amd64 249.11-0ubuntu3.12 [31.2 kB]
Get:10 Index of /ubuntu jammy-updates/main amd64 systemd-sysv amd64 249.11-0ubuntu3.12 [10.5 kB]
Get:11 Index of /ubuntu jammy-updates/main amd64 libpam-systemd amd64 249.11-0ubuntu3.12 [203 kB]
Get:12 Index of /ubuntu jammy-updates/main amd64 systemd amd64 249.11-0ubuntu3.12 [4581 kB]
Get:13 Index of /ubuntu jammy-updates/main amd64 udev amd64 249.11-0ubuntu3.12 [1557 kB]
Get:14 Index of /ubuntu jammy-updates/main amd64 libudev1 amd64 249.11-0ubuntu3.12 [78.2 kB]
Get:15 Index of /ubuntu jammy-updates/main amd64 libblkid1 amd64 2.37.2-4ubuntu3.4 [103 kB]
Get:16 Index of /ubuntu jammy-updates/main amd64 login amd64 1:4.8.1-2ubuntu2.2 [188 kB]
Get:17 Index of /ubuntu jammy-updates/main amd64 util-linux amd64 2.37.2-4ubuntu3.4 [1063 kB]
Get:18 Index of /ubuntu jammy-updates/main amd64 libpam0g amd64 1.4.0-11ubuntu2.4 [60.2 kB]
Get:19 Index of /ubuntu jammy-updates/main amd64 libpam-modules-bin amd64 1.4.0-11ubuntu2.4 [37.6 kB]
Get:20 Index of /ubuntu jammy-updates/main amd64 libpam-modules amd64 1.4.0-11ubuntu2.4 [280 kB]
Get:21 Index of /ubuntu jammy-updates/main amd64 libpam-runtime all 1.4.0-11ubuntu2.4 [40.3 kB]
Get:22 Index of /ubuntu jammy-updates/main amd64 libssl3 amd64 3.0.2-0ubuntu1.15 [1905 kB]
Get:23 Index of /ubuntu jammy-updates/main amd64 libuuid1 amd64 2.37.2-4ubuntu3.4 [23.8 kB]
Get:24 Index of /ubuntu jammy-updates/main amd64 libcryptsetup12 amd64 2:2.4.3-1ubuntu1.2 [211 kB]
Get:25 Index of /ubuntu jammy-updates/main amd64 libgnutls30 amd64 3.7.3-4ubuntu1.5 [966 kB]
Get:26 Index of /ubuntu jammy-updates/main amd64 libxtables12 amd64 1.8.7-1ubuntu5.2 [31.3 kB]
Get:27 Index of /ubuntu jammy-updates/main amd64 iptables amd64 1.8.7-1ubuntu5.2 [455 kB]
Get:28 Index of /ubuntu jammy-updates/main amd64 libip6tc2 amd64 1.8.7-1ubuntu5.2 [20.3 kB]
Get:29 Index of /ubuntu jammy-updates/main amd64 libip4tc2 amd64 1.8.7-1ubuntu5.2 [19.9 kB]
Get:30 Index of /ubuntu jammy-updates/main amd64 libmount1 amd64 2.37.2-4ubuntu3.4 [122 kB]
Get:31 Index of /ubuntu jammy-updates/main amd64 mount amd64 2.37.2-4ubuntu3.4 [114 kB]
Get:32 Index of /ubuntu jammy-updates/main amd64 libapt-pkg6.0 amd64 2.4.12 [912 kB]
Get:33 Index of /ubuntu jammy-updates/main amd64 tar amd64 1.34+dfsg-1ubuntu0.1.22.04.2 [295 kB]
Get:34 Index of /ubuntu jammy-updates/main amd64 dpkg amd64 1.21.1ubuntu2.3 [1239 kB]
Get:35 Index of /ubuntu jammy-updates/main amd64 libperl5.34 amd64 5.34.0-3ubuntu1.3 [4820 kB]
Get:36 Index of /ubuntu jammy-updates/main amd64 perl amd64 5.34.0-3ubuntu1.3 [232 kB]
Get:37 Index of /ubuntu jammy-updates/main amd64 perl-base amd64 5.34.0-3ubuntu1.3 [1762 kB]
Get:38 Index of /ubuntu jammy-updates/main amd64 perl-modules-5.34 all 5.34.0-3ubuntu1.3 [2976 kB]
Get:39 Index of /ubuntu jammy-updates/main amd64 libc-bin amd64 2.35-0ubuntu3.7 [706 kB]
Err:40 Index of /ubuntu jammy-updates/main amd64 apt amd64 2.4.12
400 Bad Request [IP: 91.189.91.82 80]
Get:41 Index of /ubuntu jammy-updates/main amd64 apt-utils amd64 2.4.12 [211 kB]
Get:42 Index of /ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.3 [91.0 kB]
Get:43 Index of /ubuntu jammy-updates/main amd64 libpython3.10 amd64 3.10.12-1~22.04.3 [1948 kB]
Get:44 Index of /ubuntu jammy-updates/main amd64 python3.10 amd64 3.10.12-1~22.04.3 [508 kB]
Get:45 Index of /ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.12-1~22.04.3 [1848 kB]
Get:46 Index of /ubuntu jammy-updates/main amd64 python3.10-minimal amd64 3.10.12-1~22.04.3 [2242 kB]
Get:47 Index of /ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.12-1~22.04.3 [812 kB]
Get:48 Index of /ubuntu jammy-updates/main amd64 libsqlite3-0 amd64 3.37.2-2ubuntu0.3 [641 kB]
Get:49 Index of /ubuntu jammy-updates/main amd64 libglib2.0-data all 2.72.4-0ubuntu2.3 [4666 B]
Get:50 Index of /ubuntu jammy-updates/main amd64 libglib2.0-bin amd64 2.72.4-0ubuntu2.3 [80.8 kB]
Get:51 Index of /ubuntu jammy-updates/main amd64 libglib2.0-0 amd64 2.72.4-0ubuntu2.3 [1466 kB]
Get:52 Index of /ubuntu jammy-updates/main amd64 irqbalance amd64 1.8.0-1ubuntu0.2 [47.2 kB]
Get:53 Index of /ubuntu jammy-updates/main amd64 libsmartcols1 amd64 2.37.2-4ubuntu3.4 [50.9 kB]
Get:54 Index of /ubuntu jammy-updates/main amd64 uuid-runtime amd64 2.37.2-4ubuntu3.4 [32.0 kB]
Get:55 Index of /ubuntu jammy-updates/main amd64 passwd amd64 1:4.8.1-2ubuntu2.2 [768 kB]
Get:56 Index of /ubuntu jammy-updates/main amd64 distro-info-data all 0.52ubuntu0.7 [5326 B]
Get:57 Index of /ubuntu jammy-updates/main amd64 distro-info amd64 1.1ubuntu0.2 [18.7 kB]
Get:58 Index of /ubuntu jammy-updates/main amd64 eject amd64 2.37.2-4ubuntu3.4 [26.8 kB]
Get:59 Index of /ubuntu jammy-updates/main amd64 less amd64 590-1ubuntu0.22.04.3 [142 kB]
Get:60 Index of /ubuntu jammy-updates/main amd64 libxml2 amd64 2.9.13+dfsg-1ubuntu0.4 [763 kB]
Get:61 Index of /ubuntu jammy-updates/main amd64 locales all 2.35-0ubuntu3.7 [4249 kB]
Get:62 Index of /ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.15 [1186 kB]
Get:63 Index of /ubuntu jammy-updates/main amd64 python-apt-common all 2.4.0ubuntu3 [14.6 kB]
Get:64 Index of /ubuntu jammy-updates/main amd64 python3-apt amd64 2.4.0ubuntu3 [164 kB]
Get:65 Index of /ubuntu jammy-updates/main amd64 tzdata all 2024a-0ubuntu0.22.04 [348 kB]
Get:66 Index of /ubuntu jammy-updates/main amd64 vim amd64 2:8.2.3995-1ubuntu2.16 [1736 kB]
Ign:67 Index of /ubuntu jammy-updates/main amd64 vim-tiny amd64 2:8.2.3995-1ubuntu2.16
Get:68 Index of /ubuntu jammy-updates/main amd64 vim-runtime all 2:8.2.3995-1ubuntu2.16 [6835 kB]
Get:67 Index of /ubuntu jammy-updates/main amd64 vim-tiny amd64 2:8.2.3995-1ubuntu2.16 [710 kB]
Get:69 Index of /ubuntu jammy-updates/main amd64 xxd amd64 2:8.2.3995-1ubuntu2.16 [55.0 kB]
Get:70 Index of /ubuntu jammy-updates/main amd64 vim-common all 2:8.2.3995-1ubuntu2.16 [81.5 kB]
Get:71 Index of /ubuntu jammy-updates/main amd64 libnghttp2-14 amd64 1.43.0-1ubuntu0.2 [76.9 kB]
Get:72 Index of /ubuntu jammy-updates/main amd64 libuv1 amd64 1.43.0-1ubuntu0.1 [92.7 kB]
Get:73 Index of /ubuntu jammy-updates/main amd64 bind9-dnsutils amd64 1:9.18.18-0ubuntu0.22.04.2 [157 kB]
Get:74 Index of /ubuntu jammy-updates/main amd64 bind9-host amd64 1:9.18.18-0ubuntu0.22.04.2 [52.5 kB]
Get:75 Index of /ubuntu jammy-updates/main amd64 bind9-libs amd64 1:9.18.18-0ubuntu0.22.04.2 [1245 kB]
Get:76 Index of /ubuntu jammy-updates/main amd64 bsdextrautils amd64 2.37.2-4ubuntu3.4 [71.4 kB]
Get:77 Index of /ubuntu jammy-updates/main amd64 cpio amd64 2.13+dfsg-7ubuntu0.1 [84.5 kB]
Get:78 Index of /ubuntu jammy-updates/main amd64 openssh-client amd64 1:8.9p1-3ubuntu0.7 [906 kB]
Get:79 Index of /ubuntu jammy-updates/main amd64 python3-distro-info all 1.1ubuntu0.2 [6554 B]
Get:80 Index of /ubuntu jammy-updates/main amd64 ubuntu-release-upgrader-core all 1:22.04.19 [26.2 kB]
Get:81 Index of /ubuntu jammy-updates/main amd64 python3-distupgrade all 1:22.04.19 [106 kB]
Get:82 Index of /ubuntu jammy-updates/main amd64 python3-update-manager all 1:22.04.20 [39.1 kB]
Get:83 Index of /ubuntu jammy-updates/main amd64 update-manager-core all 1:22.04.20 [11.5 kB]
Get:84 Index of /ubuntu jammy-updates/main amd64 tcpdump amd64 4.99.1-3ubuntu0.2 [501 kB]
Get:85 Index of /ubuntu jammy-updates/main amd64 libctf0 amd64 2.38-4ubuntu2.6 [103 kB]
Get:86 Index of /ubuntu jammy-updates/main amd64 libctf-nobfd0 amd64 2.38-4ubuntu2.6 [108 kB]
Get:87 Index of /ubuntu jammy-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.38-4ubuntu2.6 [2326 kB]
Get:88 Index of /ubuntu jammy-updates/main amd64 libbinutils amd64 2.38-4ubuntu2.6 [662 kB]
Get:89 Index of /ubuntu jammy-updates/main amd64 binutils amd64 2.38-4ubuntu2.6 [3200 B]
Get:90 Index of /ubuntu jammy-updates/main amd64 binutils-common amd64 2.38-4ubuntu2.6 [222 kB]
Get:91 Index of /ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.17+dfsg-0ubuntu0.22.04.1 [183 kB]
Get:92 Index of /ubuntu jammy-updates/main amd64 libssh-4 amd64 0.9.6-2ubuntu0.22.04.3 [186 kB]
Get:93 Index of /ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.16 [194 kB]
Get:94 Index of /ubuntu jammy-updates/main amd64 libcurl4 amd64 7.81.0-1ubuntu1.16 [290 kB]
Get:95 Index of /ubuntu jammy-updates/main amd64 libcurl3-gnutls amd64 7.81.0-1ubuntu1.16 [284 kB]
Get:96 Index of /ubuntu jammy-updates/main amd64 libldap-common all 2.5.17+dfsg-0ubuntu0.22.04.1 [15.8 kB]
Get:97 Index of /ubuntu jammy-updates/main amd64 python3-cryptography amd64 3.4.8-1ubuntu2.2 [236 kB]
Get:98 Index of /ubuntu jammy-updates/main amd64 software-properties-common all 0.99.22.9 [14.1 kB]
Get:99 Index of /ubuntu jammy-updates/main amd64 python3-software-properties all 0.99.22.9 [28.8 kB]
Get:100 Index of /ubuntu jammy-updates/main amd64 snapd amd64 2.62+22.04 [25.8 MB]
Get:101 Index of /ubuntu jammy-updates/main amd64 systemd-hwe-hwdb all 249.11.5 [3228 B]
Fetched 92.2 MB in 1min 21s (1135 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt_2.4.12_amd64.deb 400 Bad Request [IP: 91.189.91.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
darklord@Rahul-PC:~$
even yesterday i was facing the same and then uninstalled it .
do you know whta’s this ?
sudo apt-get clean
sudo apt-get update --fix-missing
sudo apt-get upgrade -y
I hope it works for you
working thank you
@Manav_Mandli Error while installing mysql
darklord@Rahul-PC:~$ sudo mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we’ll need the current
password for the root user. If you’ve just installed MariaDB, and
haven’t set the root password yet, you should just press enter here.
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can’t connect to local server through socket ‘/run/mysqld/mysqld.sock’ (2)
Please help
encounter this issue try this commands:
sudo apt update
sudo apt install mariadb-server
sudo mysql_secure_installation
sudo systemctl start mariadb
sudo systemctl enable mariadb
in the last check mariadb status using:
sudo systemctl status mariadb
brother again error- darklord@Rahul-PC:~$ sudo systemctl start mariadb
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to connect to bus: Host is down
darklord@Rahul-PC:~$
wsl --update
sudo nano /etc/wsl.conf
[boot]
systemd=true
then shutdown all wsl and again start ,i hope it’s works
thanks
@Manav_Mandli everything is working now but bench start is not working when i try to access the site after bench start it says 404 not found then i tried to setup production, but get error after entering command
sudo bench start production darklord
ERROR: bench setup role fail2ban
Please refer this:
New error
darklord@Rahul-PC:~/frappe-bench$ sudo bench setup production darklord
Setting Up prerequisites…
$ bench setup role nginx
ansible-playbook [core 2.16.7]
config file = None
configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible-playbook
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.1.4
libyaml = True
No config file found; using defaults
setting up inventory plugins
Loading collection ansible.builtin from
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Skipping due to inventory source not existing or not being readable by the current user
toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
[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’
ERROR! [DEPRECATED]: ansible.builtin.include has been removed. Use include_tasks or import_tasks instead. This feature was removed from ansible-core in a release after 2023-05-16. Please update your playbooks.
The error appears to be in ‘/usr/local/lib/python3.10/dist-packages/bench/playbooks/roles/mariadb/tasks/main.yml’: line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/bench/commands/setup.py”, line 110, in setup_production
setup_production(user=user, yes=yes)
File “/usr/local/lib/python3.10/dist-packages/bench/config/production_setup.py”, line 37, in setup_production
setup_production_prerequisites()
File “/usr/local/lib/python3.10/dist-packages/bench/config/production_setup.py”, line 30, in setup_production_prerequisites
exec_cmd(“bench setup role nginx”)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 178, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench setup role nginx