Code Monkey home page Code Monkey logo

erpnext_quick_install's Introduction

Unattended Install Script for ERPNext

Unattended script for ERPNext installation (Supports Versions 13, 14 and 15).

This is a no-interactive script for installing ERPNext Versions 13, 14 and 15. You can set up either development or production with very minimal interaction.

How To:

To use this script, follow these steps:

Before Installation

Make sure you install the latest package versions by updating system packages if you are running this script on a fresh Ubuntu machine.

sudo apt update && sudo apt -y upgrade

and then reboot your machine

Important!

Do not run this script as root as it will fail when setting up the site. If your VPS default user is root, create a non-root user by following these steps:

  1. Create a new user (you can change frappeuser to your preferred user name):
sudo adduser frappeuser
Full Name []: frappeuser
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y]
  1. Add the user to sudoers:
usermod -aG sudo frappeuser
  1. Switch to created user:
su frappeuser
  1. Ensure you're on created user's home directory:
cd /home/frappeuser
  1. Continue with the next steps below.

Installation:

  1. Clone the Repo:
git clone https://github.com/flexcomng/erpnext_quick_install.git
  1. navigate to the folder:
cd erpnext_quick_install
  1. Make the script executable
chmod +x erpnext_install.sh
  1. Run the script:
source erpnext_install.sh

Compatibility

Ubuntu 24.04 LTS, Ubuntu 23.04 LTS, Ubuntu 22.04 LTS, Ubuntu 20.04 LTS

Debian 10 (Buster), Debian 11 (Bulls Eye) Debian 12 (Bookworm)

NOTE:

Version 15 Compatibility is set to Ubuntu 22.04 LTS and above and Debian 12 only. Lower versions are not supported for version 15 installation due to dependency issues. Visit https://github.com/gavindsouza/awesome-frappe to learn about other apps you can install.

If you encounter spawn error on socketio when running bench restart, run the following commands:

bench setup socketio
bench setup supervisor
bench setup redis
sudo supervisorctl reload

This will fix the spawn error and all services will restart successfully.

erpnext_quick_install's People

Contributors

flexcomng avatar flexy2ky avatar hsrai avatar thatoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

erpnext_quick_install's Issues

V13 & Assets / Js not found

The V13 script edit is required and on processing the quick install the assets and js files missing in the login page and unable to login with the Administrator username and created password during the script execution.

What if mariadb not accept my.cnf

Make the necessary changes to the MariaDB configuration files.

vi /etc/mysql/mariadb.conf.d/50-server.cnf

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation_server = utf8mb4_unicode_ci
And also comment out the following.

#character-set-server = utf8mb4
#collation-server = utf8mb4_general_ci

vi /etc/mysql/mariadb.conf.d/50-client.cnf

[client]
default-character-set = utf8mb4
Restart MariaDB to apply the modifications.

systemctl restart mariadb

SSL error

It generates this:
You should register before running non-interactively, or provide --agree-tos and --email <email_address> flags.

You may want to add "--agree-tos" flag in an appropriate location.

Complete log:
Would you like to install SSL? (yes/no)
Response: yes
Make sure your domain name is pointed to the IP of this instance and is reachable before your proceed.
Enter your email address: [email protected]
Installing Certbot...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
snapd is already the newest version (2.58+22.04.1).
snapd set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
core 16-2.61.1 from Canonical✓ installed
snap "core" has no updates available
certbot 2.9.0 from Certbot Project (certbot-eff✓) installed
Obtaining and installing SSL certificate...
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: $ sudo systemctl stop nginx
$ /usr/bin/certbot -n --config /etc/letsencrypt/configs/testogoz.logedo.com.cfg certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
You should register before running non-interactively, or provide --agree-tos and --email <email_address> flags.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
$ sudo systemctl start nginx
There was a problem trying to setup SSL for your site
Setting Up cron job to Renew lets-encrypt every month
SSL certificate installed successfully.

Congratulations! You have successfully installed ERPNext Version 14.
You can start using your new ERPNext installation by visiting https://testogoz.logedo.com
(if you have enabled SSL and used a Fully Qualified Domain Name
during installation) or http://10.80.99.15 to begin.
Install additional apps as required. Visit https://docs.erpnext.com for Documentation.
Enjoy using ERPNext!

Proxmox Container with Ubuntu 22.04 LTS image - No website appears on installation completion

Hi, Is this script still actively maintained?

I wonder if there is any active preparation necessary to make it work.... (Other than
$> apt update && apt upgrade. )

For example:

  • Is it okay to run the script as root ? Perhaps I should create a user like "erpnext" first, and run install.sh from there ?
  • Should I be pre-installing LEMP or LAMP features? I notice that, once completed, there is NO listed Webserver like NGINX or Apache in the list of installed ... for example if I type:
    $> systemctl
    No webserver appears either installed OR active in the list!

frappe: ERROR (no such group)

yarn run v1.22.22
$ node esbuild --production --apps erpnext --run-build-command
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
File Size

erpnext/dist/js/
├─ bank-reconciliation-tool.bundle.ALGDCWUD.js 17.17 Kb
├─ erpnext-web.bundle.J4A2DQB4.js 0.29 Kb
├─ erpnext.bundle.URHHQOIR.js 219.22 Kb
├─ item-dashboard.bundle.4SC3ZMD4.js 10.24 Kb
├─ point-of-sale.bundle.CAHAJRAW.js 92.61 Kb
└─ bom_configurator.bundle.D2UVDA3I.js 8.63 Kb

erpnext/dist/css/
├─ erpnext-web.bundle.FYOSXMT6.css 2.86 Kb
├─ erpnext.bundle.CP5ORPFC.css 44.14 Kb
└─ erpnext_email.bundle.IBT5S2AJ.css 0.56 Kb

erpnext/dist/css-rtl/
├─ erpnext-web.bundle.LEPVNSWL.css 2.87 Kb
├─ erpnext.bundle.B2TKEDAR.css 44.13 Kb
└─ erpnext_email.bundle.G4EBAOJW.css 0.56 Kb

DONE Total Build Time: 6.301s

WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
Done in 10.91s.
Compiling translations for erpnext
$ sudo supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
WARN: restarting supervisor group frappe: failed. Use bench restart to retry.

Error on V14

Thank you for the amazing script to easy install.

I tried it for v14 and it errors out when doing bench restart.

bench restart
$ supervisorctl restart frappe-bench-web:
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: ERROR (spawn error)
frappe-bench-web:frappe-bench-node-socketio: started
ERROR: supervisorctl restart frappe-bench-web:
subprocess.CalledProcessError: Command 'supervisorctl restart frappe-bench-web:' returned non-zero exit status 7.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/frappev14/.local/bin/bench", line 8, in <module>
    sys.exit(cli())
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/cli.py", line 132, in cli
    bench_command()
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/commands/utils.py", line 41, in restart
    Bench(".").reload(web, supervisor, systemd)
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/bench.py", line 152, in reload
    restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/utils/bench.py", line 342, in restart_supervisor_processes
    failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/bench.py", line 48, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
  File "/home/frappev14/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 169, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: supervisorctl restart frappe-bench-web:

This does not get resolved even when I do almost everything mentioned on forum.

23  git clone https://github.com/flexcomng/erpnext_quick_install.git
   24  cd erpnext_quick_install/
   25  sudo chmod +x erpnext_install.sh
   26  source erpnext_install.sh
   27  bench setup socketio
   28  bench setup supervisor
   29  bench setup redis
   30  sudo supervisorctl reload
   31  bench restart
   32  sudo bench restart
   33  sudo reboot now
   34  cd frappe-bench/
   35  sudo service supervisor stop
   36  sudo service supervisor start
   37  bench restart
   38  bench start
   39  sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe-bench.conf
   40  bench setup supervisor
   41  sudo vim /etc/supervisor/supervisord.conf
   42  sudo bench setup production frappev14
   43  sudo supervisorctl restart all
   44  bench restart
   45  python --version
   46  python -V
   47  python --V
   48  python
   49  python3
   50  ls -la env/bin/python3
   51  sudo apt purge python3.12
   52  killall -9 node
   53  supervisorctl restart all
   54  bench restart
   55  bench doctor
   56  bench update --requirements
   57  bench setup redis
   58  bench setup socketio
   59  bench retry-upgrade
   60  sudo service nginx restart
   61  sudo supervisorctl reload
   62  bench restart
   63  sudo bench setup production frappev14
   64  bench restart
   65  bench setup socketio
   66  bench setup supervisor
   67  bench setup redis
   68  sudo supervisorctl reload
   69  sudo systemctl enable socketio --now
   70  sudo systemctl enable sockeio --now
   71  sudo systemctl start socketio --now
   72  sudo systemctl status *
   73  sudo systemctl status supervisor 
   74  sudo systemctl start supervisor  --now
   75  sudo systemctl restart supervisor  --now
   76  bench restart
   77  sudo supervisorctl restart all
   78  sudo systemctl status redis
   79  sudo systemctl restart redis --now
   80  sudo systemctl restart socketio --now
   81  sudo systemctl restart supervisorctl --now
   82  sudo systemctl restart supervisor --now
   83  bench restart --web --supervisor
   84  sudo nano /etc/supervisor/supervisord.conf
   85  bench setup supervisor
   86  sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe-bench.conf
   87  sudo rm -rf /etc/supervisor/conf.d/frappe-bench.conf 
   88  sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe-bench.conf
   89  sudo service supervisorctl reload
   90  sudo service supervisor reload
   91  bench restart

Whole command list history attached above. I will try to search more and if I find a solution then I will share it here and on forum.

UDPATE: Found the issue. It was cpu instruction causing core dump.

19:50:14 web.1 | Illegal instruction (core dumped)

Command "expect" was not find

Something went wrong during the install. I couldn't type my password when requested to install expect.
Why not installing it in the requirement?

Preparing for Production installation. This could take a minute... or two so please be patient.
Enter the site name (If you wish to install SSL later, please enter a FQDN): erpnext.local
Enter the Administrator password: 
Confirm password: 
Password confirmed

[sudo] Mot de passe de thatoo : moDésolé, essayez de nouveau.
[sudo] Mot de passe de thatoo : 
sudo: no password was provided
sudo: 1 saisie de mot de passe incorrecte
Now setting up your site. This might take a few minutes. Please wait...
xxxx[sudo] Mot de passe de thatoo : 
La commande « expect » n'a pas été trouvée, mais peut être installée avec :
sudo snap install expect  # version 5.45-7snap0, or
sudo apt  install expect  # version 5.45.4-2build1
Voir « snap info expect » pour des versions additionelles.

Would you like to continue with production install? (yes/no)

Installer exits after entering Administrator password

I've just come across this fine script. I noticed an issue trying to use this in Ubuntu and Debian; at the point where you insert the admin user passwords; the script causes Putty to exit immediately with no warnings. There are no error messages but it happens after you enter the site name and admin password.

Install folder

Hello,

Is it possible to add an option to choose where we want to install the app folder?

I guess something like :

321 echo -e "${YELLOW}Initialising bench in app folder.${NC}" 
322 read -p "Where do you want to install the app? PLease write an absolute path: " folder_app
323 mkdir -p $folder_app
324 sudo chmod -R o+rx $folder_app
323 echo -e "${LIGHT_BLUE}If you get a restart failed, don't worry, we will resolve that later.${NC}"
324 bench init $folder_app --version $bench_version --verbose --install-app erpnext --version $bench_version
325 echo -e "${GREEN}Bench installation complete!${NC}"
326 sleep 1

Installation issue in WSL 2 Ubuntu 22.04

Now we'll go ahead to apply MariaDB security settings...
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
...And add some settings to /etc/mysql/my.cnf:
mysql: unrecognized service
MariaDB settings done!

issue running ERP v14 Development Enviromment

nic@homelab:~/frappe-bench$ bench start
07:57:46 system | redis_cache.1 started (pid=8955)
07:57:46 system | redis_queue.1 started (pid=8959)
07:57:46 redis_cache.1 | 8957:C 23 Apr 2024 07:57:46.011 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
07:57:46 redis_cache.1 | 8957:C 23 Apr 2024 07:57:46.011 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=8957, just started
07:57:46 redis_cache.1 | 8957:C 23 Apr 2024 07:57:46.011 # Configuration loaded
07:57:46 redis_cache.1 | 8957:M 23 Apr 2024 07:57:46.012 * Increased maximum number of open files to 10032 (it was originally set to 1024).
07:57:46 redis_cache.1 | 8957:M 23 Apr 2024 07:57:46.014 * Running mode=standalone, port=13000.
07:57:46 redis_cache.1 | 8957:M 23 Apr 2024 07:57:46.014 # Server initialized
07:57:46 redis_cache.1 | 8957:M 23 Apr 2024 07:57:46.014 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
07:57:46 redis_cache.1 | 8957:M 23 Apr 2024 07:57:46.015 * Ready to accept connections
07:57:46 system | socketio.1 started (pid=8967)
07:57:46 system | web.1 started (pid=8965)
07:57:46 redis_queue.1 | 8963:C 23 Apr 2024 07:57:46.020 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
07:57:46 redis_queue.1 | 8963:C 23 Apr 2024 07:57:46.021 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=8963, just started
07:57:46 redis_queue.1 | 8963:C 23 Apr 2024 07:57:46.021 # Configuration loaded
07:57:46 redis_queue.1 | 8963:M 23 Apr 2024 07:57:46.022 * Increased maximum number of open files to 10032 (it was originally set to 1024).
07:57:46 redis_queue.1 | 8963:M 23 Apr 2024 07:57:46.024 * Running mode=standalone, port=11000.
07:57:46 redis_queue.1 | 8963:M 23 Apr 2024 07:57:46.024 # Server initialized
07:57:46 redis_queue.1 | 8963:M 23 Apr 2024 07:57:46.024 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
07:57:46 redis_queue.1 | 8963:M 23 Apr 2024 07:57:46.025 * Ready to accept connections
07:57:46 system | schedule.1 started (pid=8976)
07:57:46 system | worker.1 started (pid=8977)
07:57:46 system | watch.1 started (pid=8990)
07:57:46 watch.1 |
07:57:47 watch.1 | yarn run v1.22.22
07:57:47 watch.1 | $ node esbuild --watch --live-reload
07:57:48 web.1 | Illegal instruction (core dumped)
07:57:48 system | web.1 stopped (rc=132)
07:57:48 system | sending SIGTERM to redis_cache.1 (pid 8955)
07:57:48 system | sending SIGTERM to redis_queue.1 (pid 8959)
07:57:48 system | sending SIGTERM to socketio.1 (pid 8967)
07:57:48 system | sending SIGTERM to watch.1 (pid 8990)
07:57:48 system | sending SIGTERM to schedule.1 (pid 8976)
07:57:48 system | sending SIGTERM to worker.1 (pid 8977)
07:57:48 redis_cache.1 | 8957:signal-handler (1713859068) Received SIGTERM scheduling shutdown...
07:57:48 redis_queue.1 | 8963:signal-handler (1713859068) Received SIGTERM scheduling shutdown...
07:57:48 system | worker.1 stopped (rc=-15)
07:57:48 system | schedule.1 stopped (rc=-15)
07:57:48 system | socketio.1 stopped (rc=-15)
07:57:48 redis_cache.1 | 8957:M 23 Apr 2024 07:57:48.421 # User requested shutdown...
07:57:48 redis_cache.1 | 8957:M 23 Apr 2024 07:57:48.421 * Removing the pid file.
07:57:48 redis_cache.1 | 8957:M 23 Apr 2024 07:57:48.421 # Redis is now ready to exit, bye bye...
07:57:48 system | redis_cache.1 stopped (rc=-15)
07:57:48 system | watch.1 stopped (rc=-15)
07:57:48 redis_queue.1 | 8963:M 23 Apr 2024 07:57:48.431 # User requested shutdown...
07:57:48 redis_queue.1 | 8963:M 23 Apr 2024 07:57:48.431 * Removing the pid file.
07:57:48 redis_queue.1 | 8963:M 23 Apr 2024 07:57:48.432 # Redis is now ready to exit, bye bye...
07:57:48 system | redis_queue.1 stopped (rc=-15)

and the error from worker.error.log:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/nic/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 3718, in run
pubsub.get_message(ignore_subscribe_messages=True,
File "/home/nic/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 3617, in get_message
response = self.parse_response(block=False, timeout=timeout)
File "/home/nic/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 3503, in parse_response
if not block and not conn.can_read(timeout=timeout):
File "/home/nic/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 734, in can_read
return self._parser.can_read(timeout)
File "/home/nic/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 416, in can_read
return self.read_from_socket(timeout=timeout,
File "/home/nic/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 429, in read_from_socket
raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
redis.exceptions.ConnectionError: Connection closed by server.

this is on fresh ubnuntu 22.04 server not a vm, tried different install methods same issue.

runnig on ANCIENT HP prolint 380 G5

installation issue

First of all thank you for this solution.

I tried to install ERPnext using it for testing purposes.
and it seems something didn't went well.

I used a 4 GB Memory / 80 GB Disk / LON1 - Ubuntu 22.04 (LTS) x64 Server by Digital Ocean.
I choose V15
I completed the process and seems the installer got some issues during the installation.
like one that says " no such directory /root"

But anyway at the end I'm getting this

Screenshot 2023-11-18 at 03 23 03

Installer exits after entering Administrator password

I've just come across this fine script. I noticed an issue trying to use this in Ubuntu 22; at the point where you insert the admin user passwords; the script causes Putty/bitvise to exit immediately with no warnings. There are no error messages but it happens after you enter the site name and admin password.
It happens on both:
1.contabo vps
2.local vms

v15 installation issues

Hello
i installed on Ubuntu 22.04 it did not give me any error during installation, at the end it gave me success message but, it did not work, simply didnt work.
currentsite.txt is not created and i restarted bench with bench restart command here is what i get

frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-web:frappe-bench-node-socketio: ERROR (spawn error)
frappe-bench-web:frappe-bench-frappe-web: started
ERROR: supervisorctl restart frappe-bench-workers: frappe-bench-web:
subprocess.CalledProcessError: Command 'supervisorctl restart frappe-bench-workers: frappe-bench-web:' returned non-zero exit status 7.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/bench", line 8, in <module>
    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/utils.py", line 41, in restart
    Bench(".").reload(web, supervisor, systemd)
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 152, in reload
    restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 321, in restart_supervisor_processes
    failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
  File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 48, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 158, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: supervisorctl restart frappe-bench-workers: frappe-bench-web:

SQL_USER other than root?

Hello,

Is it possible to choose an other db user than root and set it up in the config json file?

Error in installing v15 and v14.

i think its because erpnext has messed up something or since we are not using the "--resolve-deps" tag when getting the erpnext app. Also side note i think paymnents app is mandatory with erpnext now (maybe I am wrong). Furthermore, when I install hrms app it fails with the same error- "Illegal instruction (core dumped)"

[-/5] ⡀ waiting...
Done in 40.63s.
Found existing apps updating states...
WARN: restart failed: Couldn't find supervisorctl in PATH
Getting erpnext
$ git clone https://github.com/frappe/erpnext.git --branch version-15 --depth 1 --origin upstream
Cloning into 'erpnext'...
remote: Enumerating objects: 4708, done.
remote: Counting objects: 100% (4708/4708), done.
remote: Compressing objects: 100% (3951/3951), done.
remote: Total 4708 (delta 950), reused 2163 (delta 537), pack-reused 0
Receiving objects: 100% (4708/4708), 15.88 MiB | 7.64 MiB/s, done.
Resolving deltas: 100% (950/950), done.
Ignoring dependencies of erpnext. To install dependencies use --resolve-deps
Installing erpnext
$ /home/erp/frappe-bench/env/bin/python -m pip install --upgrade -e /home/erp/frappe-bench/apps/erpnext
Obtaining file:///home/erp/frappe-bench/apps/erpnext
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done

.....

Enter the Administrator password:
Confirm password:
Password confirmed

Now setting up your site. This might take a few minutes. Please wait...
./erpnext_install.sh: line 341: 8227 Illegal instruction (core dumped) bench new-site $site_name --db-root-password $sqlpasswrd --admin-password $adminpasswrd --install-app erpnext
Would you like to continue with production install? (yes/no)
Response: yes
Installing packages and dependencies for Production...
Setting Up prerequisites...
$ sudo /usr/bin/python3 -m pip install ansible
Collecting ansible

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.